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

--
_____________________________________________________________________
-- 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

Reply via email to