|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The JccCall interface extends the JcpCall interface of JCP.
This interface provides additional methods on a Call. Further, the state machine
on the JccCall is also similar to the state machine of the JcpCall except for an
extra transition as shown in the following figure.
| Fields inherited from interface jain.jcp.JcpCall |
ACTIVE,
IDLE,
INVALID |
| Method Summary | |
void |
addCallListener(JcpCallListener calllistener,
EventFilter filter)
Add a listener to this call. |
void |
addConnectionListener(JcpConnectionListener cl,
EventFilter filter)
Add a connection listener to all connections under this call. |
JcpConnection |
createConnection(java.lang.String targetAddress,
java.lang.String originatingAddress,
java.lang.String originalCalledAddress,
java.lang.String redirectingAddress)
Creates a new JccConnection and attaches it to this JccCall. |
void |
release()
This method requests the release of the call object and associated connection objects. |
void |
removeConnectionListener(JcpConnectionListener cl)
Removes the connection listener from all connections under this call. |
JcpConnection |
routeCall(java.lang.String targetAddress,
java.lang.String originatingAddress,
java.lang.String originalDestinationAddress,
java.lang.String redirectingAddress)
This method requests routing of a call to the given call party. |
void |
superviseCall(JccCallListener calllistener,
double time,
int treatment,
double bytes)
The application calls this method to supervise a call. |
| Methods inherited from interface jain.jcp.JcpCall |
addCallListener,
getConnections,
getProvider,
getState,
removeCallListener |
| Method Detail |
public void addCallListener(JcpCallListener calllistener,
EventFilter filter)
throws ResourceUnavailableException,
MethodNotSupportedException
calllistener - JcpCallListener object that receives the specified events.filter - EventFilter which determines if the event is to be
delivered to the specified listener.
public void addConnectionListener(JcpConnectionListener cl,
EventFilter filter)
throws ResourceUnavailableException,
MethodNotSupportedException
cl - JcpConnectionListener object that receives the specified events.filter - EventFilter determines if the event is to be
delivered to the specified listener.public void removeConnectionListener(JcpConnectionListener cl)
cl - JcpConnectionListener object that was registered using a corresponding
addConnectionListener method.
public void release()
throws PrivilegeViolationException,
ResourceUnavailableException,
InvalidStateException
Pre-conditions:
Post-conditions:
public JcpConnection createConnection(java.lang.String targetAddress,
java.lang.String originatingAddress,
java.lang.String originalCalledAddress,
java.lang.String redirectingAddress)
throws InvalidStateException,
ResourceUnavailableException,
PrivilegeViolationException,
MethodNotSupportedException
Pre-conditions:
Post-conditions:
targetAddress - specifies the JcpAddress with which the connection should be
associated.originatingAddress - specifies the address of the originating (calling)
party for this leg of the call. This is optional and can be set to null.originalCalledAddress - specifies the initial address to which
this leg of the call was initiated. This is optional and can be set to null.redirectingAddress - specifies the last address from which this leg of the call
was redirected. This is optional and can be set to null.
public JcpConnection routeCall(java.lang.String targetAddress,
java.lang.String originatingAddress,
java.lang.String originalDestinationAddress,
java.lang.String redirectingAddress)
throws InvalidStateException,
ResourceUnavailableException,
PrivilegeViolationException,
MethodNotSupportedException,
InvalidPartyException,
InvalidArgumentException
Pre-conditions:
Post-conditions:
targetAddress - specifies the origination party to which the call should be routed.originatingAddress - specifies the address of the originating (calling)
party. This parameter is optional and hence can be set to null.originalDestinationAddress - specifies the original destination
Address of the call. This parameter is optional and hence can be set to null.
public void superviseCall(JccCallListener calllistener,
double time,
int treatment,
double bytes)
throws MethodNotSupportedException
calllistener - JccCallListener object that receives the specified events.time - specifies the granted time in milliseconds for the connection. When specified
as 0, volume based supervision is applied. Either bytes(volume) or time should be specified.treatment - defines the treatment of the call by the call control service when
the call supervision timer expires. The values which may be combined using a logical
OR function are bytes - specifies the granted number of bytes that can be transmitted for the
connection. When the quantity is specified as 0, time based supervision is applied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||