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.


Constructor Index

 o Callto()

Method Index

 o beHungUp(CallAgentIF, EndPointInfo)
RMI call from CA to terminate a call.
 o call2phone(rmi2phone_req)
The RMI interface for incoming calls (operation with no Call Agent)
 o call2phone(rmi2phone_req, CallAgentIF)
The actual server code.
 o cleanUp(int, OperatorIF, String)
Call for terminating the 'forwarder'
 o createStartConn(int, OperatorIF, InetAddress, int, String)
This is the call that gives info on the destination of packets from forwarder.
 o destroy()
Required for running as iSpace service
 o init(iSpaceServiceConfig)
init - to be called by iSpace
 o loadLocalOperator(int, DescrOperator, String, String)
Call for loading the 'forwarder'
 o rejected(String, String)
RMI call from CA when remote end rejects call
 o ring(CallAgentIF, String, String, String[])
The RMI interface for the CA to call on incoming call.

Constructors

 o Callto
 public Callto() throws RemoteException

Methods

 o init
 public void init(iSpaceServiceConfig config)
init - to be called by iSpace

Overrides:
init in class IAP
 o destroy
 protected void destroy()
Required for running as iSpace service

Overrides:
destroy in class iSpaceService
 o call2phone
 public synchronized rmi2phone_rep call2phone(rmi2phone_req req) throws RemoteException
The RMI interface for incoming calls (operation with no Call Agent)

 o 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.

 o 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
 o 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
 o rejected
 public void rejected(String calleeAddr,
                      String pathInfo) throws RemoteException
RMI call from CA when remote end rejects call

Overrides:
rejected in class IAPWithCA
 o 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
 o 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
 o 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