org.mobicents.slee.examples.callcontrol.voicemail
Class VoiceMailSbb

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

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

Voice Mail service logic using SIP RA with dialog support and Media RA.

Author:
torosvi, baranowb, iivanov

Field Summary
static java.lang.String ENDPOINT_NAME
           
 
Fields inherited from class org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
log
 
Constructor Summary
VoiceMailSbb()
           
 
Method Summary
abstract  VoiceMailSbbActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)
           
abstract  org.mobicents.slee.examples.callcontrol.profile.CallControlProfileCMP getCallControlProfileCMP(javax.slee.profile.ProfileID profileID)
           
abstract  java.lang.String getDtmf()
           
abstract  javax.sip.message.Request getInviteRequest()
           
abstract  org.mobicents.mscontrol.MsSession getMediaSession()
           
abstract  boolean getOk()
           
abstract  boolean getSameUser()
           
abstract  javax.sip.ServerTransaction getServerTransaction()
           
abstract  javax.slee.facilities.TimerID getTimerID()
           
abstract  java.lang.String getUserEndpoint()
           
 void onByeEvent(javax.sip.RequestEvent event, javax.slee.ActivityContextInterface aci)
          At any time a SIP Client can send a BYE Request.
 void onConnectionCreated(org.mobicents.mscontrol.MsConnectionEvent evt, javax.slee.ActivityContextInterface aci)
           
 void onDtmf(org.mobicents.mscontrol.MsNotifyEvent evt, javax.slee.ActivityContextInterface aci)
           
 void onInvite(javax.sip.RequestEvent event, VoiceMailSbbActivityContextInterface localAci)
           
 void onTimerEvent(javax.slee.facilities.TimerEvent event, javax.slee.ActivityContextInterface aci)
           
 void sbbPostCreate()
           
abstract  void setDtmf(java.lang.String value)
           
abstract  void setInviteRequest(javax.sip.message.Request value)
           
abstract  void setMediaSession(org.mobicents.mscontrol.MsSession value)
          ***************************************** ************** CMP Fields *************** *****************************************
abstract  void setOk(boolean value)
           
abstract  void setSameUser(boolean value)
           
 void setSbbContext(javax.slee.SbbContext context)
           
abstract  void setServerTransaction(javax.sip.ServerTransaction value)
           
abstract  void setTimerID(javax.slee.facilities.TimerID value)
           
abstract  void setUserEndpoint(java.lang.String endpointName)
           
 
Methods inherited from class org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
callIDSelect, getAddressFactory, getMessageFactory, getProfileFacility, getSbbContext, getSbbLocalObject, getSipFactoryProvider, lookup, sbbActivate, sbbCreate, sbbExceptionThrown, sbbLoad, sbbPassivate, 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, sbbRemove, sbbRolledBack, sbbStore, unsetSbbContext
 

Field Detail

ENDPOINT_NAME

public static final java.lang.String ENDPOINT_NAME
See Also:
Constant Field Values
Constructor Detail

VoiceMailSbb

public VoiceMailSbb()
Method Detail

onInvite

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

onByeEvent

public void onByeEvent(javax.sip.RequestEvent event,
                       javax.slee.ActivityContextInterface aci)
At any time a SIP Client can send a BYE Request. If the Voice Mail is being used it will be the VoicemailSbb the one that will send OK Response.

Parameters:
event -
aci -

onTimerEvent

public void onTimerEvent(javax.slee.facilities.TimerEvent event,
                         javax.slee.ActivityContextInterface aci)

onConnectionCreated

public void onConnectionCreated(org.mobicents.mscontrol.MsConnectionEvent evt,
                                javax.slee.ActivityContextInterface aci)

onDtmf

public void onDtmf(org.mobicents.mscontrol.MsNotifyEvent evt,
                   javax.slee.ActivityContextInterface aci)

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

sbbPostCreate

public void sbbPostCreate()
                   throws javax.slee.CreateException
Specified by:
sbbPostCreate in interface javax.slee.Sbb
Overrides:
sbbPostCreate in class org.mobicents.slee.examples.callcontrol.common.SubscriptionProfileSbb
Throws:
javax.slee.CreateException

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 VoiceMailSbbActivityContextInterface asSbbActivityContextInterface(javax.slee.ActivityContextInterface aci)

setMediaSession

public abstract void setMediaSession(org.mobicents.mscontrol.MsSession value)
***************************************** ************** CMP Fields *************** *****************************************


getMediaSession

public abstract org.mobicents.mscontrol.MsSession getMediaSession()

setInviteRequest

public abstract void setInviteRequest(javax.sip.message.Request value)

getInviteRequest

public abstract javax.sip.message.Request getInviteRequest()

setServerTransaction

public abstract void setServerTransaction(javax.sip.ServerTransaction value)

getServerTransaction

public abstract javax.sip.ServerTransaction getServerTransaction()

setOk

public abstract void setOk(boolean value)

getOk

public abstract boolean getOk()

setSameUser

public abstract void setSameUser(boolean value)

getSameUser

public abstract boolean getSameUser()

setTimerID

public abstract void setTimerID(javax.slee.facilities.TimerID value)

getTimerID

public abstract javax.slee.facilities.TimerID getTimerID()

setDtmf

public abstract void setDtmf(java.lang.String value)

getDtmf

public abstract java.lang.String getDtmf()

getUserEndpoint

public abstract java.lang.String getUserEndpoint()

setUserEndpoint

public abstract void setUserEndpoint(java.lang.String endpointName)


Copyright © 2008. All Rights Reserved.