<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    it might be something specific to db_text module, which is a rather
    basic db storage engine -- it has to be checked. Can you try with
    another database type (e.g., sqlite, mysql, ...)?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 24/03/15 10:43, Alexandru Raileanu
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAL66k1ongavmg5Y7YAgeEvu_P3ChDHhfpEvYFKWtR--VcV1sWw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>Hi, <br>
                      </div>
                      I have kamailio 4.2<br>
                    </div>
                    with presence, auth, textdb activated. <br>
                    <br>
                    The scenario is that Kamailio receives a SUBSCRIBE,
                    sends 200ok then a NOTIFY. (like it should do)<br>
                    <br>
                  </div>
                  The problem is what when I kill kamailio and run it
                  again, it gives me this error: <br>
                   0(30580) ERROR: db_text [dbt_tb.c:474]:
                  dbt_table_check_row(): null value not allowed - field
                  17<br>
                   0(30580) DEBUG: db_text [dbt_file.c:480]:
                  dbt_load_file(): error at row=1 col=26 c=1<br>
                   0(30580) ERROR: db_text [dbt_lib.c:307]:
                  dbt_db_get_table(): could not load database from file
                  [active_watchers] 0(30580) ERROR: db_text
                  [dbt_base.c:460]: dbt_delete(): failed to load table
                  <active_watchers>!<br>
                  <br>
                </div>
                The field with null values is record_route, so if I put
                some value I manage to run kamailio. <br>
                <br>
              </div>
              <br>
            </div>
            my conf, maybe I missed some field?<br>
            <br>
            #!define DBURL "text:///etc/kamailio/dbtext"<br>
            #!ifdef WITH_PRESENCE<br>
            modparam("presence", "db_url", DBURL)<br>
            modparam("presence", "max_expires", 3600)<br>
            modparam("presence", "server_address", "sip:<a
              moz-do-not-send="true" href="http://10.0.37.1:5060">10.0.37.1:5060</a>"
            )<br>
            modparam("pua_reginfo", "default_domain", "10.0.37.1")<br>
            modparam("pua_reginfo", "server_address", <a class="moz-txt-link-rfc2396E" href="sip:10.0.37.1">"sip:10.0.37.1"</a>)<br>
            modparam("pua_reginfo", "outbound_proxy", <a class="moz-txt-link-rfc2396E" href="sip:10.0.37.1">"sip:10.0.37.1"</a>)<br>
            modparam("pua_reginfo", "publish_reginfo", 1)<br>
            modparam("pua", "db_mode", 2)<br>
            modparam("pua", "hash_size", 11)<br>
            modparam("pua", "db_url", DBURL)<br>
            modparam("pua", "db_table", "pua")<br>
            modparam("pua", "min_expires", 0)<br>
            modparam("pua", "default_expires", 3600)<br>
            modparam("pua", "update_period", 1000)<br>
            modparam("pua", "dlginfo_increase_version", 1)<br>
            modparam("pua", "reginfo_increase_version", 1)<br>
            modparam("pua", "check_remote_contact", 0)<br>
            modparam("pua", "fetch_rows", 1000)<br>
            modparam("presence_xml", "db_url", DBURL)<br>
            modparam("presence_xml", "force_active", 1)<br>
            #!endif<br>
            <br>
          </div>
          <div>Or as a workaround, can I reset the active_watchers table
            every time I start kamailio? because <b>kamdbctl
              create/drop/init</b>  wipes all the other tables...<br>
          </div>
          <div><br>
          </div>
          thanks a lot!<br>
          <br>
        </div>
        Alex<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>