All Packages Class Hierarchy This Package Previous Next Index
Class iceberg.iap.gsm_iap.Callto
java.lang.Object
|
+----ninja.rmi.NinjaRemoteObject
|
+----ninja.ispace.iSpaceService
|
+----iceberg.iap.IAP
|
+----iceberg.iap.IAPWithCA
|
+----iceberg.iap.gsm_iap.Callto
- public class Callto
- extends IAPWithCA
- implements rmi2phone, IAPIF, ConnectorMgrIF
Thread to handle call setup/term to mobile (from the
internet). This actually does not implement the thread. This class
implements the RMI call. The class callto_thr_class is a wrapper
around this.
This can run as an indpendent thread or as an iSpaceService. In
the latter case, Callto has to extend IAPWithCA instead of
UnicastRemoteObject.
-
Callto()
-
-
beHungUp(CallAgentIF, EndPointInfo)
- RMI call from CA to terminate a call.
-
call2phone(rmi2phone_req)
- The RMI interface for incoming calls (operation with no Call
Agent)
-
call2phone(rmi2phone_req, CallAgentIF)
- The actual server code.
-
cleanUp(int, OperatorIF, String)
- Call for terminating the 'forwarder'
-
createStartConn(int, OperatorIF, InetAddress, int, String)
- This is the call that gives info on the destination of packets
from forwarder.
-
destroy()
- Required for running as iSpace service
-
init(iSpaceServiceConfig)
- init - to be called by iSpace
-
loadLocalOperator(int, DescrOperator, String, String)
- Call for loading the 'forwarder'
-
rejected(String, String)
- RMI call from CA when remote end rejects call
-
ring(CallAgentIF, String, String, String[])
- The RMI interface for the CA to call on incoming call.
Callto
public Callto() throws RemoteException
init
public void init(iSpaceServiceConfig config)
- init - to be called by iSpace
- Overrides:
- init in class IAP
destroy
protected void destroy()
- Required for running as iSpace service
- Overrides:
- destroy in class iSpaceService
call2phone
public synchronized rmi2phone_rep call2phone(rmi2phone_req req) throws RemoteException
- The RMI interface for incoming calls (operation with no Call
Agent)
call2phone
public synchronized rmi2phone_rep call2phone(rmi2phone_req req,
CallAgentIF ca) throws RemoteException
- The actual server code. Wait on INVITE/BYE/DTMF messages from
another (or same :-) IAP. Setup/Terminate call. Return
appropriate respose.
ring
public RingReply ring(CallAgentIF ca,
String callerID,
String netSpecID,
String others[]) throws RemoteException
- The RMI interface for the CA to call on incoming call. This just
calls call2phone with the appropriate transformation of args and
return value.
- Overrides:
- ring in class IAPWithCA
beHungUp
public void beHungUp(CallAgentIF ca,
EndPointInfo info) throws RemoteException
- RMI call from CA to terminate a call. This just calls call2phone
with the appropriate transformation of args.
- Overrides:
- beHungUp in class IAPWithCA
rejected
public void rejected(String calleeAddr,
String pathInfo) throws RemoteException
- RMI call from CA when remote end rejects call
- Overrides:
- rejected in class IAPWithCA
loadLocalOperator
public OperatorIF loadLocalOperator(int pathid,
DescrOperator thedescr,
String name,
String callid) throws ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, IOException, RemoteException
- Call for loading the 'forwarder'
- Overrides:
- loadLocalOperator in class IAPWithCA
createStartConn
public ConnEntry createStartConn(int connType,
OperatorIF opSource,
InetAddress addr,
int port,
String callid) throws RemoteException, IOException
- This is the call that gives info on the destination of packets
from forwarder.
- Overrides:
- createStartConn in class IAPWithCA
cleanUp
public void cleanUp(int pathid,
OperatorIF op,
String callid) throws RemoteException
- Call for terminating the 'forwarder'
- Overrides:
- cleanUp in class IAPWithCA
All Packages Class Hierarchy This Package Previous Next Index