Platform SDK Java 8.5 API Reference

com.genesyslab.platform.voice.protocol
Class ConnectionId

java.lang.Object
  extended by com.genesyslab.platform.voice.protocol.ConnectionId
All Implemented Interfaces:
java.io.Serializable

public final class ConnectionId
extends java.lang.Object
implements java.io.Serializable

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);
        

See Also:
Serialized Form

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

ConnectionId

public ConnectionId()
Constructor.


ConnectionId

public ConnectionId(ConnectionId copy)
Copy constructor.

Parameters:
copy - Original connection ID

ConnectionId

public ConnectionId(byte[] buf,
                    int offset)
Constructor from bytes stream fragment.

Parameters:
buf - Stream
offset - Stream offset

ConnectionId

public ConnectionId(java.lang.String strTConnID)
Constructor from string.

Parameters:
strTConnID - String representation

ConnectionId

public ConnectionId(long lConnID)
Constructor from long type value.

Parameters:
lConnID - Long type representation
Method Detail

toLong

public long toLong()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.