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:
marian 2009-12-16 14:45:58 +00:00
parent 7803d9af83
commit 4c81f9cb3c
1 changed files with 2 additions and 0 deletions

View File

@ -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);