Ejabberd室邀请并加入不工作
问题描述:
我有一个ejabberd(v14.07)自托管的服务器,既mod_muc
和mod_muc_admin
启用。
我正在尝试创建一个会议室,以使一些用户通过常见的多重聊天进行通信。
每个客户端使用AstraChat或ChatSecure应用程序。Ejabberd室邀请并加入不工作
在这里有我使用创建一个会议室的创建房间终端命令。
# room creation
ejabberdctl create_room myroomname conference.$host $host
# sending invitations to users
ejabberdctl send_direct_invitation [email protected]$host none "Join the multi-chat" user1
ejabberdctl send_direct_invitation [email protected]$host none "Join the multi-chat" user2
ejabberdctl send_direct_invitation [email protected]$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的Web界面上进行Visibile)。 然而,没有通知或反馈提供给用户。 此外,如果我跑:
ejabberdctl get_room_occupants myroomname conference.$host
结果是空的(也由ejabberd的Web界面确认,表现出对选定的房间0人参加)。
它遵循mod_muc
ejabberd.yml
配置片段。
mod_muc:
## host: "[email protected]@"
access: muc_access
access_create: muc_admin
default_room_options:
public: true
public_list: true
allow_change_subj: true
allow_query_users: true
allow_private_messages: true
allow_user_invites: true
members_by_default: true
title: "New chatroom"
anonymous: false
access_admin: muc_admin
如何获取房间加入通知和用户参与工作?
答
你需要,因为你必须插入隶属关系不居住者GET联系下面的命令来运行
ejabberdctl get_room_affiliations manish887 conference.192.168.32.18
@manish887 = room name
@conference.192.168.32.18 = muc_service