[Kamailio-Users] Question about AVP in route()

Ricardo Martinez rmartinez at redvoiss.net
Mon Dec 21 19:55:09 CET 2009


Hello Daniel.

I removed the "/n" at the end of the is_avp_set.. now is working!

Thanks!

 

Regards,

Ricardo.-

 

De: Daniel-Constantin Mierla [mailto:miconda at gmail.com] 
Enviado el: sábado, 19 de diciembre de 2009 6:31
Para: Ricardo Martinez
CC: users at lists.kamailio.org
Asunto: Re: [Kamailio-Users] Question about AVP in route()

 

Hello,

On 12/16/09 9:11 PM, Ricardo Martinez wrote: 

Hello.

I have the next situation.

In my config file I have something like this..

 

route {

...

 

If INVITE  route(3);

 

}

 

...

route[1] {

       Route(39);

       t_relay()

}

 

route[3] {

       ... different check for the INVITE

       radius_load_caller_avps("$fU@$fd")

       (I load the next AVPS from the radius server :

       Attributes:

        SIP-AVP = "tra:sip:0217001234567 at 10.0.0.211:5060"

        SIP-AVP = "channels:1")

       is_avp_set("$avp(s:channels)/n")  <-- this AVP seem to be load and is set OK.

       route(10);

 

}

 

route[10] {

       rewritehost("myproxy.mydomain.com");

       route(1);

}

 

 

 

route[39] {

       is_avp_set("$avp(s:channels)/n")

}

 

The last check in the route(39) is not working!.  Why?

 

use xlog to print the value of that avp and see what you get.

Cheers,
Daniel




-- 
Daniel-Constantin Mierla
* http://www.asipto.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20091221/d3759903/attachment.htm>


More information about the sr-users mailing list