Hello all,
I
have a question about IQ Business Rules in XEP-0045.
Chapter 16.4 IQ says : “
· If
an occupant wants to send an IQ stanza to another user in a non-anonymous room,
the sender SHOULD send the request directly to the recipient's bare JID or full
JID, rather than attempting to send the request through the room (i.e., via the
recipient's room JID).
· If
an occupant wants to send an IQ stanza to another user in a semi-anonymous
room, the sender can direct the stanza to the recipient's room JID and the
service MAY forward the stanza to the recipient's real JID. However, a MUC
service MUST NOT reveal the sender's real JID to the recipient at any time, nor
reveal the recipient's real JID to the sender. “
I
am trying to understand whether sending custom IQs through the room to all
participants is supported or not. What
if an occupant wants to send an IQ stanza to all users in the room (without
sending the IQ individually to each user) ? Is
that allowed or forbidden ?
OpenFire’s
implementation of the protocol strictly forbids it – ie IQ stanzas sent to the
room are not forwarded to the room occupants. Still,
I am not sure whether they got the XEP right. Most likely
yes. But then, the
reason puzzles me : why allow custom IQ stanzas on one-to-one chat while
forbidding them on multi-user chat ?
Thanks
Valentin Chartier