summaryrefslogtreecommitdiff
path: root/include/asterisk/event_defs.h
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2009-06-26 15:28:53 +0000
committerRussell Bryant <russell@russellbryant.com>2009-06-26 15:28:53 +0000
commit0264eef1156b8ef7369884dd5c663646f1b2b429 (patch)
treea28e9113cf1daf97e45a8fc6d41a52c76ac69836 /include/asterisk/event_defs.h
parente06c6f97c4c222b4c802ac2b85f76a331991dffb (diff)
Merge the new Channel Event Logging (CEL) subsystem.
CEL is the new system for logging channel events. This was inspired after facing many problems trying to represent what is possible to happen to a call in Asterisk using CDR records. For more information on CEL, see the built in HTML or PDF documentation generated from the files in doc/tex/. Many thanks to Steve Murphy (murf) and Brian Degenhardt (bmd) for their hard work developing this code. Also, thanks to Matt Nicholson (mnicholson) and Sean Bright (seanbright) for their assistance in the final push to get this code ready for Asterisk trunk. Review: https://reviewboard.asterisk.org/r/239/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@203638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/event_defs.h')
-rw-r--r--include/asterisk/event_defs.h158
1 files changed, 149 insertions, 9 deletions
diff --git a/include/asterisk/event_defs.h b/include/asterisk/event_defs.h
index 9bebfb69d..99edb6f55 100644
--- a/include/asterisk/event_defs.h
+++ b/include/asterisk/event_defs.h
@@ -48,8 +48,10 @@ enum ast_event_type {
/*! The state of a device has changed on _one_ server. This should not be used
* directly, in general. Use AST_EVENT_DEVICE_STATE instead. */
AST_EVENT_DEVICE_STATE_CHANGE = 0x06,
+ /*! Channel Event Logging events */
+ AST_EVENT_CEL = 0x07,
/*! Number of event types. This should be the last event type + 1 */
- AST_EVENT_TOTAL = 0x07,
+ AST_EVENT_TOTAL = 0x08,
};
/*! \brief Event Information Element types */
@@ -92,7 +94,7 @@ enum ast_event_ie_type {
* Used by: AST_EVENT_SUB
* Payload type: UINT (ast_event_ie_type)
*/
- AST_EVENT_IE_EXISTS = 0x06,
+ AST_EVENT_IE_EXISTS = 0x6,
/*!
* \brief Device Name
* Used by AST_EVENT_DEVICE_STATE_CHANGE
@@ -113,13 +115,151 @@ enum ast_event_ie_type {
* Payload type: str
*/
AST_EVENT_IE_CONTEXT = 0x09,
- /*!
- * \brief Entity ID
- * Used by All events
- * Payload type: RAW
- * This IE indicates which server the event originated from
- */
- AST_EVENT_IE_EID = 0x0A,
+ /*!
+ * \brief Channel Event Type
+ * Used by: AST_EVENT_CEL
+ * Payload type: UINT
+ */
+ AST_EVENT_IE_CEL_EVENT_TYPE = 0x0a,
+ /*!
+ * \brief Channel Event Time (seconds)
+ * Used by: AST_EVENT_CEL
+ * Payload type: UINT
+ */
+ AST_EVENT_IE_CEL_EVENT_TIME = 0x0b,
+ /*!
+ * \brief Channel Event Time (micro-seconds)
+ * Used by: AST_EVENT_CEL
+ * Payload type: UINT
+ */
+ AST_EVENT_IE_CEL_EVENT_TIME_USEC = 0x0c,
+ /*!
+ * \brief Channel Event User Event Name
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_USEREVENT_NAME = 0x0d,
+ /*!
+ * \brief Channel Event CID name
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_CIDNAME = 0x0e,
+ /*!
+ * \brief Channel Event CID num
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_CIDNUM = 0x0f,
+ /*!
+ * \brief Channel Event extension name
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_EXTEN = 0x10,
+ /*!
+ * \brief Channel Event context name
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_CONTEXT = 0x11,
+ /*!
+ * \brief Channel Event channel name
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_CHANNAME = 0x12,
+ /*!
+ * \brief Channel Event app name
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_APPNAME = 0x13,
+ /*!
+ * \brief Channel Event app args/data
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_APPDATA = 0x14,
+ /*!
+ * \brief Channel Event AMA flags
+ * Used by: AST_EVENT_CEL
+ * Payload type: UINT
+ */
+ AST_EVENT_IE_CEL_AMAFLAGS = 0x15,
+ /*!
+ * \brief Channel Event AccountCode
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_ACCTCODE = 0x16,
+ /*!
+ * \brief Channel Event UniqueID
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_UNIQUEID = 0x17,
+ /*!
+ * \brief Channel Event Userfield
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_USERFIELD = 0x18,
+ /*!
+ * \brief Channel Event CID ANI field
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_CIDANI = 0x19,
+ /*!
+ * \brief Channel Event CID RDNIS field
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_CIDRDNIS = 0x1a,
+ /*!
+ * \brief Channel Event CID dnid
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_CIDDNID = 0x1b,
+ /*!
+ * \brief Channel Event Peer -- for Things involving multiple channels, like BRIDGE
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_PEER = 0x1c,
+ /*!
+ * \brief Channel Event LinkedID
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_LINKEDID = 0x1d,
+ /*!
+ * \brief Channel Event peeraccount
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_PEERACCT = 0x1e,
+ /*!
+ * \brief Channel Event extra data
+ * Used by: AST_EVENT_CEL
+ * Payload type: STR
+ */
+ AST_EVENT_IE_CEL_EXTRA = 0x1f,
+ /*!
+ * \brief Description
+ * Used by: AST_EVENT_SUB, AST_EVENT_UNSUB
+ * Payload type: STR
+ */
+ AST_EVENT_IE_DESCRIPTION = 0x20,
+ /*!
+ * \brief Entity ID
+ * Used by All events
+ * Payload type: RAW
+ * This IE indicates which server the event originated from
+ */
+ AST_EVENT_IE_EID = 0x21,
};
#define AST_EVENT_IE_MAX AST_EVENT_IE_EID