[OpenSIPS-Users] CDR in flat file

Gary Nyquist gn62 at gmx.us
Wed Mar 5 22:40:37 CET 2014


Hi,
I am trying to configure the OpenSIPS v.1.10 to make it write the CDRs to flat files.
But no luck yet.
The "opensips.cfg" looks like this:
...
loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
loadmodule "acc.so"
modparam("acc", "detect_direction", 1)
modparam("acc", "failed_transaction_flag", "ACC_FAILED")
modparam("acc", "db_url", "flatstore:/var/log/acc")
modparam("acc", "log_flag", "LOG_FLAG")
modparam("acc", "log_facility", "LOG_LOCAL0")
modparam("acc", "cdr_flag", "CDR_FLAG")
modparam("acc", "db_flag", "DB_FLAG")
loadmodule "db_flatstore.so"
modparam("db_flatstore", "flush", 0)
modparam("db_flatstore", "suffix", "$time(%H)")
...
route[relay]{
 if (is_method("INVITE")){
 rewritehostport("54.84.239.100:5080");
 create_dialog();
 setflag(LOG_FLAG); 
 setflag(DB_FLAG); 
 setflag(CDR_FLAG); 
 if (!t_relay()) {
 send_reply("500","Internal Error");
 }
 }
}
...
Am I missing something or doing something wrong?
Thanks in advance
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140305/8ed0b247/attachment-0001.htm>


More information about the Users mailing list