[Serusers] SIP message bodies sometimes corrupted

Jon Burke jon at patapsco.co.uk
Wed Feb 1 13:12:26 CET 2006


Hello,
I'm having trouble with SER (0.9.4) sometimes corrupting the bodies of
SIP messages that it forwards. I'm using binary message bodies, with
appropriate Accept, Content-Type and Content-Length headers which the
proxy server should forward without modification.

Sometimes the messages are forwarded correctly with all headers and the
message body intact. Other times, one byte has gone missing from the end
of the message body, so that the value in the Content-Length header is
one more than the actual number of bytes in the message body. The
receiving UA then rejects this message because it is malformed. From
repeated testing, it looks as though this problem happens whenever the
number of bytes in the SIP message (going out from SER) prior to the
body is an even number. When there are an odd number of bytes, the
message body is always uncorrupted.

Anybody have any ideas what's happening here or how to fix it?

Jon.




More information about the sr-users mailing list