HP-UX C SIP Stack Message Layer Reference Guide (January 2008)
380 HP C SIP Stack Message Layer Reference Guide
Get and Set Functions
RvSipContentTypeHeaderSetMediaType()
RvSipContentTypeHeaderSetMediaType()
DESCRIPTION
Sets the media-type parameter in the Content-Type header. If the enumeration
given by eMediaType is RVSIP_MEDIATYPE_OTHER, sets the media type
string given by strMediaType in the Content-Type header. Use
RVSIP_MEDIATYPE_OTHER when the media type you wish to set to the
Content-Type header does not have a matching enumeration value in the
RvSipMediaType enumeration.
SYNTAX
RvStatus RvSipContentTypeHeaderSetMediaType(
IN RvSipContentTypeHeaderHandle hHeader,
IN RvSipMediaType eMediaType,
IN RvChar *strMediaType);
PARAMETERS
hHeader
The handle to the Content-Type header.
eMediaType
The media type enumeration to be set in the Content-Type header. If
RVSIP_MEDIATYPE_UNDEFINED is supplied, the existing media type is
removed from the header.
strMediaType
The media type string to be set in the Content-Type header. (Relevant when
eMediaType is RVSIP_MEDIATYPE_OTHER).
RETURN VALUES
Returns RvStatus.