Allow iq stanzas to be received from parties not found in account's roster.
git-svn-id: http://voip.null.ro/svn/yate@3212 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
88f6e44001
commit
1135da923d
|
@ -1014,18 +1014,6 @@ void YJBEngine::processIqStanza(JBEvent* ev)
|
|||
}
|
||||
}
|
||||
}
|
||||
// Iq from known contact or user itself
|
||||
ev->stream()->lock();
|
||||
StreamData* data = streamData(ev);
|
||||
bool allow = data && data->contact(ev->from().bare());
|
||||
ev->stream()->unlock();
|
||||
if (!allow)
|
||||
allow = (ev->from().bare() == ev->to().bare());
|
||||
if (!allow) {
|
||||
if (!rsp)
|
||||
ev->sendStanzaError(XMPPError::ServiceUnavailable);
|
||||
return;
|
||||
}
|
||||
// Route the iq
|
||||
Message m("jabber.iq");
|
||||
__plugin.complete(m,ev->clientStream());
|
||||
|
|
Loading…
Reference in New Issue