HP-UX C SIP Stack Message Layer Reference Guide (January 2008)

Body Functions 809
Control Functions
RvSipBodyMultipartParse()
RvSipBodyMultipartParse()
DESCRIPTION
Parses a SIP textual body of type multipart into a body object. The given body
object must have a valid Content-Type header on its list of headers. The
Content-Type header must contain the boundary that was used to create the
boundary delimiter lines that separated the different parts of the body. The
parsing will be done according to this boundary. See the Example below.
SYNTAX
RvStatus RvSipBodyMultipartParse(
IN RvSipBodyHandle hBody,
IN RvChar *strBody,
IN RvUint bufLength);
PARAMETERS
hBody
A handle to the body object.
strBody
The string of the body.
bufLength
The buffer length.
RETURN VALUES
Returns RvStatus.
EXAMPLE
The following multipart body is correctly parsed as follows:
“boundary=unique-boundary-1”
The multipart body must be a parameter of the Content-Type of the given body
object.