提交 e9adbb7a authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5687 this patch adds a debouncer to that info message. if you still have…

FS-5687 this patch adds a debouncer to that info message.  if you still have problems try altering switch_rtp.c:5469 to add 0 condition so it skips that whole block and retest eg... if (0 && switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
上级 a9cf555d
......@@ -1295,12 +1295,18 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
case SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ:
{
const char *pl = "<media_control><vc_primitive><to_encoder><picture_fast_update/></to_encoder></vc_primitive></media_control>";
time_t now = switch_epoch_time_now(NULL);
if (!zstr(msg->string_arg)) {
pl = msg->string_arg;
}
if (!tech_pvt->last_vid_info || (now - tech_pvt->last_vid_info) > 5) {
tech_pvt->last_vid_info = now;
nua_info(tech_pvt->nh, SIPTAG_CONTENT_TYPE_STR("application/media_control+xml"), SIPTAG_PAYLOAD_STR(pl), TAG_END());
if (!zstr(msg->string_arg)) {
pl = msg->string_arg;
}
nua_info(tech_pvt->nh, SIPTAG_CONTENT_TYPE_STR("application/media_control+xml"), SIPTAG_PAYLOAD_STR(pl), TAG_END());
}
}
break;
......
......@@ -752,6 +752,7 @@ struct private_object {
char *respond_phrase;
int respond_code;
char *respond_dest;
time_t last_vid_info;
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论