HP-UX C SIP Stack Message Layer Reference Guide (January 2008)
548 HP C SIP Stack Message Layer Reference Guide
Control Functions
RvSipPartyHeaderFix()
RvSipPartyHeaderFix()
DESCRIPTION
Fixes a Party header with bad-syntax information. A SIP header has the
following grammar: “header-name:header-value”. When a header contains a
syntax error, the header-value is kept as a separate bad-syntax string. You use
this function to fix the header by parsing a given correct header-value string to
the supplied header. If parsing succeeds, this function places all parameters
inside the object and removes the bad-syntax string. If parsing fails, the bad-
syntax string in the header remains as it was.
SYNTAX
RvStatus RvSipPartyHeaderFix(
IN RvSipPartyHeaderHandle hHeader,
IN RvBool bIsTo,
IN RvChar* pFixedBuffer);
PARAMETERS
hHeader
The handle to the header.
bIsTo
Indicates whether a header is a To header (RV_TRUE) or From header
(RV_FALSE).
pFixedBuffer
The buffer containing a legal header value.
RETURN VALUES
Returns RvStatus.