]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9654
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 17 Jan 2017 01:13:24 +0000 (19:13 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 17 Jan 2017 01:13:24 +0000 (19:13 -0600)
src/switch_ivr_bridge.c

index 5adc12bbcb8276c2271b8555874f9664832e2b73..13c72247135108cd54b265de2744715619864063 100644 (file)
@@ -2217,6 +2217,11 @@ SWITCH_DECLARE(void) switch_ivr_intercept_session(switch_core_session_t *session
                switch_channel_set_variable(bchannel, "park_after_bridge", "true");
        }
 
+       if ((var = switch_channel_get_variable(channel, "intercept_pre_bond")) && switch_true(var)) {
+               switch_channel_set_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE, uuid);
+               switch_channel_set_variable_partner(channel, SWITCH_SIGNAL_BOND_VARIABLE, switch_core_session_get_uuid(session));
+       }
+
        switch_channel_set_flag(rchannel, CF_INTERCEPTED);
        switch_ivr_uuid_bridge(switch_core_session_get_uuid(session), uuid);
        switch_core_session_rwunlock(rsession);