<span style='font-family:Verdana'><span style='font-size:12px'><p style="margin:0px; padding:0px;" >Hi,</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >I am trying to configure the OpenSIPS v.1.10 to make it write the CDRs to flat files.</p><p style="margin:0px; padding:0px;" >But no luck yet.</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >The "opensips.cfg" looks like this:</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >...</p><p style="margin:0px; padding:0px;" >loadmodule "dialog.so"</p><p style="margin:0px; padding:0px;" >modparam("dialog", "dlg_match_mode", 1)</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >loadmodule "acc.so"</p><p style="margin:0px; padding:0px;" >modparam("acc", "detect_direction", 1)</p><p style="margin:0px; padding:0px;" >modparam("acc", "failed_transaction_flag", "ACC_FAILED")</p><p style="margin:0px; padding:0px;" >modparam("acc", "db_url", "flatstore:/var/log/acc")</p><p style="margin:0px; padding:0px;" >modparam("acc", "log_flag", "LOG_FLAG")</p><p style="margin:0px; padding:0px;" >modparam("acc", "log_facility", "LOG_LOCAL0")</p><p style="margin:0px; padding:0px;" >modparam("acc", "cdr_flag", "CDR_FLAG")</p><p style="margin:0px; padding:0px;" >modparam("acc", "db_flag", "DB_FLAG")</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >loadmodule "db_flatstore.so"</p><p style="margin:0px; padding:0px;" >modparam("db_flatstore", "flush", 0)</p><p style="margin:0px; padding:0px;" >modparam("db_flatstore", "suffix", "$time(%H)")</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >...</p><p style="margin:0px; padding:0px;" >route[relay]{</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; if (is_method("INVITE")){</p><p style="margin:0px; padding:0px;" >&nbsp;&nbsp; &nbsp;rewritehostport("54.84.239.100:5080");</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create_dialog();</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(LOG_FLAG);&nbsp;</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(DB_FLAG); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(CDR_FLAG); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!t_relay()) {</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;send_reply("500","Internal Error");</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p style="margin:0px; padding:0px;" >&nbsp; &nbsp; }</p><p style="margin:0px; padding:0px;" >}</p><p style="margin:0px; padding:0px;" >...</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >&nbsp;</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >Am I missing something or doing something wrong?</p><p style="margin:0px; padding:0px;" > </p><p style="margin:0px; padding:0px;" >Thanks in advance</p><p style="margin:0px; padding:0px;" >Gary</p><div> </div></span></span>