Reputation: 412
why I am getting this error when try to send message in a group created in xmpp muc.
this is message packet that I am receiving
<message xmlns="jabber:client" from="[email protected]" to="7023651847@localhost/787052459360862999820058" type="error"><body>hiiii</body><error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></not-acceptable><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Only occupants are allowed to send messages to the conference</text></error></message>
error text : Only occupants are allowed to send messages to the conference
method that I am using to create group is : XMPPFramework - How to create a MUC room and invite users?
Upvotes: 3
Views: 2265
Reputation: 9055
The error message seems self explanatory: You are not an occupant (as define in XEP-0045 = you did not join the room) and as such you cannot send messages.
You can check role privileges in XEP-0045 for reference: http://xmpp.org/extensions/xep-0045.html#roles-priv
Only participants can send messages to all.
Upvotes: 3