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.
39 lines
778 B
39 lines
778 B
2 years ago
|
phpAMI 1.0
|
||
|
ping
|
||
|
Envia "ManagerAction_Ping"
|
||
|
|
||
|
return: ver responceInfo()
|
||
|
link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Ping
|
||
|
array ping ()
|
||
|
|
||
|
-------------Interface AMI-------------
|
||
|
Action: Ping
|
||
|
|
||
|
Response: Success
|
||
|
Ping: Pong
|
||
|
Timestamp: 1330103825.133687
|
||
|
---------------------------------------
|
||
|
|
||
|
----------------Ejemplo----------------
|
||
|
include "phpAMI.php";
|
||
|
$ami=new phpAMI("user","pass","host");
|
||
|
$login=$ami->login();
|
||
|
if($login["Response"]=="Success"){
|
||
|
print_r($ami->ping());
|
||
|
$ami->logoff();
|
||
|
}
|
||
|
---------------------------------------
|
||
|
|
||
|
----------Respuesta de phpAMI----------
|
||
|
Array
|
||
|
(
|
||
|
[Response] => Success
|
||
|
[Info] => Array
|
||
|
(
|
||
|
[Ping] => Pong
|
||
|
[Timestamp] => 1330450561.021160
|
||
|
)
|
||
|
|
||
|
)
|
||
|
---------------------------------------
|