Re: [Asterisk-Users] Disabling debug output

2006-06-08 Thread BJ Weschke

On 6/8/06, Nick Hoffman [EMAIL PROTECTED] wrote:

Hi guys. I'm trying to disable all debug output, but am not having any
success:

[EMAIL PROTECTED]:~ sudo asterisk -r
Asterisk 1.2.8, Copyright (C) 1999 - 2006 Digium, Inc. and others.
..snip...
certain conditions. Type 'show license' for details.
=
Connected to Asterisk 1.2.8 currently running on asterisk-dev1 (pid = 7216)
Verbosity is at least 19
asterisk-dev1*CLI sip no debug
SIP Debugging Disabled
asterisk-dev1*CLI debug level 0
Debugging level set to 0, file 'any'
asterisk-dev1*CLI
asterisk-dev1*CLI
Jun  9 12:34:57 DEBUG[7225]: chan_sip.c:1323 __sip_autodestruct: Auto
destroying call '[EMAIL PROTECTED]'

What am I doing wrong? I noticed that Asterisk said that the verbosity
level is = 19, but the debug message that appeared should've been
suppressed by ``sip no debug'', no?



In theory, yes, but you might also try setting verbosity to 0 (set
verbose 0) and see if that suppresses the messages.

--
Bird's The Word Technologies, Inc.
http://www.btwtech.com/
___
--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] Disabling debug output

2006-06-08 Thread Tzafrir Cohen
On Thu, Jun 08, 2006 at 10:44:39PM -0400, BJ Weschke wrote:
 On 6/8/06, Nick Hoffman [EMAIL PROTECTED] wrote:
 Hi guys. I'm trying to disable all debug output, but am not having any
 success:
 
 [EMAIL PROTECTED]:~ sudo asterisk -r
 Asterisk 1.2.8, Copyright (C) 1999 - 2006 Digium, Inc. and others.
 ..snip...
 certain conditions. Type 'show license' for details.
 =
 Connected to Asterisk 1.2.8 currently running on asterisk-dev1 (pid = 7216)
 Verbosity is at least 19
 asterisk-dev1*CLI sip no debug
 SIP Debugging Disabled
 asterisk-dev1*CLI debug level 0
 Debugging level set to 0, file 'any'
 asterisk-dev1*CLI
 asterisk-dev1*CLI
 Jun  9 12:34:57 DEBUG[7225]: chan_sip.c:1323 __sip_autodestruct: Auto
 destroying call '[EMAIL PROTECTED]'
 
 What am I doing wrong? I noticed that Asterisk said that the verbosity
 level is = 19, but the debug message that appeared should've been
 suppressed by ``sip no debug'', no?
 
 
 In theory, yes, 

In practice:

p-autokillid = -1;

ast_log(LOG_DEBUG, Auto destroying call '%s'\n, p-callid);
append_history(p, AutoDestroy, );
if (p-owner) {
ast_log(LOG_WARNING, Autodestruct on call '%s' with owner in 
place\n, p-callid);
ast_queue_hangup(p-owner);
} else {

Should that ast_log be conditioned?

 but you might also try setting verbosity to 0 (set
 verbose 0) and see if that suppresses the messages.
 
 -- 
 Bird's The Word Technologies, Inc.
 http://www.btwtech.com/
 ___
 --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
 

-- 
Tzafrir Cohen  sip:[EMAIL PROTECTED]
icq#16849755   iax:[EMAIL PROTECTED]
+972-50-7952406   
[EMAIL PROTECTED]  http://www.xorcom.com
___
--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] Disabling debug output

2006-06-08 Thread BJ Weschke

On 6/9/06, Tzafrir Cohen [EMAIL PROTECTED] wrote:

On Thu, Jun 08, 2006 at 10:44:39PM -0400, BJ Weschke wrote:
 On 6/8/06, Nick Hoffman [EMAIL PROTECTED] wrote:
 Hi guys. I'm trying to disable all debug output, but am not having any
 success:
 
 [EMAIL PROTECTED]:~ sudo asterisk -r
 Asterisk 1.2.8, Copyright (C) 1999 - 2006 Digium, Inc. and others.
 ..snip...
 certain conditions. Type 'show license' for details.
 =
 Connected to Asterisk 1.2.8 currently running on asterisk-dev1 (pid = 7216)
 Verbosity is at least 19
 asterisk-dev1*CLI sip no debug
 SIP Debugging Disabled
 asterisk-dev1*CLI debug level 0
 Debugging level set to 0, file 'any'
 asterisk-dev1*CLI
 asterisk-dev1*CLI
 Jun  9 12:34:57 DEBUG[7225]: chan_sip.c:1323 __sip_autodestruct: Auto
 destroying call '[EMAIL PROTECTED]'
 
 What am I doing wrong? I noticed that Asterisk said that the verbosity
 level is = 19, but the debug message that appeared should've been
 suppressed by ``sip no debug'', no?
 

 In theory, yes,

In practice:

p-autokillid = -1;

ast_log(LOG_DEBUG, Auto destroying call '%s'\n, p-callid);
append_history(p, AutoDestroy, );
if (p-owner) {
ast_log(LOG_WARNING, Autodestruct on call '%s' with owner in 
place\n, p-callid);
ast_queue_hangup(p-owner);
} else {

Should that ast_log be conditioned?



Yes. Absolutely.

--
Bird's The Word Technologies, Inc.
http://www.btwtech.com/
___
--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] Disabling debug output

2006-06-08 Thread Mike Lynchfield
but what if the ast_log function is conditioned ast_log(LOG_WARNING, Autodestruct on call '%s' with owner in place\n, p-callid);whats in there ?On 6/9/06, 
BJ Weschke [EMAIL PROTECTED] wrote:
On 6/9/06, Tzafrir Cohen [EMAIL PROTECTED] wrote: On Thu, Jun 08, 2006 at 10:44:39PM -0400, BJ Weschke wrote:  On 6/8/06, Nick Hoffman 
[EMAIL PROTECTED] wrote:  Hi guys. I'm trying to disable all debug output, but am not having any  success:[EMAIL PROTECTED]:~ sudo asterisk -r
  Asterisk 1.2.8, Copyright (C) 1999 - 2006 Digium, Inc. and others.  ..snip...  certain conditions. Type 'show license' for details.  =
  Connected to Asterisk 1.2.8 currently running on asterisk-dev1 (pid = 7216)  Verbosity is at least 19  asterisk-dev1*CLI sip no debug  SIP Debugging Disabled
  asterisk-dev1*CLI debug level 0  Debugging level set to 0, file 'any'  asterisk-dev1*CLI  asterisk-dev1*CLI  Jun9 12:34:57 DEBUG[7225]: chan_sip.c:1323 __sip_autodestruct: Auto
  destroying call '[EMAIL PROTECTED]'What am I doing wrong? I noticed that Asterisk said that the verbosity
  level is = 19, but the debug message that appeared should've been  suppressed by ``sip no debug'', no? In theory, yes, In practice:
 p-autokillid = -1; ast_log(LOG_DEBUG, Auto destroying call '%s'\n, p-callid); append_history(p, AutoDestroy, );
 if (p-owner) { ast_log(LOG_WARNING, Autodestruct on call '%s' with owner in place\n, p-callid); ast_queue_hangup(p-owner); } else {
 Should that ast_log be conditioned? Yes. Absolutely.--Bird's The Word Technologies, Inc.http://www.btwtech.com/___
--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing listTo UNSUBSCRIBE or update options visit: 
http://lists.digium.com/mailman/listinfo/asterisk-users-- MikeSales Managerhttp://www.theclubvoip.comMaking it happen
1.888.470.7253
___
--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