oh, you&#39;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>&nbsp;&nbsp; if (ruri = (15|17|18)@)<br>
&nbsp;&nbsp; {<br>&nbsp;&nbsp; ($username == $urg);<br>&nbsp;&nbsp; setflag(urg);<br>&nbsp;&nbsp; }<br>&nbsp;&nbsp; radius_proxy_authorize(&quot;...&quot;)<br>&nbsp;&nbsp; {...}<br>}<br>route(pstn)<br>{<br>&nbsp;&nbsp; if (isflagset(urg))<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; rewriteusername($urg);<br>&nbsp;&nbsp;&nbsp; route(send_to_a_dedicated_trunk);<br>
&nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp; }<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&#39;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">&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; when the sipphone calls the urgency code &quot;15&quot;, openser receives<br>
&nbsp;&gt; sip:15@realm<br>
&nbsp;&gt; &quot;<br>
&nbsp;&gt; so I use the avp_load_radius to get the AVP $urg (for example).<br>
&nbsp;&gt; the radius checks its db :<br>
&nbsp;&gt; . $fu -&gt; insee code=$insee (insee codes relates the geo number of urgencies)<br>
&nbsp;&gt; . $ruri -&gt; urg code=$urg<br>
&nbsp;&gt; so it translates the code in the good geo number (15 = 0123456789)<br>
&nbsp;&gt; 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&#39;t<br>
need this extra avp_load_radius call, because you can return the goe<br>
number already during authentication. &nbsp;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 &amp; Telecom<br>720 DEGRES<br>+33 (0)663 128 505<br><a href="mailto:sml@720.fr">sml@720.fr</a><br>