forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
954 B
38 lines
954 B
2 years ago
|
phpAMI 1.0
|
||
|
|
||
|
queueReload
|
||
|
Envia "ManagerAction_QueueReload"
|
||
|
|
||
|
return: ver eventSimple()
|
||
|
link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_QueueReload
|
||
|
array queueReload ([string $queue = null], [string $members = null], [string $rules = null], [string $parameters = null])
|
||
|
string $queue: Cola
|
||
|
string $members: (yes or no)
|
||
|
string $rules: (yes or no)
|
||
|
string $parameters: (yes or no)
|
||
|
|
||
|
-------------Interface AMI-------------
|
||
|
Action: QueueReload
|
||
|
|
||
|
Response: Success
|
||
|
Message: Queue reloaded successfully
|
||
|
---------------------------------------
|
||
|
|
||
|
----------------Ejemplo----------------
|
||
|
include "phpAMI.php";
|
||
|
$ami=new phpAMI("admin","admin");
|
||
|
$login=$ami->login();
|
||
|
if($login["Response"]=="Success"){
|
||
|
print_r($ami->queueReload());
|
||
|
$ami->logoff();
|
||
|
}
|
||
|
---------------------------------------
|
||
|
|
||
|
----------Respuesta de phpAMI----------
|
||
|
Array
|
||
|
(
|
||
|
[Response] => Success
|
||
|
[Message] => Queue reloaded successfully
|
||
|
)
|
||
|
---------------------------------------
|