<div dir="ltr"><div>Hi,</div>
<div> </div>
<div>this is my cfg:</div>
<div> </div>
<div>if(do_routing("0")){<br> $avp(tdr)=$avp(dr_attrs);<br> } else {<br> $avp(tdr)="1";<br> }</div>
<div> </div>
<div>subst_user('/(.*)/$avp(Ssrvindx)/');<br> xlog("L_CRIT","$C(rg) group is $avp(tdr)$C(xx)\n");<br> if(!do_routing("$avp(tdr)")){<br> xlog("L_CRIT","$C(rg)No TDR is found for $avp(DID) with Index $avp(Ssrvindx)$C(xx)\n");<br>
t_reply("404", "Not found");<br> exit;<br> }</div>
<div> </div>
<div> </div>
<div>in the log, i get the following:</div>
<div> 1(25799) CRITICAL: <script>: group is 8<br> 1(25799) ERROR: drouting [drouting.c:706]: failed to get group id</div>
<div> </div>
<div>when i change the do_routing("$avp(tdr)") to do_routing("8"), everything works.....</div>
<div>it looks like with the avp (although it is 8) it does not work.</div>
<div>any ideas?<br></div>
<div> </div></div>