phpAMI 1.0 bridge Envia "ManagerAction_Bridge" Une dos canales return: ver eventSimple() link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Bridge array bridge (string $channel1, string $channel2, [string $tone = "no"]) string $channel1: primer canal string $channel2: segundo canal string $tone: "yes" para que suene un tono al canal 2 antes de unir (default: "no") -------------Interface AMI------------- Action: Bridge Channel1:SIP/ipphone-xxxxxxxx Channel2:DAHDI/2-1 Tone:yes Response: Success Message: Launched bridge thread with success --------------------------------------- ----------------Ejemplo---------------- include "phpAMI.php"; $ami=new phpAMI("admin","admin"); $login=$ami->login(); if($login["Response"]=="Success"){ print_r($ami->bridge("DAHDI/2-1","SIP/ipphone-xxxxxxxxx","yes")); $ami->logoff(); } --------------------------------------- ----------Respuesta de phpAMI---------- Array ( [Response] => Success [Message] => Launched bridge thread with success ) Si uno de los canales no existe Responde Array ( [Response] => Error [Message] => Channel1 does not exists: DAHDI/2-1 ) ---------------------------------------