<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>using tcp would be an option, as Alex mentioned, if you can
      control the udp mtu size. The alternative can be also sctp
      transport, which should be better that tcp. If you have a recent
      kernel, that could be better. However, I have to say that I
      haven't seen much use of sctp lately myself, so do a little
      testing yourself before pushing to production.</p>
    <p>Then, looking at the compress option, enhancing gzcompress also
      for headers should be easy. But I think that it would require sort
      of encoding at the beginning, to know is an encrypted packet and
      eventually specify the algorithm for compression. Not sure if such
      protocol is defined somewhere else and we can reuse it, or we just
      brew one ourselves.</p>
    <p>Actually, the proposal above with gzcompress module would be to
      make it simpler (as I thought of doing at some point when I sent
      packages over long distance and narrow band), because that is
      already possible if you use an embedded scripting language and
      corex module -- the example there is pretty much what you are
      looking for:</p>
    <p>  * <a
href="https://www.kamailio.org/docs/modules/stable/modules/corex.html#async.evr.network_io">https://www.kamailio.org/docs/modules/stable/modules/corex.html#async.evr.network_io</a></p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 01.04.19 16:42, Alex Balashov wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:DC090E32-32F8-4AAA-A1AA-FE78A1250E66@evaristesys.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      The customary inter-Kamailio solution is jumbo frames (if you
      control network end-to-end) or TCP.<br>
      <br>
      <div id="AppleMailSignature" dir="ltr">—
        <div>Sent from mobile, with due apologies for brevity and
          errors.</div>
      </div>
      <div dir="ltr"><br>
        On Apr 1, 2019, at 10:33 AM, Igor Olhovskiy <<a
          href="mailto:igorolhovskiy@gmail.com" moz-do-not-send="true">igorolhovskiy@gmail.com</a>>
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">
          <div>Hi!</div>
          <br>
          <div>Was looking on some way to compress SIP signalling
            between internal servers. But found out, there are no some
            pre-defined or recommended mechanism of doing this.</div>
          <div>Yes, I found gzcompress module, but it will help only in
            case of big body, but not whole message itself. Like in some
            cases you can have 4-5 RR headers, which is already a lot of
            info.</div>
          <br>
          <div>What I googled is </div>
          <ol>
            <li>
              <div>SigComp</div>
            </li>
            <li>
              <div>Compact Header form</div>
            </li>
          </ol>
          <div>As I found, SigComp is really not widely-used method and
            it support along opensource SIP servers/PBXes is not
            documented.</div>
          <div>For Compact Header form - is there any way of using
            Kamailio to compress message this way?</div>
          <div>Maybe also there is a way of having some intermediate
            proxy-layer software, that will gzip/gunzip SIP signalling
            in realtime?</div>
          <br>
          <div>All of this actually cause info in SIP/SDP grows rapidly,
            unfortunately MTU size is not.</div>
          <img class="mailspring-open" alt="Sent from Mailspring"
            style="border:0; width:0; height:0;"
src="https://link.getmailspring.com/open/AFC94AD0-AEE3-4FA1-B652-7AE139FA7504@getmailspring.com?recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn"
            moz-do-not-send="true" width="0" height="0"></div>
      </blockquote>
      <blockquote type="cite">
        <div dir="ltr"><span>_______________________________________________</span><br>
          <span>Kamailio (SER) - Users Mailing List</span><br>
          <span><a href="mailto:sr-users@lists.kamailio.org"
              moz-do-not-send="true">sr-users@lists.kamailio.org</a></span><br>
          <span><a
              href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
              moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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 World Conference - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>