[asterisk-users] How can I use the "GET VARIABLE variablename" in AGI

Lee Jenkins lee at datatrakpos.com
Thu Mar 1 20:27:05 MST 2007


李君 wrote:
> Hi,All,
> 
>  I wang to use AGI in asterisk1.4.
>  AGI file / myperl.agi
> 
>  #!/usr/bin/perl
> use strict;
> ...... 
> 	print STDERR "7.  Testing GET VARIABLE...";
> 	print "GET VARIABLE EXTEN \"\"\n";
> 	my $result = <STDIN>;
> 	&checkresult($result);
> 
> ......
> 

I don't know perl, but try either taking the escaped quotes out or
surrounding EXTEN with them.


-- 

Warm Regards,

Lee



More information about the asterisk-users mailing list