<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:
</font><font face="sans-serif" size="1">Carsten Bock
<a class="moz-txt-link-rfc2396E" href="mailto:carsten@ng-voice.com"><carsten@ng-voice.com></a></font>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">Para:
</font><font face="sans-serif" size="1">"SIP Router -
Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a></font>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">Fecha:
</font><font face="sans-serif" size="1">13/12/2011 18:08</font>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">Asunto:
</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:
</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"><pvsolano@amper.es></a>:<br>
> Hello,<br>
><br>
> I'm using Kamailio 3.1.5 with db_text module. I'm trying
to save accounting<br>
> information on the acc file. Everything seems to work
fine but accounting<br>
> records are only written on the file when Kamailio
program shutdowns.<br>
><br>
> usrloc tables have a configuration parameter for
persistent storage
mode<br>
> (modparam("usrloc", "db_mode", 1))<br>
><br>
> How can I get the same behaviour on acc table?<br>
><br>
> Thanks.<br>
> BR,<br>
> Pedro<br>
><br>
> ADVERTENCIA<br>
><br>
> Este mensaje y/o sus anexos, pueden contener información
personal
y<br>
> confidencial cuyo uso, reproducción o distribución no
autorizados
están<br>
> legalmente prohibidos. Por lo tanto, si Vd. no fuera su
destinatario
y,<br>
> erróneamente, lo hubiera recibido, le rogamos que informe
al remitente
y lo<br>
> borre de inmediato.<br>
><br>
> En cumplimiento de la Ley Orgánica 15/1999, de Protección
de Datos
de<br>
> Carácter Personal le informamos de que su dirección de
correo electrónico,<br>
> así como sus datos personales y de empresa pasarán a
formar parte
de nuestro<br>
> fichero de Gestión, y serán tratados con la única
finalidad de mantenimiento<br>
> de la relación adquirida con usted. Los datos personales
que existen
en<br>
> nuestro poder están protegidos por nuestra Política de
Seguridad,
y no serán<br>
> compartidos con ninguna otra empresa. Usted puede
ejercitar los derechos
de<br>
> acceso, rectificación, cancelación y oposición
dirigiéndose por escrito
a la<br>
> dirección arriba indicada.<br>
><br>
> This e-mail and its attachments may include confidential
personal<br>
> information which may be protected by any legal rules and
cannot be
used,<br>
> copied, distributed or disclosed to any person without
authorisation.
If you<br>
> are not the intended recipient and have received this
e-mail by mistake,<br>
> please advise the sender and erase it.<br>
><br>
> In compliance with the Spanish Organic Act 15/1999 on
Personal Data<br>
> Protection, we hereby inform you that your email address,
as well
as your<br>
> personal and business information, will be included in
our Management
files<br>
> and used solely for purposes corresponding to our
commercial relationship.<br>
> All personal data in our possession is protected by our
Data Safety
Policy<br>
> and thus shall not be released to any other third party
whatsoever.
You may<br>
> exercise your right to access, rectify, cancel and
contest by writing
to the<br>
> address provided above.<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>
><br>
<br>
<br>
<br>
-- <br>
Carsten Bock<br>
CEO (Geschäftsfü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äftsfü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ón
personal y confidencial
cuyo uso, reproducción o distribución no autorizados están
legalmente prohibidos.
Por lo tanto, si Vd. no fuera su destinatario y, erróneamente,
lo hubiera
recibido, le rogamos que informe al remitente y lo borre de
inmediato.<br>
<br>
En cumplimiento de la Ley Orgánica 15/1999, de Protección de
Datos de Carácter
Personal le informamos de que su dirección de correo
electrónico, así como
sus datos personales y de empresa pasarán a formar parte de
nuestro fichero
de Gestión, y serán tratados con la única finalidad de
mantenimiento de
la relación adquirida con usted. Los datos personales que
existen en nuestro
poder están protegidos por nuestra Política de Seguridad, y no
serán compartidos
con ninguna otra empresa. Usted puede ejercitar los derechos de
acceso,
rectificación, cancelación y oposición dirigiéndose por escrito
a la direcció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>