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

Freeswitch SVN anthm at freeswitch.org
Thu Aug 14 12:29:27 EDT 2008


Author: anthm
Date: Thu Aug 14 12:29:26 2008
New Revision: 9293

Modified:
   freeswitch/trunk/src/switch_ivr_bridge.c

Log:
small adjustment

Modified: freeswitch/trunk/src/switch_ivr_bridge.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_bridge.c	(original)
+++ freeswitch/trunk/src/switch_ivr_bridge.c	Thu Aug 14 12:29:26 2008
@@ -522,6 +522,9 @@
 		}
 
 		switch_ivr_multi_threaded_bridge(session, other_session, NULL, NULL, NULL);
+		if (switch_channel_get_state(channel) < CS_HANGUP) {
+			switch_channel_set_state(channel, CS_EXECUTE);
+		}
 		switch_core_session_rwunlock(other_session);
 	} else {
 		switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
@@ -821,12 +824,6 @@
 		}
 	}
 
-	state = switch_channel_get_state(caller_channel);
-
-	if (state == CS_SOFT_EXECUTE || state == CS_PARK) {
-		switch_channel_set_state(caller_channel, CS_EXECUTE);
-	}
-
 	return status;
 }
 



More information about the Freeswitch-svn mailing list