|
reSIProcate/DialogUsageManager
9694
|
#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"
Go to the source code of this file.
Defines | |
| #define | RESIPROCATE_SUBSYSTEM Subsystem::TEST |
Functions | |
| const OctetContents * | toGenericContents (const SipMessage ¬ify) |
Variables | |
| static Token | regEvent ("reg") |
| #define RESIPROCATE_SUBSYSTEM Subsystem::TEST |
Definition at line 20 of file RegEventClient.cxx.
| 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;
}
}

Referenced by AddAor::executeCommand(), and RegEventClient::RegEventClient().
1.7.5.1