public interface ErrorInfoHeader extends Parameters, Header
A UAC MAY treat a SIP or SIPS URI in an Error-Info header field as if it were a Contact in a redirect and generate a new INVITE, resulting in a recorded announcement session being established. A non-SIP URI MAY be rendered to the user.
Examples:
SIP/2.0 404 The number you have dialed is not in service
Error-Info: sip:[email protected]
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Name of the ErroInfoHeader
|
Modifier and Type | Method and Description |
---|---|
URI |
getErrorInfo()
Returns the ErrorInfo value of this ErrorInfoHeader.
|
String |
getErrorMessage()
Get the Error information message of this ErrorInfoHeader.
|
void |
setErrorInfo(URI errorInfo)
Sets the ErrorInfo of the ErrorInfoHeader to the errorInfo
parameter value.
|
void |
setErrorMessage(String message)
Sets the Error information message to the new message value
supplied to this method.
|
getParameter, getParameterNames, removeParameter, setParameter
static final String NAME
void setErrorInfo(URI errorInfo)
errorInfo
- the new ErrorInfo of this ErrorInfoHeader.URI getErrorInfo()
void setErrorMessage(String message) throws ParseException
message
- - the new string value that represents the error message.ParseException
- which signals that an error has been reached
unexpectedly while parsing the error message.String getErrorMessage()
Copyright © 2017. All Rights Reserved.