[SR-Users] Segmentation fault when loading dialplan
Javier Gallart
jgallartm at gmail.com
Mon Nov 22 17:32:05 CET 2010
Hello
I'd like to do some tests with the dialplan module, but Kamailio is crashing
when it loads it. Actually the module is properly loaded if the table is
empty, but it fails when a row is added; so I guess it's related with the
way I've inserted the values. A core file is generated:
Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'.
Program terminated with signal 11, Segmentation fault.
#0 build_rule (values=0x0) at dp_db.c:439
439 new_rule->dpid = VAL_INT(values);
This is the relevant config:
#----- dialplan params ---
modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db")
modparam("dialplan", "table_name", "dialplan")
modparam("dialplan", "dpid_col", "dpid")
modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)")
mysql> describe dialplan;
+-----------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| dpid | int(11) | NO | | NULL | |
| pr | int(11) | NO | | NULL | |
| match_op | int(11) | NO | | NULL | |
| match_exp | varchar(64) | NO | | NULL | |
| match_len | int(11) | NO | | NULL | |
| subst_exp | varchar(64) | NO | | NULL | |
| repl_exp | varchar(32) | NO | | NULL | |
| attrs | varchar(32) | NO | | NULL | |
+-----------+------------------+------+-----+---------+----------------+
9 rows in set (0.00 sec)
mysql> select * from dialplan;
+----+------+----+----------+-----------+-----------+-----------+----------+-------+
| id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp |
attrs |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+
| 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 |
dp1 |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+
1 row in set (0.00 sec)
I'm probably making some stupid mistake...any clue?
Thanks in advance
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101122/8c7ad5d3/attachment.htm>
More information about the sr-users
mailing list