Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unpublished - rights reserved under the Copyright Laws of the United States. Copyright � 2003 Sun Microsystems, Inc. All rights reserved. Copyright � 2005 BEA Systems, Inc. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Module Name : JSIP Specification File Name : Author : Phelim O'Doherty HISTORY Version Date Author Comments 1.1 08/10/2002 Phelim O'Doherty Initial version ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 package javax.sip.header;
The Error-Info header field provides a pointer to additional information about the error status response. SIP UACs have user interface capabilities ranging from pop-up windows and audio on PC softclients to audio-only on "black" phones or endpoints connected via gateways. Rather than forcing a server generating an error to choose between sending an error status code with a detailed reason phrase and playing an audio recording, the Error-Info header field allows both to be sent. The UAC then has the choice of which error indicator to render to the caller.

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.

SIP/2.0 404 The number you have dialed is not in service

BEA Systems, NIST
 public interface ErrorInfoHeader extends ParametersHeader {

Sets the ErrorInfo of the ErrorInfoHeader to the errorInfo parameter value.

errorInfo the new ErrorInfo of this ErrorInfoHeader.
     public void setErrorInfo(URI errorInfo);

Returns the ErrorInfo value of this ErrorInfoHeader. This message may return null if a String message identifies the ErrorInfo.

the URI representing the ErrorInfo.
    public URI getErrorInfo();

Sets the Error information message to the new message value supplied to this method.

message - the new string value that represents the error message.
java.text.ParseException which signals that an error has been reached unexpectedly while parsing the error message.
    public void setErrorMessage(String messagethrows ParseException;

Get the Error information message of this ErrorInfoHeader.

the stringified version of the ErrorInfo header.
    public String getErrorMessage();

Name of the ErroInfoHeader
    public final static String NAME = "Error-Info";
New to GrepCode? Check out our FAQ X