[asterisk-users] use of Read cmd with AGI

Steven Howes steve-lists at geekinter.net
Fri Mar 2 05:44:36 CST 2012

On 2 Mar 2012, at 11:35, Kamlesh Kumar wrote:
> $agi = new AGI();
> $agi-> exec('Background','press_one0&press_two0&press_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 become PHP ones.. Or you get Asterisk to process it instead using ${NUMBER}.

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

More information about the asterisk-users mailing list