ios - XMPPFramework : Only occupants are allowed to send messages to the conference xmpp ios

标签 ios iphone xmpp

为什么在 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/

相关文章:

ios - 应用程序不断在 ios 10 上重启 iphone

iphone - 唯一识别设备

iphone - 可编辑 Div 的字符限制

iphone - 如何在推送 UIViewController 之前预加载 UITableView?

android - Openfire:即使我已经连接到 Openfire 服务器,几(2-3)小时后也无法发送数据包

ruby-on-rails - xmpp 服务器和 ruby​​ on rails 集成建议?

ios - SecItemAdd 在 OS X 上不工作,在 iOS 上工作

objective-c - 获取例程中出现死锁

javascript - 如何从 node-xmpp 请求中获取响应?

ios - 如何让 iOS 键盘在整个应用程序生命周期中出现/保持?