diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 71c35005cd..6d7fbe5e67 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -153,6 +153,10 @@ SWITCH_DECLARE(void) switch_ivr_session_echo(switch_core_session_t *session, swi switch_core_session_write_video_frame(session, read_frame, SWITCH_IO_FLAG_NONE, 0); #endif + if (switch_channel_test_flag(channel, CF_BREAK)) { + switch_channel_clear_flag(channel, CF_BREAK); + break; + } } #ifdef SWITCH_VIDEO_IN_THREADS