[Freeswitch-svn] [commit] r5837 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Wed Oct 10 13:56:10 EDT 2007
Author: anthm
Date: Wed Oct 10 13:56:10 2007
New Revision: 5837
Modified:
freeswitch/trunk/src/switch_ivr_bridge.c
Log:
only honor hangup_after_bridge=true if the channel is answered
Modified: freeswitch/trunk/src/switch_ivr_bridge.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_bridge.c (original)
+++ freeswitch/trunk/src/switch_ivr_bridge.c Wed Oct 10 13:56:10 2007
@@ -671,7 +671,8 @@
done:
- if (switch_channel_test_flag(caller_channel, CF_ANSWERED) && switch_channel_get_state(caller_channel) < CS_HANGUP &&
+ if (switch_channel_test_flag(peer_channel, CF_ANSWERED) &&
+ switch_channel_get_state(caller_channel) < CS_HANGUP &&
switch_true(switch_channel_get_variable(caller_channel, SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE))) {
switch_channel_hangup(caller_channel, switch_channel_get_cause(peer_channel));
}
More information about the Freeswitch-svn
mailing list