]> 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>
Wed, 9 Apr 2014 18:41:02 +0000 (18:41 +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 ea1d694e874c3f9467258f98b65b039e99794ed0..09773638f5e97cf207891e4b9cd0a563b84585c4 100644 (file)
@@ -312,6 +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;
                        }
                }