|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.voice.protocol.ConnectionId
public final class ConnectionId
The ConnectionID class represents 8-bytes unique identifier of the call.
When the call arrives at the switch, T-Server creates a call in its internal structure, and assigns it a unique identifier, connection ID.
That ID is present in messages that are sent between T-Server and Client Applications.
For example, connection ID is used in Answer-Call scenario. When a call comes in, your application will receive
an EventRinging
message for registered DN. You need to retrieve ConnectionId from EventRinging
message and pass it to RequestAnswerCall
to answer those call.
...
EventRinging eventRinging = (EventRinging) message;
ConnectionID connId = eventRinging.getConnID();
RequestAnswerCall requestAnswerCall = RequestAnswerCall.create(
Dn,
connId);
Message response = tServerProtocol.request(requestAnswerCall);
Constructor Summary | |
---|---|
ConnectionId()
Constructor. |
|
ConnectionId(byte[] buf,
int offset)
Constructor from bytes stream fragment. |
|
ConnectionId(ConnectionId copy)
Copy constructor. |
|
ConnectionId(long lConnID)
Constructor from long type value. |
|
ConnectionId(java.lang.String strTConnID)
Constructor from string. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
long |
toLong()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConnectionId()
public ConnectionId(ConnectionId copy)
copy
- Original connection IDpublic ConnectionId(byte[] buf, int offset)
buf
- Streamoffset
- Stream offsetpublic ConnectionId(java.lang.String strTConnID)
strTConnID
- String representationpublic ConnectionId(long lConnID)
lConnID
- Long type representationMethod Detail |
---|
public long toLong()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |