<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>