mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-04 14:38:35 +00:00
make sure hold-related code is skipped 100% with disable-hold set
This commit is contained in:
parent
5f012813ef
commit
403bf6af1c
@ -3590,12 +3590,13 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
|
|||||||
if (sofia_test_pflag(tech_pvt->profile, PFLAG_DISABLE_HOLD) ||
|
if (sofia_test_pflag(tech_pvt->profile, PFLAG_DISABLE_HOLD) ||
|
||||||
((val = switch_channel_get_variable(tech_pvt->channel, "sip_disable_hold")) && switch_true(val))) {
|
((val = switch_channel_get_variable(tech_pvt->channel, "sip_disable_hold")) && switch_true(val))) {
|
||||||
sendonly = 0;
|
sendonly = 0;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (!tech_pvt->hold_laps) {
|
if (!tech_pvt->hold_laps) {
|
||||||
tech_pvt->hold_laps++;
|
tech_pvt->hold_laps++;
|
||||||
sofia_glue_toggle_hold(tech_pvt, sendonly);
|
sofia_glue_toggle_hold(tech_pvt, sendonly);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (m = sdp->sdp_media; m; m = m->m_next) {
|
for (m = sdp->sdp_media; m; m = m->m_next) {
|
||||||
sdp_connection_t *connection;
|
sdp_connection_t *connection;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user