-1

嗨,我的聊天应用程序使用 ejabberd 版本 16.04,并且正在使用 mod_rest 创建一个 muc 房间和发送房间邀请,现在我需要为特定的 mod_muc 设置 set_room_affiliation 但它说错误可能有人可以帮助我... !!!

下面是为每个相应的 ejabberd 命令传递的参数

创建团队

{"key": "secret","command": "create_room","args": ["kandan_team","conference","kandan.com"]}

团队成立。过了……!!!

用于向用户 1 发送房间邀请

{"key": "secret","command": "send_direct_invitation","args": ["kandan_team","conference","none", "team_inviataion", "user1@kandan.com"]}

邀请发送成功..!!! 过了..!!!

用于向用户 2 发送房间邀请

{"key": "secret","command": "send_direct_invitation","args": ["kandan_team","conference","none", "team_inviataion", "user2@kandan.com"]}

邀请发送成功..!!! 过了..!!!

从团队中删除 user1

{"key":"secret","command":"set_room_affiliation","args":["kandan_team", "conference", "user1@kandan.com", "outcast"]}

无法删除 user1 并说是错误..!失败的..!!!

mod_rest 的 Ejabberd.yml 文件配置

 mod_restful:
 api:
  - path: ["admin"]
    module: mod_restful_admin
    params:
      key: "secret"
      allowed_commands: [register, unregister,status, add_rosteritem, create_room, send_direct_invitation, set_room_affiliation]
  - path: ["register"]
    module: mod_restful_register
    params:
      key: "secret"

那么有人可以帮我解决如何设置房间附属关系...!!!

4

1 回答 1

0

我找到了答案,我用错误的服务创建了 muc,这是问题所在。而不是用我以其他方式创建的以下服务创建 muc..!!!

{"key": "secret","command": "create_room","args": ["kandan_team","conference.kandan.com","kandan.com"]}
于 2016-07-26T06:52:07.923 回答