Asterisk - The Open Source Telephony Project
21.4.1
|
Generic event system. More...
Go to the source code of this file.
Data Structures | |
struct | ast_event_iterator |
supposed to be an opaque type More... | |
Enumerations | |
enum | ast_event_ie_pltype { AST_EVENT_IE_PLTYPE_UNKNOWN = -1, AST_EVENT_IE_PLTYPE_EXISTS, AST_EVENT_IE_PLTYPE_UINT, AST_EVENT_IE_PLTYPE_STR, AST_EVENT_IE_PLTYPE_RAW, AST_EVENT_IE_PLTYPE_BITFLAGS } |
Payload types for event information elements. More... | |
enum | ast_event_ie_type { AST_EVENT_IE_END = -1, AST_EVENT_IE_NEWMSGS = 0x0001, AST_EVENT_IE_OLDMSGS = 0x0002, AST_EVENT_IE_MAILBOX = 0x0003, AST_EVENT_IE_UNIQUEID = 0x0004, AST_EVENT_IE_EVENTTYPE = 0x0005, AST_EVENT_IE_EXISTS = 0x0006, AST_EVENT_IE_DEVICE = 0x0007, AST_EVENT_IE_STATE = 0x0008, AST_EVENT_IE_CONTEXT = 0x0009, AST_EVENT_IE_CEL_EVENT_TYPE = 0x000a, AST_EVENT_IE_CEL_EVENT_TIME = 0x000b, AST_EVENT_IE_CEL_EVENT_TIME_USEC = 0x000c, AST_EVENT_IE_CEL_USEREVENT_NAME = 0x000d, AST_EVENT_IE_CEL_CIDNAME = 0x000e, AST_EVENT_IE_CEL_CIDNUM = 0x000f, AST_EVENT_IE_CEL_EXTEN = 0x0010, AST_EVENT_IE_CEL_CONTEXT = 0x0011, AST_EVENT_IE_CEL_CHANNAME = 0x0012, AST_EVENT_IE_CEL_APPNAME = 0x0013, AST_EVENT_IE_CEL_APPDATA = 0x0014, AST_EVENT_IE_CEL_AMAFLAGS = 0x0015, AST_EVENT_IE_CEL_ACCTCODE = 0x0016, AST_EVENT_IE_CEL_UNIQUEID = 0x0017, AST_EVENT_IE_CEL_USERFIELD = 0x0018, AST_EVENT_IE_CEL_CIDANI = 0x0019, AST_EVENT_IE_CEL_CIDRDNIS = 0x001a, AST_EVENT_IE_CEL_CIDDNID = 0x001b, AST_EVENT_IE_CEL_PEER = 0x001c, AST_EVENT_IE_CEL_LINKEDID = 0x001d, AST_EVENT_IE_CEL_PEERACCT = 0x001e, AST_EVENT_IE_CEL_EXTRA = 0x001f, AST_EVENT_IE_DESCRIPTION = 0x0020, AST_EVENT_IE_EID = 0x0021, AST_EVENT_IE_SECURITY_EVENT = 0x0022, AST_EVENT_IE_EVENT_VERSION = 0x0023, AST_EVENT_IE_SERVICE = 0x0024, AST_EVENT_IE_MODULE = 0x0025, AST_EVENT_IE_ACCOUNT_ID = 0x0026, AST_EVENT_IE_SESSION_ID = 0x0027, AST_EVENT_IE_SESSION_TV = 0x0028, AST_EVENT_IE_ACL_NAME = 0x0029, AST_EVENT_IE_LOCAL_ADDR = 0x002a, AST_EVENT_IE_REMOTE_ADDR = 0x002b, AST_EVENT_IE_EVENT_TV = 0x002c, AST_EVENT_IE_REQUEST_TYPE = 0x002d, AST_EVENT_IE_REQUEST_PARAMS = 0x002e, AST_EVENT_IE_AUTH_METHOD = 0x002f, AST_EVENT_IE_SEVERITY = 0x0030, AST_EVENT_IE_EXPECTED_ADDR = 0x0031, AST_EVENT_IE_CHALLENGE = 0x0032, AST_EVENT_IE_RESPONSE = 0x0033, AST_EVENT_IE_EXPECTED_RESPONSE = 0x0034, AST_EVENT_IE_RECEIVED_CHALLENGE = 0x0035, AST_EVENT_IE_RECEIVED_HASH = 0x0036, AST_EVENT_IE_USING_PASSWORD = 0x0037, AST_EVENT_IE_ATTEMPTED_TRANSPORT = 0x0038, AST_EVENT_IE_PRESENCE_PROVIDER = 0x0039, AST_EVENT_IE_PRESENCE_STATE = 0x003a, AST_EVENT_IE_PRESENCE_SUBTYPE = 0x003b, AST_EVENT_IE_PRESENCE_MESSAGE = 0x003c, AST_EVENT_IE_CACHABLE = 0x003d, AST_EVENT_IE_NODE_ID = 0x003e, AST_EVENT_IE_TOTAL = 0x003f } |
Event Information Element types. More... | |
enum | ast_event_subscriber_res { AST_EVENT_SUB_NONE, AST_EVENT_SUB_EXISTS } |
Results for checking for subscribers. More... | |
enum | ast_event_type { AST_EVENT_ALL = 0x00, AST_EVENT_CUSTOM = 0x01, AST_EVENT_MWI = 0x02, AST_EVENT_SUB = 0x03, AST_EVENT_UNSUB = 0x04, AST_EVENT_DEVICE_STATE = 0x05, AST_EVENT_DEVICE_STATE_CHANGE = 0x06, AST_EVENT_CEL = 0x07, AST_EVENT_SECURITY = 0x08, AST_EVENT_NETWORK_CHANGE = 0x09, AST_EVENT_PRESENCE_STATE = 0x0a, AST_EVENT_ACL_CHANGE = 0x0b, AST_EVENT_PING = 0x0c, AST_EVENT_CLUSTER_DISCOVERY = 0x0d, AST_EVENT_TOTAL = 0x0e } |
Generic event system.
Definition in file event_defs.h.
enum ast_event_ie_pltype |
Payload types for event information elements.
Definition at line 321 of file event_defs.h.
enum ast_event_ie_type |
Event Information Element types.
Definition at line 68 of file event_defs.h.
Results for checking for subscribers.
Enumerator | |
---|---|
AST_EVENT_SUB_NONE |
No subscribers exist |
AST_EVENT_SUB_EXISTS |
At least one subscriber exists |
Definition at line 336 of file event_defs.h.
enum ast_event_type |
Enumerator | |
---|---|
AST_EVENT_ALL |
Reserved to provide the ability to subscribe to all events. A specific event should never have a payload of 0. |
AST_EVENT_CUSTOM |
This event type is reserved for use by third-party modules to create custom events without having to modify this file.
|
AST_EVENT_MWI |
Voicemail message waiting indication |
AST_EVENT_SUB |
Someone has subscribed to events |
AST_EVENT_UNSUB |
Someone has unsubscribed from events |
AST_EVENT_DEVICE_STATE |
The aggregate state of a device across all servers configured to be a part of a device state cluster has changed. |
AST_EVENT_DEVICE_STATE_CHANGE |
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_CEL |
Channel Event Logging events |
AST_EVENT_SECURITY |
A report of a security related event (see security_events.h) |
AST_EVENT_NETWORK_CHANGE |
Used by res_stun_monitor to alert listeners to an exernal network address change. |
AST_EVENT_PRESENCE_STATE |
The presence state for a presence provider |
AST_EVENT_ACL_CHANGE |
Used to alert listeners when a named ACL has changed. |
AST_EVENT_PING |
Send out a ping for debugging distributed events |
AST_EVENT_CLUSTER_DISCOVERY |
A cluster discovery message |
AST_EVENT_TOTAL |
Number of event types. This should be the last event type + 1 |
Definition at line 28 of file event_defs.h.