I used command to created room
How can I add member and owner/admin into the room?
I have tried send_direct_invitation and then set_room_affiliation, but set_room_affiliation return error:
Problem 'error {badmatch,ok}' occurred executing the command.
Stacktrace: [{mod_muc_admin,set_room_affiliation,4,
[{file,"../mod_muc_admin.erl"},{line,825}]},
{ejabberd_ctl,call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,293}]},
{ejabberd_ctl,try_call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,269}]},
{ejabberd_ctl,process2,3,
[{file,"src/ejabberd_ctl.erl"},{line,218}]},
{ejabberd_ctl,process,1,
[{file,"src/ejabberd_ctl.erl"},{line,203}]},
{rpc,'-handle_call_call/6-fun-0-',5,
[{file,"rpc.erl"},{line,205}]}]
my command on set_room_affiliation:
./ejabberdctl set_room_affiliation room1 conference.mydomain.com admin@mydomain.com admin
And config:
default_room_options:
anonymous: true
allow_change_subj: false
allow_private_messages: false
allow_private_messages_from_visitors: nobody
allow_query_users: true
allow_user_invites: false
allow_visitor_nickchange: false
allow_visitor_status: false
captcha_protected: false
logging: false
max_users: 30
members_by_default: true
members_only: false
moderated: true
password_protected: false
persistent: true
public: false
public_list: false
title: "TEST ROOM"
Thanks!!
The command you show should
The command you show should work, and it works for me using ejabberd git and mod_muc_admin from recent git.
That code was changed in february, maybe it had a bug that you are still seeing.
I am using mod_muc_admin from
I am using mod_muc_admin from git master brunch and ejabberd 14.12
Did you try with ejabberd
Did you try with ejabberd 15.04 ? Does it have the same issue ? It looks badlop could not reproduce that issue with latest ejabberd.