but what if the ast_log function is conditioned<br><br>&nbsp;&nbsp; ast_log(LOG_WARNING, &quot;Autodestruct on call '%s' with owner in place\n&quot;, p-&gt;callid);<br><br>whats in there ?<br><br><div><span class="gmail_quote">On 6/9/06, 
<b class="gmail_sendername">BJ Weschke</b> &lt;<a href="mailto:bweschke@gmail.com">bweschke@gmail.com</a>&gt; 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 &lt;<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>&gt; wrote:<br>&gt; On Thu, Jun 08, 2006 at 10:44:39PM -0400, BJ Weschke wrote:<br>&gt; &gt; On 6/8/06, Nick Hoffman &lt;<a href="mailto:nick.hoffman@altcall.com">
nick.hoffman@altcall.com</a>&gt; wrote:<br>&gt; &gt; &gt;Hi guys. I'm trying to disable all debug output, but am not having any<br>&gt; &gt; &gt;success:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;nick@asterisk-dev1:~&gt; sudo asterisk -r
<br>&gt; &gt; &gt;Asterisk 1.2.8, Copyright (C) 1999 - 2006 Digium, Inc. and others.<br>&gt; &gt; &gt;&lt;..snip...&gt;<br>&gt; &gt; &gt;certain conditions. Type 'show license' for details.<br>&gt; &gt; &gt;=========================================================================
<br>&gt; &gt; &gt;Connected to Asterisk 1.2.8 currently running on asterisk-dev1 (pid = 7216)<br>&gt; &gt; &gt;Verbosity is at least 19<br>&gt; &gt; &gt;asterisk-dev1*CLI&gt; sip no debug<br>&gt; &gt; &gt;SIP Debugging Disabled
<br>&gt; &gt; &gt;asterisk-dev1*CLI&gt; debug level 0<br>&gt; &gt; &gt;Debugging level set to 0, file '&lt;any&gt;'<br>&gt; &gt; &gt;asterisk-dev1*CLI&gt;<br>&gt; &gt; &gt;asterisk-dev1*CLI&gt;<br>&gt; &gt; &gt;Jun&nbsp;&nbsp;9 12:34:57 DEBUG[7225]: chan_sip.c:1323 __sip_autodestruct: Auto
<br>&gt; &gt; &gt;destroying call '<a href="mailto:0fbefde17f0c2a7a168e1d3f158e5760@127.0.0.1">0fbefde17f0c2a7a168e1d3f158e5760@127.0.0.1</a>'<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;What am I doing wrong? I noticed that Asterisk said that the verbosity
<br>&gt; &gt; &gt;level is &gt;= 19, but the debug message that appeared should've been<br>&gt; &gt; &gt;suppressed by ``sip no debug'', no?<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; In theory, yes,<br>&gt;<br>&gt; In practice:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p-&gt;autokillid = -1;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ast_log(LOG_DEBUG, &quot;Auto destroying call '%s'\n&quot;, p-&gt;callid);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_history(p, &quot;AutoDestroy&quot;, &quot;&quot;);<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (p-&gt;owner) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ast_log(LOG_WARNING, &quot;Autodestruct on call '%s' with owner in place\n&quot;, p-&gt;callid);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ast_queue_hangup(p-&gt;owner);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {
<br>&gt;<br>&gt; Should that ast_log be conditioned?<br>&gt;<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>&nbsp;&nbsp; <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