<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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
cite="mid:BN3PR0701MB11057B79DD7D512011610839E1EB0@BN3PR0701MB1105.namprd07.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from text -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <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">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 style="font-size:11pt"
            color="#000000" face="Calibri, sans-serif"><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 moz-do-not-send="true"
              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 wrap="">_______________________________________________
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>
  </body>
</html>