2016-09-14 63 views
1

我有一個ejabberd(v14.07)自託管的服務器,既mod_mucmod_muc_admin啓用。
我正在嘗試創建一個會議室,以使一些用戶通過常見的多重聊天進行通信。
每個客戶端使用AstraChatChatSecure應用程序。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_mucejabberd.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 

如何獲取房間加入通知和用戶參與工作?

回答

1

你需要,因爲你必須插入隸屬關係不居住者GET聯繫下面的命令來運行

ejabberdctl get_room_affiliations manish887 conference.192.168.32.18 

@manish887 = room name 

@conference.192.168.32.18 = muc_service