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

Freeswitch SVN anthm at freeswitch.org
Mon Oct 13 17:17:10 EDT 2008


Author: anthm
Date: Mon Oct 13 17:17:10 2008
New Revision: 9999

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Log:
update

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Mon Oct 13 17:17:10 2008
@@ -868,7 +868,11 @@
 			
 			if (try > 0) {
 				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Originate attempt %d/%d in %d ms\n", try + 1, retries, sleep_ms);
-				switch_yield(sleep_ms * 1000);
+				if (caller_channel) {
+					switch_ivr_sleep(session, sleep_ms, NULL);
+				} else {
+					switch_yield(sleep_ms * 1000);
+				}
 			}
 			
 			p = pipe_names[r];
@@ -1339,7 +1343,6 @@
 							switch_size_t mlen, olen;
 							unsigned int pos = 0;
 
-
 							if (ringback.asis) {
 								mlen = write_frame.codec->implementation->encoded_bytes_per_frame;
 							} else {



More information about the Freeswitch-svn mailing list