configure as salas para MUC no ejabber

2

Eu quero configurar salas no servidor ejabberd

1) Create Two Rooms with a Room Name by configuring ejabberd's config file

  Room Names will be 1) visitors 2) native

2) Don't allow users to create room
3) User can join any room those are configured over ejabberd server

até agora eu configurei os seguintes valores em mod_muc

{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},

   ]},

estou passando os seguintes valores da interface do cliente de strophe

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

mas não sei onde especificar dois nomes de salas e configurá-los no arquivo

com configuração acima eu estou recebendo seguinte resposta do servidor

<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>

No manipulador de presença, o que eu notei é que o meu ID não corresponde ao meu id de quarto

    
por Hunt 11.02.2012 / 07:51

0 respostas

Tags