提交 3b4964bd authored 作者: Mike Jerris's avatar Mike Jerris 提交者: Anthony Minessale

FS-10241: [mod_sofia] don't send xml media refresh request before we have media setup

上级 38efa65d
...@@ -1418,7 +1418,8 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi ...@@ -1418,7 +1418,8 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
break; break;
case SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ: case SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ:
if (!switch_channel_test_flag(channel, CF_AVPF) && switch_true(switch_core_get_variable("sofia_send_info_vid_refresh"))) { if (switch_channel_media_up(channel) && !switch_channel_test_flag(channel, CF_AVPF) &&
switch_true(switch_core_get_variable("sofia_send_info_vid_refresh"))) {
const char *pl = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<media_control><vc_primitive><to_encoder><picture_fast_update /></to_encoder></vc_primitive></media_control>\n"; const char *pl = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<media_control><vc_primitive><to_encoder><picture_fast_update /></to_encoder></vc_primitive></media_control>\n";
switch_time_t now = switch_micro_time_now(); switch_time_t now = switch_micro_time_now();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论