Ejabberd房间邀请和加入不工作

时间:2016-09-14 12:32:43

标签: xmpp chat ejabberd multiuserchat ejabberd-module

我已经启用了一个ejabberd(v14.07)自托管服务器,同时启用了mod_mucmod_muc_admin。 我正在尝试创建一个会议室,让一些用户通过常见的多聊天进行通信 每个客户端都使用AstraChatChatSecure个应用。

这里有创建房间终端命令我用来创建会议室。

# room creation
ejabberdctl create_room myroomname conference.$host $host

# sending invitations to users
ejabberdctl send_direct_invitation myroomname@conference.$host none "Join the multi-chat" user1
ejabberdctl send_direct_invitation myroomname@conference.$host none "Join the multi-chat" user2
ejabberdctl send_direct_invitation myroomname@conference.$host none "Join the multi-chat" user3

# setting room affiliations (is it required to the users to join the chat before?)
ejabberdctl set_room_affiliation myroomname conference.$host user1 owner
ejabberdctl set_room_affiliation myroomname conference.$host user2 member
ejabberdctl set_room_affiliation myroomname conference.$host user3 member

在此之后,我已经创建了房间(在ejabberd的网络界面上也是可见的)。 然而,没有向用户提供通知或反馈。 而且,如果我跑:

ejabberdctl get_room_occupants myroomname conference.$host

结果为空(也由ejabberd的网络界面确认,在所选房间显示0位参与者)。

它遵循ejabberd.yml的{​​{1}}个配置代码段。

mod_muc

如何获得会议室加入通知和用户参与?

1 个答案:

答案 0 :(得分:1)

您需要运行以下命令才能获得联盟,因为您有插入联盟而不是占用者

ejabberdctl get_room_affiliations manish887 conference.192.168.32.18

@manish887 = room name

@conference.192.168.32.18 = muc_service