[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Questions about jabber-muc



Hi.

I'm running a jabberd (1.4.3 from Debian sarge) on hilbert.scientia.net.

I force the use of SSL.

It servers several virtual hosts:
scientia.net
mitterer.name
christoph.anton.mitterer.name
(all of these domains point either via A or SRV RR to hilbert.scientia.net)

What I'd like to have is about the following:
<username>@scientia.net => leads to single chat
<chatroom>@scientia.net => leads to multi chat
christoph.anton@mitterer.name => single chat (personal address)
im@christoph.anton.mitterer.name => single chat (personal address)
chat@christoph.anton.mitterer.name => multi chat (personal address)

Is this possible at all? Having single and multi chat on the same
sub/domain?

Ok,.. so I've installed the jabber-muc package but I have problems with
installing/configuring it...
(btw: I use the Debian setup which runs the muc as seperate process)

1) I've added:
<item category="conference" type="public" jid="conference.scientia.net"
name="Public Conferencing" version="0.6.0">
  <ns>http://jabber.org/protocol/muc</ns>
</item>
To the <browse/> section of the jabber.xml.

The Debian docs tell that I should use:
<item category="conference" type="public" jid="conference.scientia.net"
name="Public Conferencing" version="0.5.2">
  <ns>jabber:iq:register</ns>
  <ns>gc-1.0</ns>
  <ns>http://jabber.org/protocol/muc</ns>
</item>
instead? What is correct? And what are the differences?

=> What is that jid porperty? Is this just to specify a component or
must this domain exist and point to hilbert (my server)?

2) Then I've added the following in the jabber.xml (somewhere near the
end but inside <jabber/>)
  <service id="muclinker">
    <host>scientia.net</host>
    <accept>
      <ip>84.16.235.61</ip>
      <port>31518</port>
      <secret>secret</secret>
    </accept>
  </service>

=> What is the <host>? Does this have to be the same as the jid above?
What I'd like to have is that clients connect to the room via
room@scientia.net or chat@christoph.anton.mitterer.name,.. but not with
room@conference.scientia.net or so.

=> What is the <ip>? The host which runs the muc component? Or the main
jabberserver? Can I use loopback if both are on the same machine?

=> I think it works about the following:
a) client connects to the main server (scientia.net)
b) client sees from the <browse> section that there is muc capable via
the ids below the jid that is set there (in the example above
conference.scientia.net)
c) the client never connects directly to the muc but uses the main
jabber server for it.
d) the main jabber server sees in the <service> section,... the <ip>
where the muc runs (so I could use loopback here) and the <port> it
listens to (here 31518).
e) the client communicates with the main jabber server which
communicates with the muc
Is this correct?

=> is 31518 optimal or is there an IANA registered port?
=> What is the <host> for? How can I set up the MUC for virtual hosting?
Simply add more <host> entries?
=> What is the secret for? the password authentication between the main
jabber server and the muc? If so it should be secure to leave it at
secret if both are on the same host?



3) The jabber-muc.xml looks like the following:
<jabber>

  <service id="muclinker">
    <uplink/>
    <connect>
      <ip>84.16.235.61</ip>
      <port>31518</port>
      <secret>NangIfOdFum6</secret>
    </connect>
  </service>

  <service id="conference.scientia.net">
    <load>

<conference>/usr/lib/jabber/mu-conference/mu-conference.so</conference>
    </load>
    <conference xmlns="jabber:config:conference">
      <public/>
      <vCard>
        <FN>Public Chatrooms</FN>
        <DESC>This service is for public chatrooms.</DESC>
        <URL>http://conference.localhost/logs/</URL>
      </vCard>
      <history>20</history>
      <logdir>./logs/muc/</logdir>
      <sadmin>
        <user>calestyo@scientia.net</user>
      </sadmin>
      <notice>
        <join>has become available</join>
        <leave>has left</leave>
        <rename>is now known as</rename>
      </notice>
    </conference>
  </service>

  <pidfile>/var/run/jabber/jabber-muc.pid</pidfile>

</jabber>

=> <ip> and <port> should be the IP/port which to listen on for
connections from jabber main server, correct? So I should use loopback?
=> <secret> the same as above?
=> What is uplink?

=> Do I have to create spool dirs for the muc? Which name should I use?
<host> or jid (conference.scientia.net)


Thanks in advance,
Chris.



Reply to: