GetHeaderValues
GetHeaderValues
The GetHeaderValues function returns a collection of strings containing the values associated with the supplied header name in the current SIP message.
Syntax
collection<string> GetHeaderValues(
string or StandardHeader value headerName
);
Parameters
- headerName
A SIP header name whose corresponding values will be retrieved. This can also include custom SIP headers defined outside of the common SIP specification. Short header names as defined in the IETF SIP specification are allowed (such as "M" for "Contact").
Return Values
Returns a collection of one or more string values containing the header values. If there are no header values present, an empty collection will be returned.