API - Channel¶
API Channel is used to manipulate calls from the PBX.
The data is transmitted by POST or GET and must be of the form¶
API URL¶
https://[YOUR-PBX-URL]/api/channel
List - show all channels¶
Array
(
[action] => list
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Hangup - request that a specified channel or all channels be hungup¶
Array
(
[action] => hangup
[data] => Array
(
[channel] => SIP/john-doe-00000027
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Originate - create a new channel and have it connect to either a dialplan extension or a specific application¶
To application¶
Array
(
[action] => originate
[data] => Array
(
[tech] => SIP/john-doe
[appname] => Playback
[appdata] => test-file
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
To extension¶
Array
(
[action] => originate
[data] => Array
(
[tech] => SIP/john-doe
[exten] => 10
[context] => internal
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Redirect - redirect an existing channel to a dialplan extension¶
Array
(
[action] => redirect
[data] => Array
(
[channel] => SIP/john-doe-00000027
[context] => internal
[exten] => 504
[priority] => 1
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Available in other languages: RO