<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt">Olle<br>I've added some debug statements using the XLOG function like so: <br><br>xlog("L_INFO", "my custom message");<br><br>but none of my debug statements appear in syslog.  I don't get any errors either when I restart kamailio. <br>any suggestion? <br>I am loading the module in kamailio.cfg... I see a line that says "loadmodule xlog.so"<br>and i've also added a modparam for the log like so: <br><pre class="programlisting">modparam("xlog", "buf_size", 8192)<br><br></pre><br>Thank you.<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>; Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org> <br><b><span style="font-weight: bold;">Cc:</span></b> Olle E Johansson <oej@edvina.net> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, March 26, 2014 4:59:35 PM<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="yiv8233787674"><div><br clear="none"><div><div class="yiv8233787674yqt6511991752" id="yiv8233787674yqtfd03703"><div>On 26 Mar 2014, at 20:53, 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="yiv8233787674Apple-interchange-newline" clear="none"></div><blockquote type="cite"><div><div style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:10pt;"><div class="yiv8233787674yqt6511991752" id="yiv8233787674yqtfd51895">is there a way to add debug statements in kamailio.cfg?  I'd like to be able to dump some of the variables and also see which path the calls are taking.  </div><br clear="none"></div></div></blockquote><br clear="none"></div><div>What you really want is to add your own debugging using the xlog module. Look at the documentation for that module, the example configuration for Kamailio and the power of pseudovariables in the pseudovariable cookbok on the documentation web site.</div><div><br clear="none"></div><div>/O</div><div class="yiv8233787674yqt6511991752" id="yiv8233787674yqtfd89989"><br
 clear="none"></div></div></div><br><br></div> </div> </div>  </div></body></html>