Thank you Dear
I did it by creating new log file and making it the default one for accounting EDR just by doing :
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 for Windows 10
From:
Henning Westerholt
Sent:
þ06 þÃíÇÑ,þ þ2018 þ04:40 þã
To:
sr-users@lists.kamailio.org
Cc:
eyas barhouk
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