org.mobicents.slee.parlay.callblocking
Class CallBlockingSbb

java.lang.Object
  extended by org.mobicents.slee.parlay.callblocking.CallBlockingSbb
All Implemented Interfaces:
javax.slee.Sbb

public abstract class CallBlockingSbb
extends java.lang.Object
implements javax.slee.Sbb

Implementation of a simple call blocking sbb. The address profile table for the sbb maintains a list of blocked addresses. Each profile in the address profile table has a list of blocked address associated with it. Incoming calls from a blocked address are blocked by simply releasing the connection.


Constructor Summary
CallBlockingSbb()
           
 
Method Summary
static org.csapi.cc.TpCallEventRequest[] createCallEventRequestArrayToNumber(org.csapi.cc.TpCallMonitorMode callMonitorMode)
          Creates the event request array for a terminating leg interrupt.
static org.csapi.cc.TpCallNotificationRequest createControlCallsToNotificationRequest(org.csapi.TpAddressRange destinationAddressRange, org.csapi.TpAddressRange originatingAddressRange)
          Creates an interrupt on calls from the specified range to the specified range.
abstract  org.mobicents.slee.parlay.callblocking.CallBlockingAddressProfileCMP getProfile(javax.slee.profile.ProfileID id)
           
 void onReportNotificationEvent(org.mobicents.csapi.jr.slee.cc.mpccs.ReportNotificationEvent event, javax.slee.ActivityContextInterface aci)
          Event handler for ReportNotification.
 void onServiceStartedEvent(javax.slee.serviceactivity.ServiceStartedEvent event, javax.slee.ActivityContextInterface aci)
          Sets up a call interrupt for all e164 numbers on receipt of the service started event.
 void sbbActivate()
           
 void sbbCreate()
           
 void sbbExceptionThrown(java.lang.Exception exception, java.lang.Object event, javax.slee.ActivityContextInterface aci)
           
 void sbbLoad()
           
 void sbbPassivate()
           
 void sbbPostCreate()
           
 void sbbRemove()
           
 void sbbRolledBack(javax.slee.RolledBackContext context)
           
 void sbbStore()
           
 void setSbbContext(javax.slee.SbbContext context)
           
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallBlockingSbb

public CallBlockingSbb()
Method Detail

setSbbContext

public void setSbbContext(javax.slee.SbbContext context)
Specified by:
setSbbContext in interface javax.slee.Sbb

unsetSbbContext

public void unsetSbbContext()
Specified by:
unsetSbbContext in interface javax.slee.Sbb

sbbCreate

public void sbbCreate()
               throws javax.slee.CreateException
Specified by:
sbbCreate in interface javax.slee.Sbb
Throws:
javax.slee.CreateException

sbbPostCreate

public void sbbPostCreate()
Specified by:
sbbPostCreate in interface javax.slee.Sbb

sbbActivate

public void sbbActivate()
Specified by:
sbbActivate in interface javax.slee.Sbb

sbbPassivate

public void sbbPassivate()
Specified by:
sbbPassivate in interface javax.slee.Sbb

sbbLoad

public void sbbLoad()
Specified by:
sbbLoad in interface javax.slee.Sbb

sbbStore

public void sbbStore()
Specified by:
sbbStore in interface javax.slee.Sbb

sbbRemove

public void sbbRemove()
Specified by:
sbbRemove in interface javax.slee.Sbb

sbbExceptionThrown

public void sbbExceptionThrown(java.lang.Exception exception,
                               java.lang.Object event,
                               javax.slee.ActivityContextInterface aci)
Specified by:
sbbExceptionThrown in interface javax.slee.Sbb

sbbRolledBack

public void sbbRolledBack(javax.slee.RolledBackContext context)
Specified by:
sbbRolledBack in interface javax.slee.Sbb

onReportNotificationEvent

public void onReportNotificationEvent(org.mobicents.csapi.jr.slee.cc.mpccs.ReportNotificationEvent event,
                                      javax.slee.ActivityContextInterface aci)
Event handler for ReportNotification. Handles call interrupts on originating call attempts.

Parameters:
event -
aci -

onServiceStartedEvent

public void onServiceStartedEvent(javax.slee.serviceactivity.ServiceStartedEvent event,
                                  javax.slee.ActivityContextInterface aci)
Sets up a call interrupt for all e164 numbers on receipt of the service started event.

Parameters:
event -
aci -

createControlCallsToNotificationRequest

public static org.csapi.cc.TpCallNotificationRequest createControlCallsToNotificationRequest(org.csapi.TpAddressRange destinationAddressRange,
                                                                                             org.csapi.TpAddressRange originatingAddressRange)
Creates an interrupt on calls from the specified range to the specified range. Interrupts are on the destination leg.

Parameters:
destinationAddressRange -
originatingAddressRange -
Returns:

createCallEventRequestArrayToNumber

public static org.csapi.cc.TpCallEventRequest[] createCallEventRequestArrayToNumber(org.csapi.cc.TpCallMonitorMode callMonitorMode)
Creates the event request array for a terminating leg interrupt.

Parameters:
callMonitorMode -
Returns:

getProfile

public abstract org.mobicents.slee.parlay.callblocking.CallBlockingAddressProfileCMP getProfile(javax.slee.profile.ProfileID id)
                                                                                         throws javax.slee.profile.UnrecognizedProfileTableNameException,
                                                                                                javax.slee.profile.UnrecognizedProfileNameException
Throws:
javax.slee.profile.UnrecognizedProfileTableNameException
javax.slee.profile.UnrecognizedProfileNameException


Copyright © 2008. All Rights Reserved.