[Asterisk-Users] SIP on TCP

Adam Roach adam at dynamicsoft.com
Thu Sep 4 13:34:20 MST 2003


John Todd [mailto:jtodd at loligo.com] writes:

> Out of curiosity, why would you need to parse through the whole 
> header to find that data?  Looks like it's right in the Via: header.

I was talking about message framing. I'll rephrase in the form of
a FAQ.

Q: How do you know where the SDP (or any other body) ends?

A: You have to find and parse the Content-Length header field,
   find the end of the headers, and count bytes.

/a



More information about the asterisk-users mailing list