Asterisk (Master CSV). SMDR/CDR data format and connection settings

This data is being extracted with help of the "Advanced PBX Data Logger" software only. It may not applicable for other software titles.

Asterisk it is an open-source software PBX licensed under the GPL license.

Asterisk configuration

For this to work you do need to have loaded. show modules or module show entered at the CLI will tell you if it has been loaded. If not: Type load in the CLI. You'll also want to add that load command to /etc/asterisk/modules.conf if Asterisk didn't automatically include this module at startup.

You also need to edit cdr.conf. The file is located in the /etc/asterisk/ directory.


; Define whether or not to use CDR logging.  Setting this to "no" will override
; any loading of backend CDR modules.  Default is "yes".
unanswered=yes (or no)

;usegmtime=yes ;log date/time in GMT (disabled)
loguniqueid=yes ;log uniqueid (enabled)
;loguserfield=yes ;log user field (disabled)

Out of the box, Asterisk will update: /var/log/asterisk/cdr-custom/Master.csv

How to check the CDR service status

CLI> cdr show status
Call Detail Record (CDR) settings
  Logging:                    Enabled
  Log unanswered calls:       Yes
  Log congestion:             No

* Registered Backends

Configuring PBX Data Logger

1. Create the new "File" data source.
2. Click "Actions → Add...".
3. Select the "FTP" file transfer protocol and configure connection with a FTP server on your PBX.
4. Adjust read options.

Adding a new file data source for Asterisk [Master CSV]

Asterisk [Master CSV]. Data source selection dialog.

Asterisk [Master CSV]. Folders and files.

Configuring FTP connection to Asterisk [Master CSV]





Adjusting read options for Asterisk [Master CSV]

Selecting the correct parser for Asterisk (Master CSV)

Parser Selection For Asterisk (Master CSV) - SMDR/CDR call logging & accounting

Asterisk (Master CSV)

Asterisk (Master CSV)

Data items

DescriptionData typeColumn name
Caller namestringFLAG1
Caller phonestringCALLER_PHONE
Account codestringACC
Destination contextstringFLAG4
Call typestringCALL_TYPE
Call timedatetimeCALL_TIME
Call duration (s)integerCALL_DURATION_S
Call durationdatetimeCALL_DURATION
AMA flagsstringFLAG6
Call IDstringFLAG7

Interested in reports for PBX usage?

We provide the PBX Reports utility, featuring a range of manual, scheduled, and email reports, a built-in web server, among other features. Implement your call accounting system for Asterisk (Master CSV). Look here

Want PBX call logs in a database?

This standard feature allows the logger to capture and export SMDR or CDR data in real-time directly to your database.. Follow this link

Note: Products and companies mentioned here are used only for definition and identification purposes and can be trademarks and/or registered trademarks of the respective companies.