I saw that you tried to write on the mailing list: you need to subscribe before
you can send email there.
First, you can take a look at:
eXosip continuously read data and is checking for Content-length
#define END_HEADERS_STR "\r\n\r\n"
#define CLEN_HEADER_STR "\r\ncontent-length:"
#define CLEN_HEADER_COMPACT_STR "\r\nl:"
#define CLEN_HEADER_STR2 "\r\ncontent-length "
#define CLEN_HEADER_COMPACT_STR2 "\r\nl "
#define const_strlen(x) (sizeof((x)) - 1)
After you find a "content-length", you can read the
then, later, you search for END_HEADERS_STR, ie: double CRLF
Then, you need to read the value you get from content-length to
make sure you read the entire body.
Once this is done, you have a complete SIP message and support
for binary Content-Type.
In the exosip file, mainly check what I do in handle_messages