提交 3da50fc1 authored 作者: Brian West's avatar Brian West 提交者: Mike Jerris

FS-10356: [core] Do not blindly print error string from rtp/stun packets

上级 4a39e94c
...@@ -971,11 +971,10 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d ...@@ -971,11 +971,10 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
switch_stun_error_code_t *err = (switch_stun_error_code_t *) attr->value; switch_stun_error_code_t *err = (switch_stun_error_code_t *) attr->value;
uint32_t code = (err->code * 100) + err->number; uint32_t code = (err->code * 100) + err->number;
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "%s got %s stun binding response %u %s\n", switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "%s got %s stun binding response %u\n",
rtp_session_name(rtp_session), rtp_session_name(rtp_session),
rtp_type(rtp_session), rtp_type(rtp_session),
code, code
err->reason
); );
if ((ice->type & ICE_VANILLA) && code == 487) { if ((ice->type & ICE_VANILLA) && code == 487) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论