[asterisk-users] use of Read cmd with AGI

Kamlesh Kumar kamlesh_kmr at hotmail.com
Tue May 22 12:02:55 CDT 2012


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: alejandro.beltran at setcolombia.com
Date: Fri, 2 Mar 2012 08:56:14 -0500
To: asterisk-users at lists.digium.com
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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120522/5e7b5544/attachment.htm>


More information about the asterisk-users mailing list