[Asterisk-Dev] AGI Question Using Read

Trevor Peirce tpeirce at digitalcon.ca
Thu Nov 18 22:11:41 MST 2004


Nate Kapi wrote:

>I was doing something similar to this and could not get it to work
>
>$AGI->exec ("Read", "numbertocall");
>$AGI->exec ("Dial", "IAX2/username\@provider/${numbertocall}");
>
Perl interpreting your variable ${numbertocall}which probably isn't 
defined.  Turn warnings on.  Use strict.  Then you'll know about these 
things.

Fix is to escape the $, or just use single quotes instead of double.



More information about the asterisk-dev mailing list