Set default message stanza type to 'chat'.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2959 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2009-11-23 09:52:16 +00:00
parent 1775676471
commit d827c8d14b
2 changed files with 2 additions and 2 deletions

View File

@ -1549,7 +1549,7 @@ XmlElement* XMPPUtils::getChatXml(NamedList& list, const char* param,
XmlElement* xml = getXml(list,param,extra);
if (xml || !build)
return xml;
xml = createMessage(list.getValue("type"),0,0,list.getValue("id"),0);
xml = createMessage(msgType(list.getValue("type")),0,0,list.getValue("id"),0);
const char* subject = list.getValue("subject");
if (!TelEngine::null(subject))
xml->addChild(createSubject(subject));

View File

@ -1850,7 +1850,7 @@ public:
* @return Message type as enumeration
*/
static inline MsgType msgType(const char* text)
{ return (MsgType)lookup(text,s_msg,TelEngine::null(text) ? Normal : MsgNone); }
{ return (MsgType)lookup(text,s_msg,TelEngine::null(text) ? Chat : MsgNone); }
/**
* Get the text from a message type