<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14pt"><div><span>Does anyone have any other suggestions / ideas on what I might be doing wrong / missing?  I can't any log entries to show up in my syslog file.  I'm trying to add custom messages to debug a specific scenario...</span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>I prefer to log it to a file instead of to the console because there's a lot of debug data on the console and it's hard to scroll through. <br></span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style:
 normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>thanks. <br></span></div><div><br></div>  <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 14pt;"> <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> mark li <limark67@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Olle E. Johansson <oej@edvina.net> <br><b><span style="font-weight: bold;">Cc:</span></b> 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
 8:47:51 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="yiv3001698405"><div><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 clear="none">I tried to run with the switches you mentioned... but i still don't get anything logged to syslog. <br clear="none">?<br clear="none">sorry... and thanks for your patience. <br clear="none"><div><span><br clear="none"></span></div><div><br clear="none"></div>  <div class="yiv3001698405yqt0885504324" id="yiv3001698405yqt55331"><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 clear="none"> <b><span style="font-weight:bold;">To:</span></b> mark li <limark67@yahoo.com> <br clear="none"><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 clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Friday, March 28, 2014 2:55:22 AM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [SR-Users] How to turn on debugging in kamailio?<br clear="none"> </font> </div> <div class="yiv3001698405y_msg_container"><br clear="none"><div id="yiv3001698405"><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="yiv3001698405Apple-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="yiv3001698405programlisting">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="yiv3001698405yqt5370214515" id="yiv3001698405yqtfd46821"><div><br clear="none"></div><div>/O</div></div></div></div><br clear="none"><br clear="none"></div> </div> </div></div>  </div></div></div><br><div class="yqt0885504324" id="yqt43667">_______________________________________________<br clear="none">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br clear="none"><a shape="rect" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none"></div><br><br></div> </div> </div>  </div></body></html>