Add destination instance when sending messages on non c2s streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2988 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
7803d9af83
commit
4c81f9cb3c
|
@ -1386,6 +1386,8 @@ bool YJBEngine::handleMsgExecute(Message& msg)
|
|||
bool ok = false;
|
||||
XmlElement* xml = XMPPUtils::getChatXml(msg);
|
||||
if (xml) {
|
||||
if (!called.resource())
|
||||
called.resource(msg.getValue("called_instance"));
|
||||
xml->setAttribute("from",caller);
|
||||
xml->setAttribute("to",called);
|
||||
ok = stream->sendStanza(xml);
|
||||
|
|
Loading…
Reference in New Issue