[Asterisk-Dev] Perl AGI: get_variable
Muhammad Nasim
muhammad at telappliant.com
Mon Jan 26 04:06:19 MST 2004
Are you doing any AGI->verbose commands before your get_variable attempt? If
so try removing these. Post your entire script file and lets have a look...
----- Original Message -----
From: "duncan" <duncan at impede.net>
To: <asterisk-dev at lists.digium.com>
Sent: Sunday, January 25, 2004 10:04 PM
Subject: Re: [Asterisk-Dev] Perl AGI: get_variable
>
> >Anyone out there that can help me with the Perl AGI library?
> >
> >I can't read any variable with get_variable.
> >
> > $acc = $AGI->get_variable("ACCOUNTCODE");
> >
> >Just downloaded 0.08 from gnuinter.net
> >
> >Tested with both global variables, like ACCOUNTCODE and local variables
> >created with setvar().
> >
> >Would appreciate any examples!
>
> try: $acc = $AGI->get_variable('accountcode');
>
> i dont think asterisk-perl likes "" being used as quotes
>
> hope this helps
>
>
>
>
> duncan
>
> _______________________________________________
> 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