diff --git a/kamailio/default.cfg b/kamailio/default.cfg index 1af7aef..8601692 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -526,7 +526,7 @@ failure_route[INTERNAL_FAULT] onsend_route { if (isflagset(FLAG_ASSOCIATE_USER)) { $var(contact_uri) = $(ct{tobody.user}) + "@" + $(ct{tobody.host}); - xlog("L_INFO", "$ci|log|associate user $var(contact_uri) with media server sip:$sndto(ip):$sndto(port)\n"); + xlog("L_INFO", "$ci|log|associate user $var(contact_uri) with media server sip:$sndto(ip):$sndto(port)"); $sht(associations=>$var(contact_uri))= "sip:" + $sndto(ip) + ":" + $sndto(port); } diff --git a/kamailio/registrar-role.cfg b/kamailio/registrar-role.cfg index c67c1a9..dbe2eea 100644 --- a/kamailio/registrar-role.cfg +++ b/kamailio/registrar-role.cfg @@ -43,7 +43,7 @@ route[HANDLE_REGISTER] #!ifdef NAT-TRAVERSAL-ROLE if (nat_uac_test("3")) { - xlog("L_INFO", "$ci|log|Correcting NATed contact in registration\n"); + xlog("L_INFO", "$ci|log|correcting NATed contact in registration"); force_rport(); setbflag(FLB_NATB); @@ -61,22 +61,22 @@ route[HANDLE_REGISTER] } if ($sht(auth_cache=>$Au) != $null && pv_auth_check("$fd", "$sht(auth_cache=>$Au)", "0", "0")) { - xlog("L_INFO", "$ci|log|Authenticated $Au via cached SIP creds\n"); + xlog("L_DBG", "$ci|log|authenticated $Au via cached SIP creds"); } else { ## RABBITMQ - Credentials fetch if (!auth_check("$fd", "subscriber", "1")) { route(FAILED_AUTH_COUNT); auth_challenge("$fd", "0"); - xlog("L_INFO", "$ci|end|Issued new auth challenge to failed registration attempt\n"); + xlog("L_INFO", "$ci|end|issued new auth challenge to failed registration attempt"); exit; } else { - xlog("L_INFO", "$ci|log|Caching SIP credentials for $Au\n"); + xlog("L_DBG", "$ci|log|caching SIP credentials for $Au"); $sht(auth_cache=>$Au) = $avp(password); } } } else { auth_challenge("$fd", "0"); - xlog("L_INFO", "$ci|end|Issued new auth challenge to new registration attempt\n"); + xlog("L_INFO", "$ci|end|issued new auth challenge to new registration attempt"); exit; } @@ -84,7 +84,7 @@ route[HANDLE_REGISTER] consume_credentials(); save("location"); - xlog("L_INFO", "$ci|end|new contact: $ct"); + xlog("L_INFO", "$ci|end|successful registration with contact $ct"); exit; } } @@ -139,4 +139,4 @@ route[DOMAIN_FORMAT_CHECK] } -# vim:tabstop=4 softtabstop=4 shiftwidth=4 expandtab +# vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab