[Asterisk-Users] Asterisk Debugging

Tzafrir Cohen tzafrir at cohens.org.il
Thu Jan 5 14:34:26 MST 2006


On Thu, Jan 05, 2006 at 10:19:23AM -0700, Douglas Garstang wrote:
> I'd like to have Asterisk log useful messages during operation.
> 
> Is there any way in extensions.conf that I can manually log messages 
> to a file, say via syslog()? The console output is ugly, with all the 
> extra "Executing NoOp("SIP/pstn.voip.com-08a28bd0"," crud at the front 
> of each line. I'm not sure how to save console output anyway.

A direct answer to your question would be (yuck):

  System(logger "your custom message")

rather than NoOp-s .

RTFM logger for slightly more options. Naturally you can 'echo
"whatever" >>logfile' instead.

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend




More information about the asterisk-users mailing list