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

FreeSWITCH SVN anthm at freeswitch.org
Fri May 8 12:03:54 PDT 2009


Author: anthm
Date: Fri May  8 14:03:54 2009
New Revision: 13264

Log:
FSCORE-357

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 May  8 14:03:54 2009
@@ -2052,8 +2052,8 @@
                             continue;
                         }
 						
-						switch_channel_wait_for_state_timeout(switch_core_session_get_channel(originate_status[i].peer_session), CS_DESTROY, 5000);
-						
+						switch_channel_wait_for_state_timeout(switch_core_session_get_channel(originate_status[i].peer_session), CS_REPORTING, 5000);
+						switch_yield(100000);
 						if (switch_ivr_generate_xml_cdr(originate_status[i].peer_session, &cdr) == SWITCH_STATUS_SUCCESS) {
 							if ((xml_text = switch_xml_toxml(cdr, SWITCH_FALSE))) {
 								switch_snprintf(buf, sizeof(buf), "%s_%d", cdr_var, ++cdr_total);



More information about the Freeswitch-svn mailing list