<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello,<br>
    <br>
    fetch the latest git version of branch 3.1 and try again. It proved
    that the function to bind to DB API v1 used by k modules was no
    longer exported upon addition of implementation for DB API v2.<br>
    <br>
    I had no test framework for it, let me know if it works.<br>
    <br>
    Thanks,<br>
    Daniel<br>
    <br>
    On 11/24/10 6:50 PM, Javier Gallart wrote:
    <blockquote
      cite="mid:AANLkTik3KHYb6AM_XQ=vRbcqKMdnkuazFMzCqPP=2FER@mail.gmail.com"
      type="cite">Hi<br>
      <br>
      I'd like to test db_flatstore module at 3.1 to write accounting
      data. The module is not loading though. The config is really
      simple:<br>
      loadmodule "db_flatstore.so"<br>
      modparam("acc", "db_url", "flatstore:/var/log/kamailio/cdr")<br>
      <br>
      I'm getting this error:<br>
      0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_bind_api&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_bind_api&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [db.c:210]: using export interface
      to bind db_flatstore<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_use_table&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_use_table&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_init&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_init&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_close&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_close&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_query&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_query&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_fetch_result&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_fetch_result&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_raw_query&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_raw_query&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_free_result&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_free_result&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_insert&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_insert&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_delete&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_delete&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_update&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_update&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_replace&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_replace&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_last_inserted_id&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_last_inserted_id&gt; in module &lt;db_flatstore&gt; not
      found<br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:631]:
      find_export_record: &lt;db_insert_update&gt; not found <br>
      &nbsp;0(27360) DEBUG: &lt;core&gt; [sr_module.c:684]: find_mod_export:
      &lt;db_insert_update&gt; in module &lt;db_flatstore&gt; not found<br>
      &nbsp;0(27360) ERROR: &lt;core&gt; [db.c:79]: module db_flatstore does
      not export db_use_table function<br>
      &nbsp;0(27360) ERROR: acc [acc.c:333]: bind_db failed<br>
      &nbsp;0(27360) ERROR: acc [acc_mod.c:459]: failed...did you load a
      database module?<br>
      &nbsp;0(27360) ERROR: &lt;core&gt; [sr_module.c:875]: init_mod(): Error
      while initializing module acc
      (/usr/local/kamailio-3.1/lib/kamailio/modules_k/acc.so)<br>
      ERROR: error while initializing modules<br>
      <br>
      Any idea?<br>
      <br>
      Thanks in advance<br>
      <br>
      Javier<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>