<p>Right, but as I said, the Content-Leght header expects the body to have the size 15, so the application building the response does something wrong.</p>

<p>Kamailio should not crash anyway and catch invalid responses, but I want to identify properly the issue in order to address it. I started some discussion on sr-dev mailing list based on some things I discovered while looking at the code for investigating this issue:</p>

<ul>
<li><a href="http://lists.sip-router.org/pipermail/sr-dev/2015-July/029927.html">http://lists.sip-router.org/pipermail/sr-dev/2015-July/029927.html</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/212#issuecomment-122296603">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZUVXGsgnTLVVDR2A1VfxJu9zWn64ks5oeQszgaJpZM4FEq4p.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/212#issuecomment-122296603"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>