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
部屋への参加通知とユーザの参加はどのようにしてできますか?