<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Sorry, it's "check_to" or "check_from" what you have in your script, I
can't tell from the logs you pasted.<br>
<br>
Regards,<br>
Anca<br>
<br>
<br>
On 09/29/2010 06:29 PM, James Mbuthia wrote:
<blockquote
cite="mid:AANLkTi=5gg0YM8CvUoRxpaUsPD6OiNTeiRCQB=L28AKw@mail.gmail.com"
type="cite">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 moz-do-not-send="true"
href="mailto:anca@opensips.org">anca@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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 moz-do-not-send="true" href="http://www.voice-system.ro"
target="_blank">www.voice-system.ro</a></pre>
<div>
<div class="h5"><br>
<br>
On 09/29/2010 05:47 PM, James Mbuthia wrote:
</div>
</div>
<blockquote type="cite">
<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
moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true"
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 moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Anca Vamanu
<a class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a>
</pre>
</body>
</html>