From 6522dbdffba7626d50eb1fe1fc0b39eeefa42ea2 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 7 Apr 2015 18:23:59 -0500 Subject: [PATCH] FS-7500: wait for video ready on answer --- src/switch_channel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch_channel.c b/src/switch_channel.c index 127bf13c69..0c271468dd 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -3771,6 +3771,10 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_answer(switch_channel_t * if (switch_core_session_in_thread(channel->session)) { const char *delay; + if (switch_channel_test_flag(channel, CF_VIDEO)) { + switch_channel_wait_for_flag(channel, CF_VIDEO_READY, SWITCH_TRUE, 10000, NULL); + } + if ((delay = switch_channel_get_variable(channel, "answer_delay"))) { uint32_t msec = atoi(delay);