oh, you're right, nice !<br><br>the idea should be (not the real script lines but similar in the concept) :<br><br>$fu INVITE $ruri (where $ruri is a urg code) :<br><br>route(authenticate)<br>{<br> if (ruri = (15|17|18)@)<br>
{<br> ($username == $urg);<br> setflag(urg);<br> }<br> radius_proxy_authorize("...")<br> {...}<br>}<br>route(pstn)<br>{<br> if (isflagset(urg))<br> {<br> rewriteusername($urg);<br> route(send_to_a_dedicated_trunk);<br>
exit;<br> }<br>}<br><br>and the radius replies during the authentication, the real associated geo number of the urg code.<br><br>nice ! many thanks ! I'll try it asap !<br><br>.Sam.<br><br><br><br><div class="gmail_quote">
On Tue, Oct 28, 2008 at 6:39 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>
> when the sipphone calls the urgency code "15", openser receives<br>
> sip:15@realm<br>
> "<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>
</div>sounds good, but if you authenticate the call in kamailio, you don't<br>
need this extra avp_load_radius call, because you can return the goe<br>
number already during authentication. on the other hand, there are not<br>
that many emergency calls that the extra call would matter.<br>
<font color="#888888"><br>
-- juha<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Samuel MULLER<br>Ingénieur Reseaux & Telecom<br>720 DEGRES<br>+33 (0)663 128 505<br><a href="mailto:sml@720.fr">sml@720.fr</a><br>