<!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 bgcolor="#ffffff" text="#000000">
Salut Tiberiu,<br>
<br>
Normally, the auth username is taken from TO hdr (for REGISTER) or
from FROM hdr (non-REGISTER) - both username and domain part. So
probably, in your case, the IP comes from the FROM hdr.<br>
<br>
Also, opensips allows you to pass a custom SIP URI for auth, as a
second optional param to the aaa_proxy_auth() :<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.6.x/auth_aaa.html">http://www.opensips.org/html/docs/modules/1.6.x/auth_aaa.html</a><br>
<br>
Currently this is not supported for aaa_www_auth() (for REGISTER)
can be simply done, if this solves your problem.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
<br>
On 06/24/2011 05:25 PM, Tiberiu Breana wrote:
<blockquote
cite="mid:BANLkTin0_icNxPE1giFMEmmrNEvLLn3g-w@mail.gmail.com"
type="cite">Hello.<br>
<br>
I'm trying to simulate a mobility situation where a User Agent
Client is connecting to a foreign SIP proxy. My setup is something
like this:<br>
<br>
UA ---> F-SIP ---> F-AAA<br>
|<br>
|<br>
H-SIP ---> H-AAA<br>
<br>
The user is registered on the H-AAA server. I want to authenticate
him through H-AAA, but the aaa_www_authorize function sends the
username as "user@<Foreign SIP IP>", regardless of what
username I choose in my softphone. So there's no way to detect the
user's home domain (that my UAC provides).<br>
<br>
I know I could make a custom radius_send_auth, but I wanted to
follow protocol and keep the digest mechanism for registering. Or
is there a way to make a custom digest auth to work with the
register process?<br>
<br>
Any advice is appreciated!<br>
<br>
Regards,<br>
Tiberiu<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">--
Bogdan-Andrei Iancu
OpenSIPS solutions and "know-how"</pre>
</body>
</html>