here is the case :<br><br>sip phone <-> ipbx <-> openser <-> radius <-> 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's usefull to manage all the users/calls in the backbone, for billing, acl, ...<br>but I'm really open if you have better ideas :)<br><br>when the sipphone calls the urgency code "15", openser receives sip:15@realm"<br>
so I use the avp_load_radius to get the AVP $urg (for example).<br>the radius checks its db :<br>. $fu -> insee code=$insee (insee codes relates the geo number of urgencies)<br>. $ruri -> 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"><<a href="mailto:jh@tutpro.com">jh@tutpro.com</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 class="Ih2E3d">Samuel Muller writes:<br>
<br>
> mmmh, I think it's better to create a var like $urg that could be send in a<br>
> radius request (caller attributes), and then the radius make the translation<br>
> in a SIP-AVP.<br>
> if actually i'm using that way (v1.4x) i've to add one SIP-AVP per urgency<br>
> number ... so 6 SIP-AVP in my case, for each client - not really<br>
> beautiful.<br>
<br>
</div>why don't you return from radius caller'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>