here is the case :<br><br>sip phone &lt;-&gt; ipbx &lt;-&gt; openser &lt;-&gt; radius &lt;-&gt; db<br><br>the sip phone is registering to the ipbx,<br>the ipbx is registering to the openser, with radius auth.<br>the radius has all the accounts (ipbx + sip phones) by its db.<br>
I think it&#39;s usefull to manage all the users/calls in the backbone, for billing, acl, ...<br>but I&#39;m really open if you have better ideas :)<br><br>when the sipphone calls the urgency code &quot;15&quot;, openser receives sip:15@realm&quot;<br>
so I use the avp_load_radius to get the AVP $urg (for example).<br>the radius checks its db :<br>. $fu -&gt; insee code=$insee (insee codes relates the geo number of urgencies)<br>. $ruri -&gt; urg code=$urg<br>so it translates the code in the good geo number (15 = 0123456789)<br>
then openser just rewrite the ruri like sip:$urg@realm.<br><br>so the objective is to have a radius request from the openser sending these variables :<br>$fu + $ruri (=$urg)<br>then the radius know how to get all the stuff, and reply the geo number in the avp.<br>
<br>It permits too to have a certain kind of mobility, due to the fact that the users can use their sip accounts anywhere else (on an iPhone for example).<br><br>.Sam.<br><br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 5:29 PM, Juha Heinanen <span dir="ltr">&lt;<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>&gt;</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 class="Ih2E3d">Samuel Muller writes:<br>
<br>
&nbsp;&gt; mmmh, I think it&#39;s better to create a var like $urg that could be send in a<br>
&nbsp;&gt; radius request (caller attributes), and then the radius make the translation<br>
&nbsp;&gt; in a SIP-AVP.<br>
&nbsp;&gt; if actually i&#39;m using that way (v1.4x) i&#39;ve to add one SIP-AVP per urgency<br>
&nbsp;&gt; number ... so 6 SIP-AVP in my case, for each client - not really<br>
&nbsp;&gt; beautiful.<br>
<br>
</div>why don&#39;t you return from radius caller&#39;s location info and then rewrite<br>
called number based on that in your script?<br>
<font color="#888888"><br>
-- juha<br>
</font></blockquote></div>