Hello Steve, it's working fine, thanks for your suupport. thanks,Kamlesh
Date: Tue, 22 May 2012 10:36:20 -0700
From: asterisk@sedwards.com
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] use of Read cmd with AGI
Un-top-posting...
From: alejandro.belt
Hello,
Using AGI script to accept the input from caller but input value is not getting
stored in variable.
Extract from AGI Script:
$agi = new AGI();
$agi- exec('Background','press_one0press_two0press_zero0');
$agi- exec('Read','NUMBER,,1,3');
$agi- verbose (You have entered.$NUMBER);
On 2 Mar 2012, at 11:35, Kamlesh Kumar wrote:
$agi = new AGI();
$agi- exec('Background','press_one0press_two0press_zero0');
$agi- exec('Read','NUMBER,,1,3');
$agi- verbose (You have entered.$NUMBER);
You need to use AGI to read the Asterisk variable.. Asterisk variables don't
magically
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