[asterisk-users] use of Read cmd with AGI

Luis Alejandro Beltran Castañeda alejandro.beltran at setcolombia.com
Fri Mar 2 07:56:14 CST 2012


Hi, try some like this:

in SOME_AGI.agi:

$agi = new AGI();
$agi->answer();

$_result = $agi->get_data('beep', 3000, 20);
$keys = $_result['result'];
$agi->set_variable("TECLA", $keys);
...

In the Dialplan:

exten => s,1,Agi(SOME_AGI.agi)
exten => s,n,NoOp(You have entered: ${TECLA})
....

That way you export the variable "TECLA" to Asterisk dialplan....

Regards!

Atentamente,
-- 
Luis Alejandro Beltrán Castañeda.
Gerente General.
SetColombia SAS.
Bogota - Colombia.
Tel/Fax: (571) 4756296
Movil: (57) 300-2721370
www.setcolombia.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120302/2a483b63/attachment.htm>


More information about the asterisk-users mailing list