[Freeswitch-svn] [commit] r6912 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Wed Dec 19 22:30:27 EST 2007


Author: anthm
Date: Wed Dec 19 22:30:27 2007
New Revision: 6912

Modified:
   freeswitch/trunk/src/switch_ivr_bridge.c

Log:
more stuff

Modified: freeswitch/trunk/src/switch_ivr_bridge.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_bridge.c	(original)
+++ freeswitch/trunk/src/switch_ivr_bridge.c	Wed Dec 19 22:30:27 2007
@@ -653,7 +653,10 @@
 
 			switch_channel_clear_flag(caller_channel, CF_ORIGINATOR);
 			//make sure this doesnt break anything
-			switch_channel_set_state(peer_channel, CS_RESET);
+
+			if (!switch_channel_test_flag(peer_channel, CF_TRANSFER) && switch_channel_get_state(peer_channel) == CS_LOOPBACK) {
+				switch_channel_set_state(peer_channel, CS_RESET);
+			}
 			while (switch_channel_get_state(peer_channel) == CS_LOOPBACK) {
 				switch_yield(1000);
 			}



More information about the Freeswitch-svn mailing list