From 5f5a6986dc8fe8ef0d5d320281c42e0f1bcdd515 Mon Sep 17 00:00:00 2001 From: karl anderson Date: Wed, 9 Sep 2015 18:18:04 -0700 Subject: [PATCH] update registered use --- kamailio/registrar-role.cfg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kamailio/registrar-role.cfg b/kamailio/registrar-role.cfg index c85ba21..e91fca0 100644 --- a/kamailio/registrar-role.cfg +++ b/kamailio/registrar-role.cfg @@ -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 {