From: Anthony Minessale Date: Thu, 11 Feb 2010 19:52:36 +0000 (+0000) Subject: reverse logic X-Git-Tag: v1.0.6~504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89a33be24a74afa2c324a47e2cabd827b52d0517;p=thirdparty%2Ffreeswitch.git reverse logic git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16608 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 5b6b414584..f3438272ba 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -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); } }