how to log cdr to file?

donald_zhang
Posts: 2
Member Since:
2008-12-22

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.



joshelson
Posts: 243
Member Since:
2006-12-07
The process used to be

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

--

FluentStream Technologies - Integrate * Communicate



donald_zhang
Posts: 2
Member Since:
2008-12-22
It is ok now,thank you.

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!



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.