]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4166
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 30 Apr 2012 23:25:59 +0000 (18:25 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 30 Apr 2012 23:25:59 +0000 (18:25 -0500)
src/switch_ivr_bridge.c

index dc95a4311499dfd0c9f5dc7ccd677e07f1fe3506..abc006f5664e34061a83f991679a9049c824d4c7 100644 (file)
@@ -660,7 +660,9 @@ static switch_status_t audio_bridge_on_exchange_media(switch_core_session_t *ses
                if (!switch_channel_test_flag(channel, CF_TRANSFER) && !switch_channel_test_flag(channel, CF_REDIRECT) &&
                        !switch_channel_test_flag(channel, CF_XFER_ZOMBIE) && bd && !bd->clean_exit
                        && state != CS_PARK && state != CS_ROUTING && state == CS_EXCHANGE_MEDIA && !switch_channel_test_flag(channel, CF_INNER_BRIDGE)) {
-                       if (!switch_channel_test_flag(channel, CF_INTERCEPTED)) {
+                       if (switch_channel_test_flag(channel, CF_INTERCEPTED)) {
+                               return SWITCH_STATUS_FALSE;
+                       } else {
                                if (switch_channel_test_flag(channel, CF_INTERCEPT)) {
                                        switch_channel_hangup(channel, SWITCH_CAUSE_PICKED_OFF);
                                } else {