FS-7500: wait for video ready on answer

This commit is contained in:
Anthony Minessale 2015-04-07 18:23:59 -05:00 committed by Michael Jerris
parent d293e9bd1b
commit 6522dbdffb
1 changed files with 4 additions and 0 deletions

View File

@ -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);