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

Freeswitch SVN anthm at freeswitch.org
Sat Feb 17 12:30:50 EST 2007


Author: anthm
Date: Sat Feb 17 12:30:49 2007
New Revision: 4310

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
move session-rest

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Sat Feb 17 12:30:49 2007
@@ -2087,7 +2087,6 @@
 
 	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));
-	switch_core_session_reset(session_a);
 
 	switch_channel_clear_flag(chan_a, CF_BRIDGED);
 	switch_mutex_lock(data->mutex);
@@ -3534,6 +3533,7 @@
 			switch_channel_set_private(peer_channel, "_bridge_", other_audio_thread);
 			switch_channel_set_state(peer_channel, CS_LOOPBACK);
 			audio_bridge_thread(NULL, (void *) this_audio_thread);
+			switch_core_session_reset(session);
 
 			if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_UNBRIDGE) == SWITCH_STATUS_SUCCESS) {
 				switch_channel_event_set_data(caller_channel, event);
@@ -3560,6 +3560,7 @@
 					switch_yield(1000);
 				}
 			}
+			switch_core_session_reset(peer_session);
 			switch_core_session_rwunlock(peer_session);
 			
 		} else {



More information about the Freeswitch-svn mailing list