<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
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:<br>
<br>
$avp(tdr)=$(avp(dr_attrs){s.int});<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 1/15/12 5:11 PM, Uri Shacked wrote:
<blockquote
cite="mid:CAMMbDhTT_Q21DrD24rk=aDFqfGayQGwahMnPHkeD36x9LZGRfg@mail.gmail.com"
type="cite">
<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>