[OpenSIPS-Users] CDR in flat file

Răzvan Crainea razvan at opensips.org
Thu Mar 6 09:52:25 CET 2014


Hi, Gary!

The configuration file looks ok. Can you check if the /var/log/acc 
directory exists? Do you see any errors in the logs?

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 03/05/2014 11:40 PM, Gary Nyquist wrote:
> 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list