2016-09-14 9 views
1

私はejabberd(v14.07)の自己ホスト型サーバーを持っています。と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のウェブインターフェイスでも確認できます)。 しかし、通知やフィードバックはユーザーに提供されません。 私は実行する。また、場合:

ejabberdctl get_room_occupants myroomname conference.$host 

結果が空である(また、選択された部屋に0参加者を示す、ejabberdのウェブインターフェイスによって確認)。

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 

部屋への参加通知とユーザの参加はどのようにしてできますか?

答えて

1

あなたが挿入所属ません乗員

ejabberdctl get_room_affiliations manish887 conference.192.168.32.18 

@manish887 = room name 

@conference.192.168.32.18 = muc_service 
を持っているので、あなたが得る提携のためのコマンドの下で実行する必要があります
関連する問題