Trixbox is record the cdr to mysql database by default,but i want to log the cdr to files,who can tell me that how can i do?i find the cdr file in path:/var/log/asterisk/cdr-csv,but the file is empty.
how to log cdr to file?
The process used to be different, but now it appears you'll need to create the file cdr.conf in /etc/asterisk and populate it with the following:
[general]
[csv]
usegmtime=yes ;log date/time in GMT
loguniqueid=yes ;log uniqueid
loguserfield=yes ;log user field
According to the log dump (grep -H -r "cdr" /var/log), that should do the trick... or at least get you a new error message. No promises on this one, but this should start you down the path.
Josh
Josh,
I really appreciate your help!
I do it as you said,then i make some calls,i can find the cdr in the Master.csv file,it is ok!
Member Since:
2008-12-22