From: Anthony Minessale Date: Tue, 11 Nov 2008 15:03:09 +0000 (+0000) Subject: let b legs use park_after_bridge too X-Git-Tag: v1.0.2~577 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db7264cefa2f1d0310b7fd8274ae2a84852d144;p=thirdparty%2Ffreeswitch.git let b legs use park_after_bridge too git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10329 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 643c4848c4..540bb5ecd7 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -463,6 +463,10 @@ static switch_status_t audio_bridge_on_exchange_media(switch_core_session_t *ses state = switch_channel_get_state(channel); + if (state < CS_HANGUP && switch_true(switch_channel_get_variable(channel, SWITCH_PARK_AFTER_BRIDGE_VARIABLE))) { + switch_ivr_park_session(session); + } + if (!switch_channel_test_flag(channel, CF_TRANSFER) && bd && !bd->clean_exit && state != CS_PARK && state != CS_ROUTING && !switch_channel_test_flag(channel, CF_INNER_BRIDGE)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);