]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5194 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 19 Mar 2013 14:16:36 +0000 (09:16 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 19 Mar 2013 14:16:36 +0000 (09:16 -0500)
src/switch_ivr_originate.c

index e273e76ed6ddeb43e99c3437a41e291c9353178c..d1e3c37649aab6f82db186be3790494a2927ad5b 100644 (file)
@@ -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;