[Asterisk-Users] Disabling debug output

Mike Lynchfield theclubvoip at gmail.com
Thu Jun 8 22:37:32 MST 2006


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 <bweschke at gmail.com> wrote:
>
> 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/
> _______________________________________________
> --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
>



-- 
Mike
Sales Manager
http://www.theclubvoip.com
Making it happen
1.888.470.7253
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060608/7d68d6fc/attachment.htm


More information about the asterisk-users mailing list