Dear community,
my plan is to display open jabber chat rooms on a website. Does anybody know where the necessary information is stored? It would be really nice to get information like
- how are the names of the open chatrooms
- is the chatroom provided with a password
- how many users are part of these chatrooms
...or something like that.
It would be really great if you could help me out. Thanks a lot in advance.
Best regards
Tobias Mesch
If you install mod_muc_admin,
If you install mod_muc_admin, it adds to the ejabberd WebAdmin a page with rooms information. Maybe you can write a script that extracts every minute this information to a plain HTML for public viewing.
Hi, I think your blog might
Hi, I think your blog might be having browser compatibility issues. When I look at your blog in Firefox, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!
You may add module
You may add module mod_admin_extra
Then you will have an additional command, e.g.
ejabberdctl muc_online_rooms <host>
This works and returns all muc rooms.
I have also tried this via xml-rpc (ruby), but I get an error:
result = client.call("muc_online_rooms","my.domain")
T 127.0.0.1:44922 -> 127.0.0.1:4560 [AP]
<?xml version="1.0" ?><methodCall><methodName>muc_online_rooms</methodName><params><param><value><string>my_domain</string></value></param></params></methodCall>.
##
T 127.0.0.1:4560 -> 127.0.0.1:44922 [AP]
HTTP/1.1 200 OK..Content-Length: 316..Server: Erlang/1.13..Content-Type: text/xml..Connection: close....<?xml version="1.0"?><methodResponse><fault><value><struct><member><name>faultCode</name><value><int>-112</int></value></member
><member><name>faultString</name><value><string>Error -112.Unknown call: {call,muc_online_rooms,["my_domain"]}</string></value></member></struct></value></fault></methodResponse>
So I cannot use it. But this should be the way.
If you get it working, please give a feedbck, as I would be very much interested.