FS-6054
This commit is contained in:
parent
6968ef88fa
commit
ee1b7c61ee
Notes:
Travis Cross
2013-12-30 15:50:12 +00:00
Fixes FS crash during hold operations introduced in 1ac6f16
|
@ -4456,9 +4456,18 @@ int sofia_glue_toggle_hold(private_object_t *tech_pvt, int sendonly)
|
||||||
if (!sofia_test_pflag(tech_pvt->profile, PFLAG_DISABLE_RTP_AUTOADJ) && !switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MODE) &&
|
if (!sofia_test_pflag(tech_pvt->profile, PFLAG_DISABLE_RTP_AUTOADJ) && !switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MODE) &&
|
||||||
!((val = switch_channel_get_variable(tech_pvt->channel, "disable_rtp_auto_adjust")) && switch_true(val))) {
|
!((val = switch_channel_get_variable(tech_pvt->channel, "disable_rtp_auto_adjust")) && switch_true(val))) {
|
||||||
/* Reactivate the NAT buster flag. */
|
/* Reactivate the NAT buster flag. */
|
||||||
|
|
||||||
|
|
||||||
|
if (tech_pvt->rtp_session) {
|
||||||
|
switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_AUTOADJ);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tech_pvt->video_rtp_session) {
|
||||||
switch_rtp_set_flag(tech_pvt->video_rtp_session, SWITCH_RTP_FLAG_AUTOADJ);
|
switch_rtp_set_flag(tech_pvt->video_rtp_session, SWITCH_RTP_FLAG_AUTOADJ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
sofia_clear_flag_locked(tech_pvt, TFLAG_SIP_HOLD);
|
sofia_clear_flag_locked(tech_pvt, TFLAG_SIP_HOLD);
|
||||||
switch_channel_mark_hold(tech_pvt->channel, SWITCH_FALSE);
|
switch_channel_mark_hold(tech_pvt->channel, SWITCH_FALSE);
|
||||||
switch_channel_presence(tech_pvt->channel, "unknown", "unhold", NULL);
|
switch_channel_presence(tech_pvt->channel, "unknown", "unhold", NULL);
|
||||||
|
|
Loading…
Reference in New Issue