org.mobicents.slee.examples.callcontrol.forwarding
Class CallForwardingSbb

java.lang.Object
  extended by org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
      extended by org.mobicents.slee.examples.callcontrol.forwarding.CallForwardingSbb
All Implemented Interfaces:
javax.slee.Sbb

public abstract class CallForwardingSbb
extends org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
implements javax.slee.Sbb

If the user is subscribed to forwarding

Author:
torosvi, Ivelin Ivanov

Field Summary
 
Fields inherited from class org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
log
 
Constructor Summary
CallForwardingSbb()
           
 
Method Summary
abstract  CallForwardingSbbActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)
           
protected  javax.sip.address.Address forwardCall(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface ac)
          Try to find a backup address for the user where the call can be forwarded to
abstract  org.mobicents.slee.examples.callcontrol.profile.CallControlProfileCMP getCallControlProfileCMP(javax.slee.profile.ProfileID profileID)
           
protected  javax.sip.header.HeaderFactory getHeaderFactory()
           
abstract  javax.slee.ChildRelation getJainSipProxySbb()
           
 void onAck(javax.sip.RequestEvent event, CallForwardingSbbActivityContextInterface localAci)
           
 void onBye(javax.sip.RequestEvent event, CallForwardingSbbActivityContextInterface localAci)
           
 void onCancel(javax.sip.RequestEvent event, CallForwardingSbbActivityContextInterface localAci)
           
 void onInvite(javax.sip.RequestEvent event, CallForwardingSbbActivityContextInterface localAci)
           
 void setSbbContext(javax.slee.SbbContext context)
           
 
Methods inherited from class org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
callIDSelect, getAddressFactory, getMessageFactory, getProfileFacility, getSbbContext, getSbbLocalObject, getSipFactoryProvider, lookup, sbbActivate, sbbCreate, sbbExceptionThrown, sbbLoad, sbbPassivate, sbbPostCreate, sbbRemove, sbbRolledBack, sbbStore, unsetSbbContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.slee.Sbb
sbbActivate, sbbCreate, sbbExceptionThrown, sbbLoad, sbbPassivate, sbbPostCreate, sbbRemove, sbbRolledBack, sbbStore, unsetSbbContext
 

Constructor Detail

CallForwardingSbb

public CallForwardingSbb()
Method Detail

onInvite

public void onInvite(javax.sip.RequestEvent event,
                     CallForwardingSbbActivityContextInterface localAci)

setSbbContext

public void setSbbContext(javax.slee.SbbContext context)
Specified by:
setSbbContext in interface javax.slee.Sbb
Overrides:
setSbbContext in class org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb

getHeaderFactory

protected final javax.sip.header.HeaderFactory getHeaderFactory()

getJainSipProxySbb

public abstract javax.slee.ChildRelation getJainSipProxySbb()

getCallControlProfileCMP

public abstract org.mobicents.slee.examples.callcontrol.profile.CallControlProfileCMP getCallControlProfileCMP(javax.slee.profile.ProfileID profileID)
                                                                                                        throws javax.slee.profile.UnrecognizedProfileNameException,
                                                                                                               javax.slee.profile.UnrecognizedProfileTableNameException
Specified by:
getCallControlProfileCMP in class org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
Throws:
javax.slee.profile.UnrecognizedProfileNameException
javax.slee.profile.UnrecognizedProfileTableNameException

asSbbActivityContextInterface

public abstract CallForwardingSbbActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)

forwardCall

protected javax.sip.address.Address forwardCall(javax.sip.RequestEvent event,
                                                javax.slee.ActivityContextInterface ac)
Try to find a backup address for the user where the call can be forwarded to

Parameters:
event -
ac -
Returns:
the address where the call is forwarded or null if there is none

onAck

public void onAck(javax.sip.RequestEvent event,
                  CallForwardingSbbActivityContextInterface localAci)

onBye

public void onBye(javax.sip.RequestEvent event,
                  CallForwardingSbbActivityContextInterface localAci)

onCancel

public void onCancel(javax.sip.RequestEvent event,
                     CallForwardingSbbActivityContextInterface localAci)


Copyright © 2008. All Rights Reserved.