From 99a0d748476c57a4b837ca7561d79844d138b6fe Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 16 Jan 2017 19:13:24 -0600 Subject: [PATCH] FS-9654 --- src/switch_ivr_bridge.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 5adc12bbcb..13c7224713 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -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);