[Freeswitch-svn] [commit] r8125 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri Apr 18 11:39:50 EDT 2008
Author: anthm
Date: Fri Apr 18 11:39:49 2008
New Revision: 8125
Modified:
freeswitch/trunk/src/switch_ivr_bridge.c
Log:
tweak
Modified: freeswitch/trunk/src/switch_ivr_bridge.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_bridge.c (original)
+++ freeswitch/trunk/src/switch_ivr_bridge.c Fri Apr 18 11:39:49 2008
@@ -464,7 +464,7 @@
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_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;
}
More information about the Freeswitch-svn
mailing list