<p>Hi,</p>

<p>Indeed 400 reply is not generated by OpenSIPS. It is generated by <code>ana</code> UAS in the example above. What happens is OpenSIPS receives from <code>bob</code>:</p>

<pre><code>MESSAGE sip:ana@example.com SIP/2.0
Content-Length: 8
[SIP headers]

test 123
</code></pre>

<p>and forward is to <code>ana</code> via <code>t_relay()</code> as:</p>

<pre><code>MESSAGE sip:ana@example.com SIP/2.0
Content-Length: 8
[SIP headers]

test
</code></pre>

<p>note: <code>123</code> is removed</p>

<p>and <code>ana</code> UAS replies:</p>

<pre><code>SIP/2.0 400 Bad Request (Invalid content length 5 / 8)
[SIP headers]
</code></pre>

<p>tomorrow I will post sample .cfg file, which will replicate this behaviour.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/358#issuecomment-59237471">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyOTAxMTAyOSwiZGF0YSI6eyJpZCI6NDU4NTcyNjN9fQ==--6f9ec450034ab88ea0de1ecaa1c73ca537c72207.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/OpenSIPS/opensips/issues/358#issuecomment-59237471","name":"View Issue"}}</script>