yes this module I developed for kamailio 1.5.0 but now I&#39;m migrating to kamailio 3.1.2... why I have include in my Makefile &quot;DEFS+=-DOPENSER_MOD_INTERFACE&quot; and not &quot;DEFS+= -DKAMAILIO_MOD_INTERFACE&quot;? I want compile the kamailio, not ser.<br>
<br>Regards.<br><br><div class="gmail_quote">2011/5/24 Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<div><div></div><div class="h5"><br>
<br>
On 5/24/11 8:41 PM, Bruno Bresciani wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Someone know tell me why kamailio generate the following error when I try load the route.so module:<br>
<br>
May 24 10:21:43 sswpst00 kamailio: ERROR: &lt;core&gt; [sr_module.c:523]: ERROR: load_module: could not open module &lt;/home2/local/kamailio/lib/kamailio/modules/route.so&gt;: /home2/local/kamailio/lib/kamailio/modules/route.so: undefined symbol: db_use_table<br>

<br>
I don&#39;t know why this error have been generate. I&#39;m porting this module to use with kamailio 3.1.2.<br>
</blockquote></div></div>
starting with v3.0, there are internal libraries that you have to link your module against.<br>
<br>
Since your module uses connection to database, you need to link against lib srdb1. Probably you need also lib kcore if your module was developed for kamailio 1.x.<br>
<br>
What you need to do is to list the libraries in Makefile of the module, in SER_LIBS variable. See modules_k/msilo/Makefile for some example that might fit your module dependencies as well.<br>
<br>
Very likely you should have in Makefile the line:<br>
DEFS+=-DOPENSER_MOD_INTERFACE<br>
<br>
Be careful if you export MI commands and statistics, even if the attributes are in module exports structure, you have to register them in mod_init function (see msilo and dispatcher modules for some examples).<br>
<br>
Cheers,<br>
Daniel<br><font color="#888888">
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
</font></blockquote></div><br>