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

FreeSWITCH SVN brian at freeswitch.org
Fri Dec 26 09:09:09 PST 2008


Author: brian
Date: Fri Dec 26 12:09:09 2008
New Revision: 10949

Log:
fix early media issue related to group_confirm_file

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Fri Dec 26 12:09:09 2008
@@ -39,6 +39,12 @@
 {
 	switch_channel_t *channel = switch_core_session_get_channel(session);
 
+	if (!switch_channel_test_flag(channel, CF_PROXY_MODE)) {
+		while (switch_channel_get_state(channel) == CS_CONSUME_MEDIA && !switch_channel_test_flag(channel, CF_TAGGED)) {
+			switch_ivr_sleep(session, 10, SWITCH_FALSE, NULL);
+		}
+	}
+
 	switch_channel_clear_state_handler(channel, &originate_state_handlers);
 
 	return SWITCH_STATUS_FALSE;



More information about the Freeswitch-svn mailing list