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 Vamanu
www.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="[email protected]
<mailto:[email protected]>", 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 list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users