PABX da Simples IP
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
796 B

phpAMI 1.0
challenge
Envia "ManagerAction_Challenge"
link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Challenge
void challenge ([string $authType = "MD5"])
string $authType: (default: MD5)
-------------Interface AMI-------------
Action: Challenge
AuthType: MD5
Response: Success
Challenge: xxxxxxxxx
---------------------------------------
----------------Ejemplo----------------
include "phpAMI.php";
$ami=new phpAMI("admin","admin");
$login=$ami->login();
if($login["Response"]=="Success"){
print_r($ami->challenge());
$ami->logoff();
}
---------------------------------------
----------Respuesta de phpAMI----------
Array
(
[Response] => Success
[Info] => Array
(
[Challenge] => xxxxxxxxx
)
)
---------------------------------------