phpAMI 1.0 queueAdd envia "ManagerAction_QueueAdd" Agraga una interface a una cola return: ver eventSimple() link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_QueueAdd array queueAdd (string $queue, string $interface, [string $penalty = null], [string $paused = null], [string $memberName = null], [string $stateInterface = null]) string $queue: Cola string $interface: Interface (SIP/testphone,DAHDI/1...) string $penalty: Priorida del usuario o interface string $paused: Si el usuario podra pausar string $memberName: Nombre del miembro string $stateInterface -------------Interface AMI------------- Action: QueueAdd Queue: queue1 Interface: sip/ipphone Response: Success Message: Added interface to queue --------------------------------------- ----------------Ejemplo---------------- include "phpAMI.php"; $ami=new phpAMI("admin","admin"); $login=$ami->login(); if($login["Response"]=="Success"){ print_r($ami->queueAdd ("queue1","sip/ipphone")); $ami->logoff(); } --------------------------------------- ----------Respuesta de phpAMI---------- Array ( [Response] => Success [Message] => Added interface to queue ) Si la Interface ya esta en la cola Array ( [Response] => Error [Message] => Unable to add interface: Already there ) Si la Cola No existe Array ( [Response] => Error [Message] => Unable to add interface to queue: No such queue ) ---------------------------------------