FS-7502: refresh video on video record or eavesdrop

This commit is contained in:
Seven Du 2012-10-17 09:02:31 +08:00 committed by Michael Jerris
parent b23ba52807
commit dcca71d97d
1 changed files with 16 additions and 0 deletions

View File

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