sipXcallLib home page


Public Member Functions | Protected Member Functions | Private Attributes | List of all members
DialogEventPublisher Class Reference

Class for publishing the dialog state change for each call. More...

#include <DialogEventPublisher.h>

Inheritance diagram for DialogEventPublisher:
Inheritance graph
[legend]
Collaboration diagram for DialogEventPublisher:
Collaboration graph
[legend]

Public Member Functions

 DialogEventPublisher (CallManager *callMgr, SipPublishContentMgr *contentMgr)
 
virtual ~DialogEventPublisher ()
 
virtual UtlBoolean handleMessage (OsMsg &eventMessage)
 Handle an incoming message. More...
 
- Public Member Functions inherited from TaoAdaptor
 TaoAdaptor (const UtlString &name="TaoAdaptor-%d", const int maxRequestQMsgs=DEF_MAX_MSGS)
 
 TaoAdaptor (const TaoAdaptor &rTaoAdaptor)
 
virtual ~TaoAdaptor ()
 
virtual void setListenerManager (TaoListenerManager *&rpListenerMgr)
 
virtual void parseMessage (TaoMessage &rMsg)
 
virtual OsStatus setErrno (int errno)
 

Protected Member Functions

void dumpTaoMessageArgs (unsigned char eventId, TaoString &args)
 
void insertEntry (UtlString &callId, SipDialogEvent *call)
 
SipDialogEvent * getEntry (UtlString &callId)
 
SipDialogEvent * removeEntry (UtlString &callId)
 

Private Attributes

CallManagermpCallManager
 
SipPublishContentMgr * mpSipPublishContentMgr
 
UtlHashMap mCalls
 
unsigned long mDialogId
 

Additional Inherited Members

- Protected Attributes inherited from TaoAdaptor
unsigned char mCmd
 
TaoObjHandle mMsgID
 
TaoObjHandle mObjId
 
TaoObjHandle mClientSocket
 
UtlString mArgList
 
int mArgCnt
 
TaoListenerManagermpListenerMgr
 

Detailed Description

Class for publishing the dialog state change for each call.

This class keeps tracking the dialog state changes for each call and generates a dialog event package as described in draft-ietf-sipping-dialog-package-06.txt (An INVITE Initiated Dialog Event Package for SIP) and sends it to a generic RFC 3265 SUBSCRIBE server or NOTIFIER.

Constructor & Destructor Documentation

DialogEventPublisher ( CallManager callMgr,
SipPublishContentMgr *  contentMgr 
)
~DialogEventPublisher ( )
virtual

Member Function Documentation

void dumpTaoMessageArgs ( unsigned char  eventId,
TaoString args 
)
protected
SipDialogEvent* getEntry ( UtlString &  callId)
protected
UtlBoolean handleMessage ( OsMsg &  rMsg)
virtual

Handle an incoming message.

If the message is not one that the object is prepared to process, the handleMessage() method in the derived class should return FALSE which will cause the OsServerTask::handleMessage() method to be invoked on the message.

Reimplemented from TaoAdaptor.

void insertEntry ( UtlString &  callId,
SipDialogEvent *  call 
)
protected
SipDialogEvent* removeEntry ( UtlString &  callId)
protected

Member Data Documentation

UtlHashMap mCalls
private
unsigned long mDialogId
private
CallManager* mpCallManager
private
SipPublishContentMgr* mpSipPublishContentMgr
private