[Asterisk-Dev] AGI Question Using Read

Nate Kapi natekapi at gmail.com
Fri Nov 19 00:23:58 MST 2004


I already said that I don't want to use get_data. The reason being
Read is already setup to terminate with the # key.


On Fri, 19 Nov 2004 07:16:55 +0100, PABXCOM TELECOM <pabxcom at yahoo.ca> wrote:
> use  $AGI->get_data;
> 
> Nate Kapi a écrit :
> 
> 
> 
> >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!
> >_______________________________________________
> >Asterisk-Dev mailing list
> >Asterisk-Dev at lists.digium.com
> >http://lists.digium.com/mailman/listinfo/asterisk-dev
> >To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-dev
> >
> >
> >
> 
>



More information about the asterisk-dev mailing list