From 56f6d7f17a9900300d7356204b161f0218f7e3f0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 18 Apr 2008 15:39:49 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8125 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index c0436d98c0..9b56a3b657 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -464,7 +464,7 @@ static switch_status_t uuid_bridge_on_transmit(switch_core_session_t *session) switch_channel_clear_flag(other_channel, CF_TRANSFER); switch_core_session_reset(session, SWITCH_TRUE); switch_core_session_reset(other_session, SWITCH_TRUE); - + ready_a = switch_channel_ready(channel); ready_b = switch_channel_ready(other_channel); @@ -583,7 +583,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_signal_bridge(switch_core_session_t * switch_channel_t *peer_channel = switch_core_session_get_channel(peer_session); switch_event_t *event; - if (!switch_channel_ready(peer_channel)) { + if (switch_channel_get_state(peer_channel) >= CS_HANGUP) { switch_channel_hangup(caller_channel, switch_channel_get_cause(peer_channel)); return SWITCH_STATUS_FALSE; }