[Asterisk-Users] Asterisk Perl AGI

Robert Boardman robb at boardman.me.uk
Tue Oct 5 11:42:24 MST 2004


Hi Victor I'm not sure but

do you have to specify a timeout and a maximum number of digits like

$filename =  "beep";
$timeout = 1500;
$maxdigits = 1;
my $pin = $AGI->get_data($filename, $timeout, $maxdigits)

Regards
Robb

Victor Cartes wrote:

> Hello everybody:
>  
>     This could be a stupid question, or may be not; I'm not sure 
> 'cause I have not a very wide experience working with Asterisk, 
> actually I just started last week. I need to make an IVR system work 
> and I choose working with AGIs, written in Perl.
>  
>     The available documentation I've found show it as a very simple 
> proccess, but it doesn't work for me... and I don't know why yet. To 
> describe you my stage y must start with my configuration in the 
> extensions.conf file. This single line should describe it:
>  
>  
> exten => 771,1,AGI,myagi.agi
>  
>  
>     Then, this is my code...
>  
> #!/usr/bin/perl
>  
> use Asterisk::AGI;
> $AGI = new Asterisk::AGI;
> my %input = $AGI->ReadParse();
>  
> $AGI->answer();
>  
> my $pin = $AGI->get_data("beep");
>
> exit(0);
>  
> Can somebody tell me why the number I enter after the "beep" is not 
> then stored in $pin ?
>  
> I'll really preciate any help.
>  
> Thanks in advance
>  
> Víctor Cartes
>  
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list