From 7d6c90e531efa720f6762e13ca1e815593300c88 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Wed, 24 Apr 2019 14:54:05 +0800 Subject: [PATCH] FS-11754 [core] Make sure audio sync works while playing tts --- src/switch_ivr_play_say.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index e92820f57c..430357b386 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -2748,10 +2748,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_speak_text_handle(switch_core_session break; } - if (switch_core_session_dequeue_private_event(session, &event) == SWITCH_STATUS_SUCCESS) { - switch_ivr_parse_event(session, event); - switch_event_destroy(&event); - } + switch_ivr_parse_all_events(session); if (args) { /* dtmf handler function you can hook up to be executed when a digit is dialed during playback