[Asterisk-Users] Asterisk Perl AGI
Victor Cartes
vcartes-ast at conexion.com.py
Tue Oct 5 12:29:56 MST 2004
... I'm afraid it's still don't working.
----- Original Message -----
From: "Robert Boardman" <robb at boardman.me.uk>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Tuesday, October 05, 2004 3:02 PM
Subject: Re: [Asterisk-Users] Asterisk Perl AGI
> oh on a different command
>
> show below I had to put the variable in brackets
>
> my ($returncode) = $AGI->say_digits($src,346);
>
> regards
>
> Robb
>
>
>
> Victor Cartes wrote:
>
> >Thanks Robb, but I think that it works with default values if you only
> >specify the stream file.
> >
> >I already tried specifying the timeout and maxdigits parameters also, but
it
> >didn't work neither. the experience was similar.
> >
> >I really don't know what else to try.
> >
> >Thanks once more.
> >
> >Víctor
> >
> >----- Original Message -----
> >From: "Robert Boardman" <robb at boardman.me.uk>
> >To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> ><asterisk-users at lists.digium.com>
> >Sent: Tuesday, October 05, 2004 2:42 PM
> >Subject: Re: [Asterisk-Users] Asterisk Perl AGI
> >
> >
> >
> >
> >>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
> >>>
> >>>
> >>>
> >>_______________________________________________
> >>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
> >>
> >>
> >
> >_______________________________________________
> >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
> >
> >
> >
>
> _______________________________________________
> 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