From 4c44541e40faaec51c8e983199f004c4288540e5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 13 Oct 2008 21:17:10 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9999 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_originate.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 50fe499587..cbac3a1ca2 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -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 {