[OpenSIPS-Users] [SR-Users] authentication is not working

Danny Dias ing.diasdanny at gmail.com
Mon Feb 7 18:32:23 CET 2011


Thanks Iñaki...

xlog seems to help a lot, by the way, it's quite confusing where to put the
xlog sentences within the script...working on that :)


2011/2/6 Iñaki Baz Castillo <ibc at aliax.net>

> 2011/2/3 Danny Dias <ing.diasdanny at gmail.com>:
> >         if (is_method("REGISTER"))
> >         {
> >                 # authenticate the REGISTER requests (uncomment to enable
> > auth)
> >                 if (!www_authorize("", "subscriber"))
> >                 {
> >                         www_challenge("", "0");
> >                         exit;
> >                 }
> >                 ##
> >                 if (!db_check_to())
> >                 {
> >                         sl_send_reply("403","Forbidden auth ID");
> >                         exit;
> >                 }
> >                 if (!save("location"))
> >                         sl_reply_error();
> >                 exit;
> >         }
>
> Ensure that this block is being executed in your test. For that, add
> some xlog here and there. Most probably there is some part of your
> script that makes the above work not to be executed for your request.
>
> --
> Iñaki Baz Castillo
> <ibc at aliax.net>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110207/c2d82b75/attachment.htm>


More information about the Users mailing list