]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
reverse logic
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 11 Feb 2010 19:52:36 +0000 (19:52 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 11 Feb 2010 19:52:36 +0000 (19:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16608 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_bridge.c

index 5b6b414584f5333b10e927a2f1bc49003e8981ea..f3438272baba1fdda73ae58596a097592b87e085 100644 (file)
@@ -630,7 +630,7 @@ static switch_status_t audio_bridge_on_exchange_media(switch_core_session_t *ses
        } else {
                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)) {
+                       && state != CS_PARK && state != CS_ROUTING && state == CS_EXCHANGE_MEDIA && !switch_channel_test_flag(channel, CF_INNER_BRIDGE)) {
                        switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
                }
        }