SIPPublishHandler Class Reference

`#include <handlers.h>`

Inheritance diagram for SIPPublishHandler:

## Public Member Functions

| SIPPublishHandler (SIPEndPoint &ep, const SIPSubscribe::Params &params, const PString &body)
virtual void | SetBody (const PString &body)
virtual SIPTransaction * | CreateTransaction (OpalTransport &)
virtual void | OnReceivedOK (SIPTransaction &transaction, SIP_PDU &response)
virtual SIPEventPackage | GetEventPackage () const
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 OpalTransport * | GetTransport ()
virtual SIPAuthentication * | GetAuthentication ()
virtual const SIPURL & | GetAddressOfRecord ()
virtual PBoolean | OnReceivedNOTIFY (SIP_PDU &response)
virtual void | SetExpire (int e)
virtual int | GetExpire ()
virtual const PString & | GetCallID () const
virtual bool | IsDuplicateCSeq (unsigned)
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 | OnTransactionFailed (SIPTransaction &transaction)
virtual void | OnFailed (const SIP_PDU &response)
virtual void | OnFailed (SIP_PDU::StatusCodes)
bool | ActivateState (SIPHandler::State state)
virtual bool | SendNotify (const PObject *)
SIPEndPoint & | GetEndPoint () const
const OpalProductInfo & | GetProductInfo () const
const PString & | GetUsername () const
const PString & | GetPassword () const
const PString & | GetRealm () const
const SIPURL & | GetRemoteAddress () const
const SIPURL & | GetProxy () const

## Protected Attributes

SIPSubscribe::Params | m_parameters
PString | m_body
PString | m_sipETag
Protected Attributes inherited from SIPHandler
SIPEndPoint & | endpoint
SIPAuthentication * | m_authentication
unsigned | m_authenticateErrors
PString | m_username
PString | m_password
PString | m_realm
PSafeList< SIPTransaction > | m_transactions
OpalTransport * | m_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< State > | m_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

Public Types inherited from SIPHandler
enum | State { Subscribed, Subscribing, Unavailable, Refreshing, Restoring, Unsubscribing, Unsubscribed, NumStates }
Data Fields inherited from SIPHandler
SIPMIMEInfo | m_mime
Protected Types inherited from SIPHandler
typedef std::map< PString, PSafePtr< SIPHandler > > | IndexMap
Protected Member Functions inherited from SIPHandler
| SIPHandler (SIP_PDU::Methods method, SIPEndPoint &ep, const SIPParameters &params)
virtual PBoolean | SendRequest (SIPHandler::State state)
void | RetryLater (unsigned after)
| PDECLARE_NOTIFIER (PTimer, SIPHandler, OnExpireTimeout)
virtual bool | WriteSIPHandler (OpalTransport &transport, bool forked)
Static Protected Member Functions inherited from SIPHandler
static PBoolean | WriteSIPHandler (OpalTransport &transport, void *info)

## Constructor & Destructor Documentation

SIPPublishHandler::SIPPublishHandler | ( | SIPEndPoint & | ep,
|  | const SIPSubscribe::Params & | params,
|  | const PString & | body
| ) |  |

## Member Function Documentation

virtual SIPTransaction* SIPPublishHandler::CreateTransaction | ( | OpalTransport & |  | ) |

virtual

Implements SIPHandler.

virtual SIPEventPackage SIPPublishHandler::GetEventPackage | ( |  | ) | const

inline virtual

Reimplemented from SIPHandler.

References SIPSubscribe::Params::m_eventPackage, and m_parameters.

virtual void SIPPublishHandler::OnReceivedOK | ( | SIPTransaction & | transaction,
|  | SIP_PDU & | response
| ) |  |

virtual

Reimplemented from SIPHandler.

virtual void SIPPublishHandler::SetBody | ( | const PString & | body | ) |

inline virtual

Reimplemented from SIPHandler.

References m_body.

## Field Documentation

PString SIPPublishHandler::m_body

protected

Referenced by SetBody().

SIPSubscribe::Params SIPPublishHandler::m_parameters

protected

Referenced by GetEventPackage().

PString SIPPublishHandler::m_sipETag

protected

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

- handlers.h