<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Humm.....</p>
<p><br>
</p>
<p>I'm missing something I think.  I'm having trouble even getting kamailio to write to the log file to indicate it even started.  <span style="font-size: 12pt;">I've started the service with 'service kamailio start' and can verify it's running but that's as
 far as I get.  <span style="font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">None of the logs that reference kamailio have
 been written to today, so it's like it doesn't want to write to a log file even informational messages.</span></span></p>
<p><br>
</p>
<p></p>
<div>root@SERVER:/var/log $ service --status-all | grep kamailio</div>
<div>kamailio (pid 1917 1916 1915 1914 1913 1912 1911 1910 1909 1886 1885 1884 1882 1881 1880 1878 1877 1876 1875 1874 1873 1872 1862 1861 1860 1859 1857 1856 1855 1853 1852 1851 1850 1848 1847 1846 1845 1844 1843 1842 1841 1840 1839 1838 1837 1836 1835 1834)
 is running...</div>
<div><br>
</div>
<div>root@SERVER:/var/log $ grep -r kamailio | cut -f 1 -d ':' | uniq</div>
<div>secure-20170430</div>
<div>boot.log</div>
<div>messages-20170423</div>
<div>audit/audit.log.1</div>
<div>messages-20170430</div>
<div>yum.log</div>
<div>secure-20170423</div>
<div><br>
</div>
<div><br>
</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div style="font-family:Tahoma; font-size:13px">
<div>
<div>
<p style="font-family:Tahoma; font-size:13px"></p>
<p style="font-family:Tahoma; font-size:13px"><br>
</p>
<p style="font-family:Tahoma; font-size:13px"><br>
</p>
<p>Robert Remsik</p>
<p>ACNS</p>
<p>Desk Phone: 970 491 7120</p>
<p>Robert.Remsik@colostate.edu</p>
<p style="font-family:Tahoma; font-size:13px"></p>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Daniel-Constantin Mierla <miconda@gmail.com><br>
<b>Sent:</b> Sunday, May 7, 2017 11:48 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] How to debug Kamailio</font>
<div> </div>
</div>
<div>
<p>You can load debugger module and enable cfgtrace, then the logs should show what actions are executed from the kamailio.cfg -- check to be sure it does the ones you expect to run there, maybe some conditions are wrong, etc...</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 05.05.17 16:56, Remsik,Robert wrote:<br>
</div>
<blockquote type="cite">
<meta name="Generator" content="Microsoft Exchange Server">
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Fair enough.  :)  I wasn't sure what chunks of information would be needed, or if the entire cfg is required.  I'm pasting the sections that  I edited and that I think are relevent.</p>
<p><br>
</p>
<p>Thank you!</p>
<p><br>
</p>
<p>From the kamailio.cfg log:</p>
<div># *** To run in debug mode:</div>
<div>#     - define WITH_DEBUG</div>
<div>#!define WITH_DEBUG</div>
<div><br>
</div>
<br>
<p><br>
</p>
<div>### LOG Levels: 3=DBG, 2=INFO, 1=NOTICE, 0=WARN, -1=ERR</div>
<div>#!ifdef WITH_DEBUG</div>
<div>debug=4</div>
<div>log_stderror=yes</div>
<div>#!else</div>
<div>debug=2</div>
<div>log_stderror=no</div>
<div>#!endif</div>
<div><br>
</div>
<div>memdbg=5</div>
<div>memlog=5</div>
<div><br>
</div>
<div>log_facility=LOG_LOCAL0</div>
<div><br>
</div>
<div>/* number of SIP routing processes */</div>
<div>children=8</div>
<div><br>
</div>
<div>/* add local domain aliases */</div>
<div>#alias="sip.mydomain.com"</div>
<div><br>
</div>
<div>/* uncomment and configure the following line if you want Kamailio to</div>
<div> * bind on a specific interface/port/proto (default bind on all available) */</div>
<div># listen=<a class="moz-txt-link-freetext" href="">udp:10.0.0.10:5060</a></div>
<div><br>
</div>
<div>/* port to listen to (default 5060 for udp, tcp, scrtp, or 5061 for tls)*/</div>
<div># port=5060</div>
<div>listen=129.82.13.26:5060</div>
<div>listen=129.82.13.26:5065</div>
<div>listen=129.82.13.26:5066</div>
<div>listen=129.82.13.26:5067</div>
<div><br>
</div>
.:: Routing Infomration ::.
<div>route[WITHINDLG] {</div>
<div>        if (!has_totag()) return;</div>
<div><br>
</div>
<div>        # sequential request withing a dialog should</div>
<div>        # take the path determined by record-routing</div>
<div>        if (loose_route()) {</div>
<div>                route(DLGURI);</div>
<div>                if (is_method("BYE")) {</div>
<div>                        setflag(FLT_ACC); # do accounting ...</div>
<div>                        setflag(FLT_ACCFAILED); # ... even if the transaction fails</div>
<div>                } else if ( is_method("ACK") ) {</div>
<div>                        # ACK is forwarded statelessy</div>
<div>                        route(NATMANAGE);</div>
<div>                } else if ( is_method("NOTIFY") ) {</div>
<div>                        # Add Record-Route for in-dialog NOTIFY as per RFC 6665.</div>
<div>                        record_route();</div>
<div><br>
</div>
<div>                        # Copied code - maybe it'll work?</div>
<div>                        sl_send_reply("200", "OK");</div>
<div>                        rewritehost("otc.colostate.edu");</div>
<div>#                        t_relay("tcp:129.82.13.X:5066");</div>
<div>                        t_relay_to_tcp("129.82.13.X","5066");</div>
<div>                        exit;</div>
<div>                }</div>
<div>                route(RELAY);</div>
<div>                exit;</div>
<div>        }</div>
<div><br>
</div>
... other stuff ...
<p>}</p>
<p><br>
</p>
<p><br>
</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Tahoma; font-size:13px">
<div>
<div>
<p style="font-family:Tahoma; font-size:13px"><br>
</p>
<p style="font-family:Tahoma; font-size:13px"><br>
</p>
<p>Robert Remsik</p>
<p>ACNS</p>
<p>Desk Phone: 970 491 7120</p>
<p><a class="moz-txt-link-abbreviated" href="mailto:Robert.Remsik@colostate.edu">Robert.Remsik@colostate.edu</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> sr-users
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.kamailio.org">
<sr-users-bounces@lists.kamailio.org></a> on behalf of Antony Stone <a class="moz-txt-link-rfc2396E" href="mailto:Antony.Stone@kamailio.open.source.it">
<Antony.Stone@kamailio.open.source.it></a><br>
<b>Sent:</b> Friday, May 5, 2017 8:37:32 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] How to debug Kamailio</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText">On Friday 05 May 2017 at 15:34:39, Remsik,Robert wrote:<br>
<br>
> Hello!<br>
> <br>
> I've got a base install of Kamailio and I'm trying to have it forward<br>
> packets generated by sipsak to a different proxy (a migration of an<br>
> existing ruleset by opensips).  I can get the Kamailio process started but<br>
> I can't figure out why Kamailio isn't forwarding the packet and I haven't<br>
> been able to get debugging working to determine what's going on inside<br>
> Kamailio to fix it.<br>
> <br>
> Can anyone please help me figure out how to debug this?<br>
<br>
Only if you show us what you've tried so far.<br>
<br>
For example, what changes have you made to the default configuration?<br>
<br>
<br>
Antony.<br>
<br>
-- <br>
<flopsie> yes, but this is #lbw, we don't do normal<br>
<br>
                                                   Please reply to the list;<br>
                                                         please *don't* CC me.<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</span></font><br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</div>
</div>
</div>
</body>
</html>