[Asterisk-Users] AGI Stderr

Douglas Garstang dgarstang at oneeighty.com
Mon Jun 12 07:52:41 MST 2006


Oh yeah, I also won't get time/date stamps if I redirect  stderr to a file like that.... 
 
> > -----Original Message-----
> > From: Douglas Garstang 
> > Sent: Monday, June 12, 2006 8:51 AM
> > To: 'Frederic Jean'
> > Subject: RE: [Asterisk-Users] AGI Stderr
> > 
> > 
> > Frederic,
> > 
> > Thanks, but that's not the best approach. I am sending all 
> > debug from my AGI script to syslog. I'd like runtime errors 
> > to go to Asterisk so that it can log them to a file. If I 
> > don't, I'll have files in three places instead of two. 
> > (syslog, errors.txt and /var/log/asterisk/*)
> > 
> > Doug.
> > 
> > > -----Original Message-----
> > > From: Frederic Jean [mailto:fjean at sunnetgroup.net]
> > > Sent: Monday, June 12, 2006 8:37 AM
> > > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > > Subject: Re: [Asterisk-Users] AGI Stderr
> > > 
> > > 
> > > 
> > > Hi Douglas,
> > > 
> > > Try this:
> > > 
> > > open(STDERR, ">/etc/asterisk/agi-bin/errors.txt")
> > > 
> > > 
> > > Fred
> > > 
> > > 
> > > ----- Original Message ----- 
> > > From: "Douglas Garstang" <dgarstang at oneeighty.com>
> > > To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
> > > <asterisk-users at lists.digium.com>
> > > Sent: Monday, June 12, 2006 11:32
> > > Subject: [Asterisk-Users] AGI Stderr
> > > 
> > > 
> > > Does anyone know how I can get stderr from AGI to be sent to 
> > > somewhere other 
> > > than the console? It seems that this is the only place it can 
> > > go. Changing 
> > > logger.conf has no effect.
> > > 
> > > If you want to see errors from AGI scripts, you have to run 
> > > the Asterisk 
> > > console, which isn't viable.
> > > 
> > > Doug.
> > > 
> > > _______________________________________________
> > > --Bandwidth and Colocation provided by Easynews.com --
> > > 
> > > Asterisk-Users mailing list
> > > To UNSUBSCRIBE or update options visit:
> > >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > --Bandwidth and Colocation provided by Easynews.com --
> > > 
> > > Asterisk-Users mailing list
> > > To UNSUBSCRIBE or update options visit:
> > >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > > 
> > 
> 



More information about the asterisk-users mailing list