[Asterisk-Dev] AGI Question Using Read
Steven Critchfield
critch at basesys.com
Thu Nov 18 21:11:46 MST 2004
On Thu, 2004-11-18 at 20:53 -0500, Nate Kapi wrote:
> 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.
First lesson then is the difference between using asterisk and doing
development work with in the code. You asked a user question,
specifically something that is outside of the C code. This is not the
forum for such a post.
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-dev
mailing list