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: [email protected]
> <mailto:[email protected]>
> phone: +34669448337
> ᐧ
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> 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
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users