[SR-Users] check auth_check return code

Daniel-Constantin Mierla miconda at gmail.com
Mon Jan 15 12:06:33 CET 2018


Hello,

can you print the return code of the function and see what it is in your
case? Like:

auth_check("$fd", "subscriber", "1");
$var(rc) = $rc;
xlog("return code is: $rc\n");

Cheers,
Daniel

On 13.01.18 19:36, David Villasmil wrote:
> Is this possible? I'm trying with:
>
> if (auth_check("$fd", "subscriber", "1")==-2) {
>  log something
> }
>
> i'm trying to find out if the username actually exists in the db, but
> the password provided was wrong... 
>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180115/d54f2183/attachment.html>


More information about the sr-users mailing list