<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt">Here's a copy of my cfg file:  http://pastebin.com/GtDwWKWr<br>I tried to run with the switches you mentioned... but i still don't get anything logged to syslog. <br>?<br>sorry... and thanks for your patience. <br><div><span><br></span></div><div><br></div>  <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Olle E. Johansson <oej@edvina.net><br> <b><span style="font-weight: bold;">To:</span></b> mark li <limark67@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Olle
 E Johansson <oej@edvina.net>; Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, March 28, 2014 2:55:22 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [SR-Users] How to turn on debugging in kamailio?<br> </font> </div> <div class="y_msg_container"><br><div id="yiv5331634899"><div><br clear="none"><div><div>On 27 Mar 2014, at 21:31, mark li <<a rel="nofollow" shape="rect" ymailto="mailto:limark67@yahoo.com" target="_blank" href="mailto:limark67@yahoo.com">limark67@yahoo.com</a>> wrote:</div><br class="yiv5331634899Apple-interchange-newline" clear="none"><blockquote type="cite"><div style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:10pt;">Olle<br clear="none">I've added some debug statements using the XLOG function like so: <br clear="none"><br
 clear="none">xlog("L_INFO", "my custom message");<br clear="none"><br clear="none">but none of my debug statements appear in syslog.  I don't get any errors either when I restart kamailio. <br clear="none">any suggestion? <br clear="none">I am loading the module in kamailio.cfg... I see a line that says "loadmodule xlog.so"<br clear="none">and i've also added a modparam for the log like so: <br clear="none"><pre class="yiv5331634899programlisting">modparam("xlog", "buf_size", 8192)<br clear="none"></pre></div></blockquote></div><br clear="none"><div>Start kamailio in the foreground with "-D 1 -E" and you'll see the log messages on your console if Kamailio runs. If you haven't got a listen address in the config, you might want to add a "-l <param>" to force kamailio to listen to the right IP address (replace <param> with a listen address, run "kamailio -h" for docs).</div><div class="yiv5331634899yqt5370214515"
 id="yiv5331634899yqtfd46821"><div><br clear="none"></div><div>/O</div></div></div></div><br><br></div> </div> </div>  </div></body></html>