Lines Matching refs:session
93 // "session-terminate", but there is no "session-reject".
143 const buzz::XmlElement* session = stanza->FirstNamed(QN_GINGLE_SESSION);
144 if (session == NULL)
147 return (session->HasAttr(buzz::QN_TYPE) &&
148 session->HasAttr(buzz::QN_ID) &&
149 session->HasAttr(QN_INITIATOR));
159 bool ParseGingleSessionMessage(const buzz::XmlElement* session,
163 std::string type_string = session->Attr(buzz::QN_TYPE);
165 msg->sid = session->Attr(buzz::QN_ID);
166 msg->initiator = session->Attr(QN_INITIATOR);
167 msg->action_elem = session;
216 const buzz::XmlElement* session = stanza->FirstNamed(QN_GINGLE_SESSION);
217 if (jingle && session)
221 if (session != NULL)
222 return ParseGingleSessionMessage(session, msg, error);
228 buzz::XmlElement* session = new buzz::XmlElement(QN_GINGLE_SESSION, true);
229 session->AddAttr(buzz::QN_TYPE, ToGingleString(msg.type));
230 session->AddAttr(buzz::QN_ID, msg.sid);
231 session->AddAttr(QN_INITIATOR, msg.initiator);
232 AddXmlChildren(session, action_elems);
233 return session;
248 // session-initiate messages here.
501 bool ParseGingleContentInfos(const buzz::XmlElement* session,
507 if (!ParseContentType(session, &content_type, &content_elem, error))