API - Channel¶
API Channel se foloseste pentru a manipula apelurile din centrala.
Datele se transmit prin POST sau GET¶
API URL¶
https://[YOUR-PBX-URL]/api/channel
Lista - arata toate canalele
Array
(
[action] => list
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Hangup - solicitati ca un canal specificat sau toate canalele sa fie inchise¶
Array
(
[action] => hangup
[data] => Array
(
[channel] => SIP/john-doe-00000027
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Originate - creati un canal nou si conectati-l la o extensie dialplan sau la o aplicatie specifica¶
Catre aplicatie¶
Array
(
[action] => originate
[data] => Array
(
[tech] => SIP/john-doe
[appname] => Playback
[appdata] => test-file
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Catre extensie¶
Array
(
[action] => originate
[data] => Array
(
[tech] => SIP/john-doe
[exten] => 10
[context] => internal
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Redirect - redirectionati un canal existent catre o extensie dialplan¶
Array
(
[action] => redirect
[data] => Array
(
[channel] => SIP/john-doe-00000027
[context] => internal
[exten] => 504
[priority] => 1
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Available in other languages: EN