Without even being told, Asterisk assumes that you want to store CDR information. Quite a smart machine, yes?
By default, Asterisk will create a CSV file and place it in the folder /var/log/asterisk/cdr-csv/. To the naked eye, this file looks like a bit of a mess. If, however, you separate each line according to the commas, you will find that each line contains information about a particular call, and that the commas separate the following values:
Assigned if the application
SetAccount() is used, or if configured
for the channel in the channel configuration file (i.e.,
sip.conf). The account code is assigned on a
Received Caller*ID (string, 80 characters).
Caller*ID with text (80 characters).
Channel used (80 characters).
Destination channel, if appropriate (80 characters).
Last application, if appropriate (80 characters).
Last application data (arguments, 80 characters).
Start of call (date/time).
Answer of call (date/time).
End of call (date/time).
Total time in system, in seconds (integer), from dial to hangup.
Total time call is up, in seconds (integer), from answer to hangup.
What happened to the call (
What flags to use (
IGNORE, etc.), specified on a
per-channel basis, like
accountcode. AMA flags stand for Automated Message Accounting flags, which ...