Set yate node in presence entity capability child.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4217 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-03-25 10:31:09 +00:00
parent 42e97bd62c
commit 251e690172
2 changed files with 3 additions and 3 deletions

View File

@ -2326,7 +2326,7 @@ XmlElement* StreamData::buildPresence(StreamData* d, const char* to)
XMPPUtils::setPriority(*xml,s_priority);
// TODO: Build module default caps
}
xml->addChild(XMPPUtils::createEntityCapsGTalkV1());
xml->addChild(XMPPUtils::createEntityCapsGTalkV1(s_capsNode));
xml->addChild(XMPPUtils::createEntityCaps(s_jabber->features().m_entityCapsHash,
s_capsNode));
return xml;

View File

@ -3785,7 +3785,7 @@ bool YJGDriver::handleResNotify(Message& msg)
if (!XMPPUtils::findFirstChild(*target,XmlTag::EntityCapsTag,
XMPPNamespace::EntityCaps)) {
target->addChild(new XmlElement(*m_entityCaps));
target->addChild(XMPPUtils::createEntityCapsGTalkV1());
target->addChild(XMPPUtils::createEntityCapsGTalkV1(s_capsNode));
// Restore the data parameter
if (dataXml) {
data->clear();
@ -4043,7 +4043,7 @@ void YJGDriver::notifyPresence(const JabberID& from, const char* to, bool online
if (online) {
XmlElement* xml = XMPPUtils::createPresence(0,0);
XMPPUtils::setPriority(*xml,String(s_priority));
xml->addChild(XMPPUtils::createEntityCapsGTalkV1());
xml->addChild(XMPPUtils::createEntityCapsGTalkV1(s_capsNode));
xml->addChild(new XmlElement(*m_entityCaps));
m->addParam(new NamedPointer("xml",xml));
}