API - Tools¶
API Tools se foloseste pentru diverse actiuni in centrala.
Datele se transmit prin POST sau GET¶
API URL¶
https://[YOUR-PBX-URL]/api/tools
Restart / Abort PBX¶
Parametrul action poate avea valorile: restart_now, restart_gracefully, restart_when_convenient, abort_shutdown
Array
(
[action] => restart_now
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Kill process¶
Parametrul action trebuie sa aiba valoriea: kill iar "process" poate fi: push-server.php | events-watcher.php | events-watcher-push.php
Array
(
[action] => kill
[data] => Array
(
[process] => push-server.php
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Execute task¶
Parametrul action trebuie sa aiba valoriea: execute_task iar "task_id" este ID-ul task-ului
Array
(
[action] => execute_task
[data] => Array
(
[task_id] => 1
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Disponibil si in alte limbi: EN