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

Freeswitch SVN anthm at freeswitch.org
Fri Oct 10 18:59:33 EDT 2008


Author: anthm
Date: Fri Oct 10 18:59:32 2008
New Revision: 9948

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 Oct 10 18:59:32 2008
@@ -418,13 +418,13 @@
 
   end:
 
-	switch_core_session_kill_channel(session_b, SWITCH_SIG_BREAK);
 	switch_core_session_reset(session_a, SWITCH_TRUE);
 	switch_channel_set_variable(chan_a, SWITCH_BRIDGE_VARIABLE, NULL);
 	switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "BRIDGE THREAD DONE [%s]\n", switch_channel_get_name(chan_a));
 	if (!inner_bridge) {
 		switch_channel_clear_flag(chan_a, CF_BRIDGED);
 	}
+	switch_core_session_kill_channel(session_b, SWITCH_SIG_BREAK);
 	switch_core_session_rwunlock(session_b);
 	return NULL;
 }
@@ -864,7 +864,7 @@
 			switch_channel_set_private(peer_channel, "_bridge_", b_leg);
 			switch_channel_set_state(peer_channel, CS_EXCHANGE_MEDIA);
 			audio_bridge_thread(NULL, (void *) a_leg);
-
+			
 			switch_channel_clear_flag(caller_channel, CF_ORIGINATOR);
 
 			if (!switch_channel_test_flag(peer_channel, CF_TRANSFER) && switch_channel_get_state(peer_channel) == CS_EXCHANGE_MEDIA) {



More information about the Freeswitch-svn mailing list