Browse Source

update registered use

3.22
karl anderson 10 years ago
parent
commit
5f5a6986dc
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      kamailio/registrar-role.cfg

+ 1
- 3
kamailio/registrar-role.cfg View File

@ -75,9 +75,7 @@ route[ATTEMPT_AUTHORIZATION]
$var(single_contact) = $(ct{s.select,0,,});
$xavp(regcfg=>match_received) = $su;
$xavp(regcfg[0]=>match_contact) = $(var(single_contact){nameaddr.uri});
if ($sht(auth_cache=>$Au) != $null && registered("location", "$rz:$Au", 6) == 1) {
if ($sht(auth_cache=>$Au) != $null && registered("location", "$rz:$Au", 2, 1) == 1) {
xlog("L_INFO", "$ci|log|authenticating $fu via cached SIP creds");
$var(password) = $sht(auth_cache=>$Au);
} else {


Loading…
Cancel
Save