From: Anthony Minessale Date: Tue, 7 Apr 2015 23:23:59 +0000 (-0500) Subject: FS-7500: wait for video ready on answer X-Git-Tag: v1.6.2~614^2~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6522dbdffba7626d50eb1fe1fc0b39eeefa42ea2;p=thirdparty%2Ffreeswitch.git FS-7500: wait for video ready on answer --- 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);