Set 'to' parameters of jabber.iq messages from stream local jid if missing in received stanza.
git-svn-id: http://voip.null.ro/svn/yate@3234 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
9d008e57d3
commit
ece6cf41bd
|
@ -1097,8 +1097,15 @@ void YJBEngine::processIqStanza(JBEvent* ev)
|
|||
__plugin.complete(m,ev->clientStream());
|
||||
m.addParam("from",ev->from().bare());
|
||||
m.addParam("from_instance",ev->from().resource());
|
||||
m.addParam("to",ev->to().bare());
|
||||
m.addParam("to_instance",ev->to().resource());
|
||||
if (ev->to()) {
|
||||
m.addParam("to",ev->to().bare());
|
||||
m.addParam("to_instance",ev->to().resource());
|
||||
}
|
||||
else {
|
||||
Lock lock(ev->stream());
|
||||
m.addParam("to",ev->stream()->local().bare());
|
||||
m.addParam("to_instance",ev->stream()->local().resource());
|
||||
}
|
||||
addValidParam(m,"id",ev->id());
|
||||
addValidParam(m,"type",ev->stanzaType());
|
||||
if (!rsp && n != XMPPNamespace::Count)
|
||||
|
|
Loading…
Reference in New Issue