]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3634
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 31 Oct 2011 13:06:15 +0000 (08:06 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 31 Oct 2011 13:06:15 +0000 (08:06 -0500)
src/switch_ivr_bridge.c

index 0a0362d5faac73baf136f6397e69a3f349e9066b..2342c38c812437f688fa51365e45ff338c12f79a 100644 (file)
@@ -1622,6 +1622,7 @@ SWITCH_DECLARE(void) switch_ivr_intercept_session(switch_core_session_t *session
        if (!zstr(buuid)) {
                if ((bsession = switch_core_session_locate(buuid))) {
                        bchannel = switch_core_session_get_channel(bsession);
+                       switch_channel_set_flag(bchannel, CF_INTERCEPT);
                }
        }
 
@@ -1636,7 +1637,6 @@ SWITCH_DECLARE(void) switch_ivr_intercept_session(switch_core_session_t *session
 
        if (bchannel) {
                switch_channel_set_state_flag(bchannel, CF_TRANSFER);
-               switch_channel_set_flag(bchannel, CF_INTERCEPT);
                switch_channel_set_state(bchannel, CS_PARK);
        }