FS-6054
This commit is contained in:
parent
417ef16de5
commit
0ab8cf0f7c
|
@ -3739,11 +3739,18 @@ SWITCH_DECLARE(int) switch_core_media_toggle_hold(switch_core_session_t *session
|
||||||
|
|
||||||
if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) &&
|
if (!switch_media_handle_test_media_flag(smh, SCMF_DISABLE_RTP_AUTOADJ) &&
|
||||||
!((val = switch_channel_get_variable(session->channel, "disable_rtp_auto_adjust")) && switch_true(val)) &&
|
!((val = switch_channel_get_variable(session->channel, "disable_rtp_auto_adjust")) && switch_true(val)) &&
|
||||||
!switch_channel_test_flag(session->channel, CF_WEBRTC) && a_engine->rtp_session) {
|
!switch_channel_test_flag(session->channel, CF_WEBRTC)) {
|
||||||
/* Reactivate the NAT buster flag. */
|
/* Reactivate the NAT buster flag. */
|
||||||
|
|
||||||
|
if (a_engine->rtp_session) {
|
||||||
switch_rtp_set_flag(a_engine->rtp_session, SWITCH_RTP_FLAG_AUTOADJ);
|
switch_rtp_set_flag(a_engine->rtp_session, SWITCH_RTP_FLAG_AUTOADJ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (v_engine->rtp_session) {
|
||||||
|
switch_rtp_set_flag(v_engine->rtp_session, SWITCH_RTP_FLAG_AUTOADJ);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch_channel_clear_flag(session->channel, CF_PROTO_HOLD);
|
switch_channel_clear_flag(session->channel, CF_PROTO_HOLD);
|
||||||
switch_channel_mark_hold(session->channel, SWITCH_FALSE);
|
switch_channel_mark_hold(session->channel, SWITCH_FALSE);
|
||||||
switch_channel_presence(session->channel, "unknown", "unhold", NULL);
|
switch_channel_presence(session->channel, "unknown", "unhold", NULL);
|
||||||
|
|
Loading…
Reference in New Issue