]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4166
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 1 May 2012 00:37:59 +0000 (19:37 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 1 May 2012 00:37:59 +0000 (19:37 -0500)
src/switch_ivr_bridge.c

index abc006f5664e34061a83f991679a9049c824d4c7..8025c9d01c97d0622b7bf376e272d81db38d2791 100644 (file)
@@ -661,6 +661,8 @@ static switch_status_t audio_bridge_on_exchange_media(switch_core_session_t *ses
                        !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)) {
+                               switch_channel_clear_flag(channel, CF_INTERCEPT);
+                               switch_channel_clear_flag(channel, CF_INTERCEPTED);
                                return SWITCH_STATUS_FALSE;
                        } else {
                                if (switch_channel_test_flag(channel, CF_INTERCEPT)) {
@@ -1654,7 +1656,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_find_bridged_uuid(const char *uuid, c
                switch_channel_t *rchannel = switch_core_session_get_channel(rsession);
                const char *brto;
 
-               if ((brto = switch_channel_get_variable(rchannel, SWITCH_SIGNAL_BOND_VARIABLE))) {
+               if ((brto = switch_channel_get_variable(rchannel, "orignate_signal_bond")) || 
+                       (brto = switch_channel_get_variable(rchannel, SWITCH_SIGNAL_BOND_VARIABLE))) {
                        switch_copy_string(b_uuid, brto, blen);
                        status = SWITCH_STATUS_SUCCESS;
                }