All Packages Class Hierarchy This Package Previous Next Index
Class iceberg.ipop.CallAgent
java.lang.Object
|
+----ninja.rmi.NinjaRemoteObject
|
+----iceberg.ipop.CallAgent
- public class CallAgent
- extends NinjaRemoteObject
- implements CallAgentIF, Serializable
CallAgent is dispatched by call agent dispatcher (CAD) of an iPOP for
a communication device (or its proxy like IAP) to effect call setup and control.
- See Also:
- iPOPIF
-
CallAgent()
- Call agent constructor.
-
beTerminated(String)
- This method is called when the call is terminated by the rest of
the call participants (i.e., call terminated passively).
-
changePath(EndPointInfo)
-
-
getID()
-
-
getParticipants()
- Get the pariticipants of the call session.
-
getSigMcastAddr()
- Obtain the signaling address this call agent is using.
-
getSigMcastPort()
- Obtain the signaling port this call agent is using.
-
getStub()
- Method to get the RMI call stub of the call agent.
-
getTransportMcastAddr()
- Obtain the transport mcast address this session is using.
-
getTransportMcastPort()
- Obtain the transport mcast address this session is using.
-
handleEndPointChange(CallState, CallState)
-
-
handleEndPointLeave(CallState)
-
-
handleIncomingCall(IncomingCallRequest)
- Method to handle incoming call to the device this call agent is serving.
-
handleNewEndPoint(CallState)
-
-
handleOutgoingCall(OutgoingCallRequest)
- Method to handle the outgoing call for a device.
-
handleOutgoingDTMF(String)
-
-
setIPOP(iPOPIF)
-
-
terminateCall()
- Method to terminate the ongoing call for the communication device.
CallAgent
public CallAgent() throws RemoteException
- Call agent constructor.
setIPOP
public void setIPOP(iPOPIF ipop)
getID
public String getID() throws RemoteException
getStub
public NinjaRemoteStub getStub()
- Method to get the RMI call stub of the call agent.
- Returns:
- NinjaRemoteStub
- Overrides:
- getStub in class NinjaRemoteObject
getSigMcastAddr
public String getSigMcastAddr() throws RemoteException
- Obtain the signaling address this call agent is using.
getSigMcastPort
public int getSigMcastPort() throws RemoteException
- Obtain the signaling port this call agent is using.
getTransportMcastAddr
public String getTransportMcastAddr() throws RemoteException
- Obtain the transport mcast address this session is using.
getTransportMcastPort
public int getTransportMcastPort() throws RemoteException
- Obtain the transport mcast address this session is using.
handleIncomingCall
public synchronized RingReply handleIncomingCall(IncomingCallRequest rq) throws RemoteException
- Method to handle incoming call to the device this call agent is serving.
- Parameters:
- rq - IncomingCallRequest
- See Also:
- IncomingCallRequest
handleOutgoingCall
public boolean handleOutgoingCall(OutgoingCallRequest callRequest) throws RemoteException
- Method to handle the outgoing call for a device.
- Parameters:
- callRequest - outgoing call request
- Returns:
- true if successful, false if not
beTerminated
public synchronized void beTerminated(String uniqueID)
- This method is called when the call is terminated by the rest of
the call participants (i.e., call terminated passively).
terminateCall
public synchronized void terminateCall() throws RemoteException
- Method to terminate the ongoing call for the communication device.
getParticipants
public String[] getParticipants() throws RemoteException
- Get the pariticipants of the call session.
handleEndPointChange
public void handleEndPointChange(CallState oldCallState,
CallState newCallState) throws RemoteException
handleNewEndPoint
public synchronized void handleNewEndPoint(CallState newCallState)
handleEndPointLeave
public void handleEndPointLeave(CallState callState)
handleOutgoingDTMF
public void handleOutgoingDTMF(String tone) throws RemoteException
changePath
public void changePath(EndPointInfo newEndPointInfo) throws RemoteException, PathNotFoundException
All Packages Class Hierarchy This Package Previous Next Index