Hi,
It seems OpenSIPS (11.1.1) is incorrectly parsing body of MESSAGE requests
which end with one, two or three digits. For example, the following three body
contents will result in:
REQUEST:
<pre>
MESSAGE MESSAGE sip:b...@example.com SIP/2.0
[SIP headers]
test 1
</pre>
RESPONSE:
<pre>
SIP/2.0 400 Bad Request (Invalid content length 5 / 6)
[SIP headers]
</pre>
REQUEST:
<pre>
MESSAGE MESSAGE sip:b...@example.com SIP/2.0
[SIP headers]
test 12
</pre>
RESPONSE:
<pre>
SIP/2.0 400 Bad Request (Invalid content length 5 / 7)
[SIP headers]
</pre>
REQUEST:
<pre>
MESSAGE MESSAGE sip:b...@example.com SIP/2.0
[SIP headers]
test 123
</pre>
RESPONSE:
<pre>
SIP/2.0 400 Bad Request (Invalid content length 5 / 8)
[SIP headers]
</pre>
four and more digits as last characters are working OK:
REQUEST:
<pre>
MESSAGE MESSAGE sip:b...@example.com SIP/2.0
[SIP headers]
test 1234
</pre>
RESPONSE:
<pre>
SIP/2.0 200 OK
[SIP headers]
</pre>
Regards,
Chris
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/358
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel