OPAL  Version 3.10.4
SIPNotifyHandler Class Reference

#include <handlers.h>

Inheritance diagram for SIPNotifyHandler:
SIPHandler

Public Types

enum  Reasons {
  Deactivated, Probation, Rejected, Timeout,
  GiveUp, NoResource
}
- Public Types inherited from SIPHandler
enum  State {
  Subscribed, Subscribing, Unavailable, Refreshing,
  Restoring, Unsubscribing, Unsubscribed, NumStates
}

Public Member Functions

 SIPNotifyHandler (SIPEndPoint &ep, const PString &targetAddress, const SIPEventPackage &eventPackage, const SIPDialogContext &dialog)
 ~SIPNotifyHandler ()
virtual SIPTransactionCreateTransaction (OpalTransport &)
virtual SIPEventPackage GetEventPackage () const
virtual void SetBody (const PString &body)
virtual bool IsDuplicateCSeq (unsigned sequenceNumber)
virtual bool SendNotify (const PObject *body)
- Public Member Functions inherited from SIPHandler
 ~SIPHandler ()
virtual Comparison Compare (const PObject &other) const
virtual bool ShutDown ()
void SetState (SIPHandler::State s)
SIPHandler::State GetState ()
virtual OpalTransportGetTransport ()
virtual SIPAuthenticationGetAuthentication ()
virtual const SIPURLGetAddressOfRecord ()
virtual PBoolean OnReceivedNOTIFY (SIP_PDU &response)
virtual void SetExpire (int e)
virtual int GetExpire ()
virtual const PString & GetCallID () const
SIP_PDU::Methods GetMethod () const
virtual void OnReceivedResponse (SIPTransaction &transaction, SIP_PDU &response)
virtual void OnReceivedIntervalTooBrief (SIPTransaction &transaction, SIP_PDU &response)
virtual void OnReceivedTemporarilyUnavailable (SIPTransaction &transaction, SIP_PDU &response)
virtual void OnReceivedAuthenticationRequired (SIPTransaction &transaction, SIP_PDU &response)
virtual void OnReceivedOK (SIPTransaction &transaction, SIP_PDU &response)
virtual void OnTransactionFailed (SIPTransaction &transaction)
virtual void OnFailed (const SIP_PDU &response)
virtual void OnFailed (SIP_PDU::StatusCodes)
bool ActivateState (SIPHandler::State state)
SIPEndPointGetEndPoint () const
const OpalProductInfoGetProductInfo () const
const PString & GetUsername () const
const PString & GetPassword () const
const PString & GetRealm () const
const SIPURLGetRemoteAddress () const
const SIPURLGetProxy () const

Protected Member Functions

virtual PBoolean SendRequest (SIPHandler::State state)
virtual bool WriteSIPHandler (OpalTransport &transport, bool forked)
- Protected Member Functions inherited from SIPHandler
 SIPHandler (SIP_PDU::Methods method, SIPEndPoint &ep, const SIPParameters &params)
void RetryLater (unsigned after)
 PDECLARE_NOTIFIER (PTimer, SIPHandler, OnExpireTimeout)

Protected Attributes

SIPEventPackage m_eventPackage
SIPDialogContext m_dialog
Reasons m_reason
SIPEventPackageHandlerm_packageHandler
PString m_body
- Protected Attributes inherited from SIPHandler
SIPEndPointendpoint
SIPAuthenticationauthentication
PString m_username
PString m_password
PString m_realm
PSafeList< SIPTransactionm_transactions
OpalTransportm_transport
SIP_PDU::Methods m_method
SIPURL m_addressOfRecord
SIPURL m_remoteAddress
PString m_callID
unsigned m_lastCseq
int m_currentExpireTime
int m_originalExpireTime
int m_offlineExpireTime
State m_state
queue< Statem_stateQueue
bool m_receivedResponse
PTimer m_expireTimer
SIPURL m_proxy
OpalProductInfo m_productInfo
std::pair< IndexMap::iterator,
bool > 
m_byCallID
std::pair< IndexMap::iterator,
bool > 
m_byAorAndPackage
std::pair< IndexMap::iterator,
bool > 
m_byAuthIdAndRealm
std::pair< IndexMap::iterator,
bool > 
m_byAorUserAndRealm

Additional Inherited Members

- Data Fields inherited from SIPHandler
SIPMIMEInfo m_mime
- Protected Types inherited from SIPHandler
typedef std::map< PString,
PSafePtr< SIPHandler > > 
IndexMap
- Static Protected Member Functions inherited from SIPHandler
static PBoolean WriteSIPHandler (OpalTransport &transport, void *info)

Member Enumeration Documentation

Enumerator:
Deactivated 
Probation 
Rejected 
Timeout 
GiveUp 
NoResource 

Constructor & Destructor Documentation

SIPNotifyHandler::SIPNotifyHandler ( SIPEndPoint ep,
const PString &  targetAddress,
const SIPEventPackage eventPackage,
const SIPDialogContext dialog 
)
SIPNotifyHandler::~SIPNotifyHandler ( )

Member Function Documentation

virtual SIPTransaction* SIPNotifyHandler::CreateTransaction ( OpalTransport )
virtual

Implements SIPHandler.

virtual SIPEventPackage SIPNotifyHandler::GetEventPackage ( ) const
inlinevirtual

Reimplemented from SIPHandler.

References m_eventPackage.

virtual bool SIPNotifyHandler::IsDuplicateCSeq ( unsigned  sequenceNumber)
inlinevirtual

Reimplemented from SIPHandler.

References SIPDialogContext::IsDuplicateCSeq(), and m_dialog.

virtual bool SIPNotifyHandler::SendNotify ( const PObject *  body)
virtual

Reimplemented from SIPHandler.

virtual PBoolean SIPNotifyHandler::SendRequest ( SIPHandler::State  state)
protectedvirtual

Reimplemented from SIPHandler.

virtual void SIPNotifyHandler::SetBody ( const PString &  body)
inlinevirtual

Reimplemented from SIPHandler.

References m_body.

virtual bool SIPNotifyHandler::WriteSIPHandler ( OpalTransport transport,
bool  forked 
)
protectedvirtual

Reimplemented from SIPHandler.


Field Documentation

PString SIPNotifyHandler::m_body
protected

Referenced by SetBody().

SIPDialogContext SIPNotifyHandler::m_dialog
protected

Referenced by IsDuplicateCSeq().

SIPEventPackage SIPNotifyHandler::m_eventPackage
protected

Referenced by GetEventPackage().

SIPEventPackageHandler* SIPNotifyHandler::m_packageHandler
protected
Reasons SIPNotifyHandler::m_reason
protected

The documentation for this class was generated from the following file: