<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>is this for all calls, or only for the calls that were active at
the time of restart (the new calls will get the cdrs properly)?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 14/03/2017 11:13, Kordován Szabolcs
wrote:<br>
</div>
<blockquote
cite="mid:CANKf1Tx=xacWgrjje-cSxm+MDGhMqwt=EqpfoVYmX6jjkgqRXg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I use acc module for create cdr into db and also make acc
log into db.</div>
<div>After restart Kamailio cdr won't be created but acc log
will be inserted into db. In the syslog also I see just the
acc log. The dialog will be remove from db.</div>
<div><br>
</div>
<div>I have read many threads. I know that it should work.</div>
<div><br>
</div>
<div>Thanks for help!</div>
<div>Regards,</div>
<div>Szabolcs</div>
<div><br>
</div>
<div>From my configs:</div>
<div><br>
</div>
<div>
<div>#!define FLT_ACC 1</div>
<div>#!define FLT_ACCMISSED 2</div>
<div>#!define FLT_ACCFAILED 3</div>
<div><br>
</div>
<div>modparam("acc", "db_url", DBURL)</div>
<div>modparam("acc", "db_flag", FLT_ACC)</div>
<div>modparam("acc", "db_missed_flag", FLT_ACCMISSED)</div>
<div>modparam("acc", "db_extra",
"src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd;src_ip=$si")</div>
<div><br>
</div>
<div>modparam("acc", "log_level", 3)</div>
<div>modparam("acc", "log_flag", FLT_ACC)</div>
<div>modparam("acc", "log_missed_flag", FLT_ACCMISSED)</div>
<div><br>
</div>
<div>modparam("acc", "report_ack", 1)</div>
<div>modparam("acc", "report_cancels", 1)</div>
<div>modparam("acc", "early_media", 1)</div>
<div><br>
</div>
<div>modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)</div>
<div><br>
</div>
<div>modparam("acc", "acc_prepare_always", 1)</div>
<div>modparam("acc", "time_mode", 1)</div>
<div>modparam("acc", "time_attr", "seconds")</div>
<div>modparam("acc", "time_exten", "microsecs")</div>
<div>modparam("acc", "reason_from_hf", 1)</div>
<div><br>
</div>
<div>modparam("acc", "cdr_enable", 1)</div>
<div>modparam("acc", "cdr_expired_dlg_enable", 1)</div>
<div>modparam("acc", "cdr_start_on_confirmed", 1)</div>
<div>modparam("acc", "cdrs_table", "acc_cdrs")</div>
<div>modparam("acc", "cdr_on_failed", 1) </div>
<div>modparam("acc", "cdr_extra",
"callid=$ci;src_user=$dlg_var(fU);src_domain=$dlg_var(fd);dst_ouser=$dlg_var(tU);dst_user=$dlg_var(rU);dst_domain=$dlg_var(rd);src_ip=$dlg_var(si);peer_in=$dlg_var(peerin);peer_out=$dlg_var(peerout)")</div>
<div><br>
</div>
</div>
<div>
<div>request_route {</div>
<div><------></div>
<div><------>$var(loose) = loose_route();</div>
<div><------>$var(check_trans) = t_check_trans();</div>
<div><------>sip_trace();<br>
</div>
<div><------>setflag(FLT_SIPTRACE);</div>
<div><------>dlg_manage();</div>
<div><br>
</div>
<div><------># handle retransmissions</div>
<div><------>if(t_precheck_trans()) {</div>
<div><------> xlogl("LOG_LOCAL0", "L_ALERT",
"================== kamaty $rm route $ci ==== $rm ====
precheck_trans exit\n");</div>
<div><------> exit;</div>
<div><------>}</div>
<div><br>
</div>
<div><------>if(is_method("OPTIONS")) {.</div>
<div><------> # send reply for each options request.</div>
<div><------> sl_send_reply("200", "ok");.</div>
<div><------> exit();.</div>
<div><------>}</div>
<div>
<div><------># CANCEL processing<br>
</div>
<div><------>if (is_method("CANCEL")) {</div>
<div><------><------>if (t_check_trans()) {</div>
<div><------><------> route(RELAY);</div>
<div><------><------>}</div>
<div><------><------>exit;</div>
<div><------>}</div>
<div><------>if ( is_method("ACK") ) {</div>
<div><------><------>if ( $var(check_trans) ) {</div>
<div><------><------> route(RELAY);</div>
<div><------><------>}</div>
<div><------><------>exit;</div>
<div><------>}</div>
<div><------>if (is_method("BYE")) {</div>
<div><------> if ($var(loose)) {</div>
<div><------><------>setflag(FLT_ACC); # do
accounting ...</div>
<div><------><------>setflag(FLT_ACCFAILED); #
... even if the transaction fails</div>
<div><------><------>setflag(FLT_ACCMISSED);</div>
<div><------><------>route(RELAY);</div>
<div><------> <-->exit;</div>
<div><------> }</div>
<div><------> exit;</div>
<div><------>}</div>
<div>etc.</div>
<div><br>
</div>
</div>
</div>
</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-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>