AddHeader
The AddHeaderfunction adds a header to the current SIP message.
Syntax
Copy code | |
---|---|
bool AddHeader( string or StandardHeader value name, string value ); |
Parameters
Return values
Returns true if the header was successfully added; false if it was not. If the header already exists, this function returns false .
Remarks
Note |
---|
If you add a header with this method and call Respond , the new header is not included in the response. All new headers that should be in the response must be added as additional parameters to Respond. |
AddHeadercan be used to pass contextual information from an MSPL script to a managed application, through the use of a custom header.
In a managed application, these custom headers can be retrieved
by calling