git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9999
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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];
switch_size_t mlen, olen;
unsigned int pos = 0;
-
if (ringback.asis) {
mlen = write_frame.codec->implementation->encoded_bytes_per_frame;
} else {