为什么在 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>
错误文本:只允许占用者向 session 发送消息
我用来创建群组的方法是:XMPPFramework - How to create a MUC room and invite users?
最佳答案
错误消息似乎不言自明:您不是房客(如 XEP-0045 中定义 = 您没有加入房间),因此您无法发送消息。
您可以在XEP-0045中查看角色权限以供引用:http://xmpp.org/extensions/xep-0045.html#roles-priv
只有参与者可以向所有人发送消息。
关于ios - XMPPFramework : Only occupants are allowed to send messages to the conference xmpp ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37993802/