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.
51 lines
2.0 KiB
51 lines
2.0 KiB
2 years ago
|
phpAMI 1.0
|
||
|
|
||
|
queues
|
||
|
Envia "ManagerAction_Queues"
|
||
|
|
||
|
return: ( [0] => queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 16s talktime), W:0, C:3, A:2, SL:33.3% within 0s [1] => Members: [2] => Agent/1001 (Unavailable) has taken 3 calls (last was 221365 secs ago) [3] => No Callers [4] => queue2 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s [5] => Members: [6] => Agent/1001 (Unavailable) has taken no calls yet [7] => No Callers )
|
||
|
link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Queues
|
||
|
access: public
|
||
|
Array queues ()
|
||
|
|
||
|
-------------Interface AMI-------------
|
||
|
Action: Queues
|
||
|
|
||
|
queue1 has 1 calls (max unlimited) in 'ringall' strategy (0s holdtime, 16s talktime), W:0, C:3, A:1, SL:33.3% within 0s
|
||
|
Members:
|
||
|
Agent/1001 (Unavailable) has taken 3 calls (last was 220289 secs ago)
|
||
|
Callers:
|
||
|
1. SIP/ipphone-00000055 (wait: 0:09, prio: 0)
|
||
|
|
||
|
queue2 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
|
||
|
Members:
|
||
|
Agent/1001 (Unavailable) has taken no calls yet
|
||
|
No Callers
|
||
|
---------------------------------------
|
||
|
|
||
|
----------------Ejemplo----------------
|
||
|
include "phpAMI.php";
|
||
|
$ami=new phpAMI("admin","admin");
|
||
|
$login=$ami->login();
|
||
|
if($login["Response"]=="Success"){
|
||
|
print_r($ami->queues());
|
||
|
$ami->logoff();
|
||
|
}
|
||
|
---------------------------------------
|
||
|
|
||
|
----------Respuesta de phpAMI----------
|
||
|
Array
|
||
|
(
|
||
|
[0] => queue1 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
|
||
|
[1] => Members:
|
||
|
[2] => as (dynamic) (Invalid) has taken no calls yet
|
||
|
[3] => Agent/1001 (Unavailable) has taken no calls yet
|
||
|
[4] => sip/elter (dynamic) (Unknown) has taken no calls yet
|
||
|
[5] => No Callers
|
||
|
[6] => queue2 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0% within 0s
|
||
|
[7] => Members:
|
||
|
[8] => Agent/1001 (Unavailable) has taken no calls yet
|
||
|
[9] => No Callers
|
||
|
)
|
||
|
---------------------------------------
|