]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11754 [core] Make sure audio sync works while playing tts
authorSeven Du <dujinfang@gmail.com>
Wed, 24 Apr 2019 06:54:05 +0000 (14:54 +0800)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 19:06:21 +0000 (23:06 +0400)
src/switch_ivr_play_say.c

index e92820f57cf426e717be322f866a6a960982a712..430357b3862286d5573ad29909b44e3a629493fe 100644 (file)
@@ -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