re: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Alyed Tzompa
I don't find the console output ugly, maybe messy, but never ugly :P  If u don't like those NoOp, just take them away from ur extensions.conf. BTW, to save the console output to a given file, just edit your logger.conf file.  Say you only want the console output, then just add to your filename the verbose option . The file will be saved wherever is defined in the asterisk.conf (the default is /var/log/asterisk) after editing the file you'll need to do either an Asterisk restart or input CLI logger rotate at the Asterisk console. i.e.  ;logger.conf  [logfiles] mylogfile = verbose Alyed 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.Thanks,Doug.___--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing listTo 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


RE: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Douglas Garstang



Well, 
I want the output that the NoOp's generate. I want to be able to manually log 
lines to a file through some mechanism. I just wish I could do it without all 
the extra NoOp stuff at the front.

I just 
tried using:
mylogfile = verbose

in 
logger.conf but all I got was the startup/shutdown asterisk messages. Besides, 
this isn't what I wan't. I don't want Asterisk internal generated log messages. 
I want my OWN log messages, that I specify.

Doug



  -Original Message-From: Alyed Tzompa 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, January 05, 2006 
  11:18 AMTo: asterisk-users@lists.digium.comSubject: re: 
  [Asterisk-Users] Asterisk DebuggingI don't find the console output ugly, maybe messy, but never ugly 
  :PIf u don't like those NoOp, just take them away from ur 
  extensions.conf. BTW, to save the console output to a given file, just 
  edit your logger.conf file. Say you only want the console output, then 
  just add to your filename the verbose option . The file will be saved wherever 
  is defined in the asterisk.conf (thedefault is /var/log/asterisk) 
  after editing the file you'll need to do either an Asterisk restart or input 
  CLI logger rotate at the Asterisk console.i.e. 
  ;logger.conf[logfiles]mylogfile = verboseAlyed 
  
  
  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.Thanks,Doug.___--Bandwidth 
  and Colocation provided by Easynews.com --Asterisk-Users mailing 
  listTo 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


RE: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Alyed Tzompa
Then stop looking for easy solutions and get your hands dirty changing your c files Alyed  Well, I want the output that the NoOp's generate. I want to be able to manually log lines to a file through some mechanism. I just wish I could do it without all the extra NoOp stuff at the front.  I just tried using: mylogfile = verbose  in logger.conf but all I got was the startup/shutdown asterisk messages. Besides, this isn't what I wan't. I don't want Asterisk internal generated log messages. I want my OWN log messages, that I specify.  Doug-Original Message-From: Alyed Tzompa [mailto:[EMAIL PROTECTED]Sent: Thursday, January 05, 2006 11:18 AMTo: asterisk-users@lists.digium.comSubject: re: [Asterisk-Users] Asterisk DebuggingI don't find the console output ugly, maybe messy, but never ugly :PIf u don't like those NoOp, just take them away from ur extensions.conf. BTW, to save the console output to a given file, just edit your logger.conf file. Say you only want the console output, then just add to your filename the verbose option . The file will be saved wherever is defined in the asterisk.conf (thedefault is /var/log/asterisk) after editing the file you'll need to do either an Asterisk restart or input CLI logger rotate at the Asterisk console.i.e. ;logger.conf[logfiles]mylogfile = verboseAlyed   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.Thanks,Doug.___--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing listTo 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


RE: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Douglas Garstang



Not 
everyone is a C programmer extraordinairre.

  -Original Message-From: Alyed Tzompa 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, January 05, 2006 
  11:59 AMTo: Douglas Garstang; 
  asterisk-users@lists.digium.comSubject: RE: [Asterisk-Users] 
  Asterisk DebuggingThen stop 
  looking for easy solutions and get your hands dirty changing your c 
  filesAlyed 
  
  
  Well, I want the output that the NoOp's generate. I want to be able to 
  manually log lines to a file through some mechanism. I just wish I could do it 
  without all the extra NoOp stuff at the front.
  
  I 
  just tried using:
  mylogfile = verbose
  
  in 
  logger.conf but all I got was the startup/shutdown asterisk messages. Besides, 
  this isn't what I wan't. I don't want Asterisk internal generated log 
  messages. I want my OWN log messages, that I specify.
  
  Doug
  
  
  
-Original Message-From: Alyed Tzompa 
[mailto:[EMAIL PROTECTED]Sent: Thursday, January 05, 2006 
11:18 AMTo: asterisk-users@lists.digium.comSubject: 
re: [Asterisk-Users] Asterisk DebuggingI don't find the console output ugly, maybe messy, but never ugly 
:PIf u don't like those NoOp, just take them away from ur 
extensions.conf. BTW, to save the console output to a given file, just 
edit your logger.conf file. Say you only want the console output, then 
just add to your filename the verbose option . The file will be saved 
wherever is defined in the asterisk.conf (thedefault is 
/var/log/asterisk) after editing the file you'll need to do either an 
Asterisk restart or input CLI logger rotate at the Asterisk 
console.i.e. ;logger.conf[logfiles]mylogfile = 
verboseAlyed 

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.Thanks,Doug.___--Bandwidth 
and Colocation provided by Easynews.com --Asterisk-Users mailing 
listTo 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


Re: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Mark Phillips

They're not? They have no business in an open source world then ;-}

Mark, G7LTT/KC2ENI
Randolph, NJ
http://www.g7ltt.com


Douglas Garstang wrote:

Not everyone is a C programmer extraordinairre.

-Original Message-
*From:* Alyed Tzompa [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, January 05, 2006 11:59 AM
*To:* Douglas Garstang; asterisk-users@lists.digium.com
*Subject:* RE: [Asterisk-Users] Asterisk Debugging

Then stop looking for easy solutions and get your hands dirty
changing your c files

Alyed



Well, I want the output that the NoOp's generate. I want to be able
to manually log lines to a file through some mechanism. I just wish
I could do it without all the extra NoOp stuff at the front.
 
I just tried using:

mylogfile = verbose
 
in logger.conf but all I got was the startup/shutdown asterisk

messages. Besides, this isn't what I wan't. I don't want Asterisk
internal generated log messages. I want my OWN log messages, that I
specify.
 
Doug
 
 


-Original Message-
*From:* Alyed Tzompa [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, January 05, 2006 11:18 AM
*To:* asterisk-users@lists.digium.com
*Subject:* re: [Asterisk-Users] Asterisk Debugging

I don't find the console output ugly, maybe messy, but never ugly :P

If u don't like those NoOp, just take them away from ur
extensions.conf. BTW, to  save the console output to a given
file, just edit your logger.conf file.
Say you only want the console output, then just add to your
filename the verbose option . The file will be saved wherever is
defined in the asterisk.conf (the
 default is /var/log/asterisk) after editing the file you'll
need to do either an Asterisk restart or input CLI logger
rotate  at the Asterisk console.
i.e.
;logger.conf

[logfiles]
mylogfile = verbose


Alyed



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.

Thanks,
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

___
--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


Re: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Jerry Jones

No but shell scripts are pretty easy and will cleanup your file for you.

On Jan 5, 2006, at 1:07 PM, Douglas Garstang wrote:


Not everyone is a C programmer extraordinairre.
-Original Message-
From: Alyed Tzompa [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 11:59 AM
To: Douglas Garstang; asterisk-users@lists.digium.com
Subject: RE: [Asterisk-Users] Asterisk Debugging

Then stop looking for easy solutions and get your hands dirty  
changing your c files


___
--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


Re: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Alyed Tzompa
I do agree, plus even if you don't know anything about scripting there are plenty of shell tutorials out thereAlyed No but shell scripts are pretty easy and will cleanup your file for you.On Jan 5, 2006, at 1:07 PM, Douglas Garstang wrote: Not everyone is a C programmer extraordinairre. -Original Message- From: Alyed Tzompa [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:59 AM To: Douglas Garstang; asterisk-users@lists.digium.com Subject: RE: [Asterisk-Users] Asterisk Debugging Then stop looking for easy solutions and get your hands dirty  changing your c files___--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing listTo 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


RE: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Douglas Garstang



I know 
plenty about scripting. Pick your interpreted language
However, if the functionality already existed in Asterisk, a script 
wouldn't be necessary. I'm not at the point yet where I want to start developing 
scripts for this.

  -Original Message-From: Alyed Tzompa 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, January 05, 2006 
  12:38 PMTo: asterisk-users@lists.digium.comSubject: Re: 
  [Asterisk-Users] Asterisk DebuggingI do agree, plus even if you don't know anything about scripting there 
  are plenty of shell tutorials out thereAlyed 
  
  No but shell scripts are pretty easy and will cleanup your file for 
  you.On Jan 5, 2006, at 1:07 PM, Douglas Garstang wrote: 
  Not everyone is a C programmer extraordinairre. -Original 
  Message- From: Alyed Tzompa 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 
  11:59 AM To: Douglas Garstang; asterisk-users@lists.digium.com 
  Subject: RE: [Asterisk-Users] Asterisk Debugging Then stop 
  looking for easy solutions and get your hands dirty  changing your c 
  files___--Bandwidth 
  and Colocation provided by Easynews.com --Asterisk-Users mailing 
  listTo 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


Re: [Asterisk-Users] Asterisk Debugging

2006-01-05 Thread Tzafrir Cohen
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 | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend

___
--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