reSIProcate/DialogUsageManager  9694
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
resip::DialogUsage Class Reference

#include <DialogUsage.hxx>

Inheritance diagram for resip::DialogUsage:
Inheritance graph
[legend]
Collaboration diagram for resip::DialogUsage:
Collaboration graph
[legend]

List of all members.

Classes

class  DialogUsageSendCommand
class  Exception

Public Member Functions

AppDialogSetHandle getAppDialogSet ()
AppDialogHandle getAppDialog ()
const NameAddrmyAddr () const
const NameAddrpeerAddr () const
const NameAddrremoteTarget () const
const DialogIdgetDialogId () const
const DatagetCallId () const
SharedPtr< UserProfilegetUserProfile ()

Protected Member Functions

virtual void send (SharedPtr< SipMessage > msg)
virtual void sendCommand (SharedPtr< SipMessage > msg)
virtual void onReadyToSend (SipMessage &)
 DialogUsage (DialogUsageManager &dum, Dialog &dialog)
virtual ~DialogUsage ()
virtual void dialogDestroyed (const SipMessage &msg)=0

Protected Attributes

DialogmDialog

Friends

class DialogSet
class DialogUsageManager
class DialogUsageSendCommand

Detailed Description

Definition at line 21 of file DialogUsage.hxx.


Constructor & Destructor Documentation

DialogUsage::DialogUsage ( DialogUsageManager dum,
Dialog dialog 
) [protected]

Definition at line 24 of file DialogUsage.cxx.

                                                                :
   BaseUsage(dum),
   mDialog(dialog)
{
}
DialogUsage::~DialogUsage ( ) [protected, virtual]

Definition at line 30 of file DialogUsage.cxx.

References mDialog, and resip::Dialog::possiblyDie().

Here is the call graph for this function:


Member Function Documentation

virtual void resip::DialogUsage::dialogDestroyed ( const SipMessage msg) [protected, pure virtual]
AppDialogHandle DialogUsage::getAppDialog ( )

Definition at line 42 of file DialogUsage.cxx.

References resip::AppDialog::getHandle(), resip::Dialog::mAppDialog, and mDialog.

Referenced by resip::ServerSubscription::dispatch().

{
   return mDialog.mAppDialog->getHandle();
}

Here is the call graph for this function:

AppDialogSetHandle DialogUsage::getAppDialogSet ( )
const Data & DialogUsage::getCallId ( ) const

Definition at line 72 of file DialogUsage.cxx.

References resip::DialogId::getCallId(), resip::Dialog::getId(), and mDialog.

{
   return mDialog.getId().getCallId();
}

Here is the call graph for this function:

const DialogId & DialogUsage::getDialogId ( ) const

Definition at line 66 of file DialogUsage.cxx.

References resip::Dialog::getId(), and mDialog.

{
   return mDialog.getId();
}

Here is the call graph for this function:

SharedPtr< UserProfile > DialogUsage::getUserProfile ( )

Definition at line 78 of file DialogUsage.cxx.

References resip::DialogSet::getUserProfile(), mDialog, and resip::Dialog::mDialogSet.

Referenced by resip::ClientSubscription::reSubscribe().

Here is the call graph for this function:

const NameAddr & DialogUsage::myAddr ( ) const
virtual void resip::DialogUsage::onReadyToSend ( SipMessage ) [inline, protected, virtual]

Reimplemented in resip::InviteSession, resip::ServerSubscription, and resip::ClientSubscription.

Definition at line 77 of file DialogUsage.hxx.

Referenced by send().

{}
const NameAddr & DialogUsage::peerAddr ( ) const

Definition at line 54 of file DialogUsage.cxx.

References mDialog, and resip::Dialog::mRemoteNameAddr.

Referenced by resip::InviteSession::dump().

const NameAddr & DialogUsage::remoteTarget ( ) const

Definition at line 60 of file DialogUsage.cxx.

References mDialog, and resip::Dialog::mRemoteTarget.

{
   return mDialog.mRemoteTarget;
}
void DialogUsage::send ( SharedPtr< SipMessage msg) [protected, virtual]

Reimplemented in resip::ClientSubscription, and resip::ServerSubscription.

Definition at line 84 of file DialogUsage.cxx.

References mDialog, onReadyToSend(), and resip::Dialog::send().

Referenced by resip::InviteSession::acceptNIT(), resip::InviteSession::acceptReferNoSub(), resip::ClientInviteSession::dispatch(), resip::ServerInviteSession::dispatch(), resip::InviteSession::dispatch(), resip::ServerInviteSession::dispatchAccepted(), resip::ServerInviteSession::dispatchAcceptedWaitingAnswer(), resip::ServerInviteSession::dispatchBye(), resip::InviteSession::dispatchBye(), resip::ServerInviteSession::dispatchCancel(), resip::InviteSession::dispatchCancel(), resip::InviteSession::dispatchConnected(), resip::ClientInviteSession::dispatchEarly(), resip::ClientInviteSession::dispatchEarlyWithAnswer(), resip::ClientInviteSession::dispatchEarlyWithOffer(), resip::InviteSession::dispatchInfo(), resip::InviteSession::dispatchMessage(), resip::InviteSession::dispatchPrack(), resip::ClientInviteSession::dispatchQueuedUpdate(), resip::InviteSession::dispatchReceivedReinviteSentOffer(), resip::InviteSession::dispatchReceivedUpdateOrReinvite(), resip::InviteSession::dispatchSentReinvite(), resip::InviteSession::dispatchSentReinviteNoOffer(), resip::InviteSession::dispatchSentUpdate(), resip::ClientInviteSession::dispatchSentUpdateEarly(), resip::InviteSession::dispatchTerminated(), resip::InviteSession::dispatchUnhandledInvite(), resip::ServerInviteSession::dispatchUnknown(), resip::ServerInviteSession::dispatchWaitingToOffer(), resip::ServerInviteSession::dispatchWaitingToRequestOffer(), resip::InviteSession::dispatchWaitingToTerminate(), resip::InviteSession::end(), resip::DialogUsage::DialogUsageSendCommand::executeCommand(), resip::InviteSession::info(), resip::InviteSession::message(), resip::InviteSession::nitComplete(), resip::ClientInviteSession::provideAnswer(), resip::InviteSession::provideAnswer(), resip::ClientInviteSession::provideOffer(), resip::InviteSession::provideOffer(), resip::ServerInviteSession::redirect(), resip::InviteSession::refer(), resip::ClientInviteSession::reject(), resip::ServerInviteSession::reject(), resip::InviteSession::reject(), resip::InviteSession::rejectNIT(), resip::InviteSession::rejectReferNoSub(), resip::InviteSession::requestOffer(), resip::ServerInviteSession::sendAccept(), resip::InviteSession::sendAck(), resip::InviteSession::sendBye(), resip::ClientInviteSession::sendPrack(), resip::ClientInviteSession::sendPrackIfNeeded(), resip::ServerInviteSession::sendProvisional(), resip::ServerInviteSession::sendUpdate(), and resip::InviteSession::sessionRefresh().

{
   // give app an chance to adorn the message.
   onReadyToSend(*msg);
   mDialog.send(msg);
}

Here is the call graph for this function:

void DialogUsage::sendCommand ( SharedPtr< SipMessage msg) [protected, virtual]

Reimplemented in resip::ServerSubscription.

Definition at line 92 of file DialogUsage.cxx.

References DialogUsageSendCommand, resip::BaseUsage::mDum, and resip::TransactionUser::post().

{   
   mDum.post(new DialogUsageSendCommand(*this, message));
}

Here is the call graph for this function:


Friends And Related Function Documentation

friend class DialogSet [friend]

Definition at line 43 of file DialogUsage.hxx.

friend class DialogUsageManager [friend]

Reimplemented from resip::BaseUsage.

Reimplemented in resip::InviteSession.

Definition at line 44 of file DialogUsage.hxx.

friend class DialogUsageSendCommand [friend]

Definition at line 45 of file DialogUsage.hxx.

Referenced by sendCommand().


Member Data Documentation

Definition at line 86 of file DialogUsage.hxx.

Referenced by resip::ServerSubscription::accept(), resip::ServerInviteSession::accept(), resip::InviteSession::acceptReferNoSub(), resip::ClientSubscription::acceptUpdate(), resip::ClientSubscription::ClientSubscription(), resip::ServerSubscription::dispatch(), resip::ClientInviteSession::dispatch(), resip::ClientSubscription::dispatch(), resip::InviteSession::dispatch(), resip::ServerInviteSession::dispatchAccepted(), resip::ServerInviteSession::dispatchAcceptedWaitingAnswer(), resip::ServerInviteSession::dispatchBye(), resip::InviteSession::dispatchBye(), resip::ServerInviteSession::dispatchCancel(), resip::InviteSession::dispatchCancel(), resip::InviteSession::dispatchConnected(), resip::ClientInviteSession::dispatchEarly(), resip::ClientInviteSession::dispatchEarlyWithAnswer(), resip::ClientInviteSession::dispatchEarlyWithOffer(), resip::InviteSession::dispatchInfo(), resip::InviteSession::dispatchMessage(), resip::InviteSession::dispatchPrack(), resip::ClientInviteSession::dispatchQueuedUpdate(), resip::InviteSession::dispatchReceivedReinviteSentOffer(), resip::InviteSession::dispatchReceivedUpdateOrReinvite(), resip::InviteSession::dispatchSentReinvite(), resip::InviteSession::dispatchSentReinviteNoOffer(), resip::InviteSession::dispatchSentUpdate(), resip::ClientInviteSession::dispatchSentUpdateEarly(), resip::ServerInviteSession::dispatchStart(), resip::InviteSession::dispatchTerminated(), resip::InviteSession::dispatchUnhandledInvite(), resip::ServerInviteSession::dispatchUnknown(), resip::ServerInviteSession::dispatchWaitingToOffer(), resip::ServerInviteSession::dispatchWaitingToRequestOffer(), resip::InviteSession::dispatchWaitingToTerminate(), resip::ClientSubscription::end(), resip::InviteSession::end(), getAppDialog(), getAppDialogSet(), getCallId(), getDialogId(), getUserProfile(), resip::ClientInviteSession::handleRedirect(), resip::InviteSession::info(), resip::ServerSubscription::makeNotify(), resip::InviteSession::message(), myAddr(), resip::ClientInviteSession::onConnectedAspect(), resip::ClientInviteSession::onFailureAspect(), resip::ClientInviteSession::onProvisionalAspect(), peerAddr(), resip::ClientSubscription::processNextNotify(), resip::ClientInviteSession::provideAnswer(), resip::InviteSession::provideAnswer(), resip::ClientInviteSession::provideOffer(), resip::InviteSession::provideOffer(), resip::ServerInviteSession::redirect(), resip::InviteSession::refer(), resip::ServerSubscription::reject(), resip::ClientInviteSession::reject(), resip::ServerInviteSession::reject(), resip::InviteSession::reject(), resip::InviteSession::rejectReferNoSub(), resip::ClientSubscription::rejectUpdate(), remoteTarget(), resip::InviteSession::requestOffer(), resip::ClientSubscription::requestRefresh(), send(), resip::ServerInviteSession::sendAccept(), resip::InviteSession::sendAck(), resip::InviteSession::sendBye(), resip::ClientInviteSession::sendPrack(), resip::ClientInviteSession::sendPrackIfNeeded(), resip::ServerInviteSession::sendProvisional(), resip::ClientInviteSession::sendSipFrag(), resip::ServerInviteSession::sendUpdate(), resip::InviteSession::sessionRefresh(), resip::InviteSession::setSessionTimerPreferences(), resip::ServerInviteSession::startRetransmit1xxTimer(), resip::ClientInviteSession::startStaleCallTimer(), resip::InviteSession::startStaleReInviteTimer(), resip::InviteSession::targetRefresh(), resip::ClientSubscription::~ClientSubscription(), ~DialogUsage(), resip::InviteSession::~InviteSession(), and resip::ServerSubscription::~ServerSubscription().


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