ejabberdctl command “create_room” not known

蓝咒 提交于 2019-12-12 09:25:11

问题


I wanted to setup a simple jabber server to enable chat with my team. Everything went smoothly until the point I wanted to create conference rooms.

When I run ejabberdctl with no parameters, the option create_room does not appear in the list, and if I run ejabberdctl create_room test I get the following response:

Error: command "create_room" not known.

My config file (/etc/ejabberd/ejabberd.cfg) is as following:

%% Admins of this server are also admins of MUC service:
{access, muc_admin, [{allow, admin}]}.

%% All users are allowed to use MUC service:
{access, muc, [{allow, all}]}. 

{mod_muc,      [
          %%{host, "conference.@HOST@"},
          {access, all},
          {access_create, all}, 
          {access_persistent, all},
          {access_admin, muc_admin},
          {max_users, 500}
         ]},

回答1:


You need to add mod_muc_admin: [] to your ejabberd.yml file. You don't need mod_admin_extra (but if you wanted that, you'd need to enable it in ejabberd.yml as well). These modules are now included with ejabberd and don't need installing separately.

This worked for me on 15.06.




回答2:


You need to enable mod_admin_extra.

As an addition, you will also need to manually install and compil that module if you run ejabberd version before 15.04.



来源:https://stackoverflow.com/questions/31074605/ejabberdctl-command-create-room-not-known

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!