[Kamailio-Devel] Radius attributes and dictionary

Samuel Muller sml at 720.fr
Tue Oct 28 19:02:15 CET 2008


oh, you're right, nice !

the idea should be (not the real script lines but similar in the concept) :

$fu INVITE $ruri (where $ruri is a urg code) :

route(authenticate)
{
   if (ruri = (15|17|18)@)
   {
   ($username == $urg);
   setflag(urg);
   }
   radius_proxy_authorize("...")
   {...}
}
route(pstn)
{
   if (isflagset(urg))
   {
    rewriteusername($urg);
    route(send_to_a_dedicated_trunk);
    exit;
   }
}

and the radius replies during the authentication, the real associated geo
number of the urg code.

nice ! many thanks ! I'll try it asap !

.Sam.



On Tue, Oct 28, 2008 at 6:39 PM, Juha Heinanen <jh at tutpro.com> wrote:

> Samuel Muller writes:
>
>  > when the sipphone calls the urgency code "15", openser receives
>  > sip:15 at realm
>  > "
>  > so I use the avp_load_radius to get the AVP $urg (for example).
>  > the radius checks its db :
>  > . $fu -> insee code=$insee (insee codes relates the geo number of
> urgencies)
>  > . $ruri -> urg code=$urg
>  > so it translates the code in the good geo number (15 = 0123456789)
>  > then openser just rewrite the ruri like sip:$urg at realm.
>
> sounds good, but if you authenticate the call in kamailio, you don't
> need this extra avp_load_radius call, because you can return the goe
> number already during authentication.  on the other hand, there are not
> that many emergency calls that the extra call would matter.
>
> -- juha
>



-- 
Samuel MULLER
Ingénieur Reseaux & Telecom
720 DEGRES
+33 (0)663 128 505
sml at 720.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/devel/attachments/20081028/6c22198f/attachment.htm 


More information about the Devel mailing list