but what if the ast_log function is conditioned<br><br> ast_log(LOG_WARNING, "Autodestruct on call '%s' with owner in place\n", p->callid);<br><br>whats in there ?<br><br><div><span class="gmail_quote">On 6/9/06,
<b class="gmail_sendername">BJ Weschke</b> <<a href="mailto:bweschke@gmail.com">bweschke@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 6/9/06, Tzafrir Cohen <<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>> wrote:<br>> On Thu, Jun 08, 2006 at 10:44:39PM -0400, BJ Weschke wrote:<br>> > On 6/8/06, Nick Hoffman <<a href="mailto:nick.hoffman@altcall.com">
nick.hoffman@altcall.com</a>> wrote:<br>> > >Hi guys. I'm trying to disable all debug output, but am not having any<br>> > >success:<br>> > ><br>> > >nick@asterisk-dev1:~> sudo asterisk -r
<br>> > >Asterisk 1.2.8, Copyright (C) 1999 - 2006 Digium, Inc. and others.<br>> > ><..snip...><br>> > >certain conditions. Type 'show license' for details.<br>> > >=========================================================================
<br>> > >Connected to Asterisk 1.2.8 currently running on asterisk-dev1 (pid = 7216)<br>> > >Verbosity is at least 19<br>> > >asterisk-dev1*CLI> sip no debug<br>> > >SIP Debugging Disabled
<br>> > >asterisk-dev1*CLI> debug level 0<br>> > >Debugging level set to 0, file '<any>'<br>> > >asterisk-dev1*CLI><br>> > >asterisk-dev1*CLI><br>> > >Jun 9 12:34:57 DEBUG[7225]: chan_sip.c:1323 __sip_autodestruct: Auto
<br>> > >destroying call '<a href="mailto:0fbefde17f0c2a7a168e1d3f158e5760@127.0.0.1">0fbefde17f0c2a7a168e1d3f158e5760@127.0.0.1</a>'<br>> > ><br>> > >What am I doing wrong? I noticed that Asterisk said that the verbosity
<br>> > >level is >= 19, but the debug message that appeared should've been<br>> > >suppressed by ``sip no debug'', no?<br>> > ><br>> ><br>> > In theory, yes,<br>><br>> In practice:
<br>><br>> p->autokillid = -1;<br>><br>> ast_log(LOG_DEBUG, "Auto destroying call '%s'\n", p->callid);<br>> append_history(p, "AutoDestroy", "");<br>
> if (p->owner) {<br>> ast_log(LOG_WARNING, "Autodestruct on call '%s' with owner in place\n", p->callid);<br>> ast_queue_hangup(p->owner);<br>> } else {
<br>><br>> Should that ast_log be conditioned?<br>><br><br> Yes. Absolutely.<br><br>--<br>Bird's The Word Technologies, Inc.<br><a href="http://www.btwtech.com/">http://www.btwtech.com/</a><br>_______________________________________________
<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Mike<br>Sales Manager<br><a href="http://www.theclubvoip.com">http://www.theclubvoip.com</a><br>Making it happen
<br>1.888.470.7253