hp.opencall.media.ccapi
Interface BasicConnection


public interface BasicConnection

Describe the basic interface of a connection.

Its implementation allows to manage the signalling related to a call.


Field Summary
static int ALERTING
          Call is alerting
Incoming: ACM has been sent
Outgoing: ACM has been received.
static int CONNECTED
          Call is established
Incoming: Channel has been connected and ANM has been sent
Outgoing: ANM has been received
static int DISCONNECTED
          Call is released.
static int IDLE
          Initial state immediatly after creation
static int INPROGRESS
          Call is being processed in the network
Outgoing call only
static int MAX_STATE_VALUE
           
static String[] sName
          Connection states
static int UNKNOWN
          Error state
 
Method Summary
 void connect()
          Connect the call.
 void disconnect()
          Disconnect the call.
 Address getCalledAddress()
          Return the called address
 Address getCallerAddress()
          Return the caller address
 CallSpec getCallSpec()
           
 void receive()
          For incoming calls, send backward ack
 

Field Detail

ALERTING

public static final int ALERTING
Call is alerting
Incoming: ACM has been sent
Outgoing: ACM has been received. Channel must have been connected (No continuity check case).

See Also:
Constant Field Values

CONNECTED

public static final int CONNECTED
Call is established
Incoming: Channel has been connected and ANM has been sent
Outgoing: ANM has been received

See Also:
Constant Field Values

DISCONNECTED

public static final int DISCONNECTED
Call is released. Either from OCMP or because a REL message has been received

See Also:
Constant Field Values

IDLE

public static final int IDLE
Initial state immediatly after creation

See Also:
Constant Field Values

INPROGRESS

public static final int INPROGRESS
Call is being processed in the network
Outgoing call only

See Also:
Constant Field Values

MAX_STATE_VALUE

public static final int MAX_STATE_VALUE
See Also:
Constant Field Values

sName

public static final String[] sName
Connection states


UNKNOWN

public static final int UNKNOWN
Error state

See Also:
Constant Field Values
Method Detail

connect

public void connect()
             throws AccessControlException
Connect the call.
For incoming calls, accept the call and put the call in ConnectionIF.CONNECTED state.
For outgoing call, try to establish the call (for ISUP, send the IAM).

Throws:
AccessControlException - if requested operation fails.

receive

public void receive()
             throws AccessControlException
For incoming calls, send backward ack

Throws:
AccessControlException

disconnect

public void disconnect()
                throws AccessControlException
Disconnect the call. A release must be sent to the distant and the ConnectionListener need to be called as listener.connectionStateChange(ConnectionIF.DISCONNECTED) when the call is really released

Throws:
AccessControlException - if requested operation fails.

getCalledAddress

public Address getCalledAddress()
                         throws AccessControlException
Return the called address

Throws:
AccessControlException

getCallerAddress

public Address getCallerAddress()
                         throws AccessControlException
Return the caller address

Throws:
AccessControlException

getCallSpec

public CallSpec getCallSpec()
                     throws AccessControlException
Throws:
AccessControlException