...
Method | Path<br>h5. Parameters are case-sensitive | Return Model | Summary |
---|
GET | List all active channels in Asterisk. | ||
POST | Create a new channel (originate). | ||
POST | Create channel. | ||
GET | Channel details. | ||
POST | Create a new channel (originate with id). | ||
DELETE | void | Delete (i.e. hangup) a channel. | |
POST | void | Exit application; continue execution in the dialplan. | |
POST | void | Move the channel from one Stasis application to another. | |
POST | void | Redirect the channel to a different location. | |
POST | void | Answer a channel. | |
POST | void | Indicate ringing to a channel. | |
DELETE | void | Stop ringing indication on a channel if locally generated. | |
POST | void | Send provided DTMF to a given channel. | |
POST | void | Mute a channel. | |
DELETE | void | Unmute a channel. | |
POST | void | Hold a channel. | |
DELETE | void | Remove a channel from hold. | |
POST | void | Play music on hold to a channel. | |
DELETE | void | Stop playing music on hold to a channel. | |
POST | void | Play silence to a channel. | |
DELETE | void | Stop playing silence to a channel. | |
POST | Start playback of media. | ||
POST | Start playback of media and specify the playbackId. | ||
POST | Start a recording. | ||
GET | Get the value of a channel variable or function. | ||
POST | void | Set the value of a channel variable or function. | |
POST | Start snooping. | ||
POST | Start snooping. | ||
POST | void | Dial a created channel. | |
GET | RTP stats on a channel. | ||
POST | Start an External Media session. |
...
- endpoint: string - (required) Endpoint for channel communication
- app: string - (required) Stasis Application to place channel into
- appArgs: string - The application arguments to pass to the Stasis application provided by 'app'. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.
- channelId: string - The unique id to assign the channel on creation.
- otherChannelId: string - The unique id to assign the second channel when using local channels.
- originator: string - Unique ID of the calling channel
- formats: string - The format name capability list to use if originator is not specified. Ex. "ulaw,slin16". Format names can be found with "core show codecs".
Body parameter
- variables: containers - The "variables" key in the body object holds variable key/value pairs to set on the channel on creation. Other keys in the body object are interpreted as query parameters. Ex. { "endpoint": "SIP/Alice", "variables": { "CALLERID(name)": "Alice" } }
Error Responses
- 409 - Channel with given unique ID already exists.
...
- endpoint: string - (required) Endpoint to call.
- extension: string - The extension to dial after the endpoint answers. Mutually exclusive with 'app'.
- context: string - The context to dial after the endpoint answers. If omitted, uses 'default'. Mutually exclusive with 'app'.
- priority: long - The priority to dial after the endpoint answers. If omitted, uses 1. Mutually exclusive with 'app'.
- label: string - The label to dial after the endpoint answers. Will supersede 'priority' if provided. Mutually exclusive with 'app'.
- app: string - The application that is subscribed to the originated channel. When the channel is answered, it will be passed to this Stasis application. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.
- appArgs: string - The application arguments to pass to the Stasis application provided by 'app'. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.
- callerId: string - CallerID to use when dialing the endpoint or extension.
- timeout: int - Timeout (in seconds) before giving up dialing, or -1 for no timeout.
- Default: 30
- otherChannelId: string - The unique id to assign the second channel when using local channels.
- originator: string - The unique id of the channel which is originating this one.
- formats: string - The format name capability list to use if originator is not specified. Ex. "ulaw,slin16". Format names can be found with "core show codecs".
Body parameter
- variables: containers - The "variables" key in the body object holds variable key/value pairs to set on the channel on creation. Other keys in the body object are interpreted as query parameters. Ex. { "endpoint": "SIP/Alice", "variables": { "CALLERID(name)": "Alice" } }
...
- channelId: string - The unique id to assign the channel on creation.
- app: string - (required) Stasis Application to place channel into
- external_host: string - (required) Hostname/ip:port of external host
- encapsulation: string - Payload encapsulation protocol
- Default: rtp
- Allowed values: rtp
- transport: string - Transport protocol
- Default: udp
- Allowed values: udp
- connection_type: string - Connection type (client/server)
- Default: client
- Allowed values: client
- format: string - (required) Format to encode audio in
- direction: string - External media direction
- Default: both
- Allowed values: both
Body parameter
- variables: containers - The "variables" key in the body object holds variable key/value pairs to set on the channel on creation. Other keys in the body object are interpreted as query parameters. Ex. { "endpoint": "SIP/Alice", "variables": { "CALLERID(name)": "Alice" } }
...