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


Classes | |
| class | Exception |
Public Member Functions | |
| AppDialogSetHandle | getAppDialogSet () |
| SharedPtr< UserProfile > | getUserProfile () |
| virtual void | send (SharedPtr< SipMessage > msg) |
| virtual void | sendCommand (SharedPtr< SipMessage > msg) |
Protected Member Functions | |
| NonDialogUsage (DialogUsageManager &dum, DialogSet &dialogSet) | |
| virtual | ~NonDialogUsage () |
Protected Attributes | |
| DialogSet & | mDialogSet |
Definition at line 19 of file NonDialogUsage.hxx.
| NonDialogUsage::NonDialogUsage | ( | DialogUsageManager & | dum, |
| DialogSet & | dialogSet | ||
| ) | [protected] |
Definition at line 23 of file NonDialogUsage.cxx.
: BaseUsage(dum), mDialogSet(dialogSet) { }
| NonDialogUsage::~NonDialogUsage | ( | ) | [protected, virtual] |
Definition at line 29 of file NonDialogUsage.cxx.
References mDialogSet, and resip::DialogSet::possiblyDie().
{
mDialogSet.possiblyDie();
}

| AppDialogSetHandle NonDialogUsage::getAppDialogSet | ( | ) |
Definition at line 35 of file NonDialogUsage.cxx.
References resip::AppDialogSet::getHandle(), resip::DialogSet::mAppDialogSet, and mDialogSet.
{
return mDialogSet.mAppDialogSet->getHandle();
}

| SharedPtr< UserProfile > NonDialogUsage::getUserProfile | ( | ) |
Definition at line 41 of file NonDialogUsage.cxx.
References mDialogSet, and resip::DialogSet::mUserProfile.
Referenced by resip::ClientRegistration::dispatch(), and send().
{
return mDialogSet.mUserProfile;
}
| void NonDialogUsage::send | ( | SharedPtr< SipMessage > | msg | ) | [virtual] |
Reimplemented in resip::ClientPublication, resip::ServerPagerMessage, and resip::ServerOutOfDialogReq.
Definition at line 47 of file NonDialogUsage.cxx.
References resip::ParserContainerBase::empty(), getUserProfile(), h_RequestLine, InfoLog, resip::Inserter(), resip::BaseUsage::mDum, and resip::DialogUsageManager::send().
Referenced by resip::ClientRegistration::addBinding(), resip::ClientRegistration::dispatch(), resip::ClientRegistration::internalRequestRefresh(), resip::ClientRegistration::removeAll(), resip::ClientRegistration::removeBinding(), and resip::ClientRegistration::removeMyBindings().
{
const NameAddrs& sRoute = getUserProfile()->getServiceRoute();
// Clear the routes if there was previously a service_route. Otherwise
// keep the route incase there exists custom routes
if (!sRoute.empty())
{
if (msg->header(h_RequestLine).method() == REGISTER)
{
const NameAddrs emptyRoute;
msg->remove(h_Routes);
getUserProfile()->setServiceRoute(emptyRoute);
}
else
{
InfoLog(<< "Applying service route: " << Inserter(getUserProfile()->getServiceRoute()) << " to " << msg->brief());
msg->header(h_Routes) = sRoute;
}
}
mDum.send(msg);
}

| void NonDialogUsage::sendCommand | ( | SharedPtr< SipMessage > | msg | ) | [virtual] |
Definition at line 96 of file NonDialogUsage.cxx.
References resip::BaseUsage::mDum, and resip::TransactionUser::post().
{
mDum.post(new NonDialogUsageSendCommand(*this, message));
}

DialogSet& resip::NonDialogUsage::mDialogSet [protected] |
Definition at line 39 of file NonDialogUsage.hxx.
Referenced by resip::ClientRegistration::addBinding(), resip::ClientRegistration::checkProfileRetry(), resip::ClientRegistration::contactIsMine(), resip::ClientRegistration::dispatch(), getAppDialogSet(), getUserProfile(), resip::ClientRegistration::tagContact(), resip::ClientOutOfDialogReq::~ClientOutOfDialogReq(), resip::ClientPagerMessage::~ClientPagerMessage(), resip::ClientPublication::~ClientPublication(), resip::ClientRegistration::~ClientRegistration(), ~NonDialogUsage(), resip::ServerOutOfDialogReq::~ServerOutOfDialogReq(), resip::ServerPagerMessage::~ServerPagerMessage(), and resip::ServerRegistration::~ServerRegistration().
1.7.5.1