|
reSIProcate/DialogUsageManager
9694
|
#include <DialogUsage.hxx>


Classes | |
| class | DialogUsageSendCommand |
| class | Exception |
Public Member Functions | |
| AppDialogSetHandle | getAppDialogSet () |
| AppDialogHandle | getAppDialog () |
| const NameAddr & | myAddr () const |
| const NameAddr & | peerAddr () const |
| const NameAddr & | remoteTarget () const |
| const DialogId & | getDialogId () const |
| const Data & | getCallId () const |
| SharedPtr< UserProfile > | getUserProfile () |
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 | |
| Dialog & | mDialog |
Friends | |
| class | DialogSet |
| class | DialogUsageManager |
| class | DialogUsageSendCommand |
Definition at line 21 of file DialogUsage.hxx.
| DialogUsage::DialogUsage | ( | DialogUsageManager & | dum, |
| Dialog & | dialog | ||
| ) | [protected] |
Definition at line 24 of file DialogUsage.cxx.
| DialogUsage::~DialogUsage | ( | ) | [protected, virtual] |
Definition at line 30 of file DialogUsage.cxx.
References mDialog, and resip::Dialog::possiblyDie().
{
mDialog.possiblyDie();
}

| virtual void resip::DialogUsage::dialogDestroyed | ( | const SipMessage & | msg | ) | [protected, pure virtual] |
Implemented in resip::InviteSession, resip::ServerSubscription, and resip::ClientSubscription.
| 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();
}

| AppDialogSetHandle DialogUsage::getAppDialogSet | ( | ) |
Definition at line 36 of file DialogUsage.cxx.
References resip::AppDialogSet::getHandle(), resip::DialogSet::mAppDialogSet, mDialog, and resip::Dialog::mDialogSet.
Referenced by resip::ClientSubscription::dispatch(), and resip::ClientSubscription::reSubscribe().
{
return mDialog.mDialogSet.mAppDialogSet->getHandle();
}

| const Data & DialogUsage::getCallId | ( | ) | const |
Definition at line 72 of file DialogUsage.cxx.
References resip::DialogId::getCallId(), resip::Dialog::getId(), and mDialog.

| const DialogId & DialogUsage::getDialogId | ( | ) | const |
Definition at line 66 of file DialogUsage.cxx.
References resip::Dialog::getId(), and mDialog.

| 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().
{
return mDialog.mDialogSet.getUserProfile();
}

| const NameAddr & DialogUsage::myAddr | ( | ) | const |
Definition at line 48 of file DialogUsage.cxx.
References mDialog, and resip::Dialog::mLocalNameAddr.
Referenced by resip::InviteSession::dump(), resip::InviteSession::refer(), and resip::InviteSession::sendBye().
{
return mDialog.mLocalNameAddr;
}
| 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().
{
return mDialog.mRemoteNameAddr;
}
| 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);
}

| 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));
}

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().
Dialog& resip::DialogUsage::mDialog [protected] |
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().
1.7.5.1