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.
 
 
 
 
 
 

93 lines
1.9 KiB

phpAMI 1.0
parkedCalls
Envia "ManagerAction_ParkedCalls"
Lista llamadas estacionadas
return: Ver listEvent()
link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_ParkedCalls
access: public
array parkedCalls ()
-------------Interface AMI-------------
Action: ParkedCalls
Response: Success
Message: Parked calls will follow
Event: ParkedCall
Parkinglot: default
Exten: 701
Channel: SIP/ipphone-00000022
From: DAHDI/2-1
Timeout: 39
CallerIDNum: 11
CallerIDName: Cuarto Tito
ConnectedLineNum: 10
ConnectedLineName: Rodriguez Sala
Event: ParkedCallsComplete
Total: 1
---------------------------------------
----------------Ejemplo----------------
include "phpAMI.php";
$ami=new phpAMI("admin","admin");
$login=$ami->login();
if($login["Response"]=="Success"){
print_r($ami->parkedCalls());
$ami->logoff();
}
---------------------------------------
----------Respuesta de phpAMI----------
Array
(
[Response] => Success
[Message] => Parked calls will follow
[List] => Array
(
[default:701] => Array
(
[Event] => ParkedCall
[Parkinglot] => default
[Exten] => 701
[Channel] => SIP/eltercera-00000009
[From] => SIP/ipphone-0000000b
[Timeout] => 13
[CallerIDNum] => 12
[CallerIDName] => Tito Cell
[ConnectedLineNum] =>
[ConnectedLineName] =>
)
)
[ListInfo] => Array
(
[Event] => ParkedCallsComplete
[Total] => 1
)
)
Sin llamadas Estacionadas:
Array
(
[Response] => Success
[Message] => Parked calls will follow
[List] => Array
(
)
[ListInfo] => Array
(
[Event] => ParkedCallsComplete
[Total] => 0
)
)
---------------------------------------