[Asterisk-Users] AGI perl problem

Eric Wieling aka ManxPower
Mon, 08 Aug 2005 13:50:02 -0000

Anish Basu wrote:
> Hi,
>
> For some reason, my AGI perl scripts cannot write to the CLI console using
> standard error.  I ran the agi-test.agi test script that came with asterisk
> and verified that the problem was not with the code.  Asterisk is always
> started with 4 or more v's, yet this the CLI output does not show up.
Have
> there been any major changes to AGI in the cvs-head?  I am using Asterisk
> CVS-D2005.08.05.

This is a known problem.  Asterisk will only send STDERR from AGI
scripts to the actual console Asterisk is running on.  You have to
switch to the actual console Asterisk is running on (tty9 I think) or
start asterisk in the foreground with "asterisk -cvvv".

It's a minor issue for most people.