提交 b0c86f45 authored 作者: Brian West's avatar Brian West

move these messages into debug

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9983 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b2a24fc8
...@@ -127,7 +127,9 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now) ...@@ -127,7 +127,9 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
gateway_ptr->status = SOFIA_GATEWAY_UP; gateway_ptr->status = SOFIA_GATEWAY_UP;
break; break;
case REG_STATE_REGISTER: case REG_STATE_REGISTER:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Registered %s\n", gateway_ptr->name); if (profile->debug) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Registered %s\n", gateway_ptr->name);
}
if (gateway_ptr->expires > 60) { if (gateway_ptr->expires > 60) {
gateway_ptr->expires = now + (gateway_ptr->freq - 15); gateway_ptr->expires = now + (gateway_ptr->freq - 15);
} else { } else {
...@@ -1163,8 +1165,9 @@ void sofia_reg_handle_sip_r_challenge(int status, ...@@ -1163,8 +1165,9 @@ void sofia_reg_handle_sip_r_challenge(int status,
switch_snprintf(authentication, sizeof(authentication), "%s:%s:%s:%s", scheme, realm, gateway->auth_username, gateway->register_password); switch_snprintf(authentication, sizeof(authentication), "%s:%s:%s:%s", scheme, realm, gateway->auth_username, gateway->register_password);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Authenticating '%s' with '%s'.\n", profile->username, authentication); if (profile->debug) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Authenticating '%s' with '%s'.\n", profile->username, authentication);
}
ss_state = nua_callstate_authenticating; ss_state = nua_callstate_authenticating;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论