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?<br><br><div class="gmail_quote">On Wed, Sep 29, 2010 at 5:19 PM, Anca Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org">anca@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div text="#000000" bgcolor="#ffffff">
Hi James,<br>
<br>
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:<br>
<br>
if (!(method=="REGISTER") && from_uri==myself) /*no multidomain
version*/<br>
{<br>
if (!proxy_authorize("", "subscriber")) {<br>
proxy_challenge("", "0");<br>
exit;<br>
}<br>
if (!db_check_from()) {<br>
sl_send_reply("403","Forbidden auth ID");<br>
exit;<br>
}<br>
}<br>
<br>
<br>
Regards,<br>
<pre cols="72">--
Anca Vamanu
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a></pre><div><div></div><div class="h5">
<br>
<br>
On 09/29/2010 05:47 PM, James Mbuthia wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">Hi guys,
<div>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:</div>
<div><br>
</div>
<div>
<pre><span style="font-size:large"><pre>Proxy-Authorization: Digest username="james", realm="72.55.133.123", nonce="4ca351fd000000ba2f06398974466cff346fa0ee28e9c12b", uri="<a href="mailto:james@72.55.133.123" target="_blank">james@72.55.133.123</a>", response="6caa56878d256a8220f6f70cfc4b10fe", algorithm=MD5</pre>
</span></pre>
</div>
<div><br>
</div>
<div>The following is the error on the server</div>
<div><br>
</div>
<div>
<div>
<div>Sep 29 10:47:38 CL-T020-483CL opensips:
ERROR:uri:check_username: No authorized credentials found (error in
scripts)</div>
<div>Sep 29 10:47:38 CL-T020-483CL opensips:
ERROR:uri:check_username: Call {www,proxy}_authorize before calling
check_* functions!</div>
</div>
</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>james</div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>