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
913 B

phpAMI 1.0
agentLogoff
Envia "ManagerAction_AgentLogoff"
Hace Logoff a un agente
return: Ver eventSimple()
link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_AgentLogoff
access: public
array agentLogoff (string $agent, [bool $soft = null])
string $agent: ID del Agente
bool $soft: True para esperar que cuelge si extente una llamada
-------------Interface AMI-------------
Action: AgentLogoff
Agent: 1001
Response: Success
Message: Agent logged out
---------------------------------------
----------------Ejemplo----------------
include "phpAMI.php";
$ami=new phpAMI("admin","admin");
$login=$ami->login();
if($login["Response"]=="Success"){
print_r($ami->agentLogoff("1001",true));
$ami->logoff();
}
---------------------------------------
----------Respuesta de phpAMI----------
Array
(
[Response] => Success
[Message] => Agent logged out
)
---------------------------------------