[prev in list] [next in list] [prev in thread] [next in thread]
List: serusers
Subject: Re: [SR-Users] Authorization Issue kamailio 4.2
From: Muhammad Shahzad <shaheryarkh () gmail ! com>
Date: 2014-12-27 6:56:58
Message-ID: CAFZQphwRno2OaX_QAp4otNK+7DiBM4V3UydpX1o8J_n2=6FK0w () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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_authenticate
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
>
>
[Attachment #5 (text/html)]
<div dir="ltr"><div><div>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,<br><br><a \
href="http://kamailio.org/docs/modules/4.2.x/modules/auth_db.html#auth_db.f.www_authen \
ticate">http://kamailio.org/docs/modules/4.2.x/modules/auth_db.html#auth_db.f.www_authenticate</a><br><br></div>All \
you need to do is check the $retcode or $rc immediately after calling the \
authentication method and check status using switch-case,<br><br><a \
href="http://www.kamailio.org/wiki/cookbooks/4.2.x/core#switch">http://www.kamailio.org/wiki/cookbooks/4.2.x/core#switch</a><br><br></div>Thank \
you.<br><div><br><br></div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Fri, Dec 26, 2014 at 5:43 PM, Ahmed Salem <span \
dir="ltr"><<a href="mailto:ahmed.salem4282@gmail.com" \
target="_blank">ahmed.salem4282@gmail.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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.</div><div>Any idea what's going on?</div><div>Thanks</div><span \
class="HOEnZb"><font color="#888888"><div>Ahmed</div></font></span></div> \
<br>_______________________________________________<br> SIP Express Router (SER) and \
Kamailio (OpenSER) - sr-users mailing list<br> <a \
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br> <a \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
<br></blockquote></div><br></div>
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic