[Asterisk-Dev] AGI Question Using Read
Nate Kapi
natekapi at gmail.com
Thu Nov 18 18:53:56 MST 2004
I was trying to use read to get input and set it as a variable to use
in the dial string but I am having problems and the variable is
getting set to a null value.
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}");
Also i tried using the "SetVar" command like this and setting the
variable after read then using this variable in the dial command
instead
$AGI->exec ("SetVar", "destnumber=${numbertocall}");
$AGI->exec ("Dial", "IAX2/username\@provider/${destnumbertocall}");
I really need to use the read command instead of get data.
Any help here is very much appreciated. I am doing my best trying to learn.
Thank you!
More information about the asterisk-dev
mailing list