[Kamailio-Users] Question about AVP in route()
Daniel-Constantin Mierla
miconda at gmail.com
Sat Dec 19 10:31:26 CET 2009
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.kamailio.org/pipermail/users/attachments/20091219/6fef8a69/attachment-0001.htm>
More information about the Users
mailing list