Hi,
I'm using kamailio 4.2 some of my clients are getting 401 unauthorized after a couple of days of usage without any problems, their usernames and passwords are still in the database server unchanged. Any idea what's going on? Thanks Ahmed
Being unable to authenticate using your valid SIP username and password is a general issue that might be resolved by some checks. Verify that Mysql is running and listing using the netstat -apn | grep mysql command also check if the registration SIP requests are being processed by Mysql as quires by reading the Mysql log file using the tail -f /var/log/mysql.log command if all the checks are valid then you maybe have the domain part to be used for authentication in addition to the SIP username so verify that you domain name did NOT changed. Also can you past what you see in the logs so we can help ? If Kamailio can NOT connect to the SIP DB or table the authentication will fail. Best Regards and Thanks in Advance
On Fri, Dec 26, 2014 at 6:43 PM, Ahmed Salem ahmed.salem4282@gmail.com wrote:
Hi,
I'm using kamailio 4.2 some of my clients are getting 401 unauthorized after a couple of days of usage without any problems, their usernames and passwords are still in the database server unchanged. Any idea what's going on? Thanks Ahmed
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Each authentication method in kamailio always gives some return values which are very useful to help understand and debug authentication failures. For example read return values of www_authenticate method here,
http://kamailio.org/docs/modules/4.2.x/modules/auth_db.html#auth_db.f.www_au...
All you need to do is check the $retcode or $rc immediately after calling the authentication method and check status using switch-case,
http://www.kamailio.org/wiki/cookbooks/4.2.x/core#switch
Thank you.
On Fri, Dec 26, 2014 at 5:43 PM, Ahmed Salem ahmed.salem4282@gmail.com wrote:
Hi,
I'm using kamailio 4.2 some of my clients are getting 401 unauthorized after a couple of days of usage without any problems, their usernames and passwords are still in the database server unchanged. Any idea what's going on? Thanks Ahmed
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users