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
1.1 KiB
51 lines
1.1 KiB
phpAMI 1.0 |
|
|
|
aTxfer |
|
Envia "ManagerAction_Atxfer" |
|
|
|
Trasferencia Antendida |
|
|
|
return: ver eventSimple() |
|
link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Atxfer |
|
array aTxfer (string $channel, string $context, string $exten, starin $priority) |
|
string $channel: Canal |
|
string $context: Contexto |
|
string $exten: Extencion |
|
starin $priority: Prioridad de extentncion |
|
|
|
-------------Interface AMI------------- |
|
Action: Atxfer |
|
Exten: 500 |
|
Context: home |
|
Priority: 1 |
|
Channel: DAHDI/2-1 |
|
|
|
Response: Success |
|
Message: Atxfer successfully queued |
|
--------------------------------------- |
|
|
|
----------------Ejemplo---------------- |
|
|
|
--------------------------------------- |
|
<?php |
|
include "phpAMI.php"; |
|
$ami=new phpAMI("admin","admin"); |
|
$login=$ami->login(); |
|
if($login["Response"]=="Success"){ |
|
print_r($ami->aTxfer ("DAHDI/2-1","contexHome","500","1")); |
|
$ami->logoff(); |
|
} |
|
?> |
|
----------Respuesta de phpAMI---------- |
|
Array |
|
( |
|
[Response] => Success |
|
[Message] => Atxfer successfully queued |
|
) |
|
Si el Canal no existe Responde: |
|
Array |
|
( |
|
[Response] => Error |
|
[Message] => Channel specified does not exist |
|
) |
|
---------------------------------------
|
|
|