reSIProcate/DialogUsageManager  9694
Defines | Functions | Variables
RegEventClient.cxx File Reference
#include "rutil/Logger.hxx"
#include "resip/stack/SipMessage.hxx"
#include "resip/stack/OctetContents.hxx"
#include "resip/dum/MasterProfile.hxx"
#include "resip/dum/ClientAuthManager.hxx"
#include "resip/dum/ClientSubscription.hxx"
#include "RegEventClient.hxx"
Include dependency graph for RegEventClient.cxx:

Go to the source code of this file.

Defines

#define RESIPROCATE_SUBSYSTEM   Subsystem::TEST

Functions

const OctetContentstoGenericContents (const SipMessage &notify)

Variables

static Token regEvent ("reg")

Define Documentation

#define RESIPROCATE_SUBSYSTEM   Subsystem::TEST

Definition at line 20 of file RegEventClient.cxx.


Function Documentation

const OctetContents* toGenericContents ( const SipMessage notify)

Definition at line 116 of file RegEventClient.cxx.

References resip::SipMessage::getContents(), and WarningLog.

Referenced by RegEventClient::onUpdateActive(), and RegEventClient::onUpdatePending().

{
   assert(notify.getContents());
   
   const OctetContents* generic = dynamic_cast<const OctetContents*>(notify.getContents());
   assert(generic);
   
   if (generic && 
       generic->getType().type() == "application" && 
       generic->getType().subType() == "reginfo+xml")
   {
#if 0
      TiXmlDocument doc;
      doc.parse(generic->text().c_str());
      if (doc.Error())
      {
         WarningLog (<< "Error parsing doc: " << doc.Value() << " " << doc.ErrorDesc());
         onRegEventError(generic->text());
      }
      else
      {
         
      }
#endif

      return generic;
   }
   else
   {
      return 0;
   }
}

Here is the call graph for this function:


Variable Documentation

Token regEvent("reg") [static]