<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    db_text keeps data in memory, the main reason being updates of the
    records, which will be hard to sync to disk in a text file every
    time, considering multi-process architecture of kamailio.<br>
    <br>
    Perhaps you should look at db_flatstore for a need of storing acc
    record to text files. Other alternative of not using a sql server,
    is db_sqlite.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 12/13/11 6:56 PM, Pedro Antonio Vico Solano wrote:
    <blockquote
cite="mid:OF60CBF7C0.68FE7AF6-ONC1257965.00622C97-C1257965.00629735@amper.es"
      type="cite"><font face="sans-serif" size="2">Hello Carsten, How
        are you?</font>
      <br>
      <br>
      <font face="sans-serif" size="2">I've tried to disable caching (</font><tt><font
          size="2">modparam("db_text",
          "db_mode", 1) </font></tt><font face="sans-serif" size="2">but
it
        remains the same. I've read the module README file and it seems
        that
        it is not implemented:</font>
      <br>
      <br>
      <font size="3"><i>[..] NOTE: even when is in non-caching mode, the
          module
          does not write back to hard drive after changes. In this mode,
          the module
          checks if the corresponding file on disk has changed, and
          reloads it. The
          write on disk happens at openser shut down. [..]</i></font>
      <br>
      <br>
      <font face="sans-serif" size="2">Do you know any alternative?</font>
      <br>
      <br>
      <font face="sans-serif" size="2">BR,</font>
      <br>
      <font face="sans-serif" size="2">Pedro</font>
      <br>
      <br>
      <br>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">De: &nbsp; &nbsp; &nbsp;
        &nbsp;</font><font face="sans-serif" size="1">Carsten Bock
        <a class="moz-txt-link-rfc2396E" href="mailto:carsten@ng-voice.com">&lt;carsten@ng-voice.com&gt;</a></font>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">Para: &nbsp; &nbsp; &nbsp;
        &nbsp;</font><font face="sans-serif" size="1">"SIP Router -
        Kamailio (OpenSER) and SIP Express Router (SER) - Users &nbsp; &nbsp; &nbsp;
        &nbsp;Mailing List" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org">&lt;sr-users@lists.sip-router.org&gt;</a></font>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">Fecha: &nbsp; &nbsp; &nbsp;
        &nbsp;</font><font face="sans-serif" size="1">13/12/2011 18:08</font>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">Asunto: &nbsp; &nbsp;
        &nbsp; &nbsp;</font><font face="sans-serif" size="1">Re: [SR-Users]
        syncing db_text acc table</font>
      <br>
      <font color="#5f5f5f" face="sans-serif" size="1">Enviado por: &nbsp; &nbsp;
        &nbsp; &nbsp;</font><font face="sans-serif" size="1"><a class="moz-txt-link-abbreviated" href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a></font>
      <br>
      <hr noshade="noshade">
      <br>
      <br>
      <br>
      <tt><font size="2">Hi Pedro,<br>
          <br>
          You need to disable the caching mode in db_text, see here:<br>
        </font></tt><a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/devel/modules_k/db_text.html#id2530805"><tt><font
            size="2">http://kamailio.org/docs/modules/devel/modules_k/db_text.html#id2530805</font></tt></a><tt><font
          size="2"><br>
          <br>
          Kind regards from Hamburg,<br>
          Carsten<br>
          <br>
          2011/12/13 Pedro Antonio Vico Solano
          <a class="moz-txt-link-rfc2396E" href="mailto:pvsolano@amper.es">&lt;pvsolano@amper.es&gt;</a>:<br>
          &gt; Hello,<br>
          &gt;<br>
          &gt; I'm using Kamailio 3.1.5 with db_text module. I'm trying
          to save accounting<br>
          &gt; information on the acc file. Everything seems to work
          fine but accounting<br>
          &gt; records are only written on the file when Kamailio
          program shutdowns.<br>
          &gt;<br>
          &gt; usrloc tables have a configuration parameter for
          persistent storage
          mode<br>
          &gt; (modparam("usrloc", "db_mode", 1))<br>
          &gt;<br>
          &gt; How can I get the same &nbsp;behaviour on acc table?<br>
          &gt;<br>
          &gt; Thanks.<br>
          &gt; BR,<br>
          &gt; Pedro<br>
          &gt;<br>
          &gt; ADVERTENCIA<br>
          &gt;<br>
          &gt; Este mensaje y/o sus anexos, pueden contener informaci&oacute;n
          personal
          y<br>
          &gt; confidencial cuyo uso, reproducci&oacute;n o distribuci&oacute;n no
          autorizados
          est&aacute;n<br>
          &gt; legalmente prohibidos. Por lo tanto, si Vd. no fuera su
          destinatario
          y,<br>
          &gt; err&oacute;neamente, lo hubiera recibido, le rogamos que informe
          al remitente
          y lo<br>
          &gt; borre de inmediato.<br>
          &gt;<br>
          &gt; En cumplimiento de la Ley Org&aacute;nica 15/1999, de Protecci&oacute;n
          de Datos
          de<br>
          &gt; Car&aacute;cter Personal le informamos de que su direcci&oacute;n de
          correo electr&oacute;nico,<br>
          &gt; as&iacute; como sus datos personales y de empresa pasar&aacute;n a
          formar parte
          de nuestro<br>
          &gt; fichero de Gesti&oacute;n, y ser&aacute;n tratados con la &uacute;nica
          finalidad de mantenimiento<br>
          &gt; de la relaci&oacute;n adquirida con usted. Los datos personales
          que existen
          en<br>
          &gt; nuestro poder est&aacute;n protegidos por nuestra Pol&iacute;tica de
          Seguridad,
          y no ser&aacute;n<br>
          &gt; compartidos con ninguna otra empresa. Usted puede
          ejercitar los derechos
          de<br>
          &gt; acceso, rectificaci&oacute;n, cancelaci&oacute;n y oposici&oacute;n
          dirigi&eacute;ndose por escrito
          a la<br>
          &gt; direcci&oacute;n arriba indicada.<br>
          &gt;<br>
          &gt; This e-mail and its attachments may include confidential
          personal<br>
          &gt; information which may be protected by any legal rules and
          cannot be
          used,<br>
          &gt; copied, distributed or disclosed to any person without
          authorisation.
          If you<br>
          &gt; are not the intended recipient and have received this
          e-mail by mistake,<br>
          &gt; please advise the sender and erase it.<br>
          &gt;<br>
          &gt; In compliance with the Spanish Organic Act 15/1999 on
          Personal Data<br>
          &gt; Protection, we hereby inform you that your email address,
          as well
          as your<br>
          &gt; personal and business information, will be included in
          our Management
          files<br>
          &gt; and used solely for purposes corresponding to our
          commercial relationship.<br>
          &gt; All personal data in our possession is protected by our
          Data Safety
          Policy<br>
          &gt; and thus shall not be released to any other third party
          whatsoever.
          You may<br>
          &gt; exercise your right to access, rectify, cancel and
          contest by writing
          to the<br>
          &gt; address provided above.<br>
          &gt; _______________________________________________<br>
          &gt; SIP Express Router (SER) and Kamailio (OpenSER) -
          sr-users mailing
          list<br>
          &gt; <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
          &gt; </font></tt><a moz-do-not-send="true"
        href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"><tt><font
            size="2">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</font></tt></a><tt><font
          size="2"><br>
          &gt;<br>
          <br>
          <br>
          <br>
          -- <br>
          Carsten Bock<br>
          CEO (Gesch&auml;ftsf&uuml;hrer)<br>
          <br>
          ng-voice GmbH<br>
          Schomburgstr. 80<br>
          D-22767 Hamburg / Germany<br>
          <br>
        </font></tt><a moz-do-not-send="true"
        href="http://www.ng-voice.com/"><tt><font size="2">http://www.ng-voice.com</font></tt></a><tt><font
          size="2"><br>
        </font></tt><a moz-do-not-send="true"
        href="mailto:carsten@ng-voice.com"><tt><font size="2">mailto:carsten@ng-voice.com</font></tt></a><tt><font
          size="2"><br>
          <br>
          Mobile +49 179 2021244<br>
          Office +49 40 34927219<br>
          Fax +49 40 34927220<br>
          <br>
          Sitz der Gesellschaft: Hamburg<br>
          Registergericht: Amtsgericht Hamburg, HRB 120189<br>
          Gesch&auml;ftsf&uuml;hrer: Carsten Bock<br>
          Ust-ID: DE279344284<br>
          <br>
          Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
        </font></tt><a moz-do-not-send="true"
        href="http://www.ng-voice.com/imprint/"><tt><font size="2">http://www.ng-voice.com/imprint/</font></tt></a><tt><font
          size="2"><br>
          <br>
          _______________________________________________<br>
          SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
          mailing list<br>
          <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
        </font></tt><a moz-do-not-send="true"
        href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"><tt><font
            size="2">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</font></tt></a><tt><font
          size="2"><br>
        </font></tt>
      <br>
      <font color="#008000" face="sans-serif" size="1"><br>
        ADVERTENCIA </font><font face="sans-serif" size="2"><br>
      </font><font color="#008000" face="sans-serif" size="1"><br>
        Este mensaje y/o sus anexos, pueden contener informaci&oacute;n
        personal y confidencial
        cuyo uso, reproducci&oacute;n o distribuci&oacute;n no autorizados est&aacute;n
        legalmente prohibidos.
        Por lo tanto, si Vd. no fuera su destinatario y, err&oacute;neamente,
        lo hubiera
        recibido, le rogamos que informe al remitente y lo borre de
        inmediato.<br>
        <br>
        En cumplimiento de la Ley Org&aacute;nica 15/1999, de Protecci&oacute;n de
        Datos de Car&aacute;cter
        Personal le informamos de que su direcci&oacute;n de correo
        electr&oacute;nico, as&iacute; como
        sus datos personales y de empresa pasar&aacute;n a formar parte de
        nuestro fichero
        de Gesti&oacute;n, y ser&aacute;n tratados con la &uacute;nica finalidad de
        mantenimiento de
        la relaci&oacute;n adquirida con usted. Los datos personales que
        existen en nuestro
        poder est&aacute;n protegidos por nuestra Pol&iacute;tica de Seguridad, y no
        ser&aacute;n compartidos
        con ninguna otra empresa. Usted puede ejercitar los derechos de
        acceso,
        rectificaci&oacute;n, cancelaci&oacute;n y oposici&oacute;n dirigi&eacute;ndose por escrito
        a la direcci&oacute;n
        arriba indicada.<br>
        <br>
        This e-mail and its attachments may include confidential
        personal information
        which may be protected by any legal rules and cannot be used,
        copied, distributed
        or disclosed to any person without authorisation. If you are not
        the intended
        recipient and have received this e-mail by mistake, please
        advise the sender
        and erase it.<br>
        <br>
        In compliance with the Spanish Organic Act 15/1999 on Personal
        Data Protection,
        we hereby inform you that your email address, as well as your
        personal
        and business information, will be included in our Management
        files and
        used solely for purposes corresponding to our commercial
        relationship.
        All personal data in our possession is protected by our Data
        Safety Policy
        and thus shall not be released to any other third party
        whatsoever. You
        may exercise your right to access, rectify, cancel and contest
        by writing
        to the address provided above. </font>
      <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://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>