[Asterisk-Users] Disabling debug output

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jun 8 21:52:55 MST 2006


On Thu, Jun 08, 2006 at 10:44:39PM -0400, BJ Weschke wrote:
> On 6/8/06, Nick Hoffman <nick.hoffman at altcall.com> wrote:
> >Hi guys. I'm trying to disable all debug output, but am not having any
> >success:
> >
> >nick at asterisk-dev1:~> 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 '0fbefde17f0c2a7a168e1d3f158e5760 at 127.0.0.1'
> >
> >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:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-users mailing list