[OpenSIPS-Users] Drouting lookup error with avp

Jesus Rodriguez jesusr at voztele.com
Sat Feb 21 15:57:21 CET 2009


Hi Ibrahim,

Group id must be an integer value and you assigning an string value to  
the routegrp avp.

Regards.

Saludos
JesusR.



> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>





Saludos
JesusR.

------------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr at voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------------







More information about the Users mailing list