[Asterisk-Dev] AGI Question Using Read
PABXCOM TELECOM
pabxcom at yahoo.ca
Thu Nov 18 23:16:55 MST 2004
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