From: Italo Rossi Date: Thu, 7 Apr 2016 20:54:05 +0000 (-0300) Subject: FS-9025 - [mod_callcenter] bypass_media_after_bridge working for member channel X-Git-Tag: v1.6.8~5^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f5af35fd3d640fe1422b4eb308add9a4dfa09af;p=thirdparty%2Ffreeswitch.git FS-9025 - [mod_callcenter] bypass_media_after_bridge working for member channel --- diff --git a/src/mod/applications/mod_callcenter/mod_callcenter.c b/src/mod/applications/mod_callcenter/mod_callcenter.c index 1df0afd557..0c2a24512c 100644 --- a/src/mod/applications/mod_callcenter/mod_callcenter.c +++ b/src/mod/applications/mod_callcenter/mod_callcenter.c @@ -1783,6 +1783,9 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa /* This is used for the waiting caller to quit waiting for a agent */ switch_channel_set_variable(member_channel, "cc_agent_found", "true"); switch_channel_set_variable(member_channel, "cc_agent_uuid", agent_uuid); + if (switch_true(switch_channel_get_variable(member_channel, SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE))) { + switch_channel_set_flag(member_channel, CF_BYPASS_MEDIA_AFTER_BRIDGE); + } switch_ivr_uuid_bridge(h->member_session_uuid, switch_core_session_get_uuid(agent_session)); switch_channel_wait_for_flag(agent_channel, CF_BRIDGED, SWITCH_TRUE, 1000, NULL);