<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/CEL+Events+and+Fields">CEL Events and Fields</a></h2>
<h4>Page <b>edited</b> by <a href="https://wiki.asterisk.org/wiki/display/~rmudgett">Richard Mudgett</a>
</h4>
<div id="versionComment">
<b>Comment:</b>
Updated Table 11.2: List of CEL Event Fields<br />
</div>
<br/>
<h4>Changes (10)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >Table 11.2: List of CEL Event Fields <br>||Field||Description|| <br></td></tr>
<tr><td class="diff-changed-lines" >|eventtype|The name of the event; see the above <span class="diff-changed-words">list<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">; each is prefixed with "EV_"</span>.|</span> <br></td></tr>
<tr><td class="diff-unchanged" >|eventtime|The time the event happened| <br></td></tr>
<tr><td class="diff-changed-lines" ><span class="diff-changed-words">|cid<span class="diff-added-chars"style="background-color: #dfd;">_</span>name|CID</span> name field| <br></td></tr>
<tr><td class="diff-changed-lines" ><span class="diff-changed-words">|cid<span class="diff-added-chars"style="background-color: #dfd;">_</span>num|CID</span> number field| <br></td></tr>
<tr><td class="diff-changed-lines" ><span class="diff-changed-words">|cid<span class="diff-added-chars"style="background-color: #dfd;">_</span>ani|CID</span> ANI field| <br></td></tr>
<tr><td class="diff-changed-lines" ><span class="diff-changed-words">|cid<span class="diff-added-chars"style="background-color: #dfd;">_</span>rdnis|CID</span> RDNIS field| <br></td></tr>
<tr><td class="diff-changed-lines" ><span class="diff-changed-words">|cid<span class="diff-added-chars"style="background-color: #dfd;">_</span>dnid|CID</span> DNID field| <br></td></tr>
<tr><td class="diff-unchanged" >|exten|The extension in the dialplan| <br>|context|The context in the dialplan| <br></td></tr>
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >|amaflags|The AMA flags associated with the event; user assignable.| <br>|accountcode|A user assigned datum (string)| <br></td></tr>
<tr><td class="diff-added-lines" style="background-color: #dfd;">|peeraccount|A user assigned datum (string) on the peer.| <br></td></tr>
<tr><td class="diff-unchanged" >|uniqueid|Each Channel instance gets a unique ID associated with it.| <br></td></tr>
<tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">|userfield|A user assigned datum (string)| <br></td></tr>
<tr><td class="diff-unchanged" >|linkedid|the per-call id, spans several events, possibly.| <br></td></tr>
<tr><td class="diff-added-lines" style="background-color: #dfd;">|userfield|A user assigned datum (string)| <br></td></tr>
<tr><td class="diff-unchanged" >|peer|For bridge or other 2-channel events, this would be the other channel name| <br></td></tr>
<tr><td class="diff-added-lines" style="background-color: #dfd;">|userdeftype|User defined event name| <br>|extra|Extra information associated with the event.| <br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<p>While CDRs and the Manager are basically both event tracking mechanisms, CEL tries to track only those events that might pertain to billing issues. </p>
<h5><a name="CELEventsandFields-TableofCELEvents"></a>Table of CEL Events</h5>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'>Event</th>
<th class='confluenceTh'>Description</th>
</tr>
<tr>
<td class='confluenceTd'>CHAN_START</td>
<td class='confluenceTd'>The time a channel was created</td>
</tr>
<tr>
<td class='confluenceTd'>CHAN_END</td>
<td class='confluenceTd'>The time a channel was terminated</td>
</tr>
<tr>
<td class='confluenceTd'>ANSWER</td>
<td class='confluenceTd'>The time a channel was answered (ie, phone taken off-hook)</td>
</tr>
<tr>
<td class='confluenceTd'>HANGUP</td>
<td class='confluenceTd'>The time at which a hangup occurred</td>
</tr>
<tr>
<td class='confluenceTd'>CONF_ENTER</td>
<td class='confluenceTd'>The time a channel was connected into a conference room</td>
</tr>
<tr>
<td class='confluenceTd'>CONF_EXIT</td>
<td class='confluenceTd'>The time a channel was removed from a conference room</td>
</tr>
<tr>
<td class='confluenceTd'>CONF_START</td>
<td class='confluenceTd'>The time the first person enters a conference room</td>
</tr>
<tr>
<td class='confluenceTd'>CONF_END</td>
<td class='confluenceTd'>The time the last person left a conference room (and turned out the lights?)</td>
</tr>
<tr>
<td class='confluenceTd'>APP_START</td>
<td class='confluenceTd'>The time a tracked application was started</td>
</tr>
<tr>
<td class='confluenceTd'>APP_END</td>
<td class='confluenceTd'>the time a tracked application ended</td>
</tr>
<tr>
<td class='confluenceTd'>PARK_START</td>
<td class='confluenceTd'>The time a call was parked</td>
</tr>
<tr>
<td class='confluenceTd'>PARK_END</td>
<td class='confluenceTd'>Unpark event</td>
</tr>
<tr>
<td class='confluenceTd'>BRIDGE_START</td>
<td class='confluenceTd'>The time a bridge is started</td>
</tr>
<tr>
<td class='confluenceTd'>BRIDGE_END</td>
<td class='confluenceTd'>The time a bridge is ended</td>
</tr>
<tr>
<td class='confluenceTd'>BRIDGE_UPDATE</td>
<td class='confluenceTd'>This is a replacement channel (Masquerade)</td>
</tr>
<tr>
<td class='confluenceTd'>3WAY_START</td>
<td class='confluenceTd'>When a 3-way conference starts (usually via attended transfer)</td>
</tr>
<tr>
<td class='confluenceTd'>3WAY_END</td>
<td class='confluenceTd'>When one or all exit a 3-way conference</td>
</tr>
<tr>
<td class='confluenceTd'>BLINDTRANSFER</td>
<td class='confluenceTd'>When a blind transfer is initiated</td>
</tr>
<tr>
<td class='confluenceTd'>ATTENDEDTRANSFER</td>
<td class='confluenceTd'>When an attended transfer is initiated</td>
</tr>
<tr>
<td class='confluenceTd'>TRANSFER</td>
<td class='confluenceTd'>Generic transfer initiated; not used yet...?</td>
</tr>
<tr>
<td class='confluenceTd'>PICKUP</td>
<td class='confluenceTd'>This channel picked up the peer channel</td>
</tr>
<tr>
<td class='confluenceTd'>FORWARD</td>
<td class='confluenceTd'>This channel is being forwarded somewhere else</td>
</tr>
<tr>
<td class='confluenceTd'>HOOKFLASH</td>
<td class='confluenceTd'>So far, when a hookflash event occurs on a DAHDI interface</td>
</tr>
<tr>
<td class='confluenceTd'>LINKEDID_END</td>
<td class='confluenceTd'>The last channel with the given linkedid is retired</td>
</tr>
<tr>
<td class='confluenceTd'>USER_DEFINED</td>
<td class='confluenceTd'>Triggered from the dialplan, and has a name given by the user</td>
</tr>
</tbody></table>
</div>
<h5><a name="CELEventsandFields-TableofCELEventFields"></a>Table of CEL Event Fields</h5>
<p>Table 11.2: List of CEL Event Fields</p>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'>Field</th>
<th class='confluenceTh'>Description</th>
</tr>
<tr>
<td class='confluenceTd'>eventtype</td>
<td class='confluenceTd'>The name of the event; see the above list.</td>
</tr>
<tr>
<td class='confluenceTd'>eventtime</td>
<td class='confluenceTd'>The time the event happened</td>
</tr>
<tr>
<td class='confluenceTd'>cid_name</td>
<td class='confluenceTd'>CID name field</td>
</tr>
<tr>
<td class='confluenceTd'>cid_num</td>
<td class='confluenceTd'>CID number field</td>
</tr>
<tr>
<td class='confluenceTd'>cid_ani</td>
<td class='confluenceTd'>CID ANI field</td>
</tr>
<tr>
<td class='confluenceTd'>cid_rdnis</td>
<td class='confluenceTd'>CID RDNIS field</td>
</tr>
<tr>
<td class='confluenceTd'>cid_dnid</td>
<td class='confluenceTd'>CID DNID field</td>
</tr>
<tr>
<td class='confluenceTd'>exten</td>
<td class='confluenceTd'>The extension in the dialplan</td>
</tr>
<tr>
<td class='confluenceTd'>context</td>
<td class='confluenceTd'>The context in the dialplan</td>
</tr>
<tr>
<td class='confluenceTd'>channame</td>
<td class='confluenceTd'>The name assigned to the channel in which the event took place</td>
</tr>
<tr>
<td class='confluenceTd'>appname</td>
<td class='confluenceTd'>The name of the current application</td>
</tr>
<tr>
<td class='confluenceTd'>appdata</td>
<td class='confluenceTd'>The arguments that will be handed to that application</td>
</tr>
<tr>
<td class='confluenceTd'>amaflags</td>
<td class='confluenceTd'>The AMA flags associated with the event; user assignable.</td>
</tr>
<tr>
<td class='confluenceTd'>accountcode</td>
<td class='confluenceTd'>A user assigned datum (string)</td>
</tr>
<tr>
<td class='confluenceTd'>peeraccount</td>
<td class='confluenceTd'>A user assigned datum (string) on the peer.</td>
</tr>
<tr>
<td class='confluenceTd'>uniqueid</td>
<td class='confluenceTd'>Each Channel instance gets a unique ID associated with it.</td>
</tr>
<tr>
<td class='confluenceTd'>linkedid</td>
<td class='confluenceTd'>the per-call id, spans several events, possibly.</td>
</tr>
<tr>
<td class='confluenceTd'>userfield</td>
<td class='confluenceTd'>A user assigned datum (string)</td>
</tr>
<tr>
<td class='confluenceTd'>peer</td>
<td class='confluenceTd'>For bridge or other 2-channel events, this would be the other channel name</td>
</tr>
<tr>
<td class='confluenceTd'>userdeftype</td>
<td class='confluenceTd'>User defined event name</td>
</tr>
<tr>
<td class='confluenceTd'>extra</td>
<td class='confluenceTd'>Extra information associated with the event.</td>
</tr>
</tbody></table>
</div>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/CEL+Events+and+Fields">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=5242937&revisedVersion=4&originalVersion=3">View Changes</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/CEL+Events+and+Fields?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>