[Asterisk-Dev] Perl AGI: get_variable

Muhammad Nasim muhammad at telappliant.com
Wed Jan 28 03:23:06 MST 2004

I think part of the problem is that when you try and use verbose to print
out a variable $temp that has just been populated by, say a
$AGI->get_variable,  $temp may contain a \n character. So when you do
$AGI->verbose("$temp\n","1" , asterisk gets 2 \n characters which causes
some of the trouble. Probably easier to write any debug to a log file.

----- Original Message -----
From: "duncan" <duncan at impede.net>
To: <asterisk-dev at lists.digium.com>
Sent: Monday, January 26, 2004 3:25 PM
Subject: Re: [Asterisk-Dev] Perl AGI: get_variable

> >Are you doing any AGI->verbose commands before your get_variable attempt?
> >so try removing these. Post your entire script file and lets have a
> yeah its worth noting at this point that ive also had serious problems
> AGI->verbose messages when using asterisk-perl.
> nothing i could put my finger on as a specific bug, but lots of wierd
> things happening that cleared up once i removed the agi verbose
> 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