System information
Channel Event Contents
Each CEL event contains the fields listed in Table 24-9:
Table 24-9. CEL event fields
Field name Value/Example Notes
eventtype CHAN_START The name of the event. The list of events that may occur can be
found in Table 24-7.
eventtime 2010-08-19 07:27:19 The time that the event occurred.
cidname Julie Bryant The caller ID name set on the channel associated with this event.
cidnum 18435551212 The caller ID number set on the channel associated with this event.
cidani 18435551212 The Automatic Number Identification (ANI) number set on the
channel associated with this event.
cidrdnis 18435551234 The redirecting number set on the channel associated with this
event.
ciddnid 18435550987 The dialed number set on the channel associated with this event.
exten 101 The extension in the dialplan that is currently being executed.
context LocalSets The context for the extension in the dialplan that is currently being
executed.
channame SIP/0004F2060EB4-00000010 The name of the channel associated with this event.
appname Dial The name of the dialplan application currently being executed.
appdata SIP/0004F2060E55 The arguments that were passed to the dialplan application that
is currently being executed.
amaflags DOCUMENTATION The Automatic Message Accounting (AMA) flag associated with
this call. This may be one of the following: OMIT, BILLING,
DOCUMENTATION, or Unknown.
accountcode 1234 An account ID. This field is user-defined and is empty by default.
uniqueid 1282218999.18 The unique ID for the channel that is associated with this event.
userfield I like waffles! User-defined event content.
linkedid 1282218999.18 The per-call ID. This ID helps tie together multiple events from
multiple channels that are all a part of the same logical call. The
ID comes from the uniqueid of the first channel in the call.
peer SIP/0004F2060E55-00000020 The name of the channel bridged to the channel identified by
channame.
Some of the contents of a CEL event are user-defined. For example, the userfield is
user-defined and will be empty by default. To set it to something, use the CHANNEL()
dialplan function. Here is an example of setting the userfield for a channel:
exten => 101,1,Set(CHANNEL(userfield)=I like waffles!)
CEL (Channel Event Logging) | 539