在ejabber中为MUCconfiguration房间

我想在ejabberd服务器中configuration房间

1)通过configurationejabberd的configuration文件创build两个房间的房间名称

Room Names will be 1) visitors 2) native 

2)不允许用户创build空间
3)用户可以join通过ejabberd服务器configuration的任何房间

到目前为止,我已经在mod_muc中configuration了以下值

 {mod_muc, [ %%{host, "conference.@HOST@"}, {access, muc}, {access_create, muc_admin}, {access_persistent, muc_admin}, {access_admin, muc_admin}, {max_room_id,2}, {max_room_name,2}, {max_room_desc,300}, {default_room_options, [ {persistent, true} ]} ]}, {mod_muc_log,[ {access_log, muc}, {cssfile, false}, {dirname, [email protected]}, {outdir, "/var/lib/ejabberd/muclogs"}, {timezone, universal}, {spam_prevention, true}, ]}, 

我从strophe的客户端界面传递以下值

 JID : [email protected] Password: userpassword Room: [email protected] Nickname:user1 

但我不知道在哪里指定两个房间名称,并在文件中严格configuration它们

与上面的configuration我得到以下响应从服务器

 <body xmlns='http://jabber.org/protocol/httpbind'> <presence xmlns='jabber:client' from='[email protected]' to='[email protected]/40570047311328899827978413' type='error'> <error code='404' type='cancel'> <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Conference room does not exist</text> </error> </presence> <presence xmlns='jabber:client' from='[email protected]/40570047311328899827978413' to='[email protected]/40570047311328899827978413' type='error'> <priority>-1</priority> <error code='403' type='auth'> <forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Room creation is denied by service policy</text> </error> <error code='404' type='cancel'> <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Conference room does not exist</text> </error> </presence> </body> 

在存在处理程序,我已经注意到,我从ID不匹配我的房间ID