<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
how you do the files rotation? The readme is saying that has to be
done via an external application. Nothing has change in this regard
for many years.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/4/13 2:31 PM, Abdelkader Allam
wrote:<br>
</div>
<blockquote
cite="mid:CAKd4xH_G2F9bxqbdgrn0eeEQQefKXY-TAnk7-t_e0yQJ07s3vg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div dir="ltr"
style="font-family:arial,sans-serif;font-size:13px">
<div>Hello Guys,</div>
<div><br>
</div>
<div>I am using Kamailio 4.1.0. I am trying to get Kamailio to
rotate the cdr log through command kamcmd flatstore.rotate
but it keeps sending log to the renamed files, </div>
<div><br>
</div>
<div><br>
</div>
<div>I use the following parameter (i tried to set flush to 1
and 0, same result, i have also tried in debug and normal
mode)</div>
<div><br>
</div>
<div>#!define WITH_ACCFILE</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div># ----- acc params -----</div>
<div>/* what special events should be accounted ? */</div>
<div>modparam("acc", "early_media", 1)</div>
<div>modparam("acc", "report_ack", 1)</div>
<div>modparam("acc", "report_cancels", 1)</div>
<div>/* by default ww do not adjust the direct of the
sequential requests.</div>
<div> if you enable this parameter, be sure the enable
"append_fromtag"</div>
<div> in "rr" module */</div>
<div>modparam("acc", "detect_direction", 0)</div>
<div>/* account triggers (flags) */</div>
<div>modparam("acc", "log_flag", FLT_ACC)</div>
<div>
modparam("acc", "log_missed_flag", FLT_ACCMISSED)</div>
<div>modparam("acc", "log_extra", </div>
<div><span style="white-space:pre-wrap"> </span>"src_user=$fU;src_domain=$fd;src_ip=$si;"</div>
<div><span style="white-space:pre-wrap"> </span>"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")</div>
<div>modparam("acc", "failed_transaction_flag",
FLT_ACCFAILED)</div>
<div>/* enhanced DB accounting */</div>
<div>modparam("acc", "db_flag", FLT_ACC)</div>
<div>modparam("acc", "db_missed_flag", FLT_ACCMISSED)</div>
<div>#!ifdef WITH_ACCFILE</div>
<div>modparam("acc", "db_url",
"flatstore:/var/log/kamailio") </div>
<div>modparam("db_flatstore", "flush", 1)</div>
<div>modparam("acc", "cdr_enable", 1)</div>
<div>#modparam("acc", "cdr_flag", 3)</div>
<div>modparam("acc", "db_extra","ds=$DLG_lifetime")</div>
<div>modparam("acc", "log_extra",</div>
<div>"src_user=$fU;src_domain=$fd;src_ip=$si;"</div>
<div>"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd;"</div>
<div>"duration=$DLG_lifetime")</div>
<div>modparam("acc", "db_extra",</div>
<div>"src_user=$fU;src_domain=$fd;src_ip=$si;" </div>
<div>"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd;"</div>
<div>"duration=$avp(i:256)")</div>
<div><br>
</div>
<div>#!endif</div>
</div>
</div>
<br style="font-family:arial,sans-serif;font-size:13px">
</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://www.asipto.com">http://www.asipto.com</a>
<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></pre>
</body>
</html>