From 29b0af627e684dead40577a17225c28be227afa3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 22 Feb 2012 21:48:03 -0600 Subject: [PATCH] FS-3932 --resolve the change in switch_ivr_bridge was your issue --- src/mod/applications/mod_dptools/mod_dptools.c | 6 ++++++ src/switch_ivr_bridge.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 8067e98675..246295f0fe 100755 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -2902,6 +2902,12 @@ SWITCH_STANDARD_APP(audio_bridge_function) v_campon_fallback_exten, switch_channel_get_variable(caller_channel, "campon_fallback_dialplan"), switch_channel_get_variable(caller_channel, "campon_fallback_context")); + + if (peer_session) { + switch_channel_hangup(switch_core_session_get_channel(peer_session), SWITCH_CAUSE_ORIGINATOR_CANCEL); + switch_core_session_rwunlock(peer_session); + } + return; } diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 3096f9cf92..266fa8d187 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -1244,6 +1244,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses if (!switch_channel_ready(caller_channel)) { abort_call(caller_channel, peer_channel); + switch_core_session_rwunlock(peer_session); goto done; }