Hello<div><br></div><div>I&#39;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&#39;s related with the way I&#39;ve inserted the values. A core file is generated:</div>
<div><div><br></div><div>Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg&#39;.</div><div>Program terminated with signal 11, Segmentation fault.</div><div>#0  build_rule (values=0x0) at dp_db.c:439</div><div>
439<span class="Apple-tab-span" style="white-space:pre">                </span>new_rule-&gt;dpid<span class="Apple-tab-span" style="white-space:pre">                </span>=<span class="Apple-tab-span" style="white-space:pre">        </span>VAL_INT(values);</div>
</div><div><br></div><div>This is the relevant config:</div><div><br></div><div><div>#----- dialplan params ---</div><div>modparam(&quot;dialplan&quot;, &quot;db_url&quot;, &quot;mysql://xxxx:yyyyy@localhost/db&quot;)</div>
<div>modparam(&quot;dialplan&quot;, &quot;table_name&quot;, &quot;dialplan&quot;)</div><div>modparam(&quot;dialplan&quot;, &quot;dpid_col&quot;, &quot;dpid&quot;)</div><div>modparam(&quot;dialplan&quot;, &quot;attrs_pvar&quot;, &quot;$avp(s:dp_attrs)&quot;)</div>
</div><div><br></div><div>mysql&gt; describe dialplan;</div><div><div>+-----------+------------------+------+-----+---------+----------------+</div><div>| Field     | Type             | Null | Key | Default | Extra          |</div>
<div>+-----------+------------------+------+-----+---------+----------------+</div><div>| id        | int(10) unsigned | NO   | PRI | NULL    | auto_increment |</div><div>| dpid      | int(11)          | NO   |     | NULL    |                |</div>
<div>| pr        | int(11)          | NO   |     | NULL    |                |</div><div>| match_op  | int(11)          | NO   |     | NULL    |                |</div><div>| match_exp | varchar(64)      | NO   |     | NULL    |                |</div>
<div>| match_len | int(11)          | NO   |     | NULL    |                |</div><div>| subst_exp | varchar(64)      | NO   |     | NULL    |                |</div><div>| repl_exp  | varchar(32)      | NO   |     | NULL    |                |</div>
<div>| attrs     | varchar(32)      | NO   |     | NULL    |                |</div><div>+-----------+------------------+------+-----+---------+----------------+</div><div>9 rows in set (0.00 sec)</div></div><div><div><br>
</div><div>mysql&gt; select * from dialplan;</div><div>+----+------+----+----------+-----------+-----------+-----------+----------+-------+</div><div>| id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs |</div>
<div>+----+------+----+----------+-----------+-----------+-----------+----------+-------+</div><div>|  1 |    1 |  1 |        1 | ^00       |         0 | ^00       | 011      | dp1   |</div><div>+----+------+----+----------+-----------+-----------+-----------+----------+-------+</div>
<div>1 row in set (0.00 sec)</div></div><div><br></div><div>I&#39;m probably making some stupid mistake...any clue?</div><div><br></div><div>Thanks in advance</div><div><br></div><div>Javier</div>