agsXMPP,创建muc会议室“仅允许与会者向会议发送消息”

时间:2020-01-06 14:02:50

标签: ejabberd agsxmpp groupchat

我需要有关 agsXMPP

的帮助
  1. 用户(testz2@mx.testserverz.info)授权成功
  2. 用户testz2@mx.testserverz.info创建了 MUC室(群聊) testconfa@conference.mx.testserverz.info 3.用户testz2@mx.testserverz.info发送请求以邀请其他用户进入此会议室, 但是服务器返回消息
    <message xmlns="jabber:client" from="testconfa@conference.mx.testserverz.info" to="testz2@mx.testserverz.info/agsXMPP" type="error" xml:lang="en">
       <error type="modify" code="406">
          <not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
          <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Only occupants are allowed to send messages to the conference</text>
       </error>
       <body>Hi everybody...</body>
    </message>

房间的创建者如何才能成为房间的成员并邀请其他用户加入该房间?

1 个答案:

答案 0 :(得分:0)

房间的创建者如何才能成为房间的成员并邀请其他用户加入该房间?

否,不需要用户成为会议室成员,即隶属关系:https://xmpp.org/extensions/xep-0045.html#affil

您要让用户成为房间的占用者,这意味着该用户加入/进入了房间。

如果用户发送了中介邀请,则发送邀请时他必须是房间占用者,如https://xmpp.org/extensions/xep-0045.html#invite

中所述

因此,用户必须加入/进入他创建的房间:https://xmpp.org/extensions/xep-0045.html#enter,然后他才能发送邀请。

实现客户端加入您正在使用的图书馆中某个房间的代码是什么?抱歉,我不知道那个图书馆。

相关问题