Calls are being logged to /var/log/asterisk/cdr-csv/Master.csv and being rotated to Master.csv1 etc, however, since 25th January 2008 there are no calls being logged to mysql.
This is evidenced when I use the freepbx ‘reports’ tab and select Jan - July, only the days from installation up until 25th January exist.
I have looked at /etc/asterisk/cdr_mysql.conf and the timestamp on the file is when the logging has stopped.
This file has all options remarked out with ‘;’ see below:
I have modified this file to:
However, it is still not logging calls to mysql.
Could someone please advise what error logs I can check and what I should look for to determine the problem?
Or even better if there is an obvious solution?
Also why an update would have changed conf files and what can be done to stop updates changing conf files in future?
Or is it that I am changing conf files from the wrong method?
(I found a similar problem with sip.conf being changed so that ‘include sip_custom.conf’ was remarked out with an update stopping incoming calls)
It was installed initially as pbxinaflash and has now been upgraded to freepbx 188.8.131.52
Finally, once this problem is resolved, is there some way to import the csv file details into the mysql database?
I have been able to get it working after finding a backup file I had of the cdr_mysql.conf file and replacing it. However, I would still like to know how to stop custom conf files from being replaced with updates and/or how to make custom entries correctly if changing the file is incorrect.
FYI, my cdr_mysql.conf file is now:
password = xxxxxxxxx
user = asteriskuser
Also in the logs I have found:
"loader.c: Module ‘cdr_addon_mysql.so’ was not compiled against a recent version of Asterisk and may cause instability."
Is that normal? Likely to cause problems down the track? Is there something I am doing wrong with updates to be getting this?