为什么在尝试在xmpp muc。
中创建的组中发送消息时收到此错误这是我收到的消息包
<message xmlns="jabber:client" from="testgrp@conference.localhost" 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>
错误文字:只允许占用者向会议发送消息
我用来创建群组的方法是:XMPPFramework - How to create a MUC room and invite users?
答案 0 :(得分:2)
错误消息似乎不言自明:您不是占用者(在XEP-0045中定义=您没有加入房间),因此您无法发送消息。
您可以在XEP-0045中查看角色权限以供参考:http://xmpp.org/extensions/xep-0045.html#roles-priv
只有参与者才能向所有人发送消息。