提交 809d3025 authored 作者: Brian West's avatar Brian West

move this to debug and profile->debug so that its not on unless you enable the…

 move this to debug and profile->debug so that its not on unless you enable the profile debug also. 

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13887 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a6db0cf4
......@@ -1985,7 +1985,9 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
if (!switch_strlen_zero(var) && !switch_strlen_zero(val) && (xparams_type[j] == 1 || !strncasecmp(var, "sip-",4) || !strcasecmp(var, "register-gateway")) ) {
if (!switch_event_get_header(*v_event, var)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "event_add_header -> '%s' = '%s'\n",var, val);
if (profile->debug) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "event_add_header -> '%s' = '%s'\n",var, val);
}
switch_event_add_header_string(*v_event, SWITCH_STACK_BOTTOM, var, val);
} else {
continue;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论