Hello.<br>I'm having some trouble with aaa_proxy_authorize. It doesn't send the username properly. From my freeRADIUS log:<br><br>rad_recv: Access-Request packet from host 127.0.0.1 port 60717, id=100, length=313<br>
User-Name = "@141.85.xxx.xxx"<br> [...]<br> Sip-URI-User = "root"<br> [...]<br><br>Notice that the username and domain are separated. I tried with aaa_www_authorize, but the behaviour is the same. What's the deal?<br>
Here's my config:<br><br>if (!(method=="REGISTER") && !is_method("PUBLISH|SUBSCRIBE")) /*no multidomain version*/<br> {<br> if(from_uri==myself) { #if from local domain, process request on local AAA server<br>
if (!aaa_www_authorize("")) <br> { www_challenge("", "1");<br> exit;<br> }<br> if (!db_check_from()) <br> { sl_send_reply("403","Forbidden auth ID");<br>
exit;<br> }<br> consume_credentials();<br> # caller authenticated<br> }<br><br> else { #if from foreign domain, proxy request to foreign AAA server<br>
if (!aaa_proxy_authorize("")) #eventually give another parameter as SIP-Uri-User<br> { proxy_challenge("", "1");<br> exit;<br> }<br> if (!db_check_from()) <br>
{ sl_send_reply("403","Forbidden auth ID");<br> exit;<br> }<br> consume_credentials();<br> # caller authenticated<br> }<br><br> }<br>
<br>Also, is there any way to change the "User-Name" that's being sent? I noticed that $fu isn't modifiable.<br>I'd like to send my domain name in the request (User-Name = "me@mydomain"), but it seems the only way I can do this is send it through the "From display name" $fd. How can I manage to place this in the User-Name?<br>
<br>Advice is welcome, thanks!<br>