[Asterisk-Users] Disabling debug output

BJ Weschke bweschke at gmail.com
Thu Jun 8 22:24:59 MST 2006


On 6/9/06, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> 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?
>

 Yes. Absolutely.

-- 
Bird's The Word Technologies, Inc.
http://www.btwtech.com/



More information about the asterisk-users mailing list