[OpenSIPS-Users] Drouting lookup error with avp

ibrahim tunali ibrahimtunali at gmail.com
Sat Feb 21 15:24:28 CET 2009


Hi,

I am working with SVN trunk and i get below error when using do_routing with AVP

do_routing("$avp(s:routegrp)");
ruri: sip:90XXXXXXXXXX at sip.abc.com
$avp(s:routegrp) has "4" value.

My drouting tables;

mysql> select * from dr_rules;
+--------+---------+--------+---------+----------+---------+--------+-------------+
| ruleid | groupid | prefix | timerec | priority | routeid | gwlist |
description |
+--------+---------+--------+---------+----------+---------+--------+-------------+
|      1 | 4       | 90     |         |        0 |       0 | 1      |
           |
+--------+---------+--------+---------+----------+---------+--------+-------------+
1 row in set (0.00 sec)

mysql> select * from dr_gateways;
+------+------+-------------------+-------+------------+-------+------------------+
| gwid | type | address           | strip | pri_prefix | attrs |
description      |
+------+------+-------------------+-------+------------+-------+------------------+
|    1 |    1 | xx.xx.xxx.xx:xxxx |     0 | NULL       | gw1   |  main GW |
+------+------+-------------------+-------+------------+-------+------------------+
1 row in set (0.00 sec)

mysql> select * from dr_gw_lists;
+----+--------+-------------+
| id | gwlist | description |
+----+--------+-------------+
|  4 | 1      |             |
+----+--------+-------------+
1 row in set (0.00 sec)

Error line in log file;

Feb 21 14:01:16 sip /usr/sbin/opensips[22841]:
ERROR:drouting:do_routing: failed to get group id

Could you take a look and give an advise please. Everything seem ok
but i missed something may be.

Other question, i read drouting documentation and i could not find
which table reference to gwlist column in dr_rules, dr_gw_lists table
or dr_gateways

Best Regards,

Ibrahim TUNALI



More information about the Users mailing list