From: Anthony Minessale Date: Wed, 25 Nov 2015 19:56:25 +0000 (-0600) Subject: FS-8573 #resolve [unidirectional audio after resuming from hold in bypass media mode] X-Git-Tag: v1.6.6~1^2~72^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1868859638baf9ccbf309c770c9be8b1885a6526;p=thirdparty%2Ffreeswitch.git FS-8573 #resolve [unidirectional audio after resuming from hold in bypass media mode] --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 96f28eac92..941668bf47 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -5472,6 +5472,11 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name) sofia_set_flag(profile, TFLAG_LATE_NEGOTIATION); } + if (sofia_test_flag(profile, TFLAG_INB_NOMEDIA) && !sofia_test_flag(profile, TFLAG_LATE_NEGOTIATION)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "inbound-bypass-media implictly enables inbound-late-negotiation\n"); + sofia_set_flag(profile, TFLAG_LATE_NEGOTIATION); + } + if (sofia_test_pflag(profile, PFLAG_SEND_DISPLAY_UPDATE) && !sofia_test_pflag(profile, PFLAG_ALLOW_UPDATE)) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "send-display-update=true is set, but we can't comply because allow-update=false\n"); sofia_clear_pflag(profile, PFLAG_SEND_DISPLAY_UPDATE);