[OpenSIPS-Users] Proxy Authorization problem

James Mbuthia jmmbuthia at gmail.com
Wed Sep 29 17:29:56 CEST 2010


Ok, sorry to sound like a blond but which is the check_username function?
Please can you give me an example snippet just so that I can have an idea?

On Wed, Sep 29, 2010 at 5:19 PM, Anca Vamanu <anca at opensips.org> wrote:

>  Hi James,
>
> As the error says, you have to call a *_authorize function before calling
> the check_username function. As it is in the default configuration file:
>
> if (!(method=="REGISTER") && from_uri==myself) /*no multidomain version*/
> {
>     if (!proxy_authorize("", "subscriber")) {
>         proxy_challenge("", "0");
>         exit;
>     }
>     if (!db_check_from()) {
>         sl_send_reply("403","Forbidden auth ID");
>         exit;
>     }
> }
>
>
> Regards,
>
> --
> Anca Vamanuwww.voice-system.ro
>
>
>
> On 09/29/2010 05:47 PM, James Mbuthia wrote:
>
> Hi guys,
> I hope you can help, am trying to do proxy authentication but I seem to be
> making a mistake when compiling the proxy-authorization response. The
> following is what I have as the response on my INVITE header:
>
>  Proxy-Authorization: Digest username="james", realm="72.55.133.123", nonce="4ca351fd000000ba2f06398974466cff346fa0ee28e9c12b", uri="james at 72.55.133.123", response="6caa56878d256a8220f6f70cfc4b10fe", algorithm=MD5
>
>
>  The following is the error on the server
>
>   Sep 29 10:47:38 CL-T020-483CL opensips: ERROR:uri:check_username: No
> authorized credentials found (error in scripts)
> Sep 29 10:47:38 CL-T020-483CL opensips: ERROR:uri:check_username: Call
> {www,proxy}_authorize before calling check_* functions!
>
>  I've checked through books and websites but there's no clear indication
> on how to compile the Proxy-authorization header, can someone help me out
> and give me some pointers on what amd doing wrong and how to compile the
> header. Thank.
>
>  james
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100929/a8ce4583/attachment.htm 


More information about the Users mailing list