]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10012 [mod_callcenter] Enabling bypass media if agents leg have bypass_media_after...
authorItalo Rossi <italorossib@gmail.com>
Sun, 5 Feb 2017 17:56:47 +0000 (14:56 -0300)
committerItalo Rossi <italorossib@gmail.com>
Sun, 5 Feb 2017 17:57:51 +0000 (14:57 -0300)
src/mod/applications/mod_callcenter/mod_callcenter.c

index 7f77a31a7812d51754f9870c9f70919bc972a943..409a4170358c142b38f8cfc4c5d91b1038e93975 100644 (file)
@@ -1862,7 +1862,7 @@ 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))) {
+               if (switch_true(switch_channel_get_variable(member_channel, SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE)) || switch_true(switch_channel_get_variable(agent_channel, SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE))) {
                        switch_channel_set_flag(member_channel, CF_BYPASS_MEDIA_AFTER_BRIDGE);
                }