<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p><br>
    </p>
    <p>for Kamailio v4.3 you can print is syslog the $mb as it was
      suggested in the other response
(<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/pipermail/sr-users/2018-February/100378.html">https://lists.kamailio.org/pipermail/sr-users/2018-February/100378.html</a>),
      you can do that in request_route or onreply_route. In onsend_route
      you can print $snd(buf).</p>
    <p><br>
    </p>
    <p>Then there is siptrace module that can work standalone and store
      sip traffic in a database table.</p>
    <p><br>
    </p>
    <p>If you have a production system with lot of traffic, Homer
      Sipcapture project might be something to consider -- kamailio has
      the modules siptrace and sipcapture.</p>
    <p><br>
    </p>
    <p>I also want to highlight that v5.1 has a new module sipdump that
      should simplify the capture of sip traffic:</p>
    <p><br>
    </p>
    <p>  *
      <a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/sipdump.html">https://www.kamailio.org/docs/modules/stable/modules/sipdump.html</a></p>
    <p><br>
    </p>
    <p>I added it because I needed to look at tls traffic while
      developing/debugging.</p>
    <p><br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 16.02.18 21:28, Remsik,Robert wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CY1PR07MB14645DB305DFF67F73A54857E1CB0@CY1PR07MB1464.namprd07.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
        dir="ltr">
        <p style="margin-top:0;margin-bottom:0">Hello!</p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
        <p style="margin-top:0;margin-bottom:0">I'm working on setting
          up our kamailio instance to use TLS for inter-phone
          communication and so far I've been able to configure the GUI
          and get it to work which is great.  However, I'm trying to
          grab a packet capture and decode the TLS session to get the
          SIP ladder (so I can troubleshoot issues) and so far I've been
          unable to.  I've been following the article at: <a
href="http://packetpushers.net/using-wireshark-to-decode-ssltls-packets/"
            class="OWAAutoLink" id="LPlnk787507" previewremoved="true"
            moz-do-not-send="true">http://packetpushers.net/using-wireshark-to-decode-ssltls-packets/</a> and
          using the kamailio self-signed cert as I think that's the cert
          being used with no success.  I'm getting the
          <span style="font-size: 12pt;">Cipher Suite:
            TLS_RSA_WITH_AES_256_CBC_SHA (0x0035) which doesn't use
            perfect forward secrecy so it should be able to be decoded.</span></p>
        <p style="margin-top:0;margin-bottom:0"><span style="font-size:
            12pt;"><br>
          </span></p>
        <p style="margin-top:0;margin-bottom:0">Is there a way to decode
          the kamailio TLS encoded communications so I can troubleshoot
          issues that may come up?</p>
        <div><br>
        </div>
        Thank you in advance,
        <div>Robert<br>
          <p style="margin-top:0;margin-bottom:0"><br>
          </p>
          <div id="Signature">
            <div id="divtagdefaultwrapper" dir="ltr"
              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"><br>
                    </p>
                    <p style="font-family:Tahoma; font-size:13px"><br>
                    </p>
                    <p>Robert Remsik</p>
                    <p>Telecom</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>
      </div>
      <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 - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>