Re: [SR-Users] drouting - do_routing with $avp does not work

2012-01-16 Thread Daniel-Constantin Mierla
Hello, might be that the drouting module expects the group id avp to hold an integer, looking at your config snippet, it is string. Try with: $avp(tdr)=$(avp(dr_attrs){s.int}); Cheers, Daniel On 1/15/12 5:11 PM, Uri Shacked wrote: Hi, this is my cfg: if(do_routing("0")){ $avp(tdr)=$avp(dr

[SR-Users] drouting - do_routing with $avp does not work

2012-01-15 Thread Uri Shacked
Hi, this is my cfg: if(do_routing("0")){ $avp(tdr)=$avp(dr_attrs); } else { $avp(tdr)="1"; } subst_user('/(.*)/$avp(Ssrvindx)/'); xlog("L_CRIT","$C(rg) group is $avp(tdr)$C(xx)\n"); if(!do_routing("$avp(tdr)")){ xlog("L_CRIT","$C(rg)No TDR is found for $avp(DID) with Index $avp(Ss