【发布时间】:2018-10-05 14:01:49
【问题描述】:
我正在通过 API http 向 muc room 发送消息。我观察到加入 muc room 的get_room_occupants 用户可能会这样做。
现在,从 ejabberd muc room 我发现团队成员在那里但不是团队的成员,这就是为什么显示此错误Only occupants are allowed to send messages to the conference 虽然是组成员。
是否有任何 api 可以将我连接到 muc 并在居住者中显示我?
Ejabberd 版本:17.11 安装在:ubuntu 16.04 配置数据库:mysql
Ejaberd.yml
api_permissions:
"console commands":
from:
- ejabberd_ctl
who: all
what: "*"
"admin access":
who: all
what:
- "*"
- "!stop"
- "!start"
"public commands":
who: all
what:
- "*"
commands_admin_access:
- allow:
- user: "xxx@yy.zz"
commands:
add_commands:
- status
- registered_users
- register
- unregister
- get_roster
- connected_users
- send_stanza_c2s
- send_stanza
- join_cluster
oauth_expire: 3600
oauth_access: all
【问题讨论】:
-
可以分享一下群的权限吗?
-
我已经更新了这个问题。请看一下
标签: ejabberd ejabberd-api