How to Export FreePBX CDR into CSV

Is is possible to export call data records from FreePBX into a csv file ?

And are there any standalone open source billing systems that I can enter rate cards and CDR data and produce invoices.

I’ve had a look at A2Billing but that’s integrated into the switch. I would prefer a standalone tool that can take data from many sources not just FreePBX.


Go to the CDR reports, and select CSV file for the report type, on the right hand side.

Many installations already have them in /var/log/asterisk/cdr-csv/Master.csv* (installing asterisk will do that by default)

If the are not there then perhaps add

usegmtime=yes ; log date/time in GMT. Default is "no"
loguniqueid=yes ; log uniqueid. Default is "no"
loguserfield=yes ; log user field. Default is “no”

in /etc/asterisk/cdr.conf and customize it in cdr_custom.conf if you want/need to.