]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Avoid considering more phrase actions after break
authorTravis Cross <tc@traviscross.com>
Wed, 9 Apr 2014 07:35:38 +0000 (07:35 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 19 Apr 2014 01:49:26 +0000 (01:49 +0000)
Previously we would continue considering phrase actions even after
receiving a break action; we would only break on the next input
clause.  It appears the intent here was to break before the next
action.

src/switch_ivr_play_say.c

index 2480d54a67c9404a4a25b1314b12ccffdba3e36a..b174f25aa99c58e5ca4e3dd74e7f4185df2e4d76 100644 (file)
@@ -312,7 +312,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro_event(switch_core_sessio
                                switch_ivr_sleep(session, pause, SWITCH_FALSE, NULL);
                                switch_safe_free(expanded);
                                switch_safe_free(substituted);
-                                       
+                               if (done) break;
                        }
                }