loglevel is the debug level of components of the sofia stack, the same as the 'sofia loglevel x' command. You shouldn't normally need it - it'll give you extremely ugly and verbose low level information about the processing of the packets<br>
<br>-Steve<br><br><div class="gmail_quote">On 20 May 2011 17:39, Eric Beard <span dir="ltr"><<a href="mailto:eric@loopfx.com">eric@loopfx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">That’s what I was missing, thanks! I was searching the source code for “trace-level” (with a dash).</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I’m still not entirely clear on the difference between “loglevel” and “tracelevel”, but at least it’s logging the SIP to my log file automatically.</span></p>
<div class="im"><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">-----------------------</span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">Eric Z. Beard, CTO</span></b><span style="font-size:10.0pt;color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">Loop LLC</span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">w (877) 850-2010 x9249</span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">m (727) 776-2768</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D"><a href="mailto:eric@loopfx.com" target="_blank">eric@loopfx.com</a></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
</div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Steven Ayre<br>
<b>Sent:</b> Friday, May 20, 2011 11:08 AM</span></p><div><div></div><div class="h5"><br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] SIP Trace</div></div><p></p></div><div><div></div><div class="h5">
<p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom:12.0pt">That's because it the combination of the three:</p><div><p class="MsoNormal">fsctl loglevel 3</p><p class="MsoNormal">- Sets the logging level to 3</p>
</div><div><p class="MsoNormal">sofia profile_name siptrace on</p><p class="MsoNormal">- Start tracing SIP packets (console level by default, which won't go to the logfile)</p></div><div><p class="MsoNormal">sofia tracelevel 3</p>
<p class="MsoNormal">- Start logging SIP traces with loglevel 3. Because you just set the log level to 3 it'll show up.</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">From the sofia config you'll need to set a tracelevel other than the console default as well as enabling sip-trace:</p>
<p class="MsoNormal"> </p><p class="MsoNormal"><global_settings><br> ...<br> <param name="tracelevel" value="DEBUG"/><br> ...<br></global_settings><br><profiles><br> ...<br>
<profile name="..."><br> ...<br> <param name="sip-trace" value="yes"/><br> ...<br> </profile><br> ...<br></profiles></p><p class="MsoNormal"> </p><p class="MsoNormal">
</p><p class="MsoNormal">-Steve</p></div><p class="MsoNormal" style="margin-bottom:12.0pt"> </p><div><p class="MsoNormal">On 20 May 2011 14:25, Eric Beard <<a href="mailto:eric@loopfx.com" target="_blank">eric@loopfx.com</a>> wrote:</p>
<div><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">The only one of those 3 that sends SIP to the log file for me is “sofia tracelevel 3”. But where do I put that in a configuration file so it is enabled by default?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I tried setting this in the profile:</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> <param name="sip-trace" value="yes"/></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">But it didn’t do anything.</span></p><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">-----------------------</span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">Eric Z. Beard, CTO</span></b></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">Loop LLC</span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">w (877) 850-2010 x9249</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">m (727) 776-2768</span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D"><a href="mailto:eric@loopfx.com" target="_blank">eric@loopfx.com</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p></div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Nicolas Brenner<br>
<b>Sent:</b> Thursday, May 19, 2011 7:39 PM</span></p><div><p class="MsoNormal"><br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] SIP Trace</p></div></div><p class="MsoNormal"> </p><p class="MsoNormal">
Actually, I get the exact same output from the console in my logfile (log/freeswitch.log), I just do:</p><div><div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">fsctl loglevel 3</p></div><div><p class="MsoNormal">
sofia profile_name siptrace on</p></div><div><p class="MsoNormal">sofia tracelevel 3</p></div><div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">I think you may use any loglevel, but that works fine, and I don't get all the debugging output.</p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> </p><div><p class="MsoNormal">On Thu, May 19, 2011 at 12:48 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>> wrote:</p>
<p class="MsoNormal">No.<br><br>If you need that it's best to use tshark, wireshark, ngrep or some similar tool.<br><br>-Steve</p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> </p><div><p class="MsoNormal">
On 19 May 2011 17:40, Michal Kopacki <<a href="mailto:mkopacki@gmail.com" target="_blank">mkopacki@gmail.com</a>> wrote:</p><div><p class="MsoNormal"> Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc<br>
<span style="color:#888888"><br>-- <br>Michal<br><br>---------------</span></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> </p><p class="MsoNormal" style="margin-bottom:12.0pt">By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files).<br>
<br>-Steve</p><div><p class="MsoNormal">On 19 May 2011 15:57, Eric Beard <<a href="mailto:eric@loopfx.com" target="_blank">eric@loopfx.com</a>> wrote:</p><div><div><p class="MsoNormal">Hello,</p><p class="MsoNormal">
</p><p class="MsoNormal">In fs_cli, I can issue this command:</p><p class="MsoNormal"> </p><p class="MsoNormal">sofia global siptrace on</p><p class="MsoNormal"> </p><p class="MsoNormal">And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I’ve searched through the Wiki but I’m not seeing a clear way to do it.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thanks!</p><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">-----------------------</span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">Eric Z. Beard, CTO</span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">Loop LLC</span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">w <a href="tel:%28877%29%20850-2010%20x9249" target="_blank">(877) 850-2010 x9249</a></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D">m <a href="tel:%28727%29%20776-2768" target="_blank">(727) 776-2768</a></span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D"><a href="mailto:eric@loopfx.com" target="_blank">eric@loopfx.com</a></span></p>
<p class="MsoNormal"> </p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></p></div><p class="MsoNormal"> </p><pre> </pre><pre>_______________________________________________</pre><pre>FreeSWITCH-users mailing list</pre>
<pre><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></pre><pre><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></pre>
<pre>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></pre><pre><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
<p class="MsoNormal"> </p></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></p></div><p class="MsoNormal"> </p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></p>
</div><p class="MsoNormal"> </p></div></div></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></p></div><p class="MsoNormal"> </p></div></div></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>