|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.GeneralHeader
|
+--jain.protocol.ip.sip.header.CallIdHeader
This class represents the Call-ID general-header. CallIdHeader uniquely identifies a particular invitation or all registrations of a particular client. Note that a single multimedia conference can give rise to several calls with different Call-IDs, e.g., if a user invites a single individual several times to the same (long-running) conference.
For an InviteMessage, a callee user agent server should not alert the user if the user has responded previously to the Call-ID in the InviteMessage. If the user is already a member of the conference and the conference parameters contained in the session description have not changed, a callee user agent server may silently accept the call, regardless of the Call-ID. An invitation for an existing Call-ID or session can change the parameters of the conference. A client application MAY decide to simply indicate to the user that the conference parameters have been changed and accept the invitation automatically or it may require user confirmation.
A user may be invited to the same conference or call using several different CallIdHeaders. If desired, the client may use identifiers within the session description to detect this duplication. For example, SDP contains a session id and version number in the origin (o) field.
The RegisterMessage and OptionsMessage use the CallIdHeader to unambiguously match requests and responses. All RegisterMessages issued by a single client should use the same CallIdHeader, at least within the same boot cycle.
The host should be a globally routable InetAddress. If this is the case, the localId should be an identifier that is unique within the host. If however, host is not globally routable (such as a net 10 address), the localId must be globally unique.
| Field Summary | |
static java.lang.String |
token
Token of CallIdHeader |
| Fields inherited from class jain.protocol.ip.sip.header.Header |
ENTITY_HEADER,
GENERAL_HEADER,
REQUEST_HEADER,
RESPONSE_HEADER |
| Constructor Summary | |
CallIdHeader(java.lang.String localId,
java.net.InetAddress host)
Creates a CallIdHeader based on given local-id and host |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of CallIdHeader |
boolean |
equals(CallIdHeader callIdHeader)
Indicates whether some other CallIdHeader is "equal to" this one |
java.net.InetAddress |
getHost()
Gets host of CallIdHeader |
java.lang.String |
getLocalId()
Gets local-id of CallIdHeader |
java.lang.String |
getValue()
Gets value of CallIdHeader |
void |
setHost(java.net.InetAddress host)
Sets host of CallIdHeader |
void |
setLocalId(java.lang.String localId)
Sets local-id of CallIdHeader |
| Methods inherited from class jain.protocol.ip.sip.header.Header |
equals,
getHeaderType,
getToken,
setValue,
toString |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String token
| Constructor Detail |
public CallIdHeader(java.lang.String localId,
java.net.InetAddress host)
throws java.lang.IllegalArgumentException
localId - local-idhost - host| Method Detail |
public java.lang.String getLocalId()
public void setLocalId(java.lang.String localId)
throws java.lang.IllegalArgumentException
localId - local-idpublic java.net.InetAddress getHost()
public void setHost(java.net.InetAddress host)
throws java.lang.IllegalArgumentException
host - hostpublic java.lang.String getValue()
public java.lang.Object clone()
public boolean equals(CallIdHeader callIdHeader)
callIdHeader - the CallIdHeader with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems