From: Anthony Minessale Date: Fri, 20 Feb 2009 19:51:34 +0000 (+0000) Subject: reduce the yields X-Git-Tag: v1.0.4~1907 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=292ed6eee51a779b86a3ccbdddfb60a66910ab69;p=thirdparty%2Ffreeswitch.git reduce the yields git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12193 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 9b56063489..1e5d31f522 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -1562,7 +1562,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess goto notready; } - switch_yield(100000); + switch_cond_next(); } check_per_channel_timeouts(&oglobals, originate_status, and_argc, start); @@ -1821,7 +1821,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess } } else { - switch_yield(100000); + switch_cond_next(); } }