From de9714d7721b185f21c53c6df41b6cb63467d332 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 19 Mar 2013 09:16:36 -0500 Subject: [PATCH] FS-5194 --resolve --- src/switch_ivr_originate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index e273e76ed6..d1e3c37649 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -2372,7 +2372,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess or_argc = 1; } - for (r = 0; r < or_argc; r++) { + for (r = 0; r < or_argc && (!cancel_cause || *cancel_cause == 0); r++) { char *p, *end = NULL; int q = 0, alt = 0;