[SR-Users] log CDRs to text file

eyas barhouk eyas37 at hotmail.com
Sun May 6 16:00:09 CEST 2018

Thank you Dear
I did it by creating new log file and making it the default one for accounting EDR  just by doing :

  1.  In Kamailio.cfg --> modparam("acc", "log_facility", "LOG_LOCAL1")
  2.  in the rsyslog.conf --> I added new line “local1.* -var/log/accounting”

in the case of flatstore  database my error was the sets of the permissions for the directory of the module
at the end the both way worked great

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Henning Westerholt<mailto:hw at kamailio.org>
Sent: ‏06 ‏أيار,‏ ‏2018 ‏04:40 ‏م
To: sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
Cc: eyas barhouk<mailto:eyas37 at hotmail.com>
Subject: Re: [SR-Users] log CDRs to text file

Am Donnerstag, 3. Mai 2018, 22:23:54 CEST schrieb eyas barhouk:

> Hello Dears

> I'm trying to get Kamailio to log its CDRs (collected By ACC module ) to

> text file instead of a database so i used modparam("acc", "db_url",

> "flatstore:/var/log/acc") and in each time kamailio trying to write on the

> text file i get the error : " db_flatstore flat_new_connection() : not a

> directory"

> so could any one guide me about how i have to create the database text file

> "acc"? and what is the cause of the error i got ?


have you configured the flatstore DB in the kamailio cfg as well?

If you just want to get the accounting in a text file, you can do this with standard system logging methods. Have a look to the cfg parameter log_facility and other in the acc README. Depending on your environment this may be easier for you.

Best regards,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180506/5e8166ef/attachment.html>

More information about the sr-users mailing list