From 79de78a0fba1bd8379667b6cae73db00288f760e Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 19 Nov 2014 21:51:09 -0600 Subject: [PATCH] FS-7021 #resolve --- src/switch_ivr_originate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 10130dc224..65d3b0c496 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -2458,6 +2458,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess switch_ivr_sleep(oglobals.session, sleep_ms, SWITCH_TRUE, NULL); if (!switch_channel_ready(caller_channel)) { status = SWITCH_STATUS_FALSE; + /* set try and retries to 0 */ + try = 0; + retries = 0; goto done; } } else {