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 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()
           
 org.mobicents.slee.services.sip.location.LocationSbbLocalObject getLocationSbb()
           
abstract  javax.slee.ChildRelation getLocationSbbChildRelation()
           
abstract  org.mobicents.slee.services.sip.location.LocationSbbLocalObject getLocationSbbCMP()
           
 void onAck(javax.sip.RequestEvent event, CallForwardingSbbActivityContextInterface localAci)
           
 void onBye(javax.sip.RequestEvent event, CallForwardingSbbActivityContextInterface localAci)
           
 void onCancel(net.java.slee.resource.sip.CancelRequestEvent event, CallForwardingSbbActivityContextInterface localAci)
           
 void onInvite(javax.sip.RequestEvent event, CallForwardingSbbActivityContextInterface localAci)
           
abstract  void setLocationSbbCMP(org.mobicents.slee.services.sip.location.LocationSbbLocalObject value)
           
 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 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 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(net.java.slee.resource.sip.CancelRequestEvent event,
                     CallForwardingSbbActivityContextInterface localAci)

getLocationSbbChildRelation

public abstract javax.slee.ChildRelation getLocationSbbChildRelation()

getLocationSbbCMP

public abstract org.mobicents.slee.services.sip.location.LocationSbbLocalObject getLocationSbbCMP()

setLocationSbbCMP

public abstract void setLocationSbbCMP(org.mobicents.slee.services.sip.location.LocationSbbLocalObject value)

getLocationSbb

public org.mobicents.slee.services.sip.location.LocationSbbLocalObject getLocationSbb()
                                                                               throws javax.slee.TransactionRequiredLocalException,
                                                                                      javax.slee.SLEEException,
                                                                                      javax.slee.CreateException
Throws:
javax.slee.TransactionRequiredLocalException
javax.slee.SLEEException
javax.slee.CreateException


Copyright © 2010. All Rights Reserved.