Hello, I tried it but it doesn't work. beep file gets played, and when I enter
any digit(s), it doesn't get stored in $keys variable.
Regards,Kamlesh From: [email protected]
Date: Fri, 2 Mar 2012 08:56:14 -0500
To: [email protected]
Subject: Re: [asterisk-users] use of Read cmd with AGI
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) 4756296Movil: (57)
300-2721370www.setcolombia.com
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users