[JDEV] using roommaker
Rob Davis
lists at solarismedia.co.uk
Tue Nov 19 13:52:33 CST 2002
OK - I managed to fix the bugs in roommaker.pl - a badly formed MKDIR
command on line 79 and an undeclared variable used for the file handler.
So now I am running roommaker.pl without any bugs and it is writing the
rooms.xml file.
Then I restart Jabber, browse using my client or Exodus and... no rooms
appear...
Here's the command I'm issuing in my client:
<iq type="get" to="conference.localhost" id="rooms"><query
xmlns="jabber:iq:browse" /></iq>
And here's what i get back:
<iq type="result" to="rob at myjabberurl.com" id="rooms"
from="conference.localhost"><conference xmlns="jabber:iq:browse"
type="public" name="Public
Chatrooms"><ns>http://jabber.org/protocol/muc</ns><ns>jabber:iq:register
</ns><ns>jabber:iq:version</ns><ns>jabber:iq:time</ns><ns>jabber:iq:last
</ns></conference></iq>
If I create a room in Exodus, it does allow that to be browsed:
<iq type="result" to="rob at myjabberurl.com" id="rooms"
from="conference.localhost"><conference xmlns="jabber:iq:browse"
type="public" name="Public
Chatrooms"><ns>http://jabber.org/protocol/muc</ns><ns>jabber:iq:register
</ns><ns>jabber:iq:version</ns><ns>jabber:iq:time</ns><ns>jabber:iq:last
</ns><conference type="public" jid="test at conference.localhost"
name="test (1/30)" /></conference></iq>
I've tried creating rooms that are both private and public in roommaker,
but neither seem browseable.
Any ideas?
Rob
p.s. here are the changes i made to get roommaker to work:
change line 79 to:
(change to mkdir("$spooldir/$server", 0777);
lines 185-187
open(DATA, ">$spooldir/$server/$hash.xml");
print DATA XMLout($output, rootname => "xdb");
close(DATA);
lines 210-212
open(DATA, ">$spooldir/$server/rooms.xml");
print DATA XMLout($roomsconfig, rootname => "xdb");
close(DATA);
-------------------------------------------------------
Rob Davis
-------------------------------------------------------
Solaris Media
http://www.solarismedia.co.uk
-------------------------------------------------------
20 Damien Street
London E1 2HX
Tel: 020 7791 1555
Mob: 07973 658033
Fax: 020 7791 1545
Email: rob at solarismedia.co.uk
AOL IM username: rbdavis68
MSN Messenger username: rbdavis68 at hotmail.com
51 31' N x 0 03' W
-------------------------------------------------------
Creative digital media solutions
-------------------------------------------------------
Map: http://www.streetmap.co.uk/streetmap.dll?P2M?P=e12hx&Z=1
-------------------------------------------------------
More information about the JDev
mailing list