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

Uri Shacked ushacked at gmail.com
Sun Jan 15 17:11:37 CET 2012


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(Ssrvindx)$C(xx)\n");
   t_reply("404", "Not found");
   exit;
  }


in the log, i get the following:
  1(25799) CRITICAL: <script>:  group is 8
 1(25799) ERROR: drouting [drouting.c:706]: failed to get group id

when i change the do_routing("$avp(tdr)") to  do_routing("8"), everything
works.....
it looks like with the avp (although it is 8) it does not work.
any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120115/837dbcec/attachment.htm>


More information about the sr-users mailing list