From dcca71d97d745d527cad72a2ee0a4d518b516947 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Wed, 17 Oct 2012 09:02:31 +0800 Subject: [PATCH] FS-7502: refresh video on video record or eavesdrop --- src/switch_ivr_async.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index e2705f3614..85dcc66ad5 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1943,6 +1943,13 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session msg.message_id = SWITCH_MESSAGE_INDICATE_DISPLAY; switch_core_session_receive_message(session, &msg); + if (switch_channel_test_flag(tchannel, CF_VIDEO)) { + + msg.message_id = SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ; + + switch_core_session_receive_message(tsession, &msg); + } + while (switch_channel_up_nosig(tchannel) && switch_channel_ready(channel)) { uint32_t len = sizeof(buf); switch_event_t *event = NULL; @@ -2435,6 +2442,15 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t switch_channel_set_private(channel, file, bug); + if (switch_channel_test_flag(channel, CF_VIDEO)) { + switch_core_session_message_t msg = { 0 }; + + msg.from = __FILE__; + msg.message_id = SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ; + + switch_core_session_receive_message(session, &msg); + } + return SWITCH_STATUS_SUCCESS; }