]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 13 Oct 2008 21:17:10 +0000 (21:17 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 13 Oct 2008 21:17:10 +0000 (21:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9999 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 50fe499587367cbf151cf73fb1e305e05e407cab..cbac3a1ca269fc4f98baa3996bad5566b044ad90 100644 (file)
@@ -868,7 +868,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                        
                        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_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                                        switch_size_t mlen, olen;
                                                        unsigned int pos = 0;
 
-
                                                        if (ringback.asis) {
                                                                mlen = write_frame.codec->implementation->encoded_bytes_per_frame;
                                                        } else {