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

#include <NonDialogUsage.hxx>

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

List of all members.

Classes

class  Exception

Public Member Functions

AppDialogSetHandle getAppDialogSet ()
SharedPtr< UserProfilegetUserProfile ()
virtual void send (SharedPtr< SipMessage > msg)
virtual void sendCommand (SharedPtr< SipMessage > msg)

Protected Member Functions

 NonDialogUsage (DialogUsageManager &dum, DialogSet &dialogSet)
virtual ~NonDialogUsage ()

Protected Attributes

DialogSetmDialogSet

Detailed Description

Definition at line 19 of file NonDialogUsage.hxx.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

AppDialogSetHandle NonDialogUsage::getAppDialogSet ( )

Definition at line 35 of file NonDialogUsage.cxx.

References resip::AppDialogSet::getHandle(), resip::DialogSet::mAppDialogSet, and mDialogSet.

Here is the call graph for this function:

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().

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

Here is the call graph for this function:

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

Here is the call graph for this function:


Member Data Documentation


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