[SR-Users] Avpops problem - bad avp flags.

Ricardo Martinez rmartinez at redvoiss.net
Fri Apr 1 17:21:59 CEST 2011


Hello.

I’m having a problems using the avpops with the kamailio version 3.1.2

I have the next configuration:



modparam("avpops", "db_url", "mysql://openser:openserrw@localhost/openser")

modparam("avpops", "avp_table", "usr_preferences")



-----



route[REQINIT]  {



        if( !(avp_db_load("pike", "s:ip_origen") && avp_check("s:ip_origen",
"eq/$src_ip/gi")) )

       {

       …

       }



mysql> select * from usr_preferences;

+----+------+----------+--------+-----------+------+---------------+---------------------+

| id | uuid | username | domain | attribute | type | value         |
last_modified       |

+----+------+----------+--------+-----------+------+---------------+---------------------+

|  1 | pike | 0        |        | ip_origen |    0 | 100.20.100.20 |
1900-01-01 00:00:01 |

+----+------+----------+--------+-----------+------+---------------+---------------------+

1 row in set (0.00 sec)



When I try to start kamailio I’m getting the next error :



Apr  1 10:36:08 kamailio[15418]: ERROR: avpops [avpops_parse.c:129]: error -
bad avp flags

Apr  1 10:36:08 kamailio[15418]: ERROR: avpops [avpops.c:299]: parse failed

Apr  1 10:36:08 kamailio[15418]: ERROR: <core> [route.c:1161]: fixing failed
(code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:238

Apr  1 10:36:08 kamailio[15418]: ERROR: <core> [route.c:1161]: fixing failed
(code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:263





I can’t find the problem.

Can someone help me?



Regards.

Ricardo.-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110401/27ccd2fd/attachment-0001.htm>


More information about the sr-users mailing list