Browse Source

more log tweaks

3.17
karl anderson 12 years ago
parent
commit
91a846d566
2 changed files with 8 additions and 8 deletions
  1. +1
    -1
      kamailio/default.cfg
  2. +7
    -7
      kamailio/registrar-role.cfg

+ 1
- 1
kamailio/default.cfg View File

@ -526,7 +526,7 @@ failure_route[INTERNAL_FAULT]
onsend_route { onsend_route {
if (isflagset(FLAG_ASSOCIATE_USER)) { if (isflagset(FLAG_ASSOCIATE_USER)) {
$var(contact_uri) = $(ct{tobody.user}) + "@" + $(ct{tobody.host}); $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); $sht(associations=>$var(contact_uri))= "sip:" + $sndto(ip) + ":" + $sndto(port);
} }


+ 7
- 7
kamailio/registrar-role.cfg View File

@ -43,7 +43,7 @@ route[HANDLE_REGISTER]
#!ifdef NAT-TRAVERSAL-ROLE #!ifdef NAT-TRAVERSAL-ROLE
if (nat_uac_test("3")) { 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(); force_rport();
setbflag(FLB_NATB); 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")) { 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 { } else {
## RABBITMQ - Credentials fetch ## RABBITMQ - Credentials fetch
if (!auth_check("$fd", "subscriber", "1")) { if (!auth_check("$fd", "subscriber", "1")) {
route(FAILED_AUTH_COUNT); route(FAILED_AUTH_COUNT);
auth_challenge("$fd", "0"); 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; exit;
} else { } 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); $sht(auth_cache=>$Au) = $avp(password);
} }
} }
} else { } else {
auth_challenge("$fd", "0"); 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; exit;
} }
@ -84,7 +84,7 @@ route[HANDLE_REGISTER]
consume_credentials(); consume_credentials();
save("location"); save("location");
xlog("L_INFO", "$ci|end|new contact: $ct");
xlog("L_INFO", "$ci|end|successful registration with contact $ct");
exit; 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

Loading…
Cancel
Save