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

Freeswitch SVN anthm at freeswitch.org
Wed Oct 31 19:19:30 EDT 2007


Author: anthm
Date: Wed Oct 31 19:19:30 2007
New Revision: 6116

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
move set

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Wed Oct 31 19:19:30 2007
@@ -417,12 +417,12 @@
 		switch_channel_pre_answer(channel);
 	}
 
+	switch_channel_set_flag(channel, CF_CONTROLLED);
 	if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_PARK) == SWITCH_STATUS_SUCCESS) {
 		switch_channel_event_set_data(channel, event);
 		switch_event_fire(&event);
 	}
 
-	switch_channel_set_flag(channel, CF_CONTROLLED);
 	while (switch_channel_ready(channel) && switch_channel_test_flag(channel, CF_CONTROLLED)) {
 
 		if ((status = switch_core_session_read_frame(session, &read_frame, -1, stream_id)) == SWITCH_STATUS_SUCCESS) {



More information about the Freeswitch-svn mailing list