<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>&nbsp;</div>
        <div>this is my cfg:</div>
        <div>&nbsp;</div>
        <div>if(do_routing("0")){<br>
          &nbsp;&nbsp;$avp(tdr)=$avp(dr_attrs);<br>
          &nbsp;&nbsp;} else {<br>
          &nbsp;&nbsp;$avp(tdr)="1";<br>
          &nbsp;&nbsp;}</div>
        <div>&nbsp;</div>
        <div>subst_user('/(.*)/$avp(Ssrvindx)/');<br>
          &nbsp;&nbsp;xlog("L_CRIT","$C(rg) group is $avp(tdr)$C(xx)\n");<br>
          &nbsp;&nbsp;if(!do_routing("$avp(tdr)")){<br>
          &nbsp;&nbsp;&nbsp;xlog("L_CRIT","$C(rg)No TDR is found for $avp(DID) with
          Index $avp(Ssrvindx)$C(xx)\n");<br>
          &nbsp;&nbsp;&nbsp;t_reply("404", "Not found");<br>
          &nbsp;&nbsp;&nbsp;exit;<br>
          &nbsp;&nbsp;}</div>
        <div>&nbsp;</div>
        <div>&nbsp;</div>
        <div>in the log, i get the following:</div>
        <div>&nbsp;&nbsp;1(25799) CRITICAL: &lt;script&gt;:&nbsp; group is 8<br>
          &nbsp;1(25799) ERROR: drouting [drouting.c:706]: failed to get
          group id</div>
        <div>&nbsp;</div>
        <div>when i change the do_routing("$avp(tdr)") to&nbsp;
          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>&nbsp;</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>