From 4a8dace5ab9db091253f33b305a67923e2ee9212 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 9 Apr 2014 07:35:38 +0000 Subject: [PATCH] Avoid considering more phrase actions after break 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index ea1d694e87..09773638f5 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -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; } }