...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "properties": { "status": { "required": false, "type": "StatusInfo", "description": "Info about Asterisk status" }, "config": { "required": false, "type": "ConfigInfo", "description": "Info about Asterisk configuration" }, "build": { "required": false, "type": "BuildInfo", "description": "Info about how Asterisk was built" }, "system": { "required": false, "type": "SystemInfo", "description": "Info about the system running Asterisk" } }, "id": "AsteriskInfo", "description": "Asterisk system information" } |
- build: BuildInfo (optional) - Info about how Asterisk was built
- config: ConfigInfo (optional) - Info about Asterisk configuration
- status: StatusInfo (optional) - Info about Asterisk status
- system: SystemInfo (optional) - Info about the system running Asterisk
...
- default_language: string - Default language for media playback.
- max_channels: int (optional) - Maximum number of simultaneous channels.
- max_load: double (optional) - Maximum load avg on system.
- max_open_files: int (optional) - Maximum number of open file handles (files, sockets).
- name: string - Asterisk system name.
- setid: SetId - Effective user/group id for running Asterisk.
...
- body: string - The text of the message.
- from: string - A technology specific URI specifying the source of the message. For sip and pjsip technologies, any SIP URI can be specified. For xmpp, the URI must correspond to the client connection being used to send the message.
- to: string - A technology specific URI specifying the destination of the message. Valid technologies include sip, pjsip, and xmp. The destination of a message should be an endpoint.
- variables: object (optional) - Technology specific key/value pairs (JSON object) associated with the message.
...
Code Block | ||||
---|---|---|---|---|
| ||||
{
"properties": {
"accountcode": {
"required": true,
"type": "string"
},
"name": {
"required": true,
"type": "string",
"description": "Name of the channel (i.e. SIP/foo-0000a7e3)"
},
"language": {
"required": true,
"type": "string",
"description": "The default spoken language"
},
"protocol_id": {
"required": true,
"type": "string",
"description": "Protocol id from underlying channel driver (i.e. Call-ID for chan_sip/chan_pjsip; will be empty if not applicable or not implemented by driver)."
},
"channelvars": {
"required": false,
"type": "object",
"description": "Channel variables"
},
"caller": {
"required": true,
"type": "CallerID"
},
"creationtime": {
"required": true,
"type": "Date",
"description": "Timestamp when channel was created"
},
"state": {
"allowableValues": {
"valueType": "LIST",
"values": [
"Down",
"Rsrved",
"OffHook",
"Dialing",
"Ring",
"Ringing",
"Up",
"Busy",
"Dialing Offhook",
"Pre-ring",
"Unknown"
]
},
"required": true,
"type": "string"
},
"connected": {
"required": true,
"type": "CallerID"
},
"dialplan": {
"required": true,
"type": "DialplanCEP",
"description": "Current location in the dialplan"
},
"id": {
"required": true,
"type": "string",
"description": "Unique identifier of the channel.\n\nThis is the same as the Uniqueid field in AMI."
}
},
"id": "Channel",
"description": "A specific communication connection between Asterisk and an Endpoint."
}
|
- accountcode: string
- caller: CallerID
- channelvars: object (optional) - Channel variables
- connected: CallerID
- creationtime: Date - Timestamp when channel was created
- dialplan: DialplanCEP - Current location in the dialplan
- id: string - Unique identifier of the channel.
...
- language: string - The default spoken language
- name: string - Name of the channel (i.e. SIP/foo-0000a7e3)
- protocol_id: string - Protocol id from underlying channel driver (i.e. Call-ID for chan_sip/chan_pjsip; will be empty if not applicable or not implemented by driver).
- state: string
Dialed
Dialed channel information.
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "properties": { "text": { "required": false, "type": "string", "description": "Text description of the sound, usually the words spoken." }, "id": { "required": true, "type": "string", "description": "Sound's identifier." }, "formats": { "required": true, "type": "List[FormatLangPair]", "description": "The formats and languages in which this sound is available." } }, "id": "Sound", "description": "A media file that may be played back." } |
- formats: List[FormatLangPair] - The formats and languages in which this sound is available.
- id: string - Sound's identifier.
- text: string (optional) - Text description of the sound, usually the words spoken.
...
ApplicationMoveFailed
Base type: Event
Notification that trying to move a channel to another Stasis application failed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- args: List[string] - Arguments to the application
- channel: Channel
- destination: string
ApplicationReplaced
Base type: Event
Notification that another WebSocket has taken over for an application.
...
BridgeAttendedTransfer
Base type: Event
Notification that an attended transfer has occurred.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- destination_application: string (optional) - Application that has been transferred into
- destination_bridge: string (optional) - Bridge that survived the merge result
- destination_link_first_leg: Channel (optional) - First leg of a link transfer result
- destination_link_second_leg: Channel (optional) - Second leg of a link transfer result
- destination_threeway_bridge: Bridge (optional) - Bridge that survived the threeway result
- destination_threeway_channel: Channel (optional) - Transferer channel that survived the threeway result
- destination_type: string - How the transfer was accomplished
- is_external: boolean - Whether the transfer was externally initiated or not
- replace_channel: Channel (optional) - The channel that is replacing transferer_first_leg in the swap
- result: string - The result of the transfer attempt
- transfer_target: Channel (optional) - The channel that is being transferred to
- transferee: Channel (optional) - The channel that is being transferred
- transferer_first_leg: Channel - First leg of the transferer
- transferer_first_leg_bridge: Bridge (optional) - Bridge the transferer first leg is in
- transferer_second_leg: Channel - Second leg of the transferer
- transferer_second_leg_bridge: Bridge (optional) - Bridge the transferer second leg is in
BridgeBlindTransfer
Base type: Event
Notification that a blind transfer has occurred.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- bridge: Bridge (optional) - The bridge being transferred
- channel: Channel - The channel performing the blind transfer
- context: string - The context transferred to
- exten: string - The extension transferred to
- is_external: boolean - Whether the transfer was externally initiated or not
- replace_channel: Channel (optional) - The channel that is replacing transferer when the transferee(s) can not be transferred directly
- result: string - The result of the transfer attempt
- transferee: Channel (optional) - The channel that is being transferred
BridgeCreated
Base type: Event
Notification that a bridge has been created.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- bridge: Bridge
BridgeDestroyed
Base type: Event
Notification that a bridge has been destroyed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- bridge: Bridge
BridgeMerged
Base type: Event
Notification that one bridge has merged into another.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- bridge: Bridge
- bridge_from: Bridge
BridgeVideoSourceChanged
Base type: Event
Notification that the source of video in a bridge has changed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- bridge: Bridge
- old_video_source_id: string (optional)
ChannelCallerId
Base type: Event
Channel changed Caller ID.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- caller_presentation: int - The integer representation of the Caller Presentation value.
- caller_presentation_txt: string - The text representation of the Caller Presentation value.
- channel: Channel - The channel that changed Caller ID.
ChannelConnectedLine
Base type: Event
Channel changed Connected Line.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel - The channel whose connected line has changed.
ChannelCreated
Base type: Event
Notification that a channel has been created.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel
ChannelDestroyed
Base type: Event
Notification that a channel has been destroyed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- cause: int - Integer representation of the cause of the hangup
- cause_txt: string - Text representation of the cause of the hangup
- channel: Channel
ChannelDialplan
Base type: Event
Channel changed location in the dialplan.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel - The channel that changed dialplan location.
- dialplan_app: string - The application about to be executed.
- dialplan_app_data: string - The data to be passed to the application.
ChannelDtmfReceived
Base type: Event
DTMF received on a channel.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel - The channel on which DTMF was received
- digit: string - DTMF digit received (0-9, A-E, # or *)
- duration_ms: int - Number of milliseconds DTMF was received
ChannelEnteredBridge
Base type: Event
Notification that a channel has entered a bridge.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- bridge: Bridge
- channel: Channel (optional)
ChannelHangupRequest
Base type: Event
A hangup was requested on the channel.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- cause: int (optional) - Integer representation of the cause of the hangup.
- channel: Channel - The channel on which the hangup was requested.
- soft: boolean (optional) - Whether the hangup request was a soft hangup request.
ChannelHold
Base type: Event
A channel initiated a media hold.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel - The channel that initiated the hold event.
- musicclass: string (optional) - The music on hold class that the initiator requested.
ChannelLeftBridge
Base type: Event
Notification that a channel has left a bridge.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- bridge: Bridge
- channel: Channel
ChannelStateChange
Base type: Event
Notification of a channel's state change.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel
ChannelTalkingFinished
Base type: Event
Talking is no longer detected on the channel.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel - The channel on which talking completed.
- duration: int - The length of time, in milliseconds, that talking was detected on the channel
ChannelTalkingStarted
Base type: Event
Talking was detected on the channel.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel - The channel on which talking started.
ChannelUnhold
Base type: Event
A channel initiated a media unhold.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel - The channel that initiated the unhold event.
ChannelUserevent
Base type: Event
User-generated event with additional user-defined fields in the object.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- bridge: Bridge (optional) - A bridge that is signaled with the user event.
- channel: Channel (optional) - A channel that is signaled with the user event.
- endpoint: Endpoint (optional) - A endpoint that is signaled with the user event.
- eventname: string - The name of the user event.
- userevent: object - Custom Userevent data
ChannelVarset
Base type: Event
Channel variable changed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel (optional) - The channel on which the variable was set.
...
ContactStatusChange
Base type: Event
The state of a contact on an endpoint has changed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- contact_info: ContactInfo
- endpoint: Endpoint
DeviceStateChanged
Base type: Event
Notification that a device state has changed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- device_state: DeviceState - Device state object
Dial
Base type: Event
Dialing state has changed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- caller: Channel (optional) - The calling channel.
- dialstatus: string - Current status of the dialing attempt to the peer.
- dialstring: string (optional) - The dial string for calling the peer channel.
- forward: string (optional) - Forwarding target requested by the original dialed channel.
- forwarded: Channel (optional) - Channel that the caller has been forwarded to.
- peer: Channel - The dialed channel.
EndpointStateChange
Base type: Event
Endpoint state changed.
Code Block | ||||
---|---|---|---|---|
| ||||
{ "properties": { "endpoint": { "required": true, "type": "Endpoint" } }, "id": "EndpointStateChange", "description": "Endpoint state changed." } |
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- endpoint: Endpoint
Event
Base type: Message
Subtypes: ApplicationMoveFailed ApplicationReplaced BridgeAttendedTransfer BridgeBlindTransfer BridgeCreated BridgeDestroyed BridgeMerged BridgeVideoSourceChanged ChannelCallerId ChannelConnectedLine ChannelCreated ChannelDestroyed ChannelDialplan ChannelDtmfReceived ChannelEnteredBridge ChannelHangupRequest ChannelHold ChannelLeftBridge ChannelStateChange ChannelTalkingFinished ChannelTalkingStarted ChannelUnhold ChannelUserevent ChannelVarset ContactStatusChange DeviceStateChanged Dial EndpointStateChange PeerStatusChange PlaybackContinuing PlaybackFinished PlaybackStarted RecordingFailed RecordingFinished RecordingStarted StasisEnd StasisStart TextMessageReceived
Base type for asynchronous events from Asterisk.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
Message
Subtypes: ApplicationMoveFailed ApplicationReplaced BridgeAttendedTransfer BridgeBlindTransfer BridgeCreated BridgeDestroyed BridgeMerged BridgeVideoSourceChanged ChannelCallerId ChannelConnectedLine ChannelCreated ChannelDestroyed ChannelDialplan ChannelDtmfReceived ChannelEnteredBridge ChannelHangupRequest ChannelHold ChannelLeftBridge ChannelStateChange ChannelTalkingFinished ChannelTalkingStarted ChannelUnhold ChannelUserevent ChannelVarset ContactStatusChange DeviceStateChanged Dial EndpointStateChange Event MissingParams PeerStatusChange PlaybackContinuing PlaybackFinished PlaybackStarted RecordingFailed RecordingFinished RecordingStarted StasisEnd StasisStart TextMessageReceived
Base type for errors and events
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
MissingParams
Base type: Message
Error event sent when required params are missing.
...
PeerStatusChange
Base type: Event
The state of a peer associated with an endpoint has changed.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- endpoint: Endpoint
- peer: Peer
PlaybackContinuing
Base type: Event
Event showing the continuation of a media playback operation from one media URI to the next in the list.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- playback: Playback - Playback control object
PlaybackFinished
Base type: Event
Event showing the completion of a media playback operation.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- playback: Playback - Playback control object
PlaybackStarted
Base type: Event
Event showing the start of a media playback operation.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- playback: Playback - Playback control object
RecordingFailed
Base type: Event
Event showing failure of a recording operation.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- recording: LiveRecording - Recording control object
RecordingFinished
Base type: Event
Event showing the completion of a recording operation.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- recording: LiveRecording - Recording control object
RecordingStarted
Base type: Event
Event showing the start of a recording operation.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- recording: LiveRecording - Recording control object
StasisEnd
Base type: Event
Notification that a channel has left a Stasis application.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- channel: Channel
StasisStart
Base type: Event
Notification that a channel has entered a Stasis application.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- args: List[string] - Arguments to the application
- channel: Channel
- replace_channel: Channel (optional)
TextMessageReceived
Base type: Event
A text message was received from an endpoint.
...
- asterisk_id: string (optional) - The unique ID for the Asterisk instance that raised this event.
- type: string - Indicates the type of this message.
- application: string - Name of the application receiving the event.
- timestamp: Date - Time at which this event was created.
- endpoint: Endpoint (optional)
- message: TextMessage
Application
Details of a Stasis application
...
- bridge_ids: List[string] - Id's for bridges subscribed to.
- channel_ids: List[string] - Id's for channels subscribed to.
- device_names: List[string] - Names of the devices subscribed to.
- endpoint_ids: List[string] - {tech}/{resource} for endpoints subscribed to.
- events_allowed: List[object] - Event types sent to the application.
- events_disallowed: List[object] - Event types not sent to the application.
- name: string - Name of this application