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 ?
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 ?
Hello,
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,
Henning
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 Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Henning Westerholtmailto:hw@kamailio.org Sent: 06 أيار, 2018 04:40 م To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Cc: eyas barhoukmailto:eyas37@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 ?
Hello,
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,
Henning