Note that the Content-Length header is not mandatory in SIP on UDP. If body is there then content-type header will be there in all positive cases. You need to interpret body based on the content-type header.
Madhav On Mon, Mar 24, 2008 at 3:57 PM, Avasarala Ranjit-A20990 < [EMAIL PROTECTED]> wrote: > Content-length tells the length of the entire message : SIP + SDP > Content-type tells the type of message body : e.g application/sdp or > application/xml > Unique boundry is the CRLF. > > > > Regards > Ranjit > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Monday, March 24, 2008 3:49 PM > To: Sip-implementors@lists.cs.columbia.edu > Subject: [Sip-implementors] doubt on MIME body [RFC-3204] > > Hello, > > I have doubt on the SIP messagee body, consider the message has SDP and > ISUP payloads, iam constructing the sip packet using Structures in C, I > referd the document RFC 3204, i have doubt on following fields... > > 1.content length : is it tells the lenght of SDP ? > 2.content type : > 3.unique boundary : how we will know the boundaries of SDP and ISUP or > other payloads if present? > > could anyone clarify me, > > Thanks > Ravi Kumar. > > ___________________________________ > IIT Kharagpur, http://www.iitkgp.ac.in > > > > > > _______________________________________________ > Sip-implementors mailing list > Sip-implementors@lists.cs.columbia.edu > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors > > _______________________________________________ > Sip-implementors mailing list > Sip-implementors@lists.cs.columbia.edu > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors > _______________________________________________ Sip-implementors mailing list Sip-implementors@lists.cs.columbia.edu https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors