[sr-dev] [kamailio] auth_check: to 2 accounts on the same Phone, same username different realm fails with -2 (#548)

chiluap notifications at github.com
Tue Mar 22 15:30:32 CET 2016


Hi there,
we are using kamailio as Registrar and Dispatcher.
Running   ```modparam("auth_db", "use_domain", MULTIDOMAIN) //with MULTIDOMAIN = 1```  
In our ```route[AUTH]```  
I call ```if (!auth_check("$fd", "subscriber", "1")) {```  
to filter unwanted Guests and and brute-force attacks to the blacklist.

strangely auth_check fails under the following conditions:
1 UserAgent(Phone) with 2 SipAccounts with the same user-name but different realm  
The first account can REGISTER without a problem.
for the second Account REGISTER fails with -2.
If I disable the first one the second one Registered.

Could it be that auth_check is not multidomain-safe in one user-agent thread?  

Hope to here from you...

PS: I like kamailio =).





---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/548
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160322/a957234a/attachment.html>


More information about the sr-dev mailing list