add disable_hold var or disable-hold profile param

This commit is contained in:
Anthony Minessale committed 2010-05-03 12:35:48 -05:00
1 parent 9096501ee4
commit e5cc0539ff
3 files changed
+18

No files matched your search

+5
View File
@@ -3392,6 +3392,11 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
}
}
if (sofia_test_flag(tech_pvt->profile, PFLAG_DISABLE_HOLD) ||
((val = switch_channel_get_variable(tech_pvt->channel, "sip_disable_hold")) && switch_true(val))) {
sendonly = 0;
}
if (!tech_pvt->hold_laps) {
tech_pvt->hold_laps++;
sofia_glue_toggle_hold(tech_pvt, sendonly);