System information
Verifying Logging
You can view the status of all your logger.conf settings through the Asterisk CLI by
issuing the command:
*CLI> logger show channels
You should see output similar to:
Channel Type Status Configuration
------- ---- ------ -------------
syslog.local0 Syslog Enabled - NOTICE WARNING ERROR VERBOSE
/var/log/asterisk/verbose File Enabled - NOTICE WARNING ERROR VERBOSE
/var/log/asterisk/messages File Enabled - NOTICE WARNING ERROR
Console Enabled - NOTICE WARNING ERROR DTMF
Call Detail Records
The CDR system in Asterisk is used to log the history of calls in the system. In some
deployments, these records are used for billing purposes. In others, call records are
used for analyzing call volumes over time. They can also be used as a debugging tool
by Asterisk administrators.
CDR Contents
A CDR has a number of fields that are included by default. Table 24-2 lists them.
Table 24-2. Default CDR fields
Option Value/Example Notes
accountcode 12345 An account ID. This field is user-defined and is empty by default.
src 12565551212 The calling party’s caller ID number. It is set automatically and is
read-only.
dst 102 The destination extension for the call. This field is set automatically
and is read-only.
dcontext PublicExtensions The destination context for the call. This field is set automatically
and is read-only.
clid "Big Bird" <12565551212> The full caller ID, including the name, of the calling party. This field
is set automatically and is read-only.
channel SIP/0004F2040808-a1bc23ef The calling party’s channel. This field is set automatically and is
read-only.
dstchannel SIP/0004F2046969-9786b0b0 The called party’s channel. This field is set automatically and is
read-only.
lastapp Dial The last dialplan application that was executed. This field is set
automatically and is read-only.
Call Detail Records | 527