On Tue, Nov 10, 2009 at 3:00 PM, Valentin Chartier <[email protected]>wrote:
> 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 ? > IQ stanzas sent to a room's bare JID are intended for the room itself, not for occupants. The only way to send a custom IQ to all occupants is to send it to all occupants. > 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. > Openfire's implementation is doing the right thing. > But then, the reason puzzles me : why allow custom IQ stanzas on one-to-one > chat while forbidding them on multi-user chat ? > It's the same in one-to-one chat. IQs sent to a user's bare JID are not sent to the user's resources. See the stanza processing rules in RFC 3921. -- Waqas Hussain
