FS-6054 --resolve
This commit is contained in:
parent
0f8f7e82bf
commit
1ac6f16cd5
Notes:
Travis Cross
2013-12-30 15:49:08 +00:00
Causes FS to crash during hold operations
|
@ -4432,6 +4432,7 @@ int sofia_glue_toggle_hold(private_object_t *tech_pvt, int sendonly)
|
|||
sofia_clear_flag_locked(tech_pvt, TFLAG_HOLD_LOCK);
|
||||
|
||||
if (sofia_test_flag(tech_pvt, TFLAG_SIP_HOLD)) {
|
||||
const char *val;
|
||||
|
||||
switch_yield(250000);
|
||||
|
||||
|
@ -4452,6 +4453,12 @@ 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) &&
|
||||
!((val = switch_channel_get_variable(tech_pvt->channel, "disable_rtp_auto_adjust")) && switch_true(val))) {
|
||||
/* Reactivate the NAT buster flag. */
|
||||
switch_rtp_set_flag(tech_pvt->video_rtp_session, SWITCH_RTP_FLAG_AUTOADJ);
|
||||
}
|
||||
|
||||
sofia_clear_flag_locked(tech_pvt, TFLAG_SIP_HOLD);
|
||||
switch_channel_mark_hold(tech_pvt->channel, SWITCH_FALSE);
|
||||
switch_channel_presence(tech_pvt->channel, "unknown", "unhold", NULL);
|
||||
|
|
Loading…
Reference in New Issue