[jdev] Check if room exists - MUC

Marcel Bootsma marcel.bootsma at logicacmg.com
Thu Dec 16 04:20:10 CST 2004


Hi Jens,

You can use service discovery on the server or the conference unit:
Disco#info amd disco#items:
If properly configured you can even see who is in it ...

Grt

Marcel Bootsma

Service dicovery using PSI on my current server:

<iq type="get" to="jabber" id="aac5a" >
<query xmlns="http://jabber.org/protocol/disco#info"/>
</iq>

<iq type="get" to="jabber" id="aac6a" >
<query xmlns="http://jabber.org/protocol/disco#items"/>
</iq>

<iq from="jabber" type="result" to="tweenie43 at jabber/Psi" id="aac5a" >
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="server" type="im" name="Jabber IM server" />
<feature var="jabber:iq:private" />
<feature var="presence" />
<feature var="jabber:iq:time" />
<feature var="jabber:iq:agents" />
<feature var="http://jabber.org/protocol/vacation" />
<feature var="vcard-temp" />
<feature var="jabber:iq:version" />
<feature var="message" />
<feature var="jabber:iq:privacy" />
<feature var="jabber:iq:roster" />
<feature var="iq" />
<feature var="presence-invisible" />
<feature var="jabber:iq:last" />
<feature var="http://jabber.org/protocol/disco" />
</query>
</iq>

<iq from="jabber" type="result" to="tweenie43 at jabber/Psi" id="aac6a" >
<query xmlns="http://jabber.org/protocol/disco#items">
<item name="Public Chatrooms" jid="conference.jabber" />
</query>
</iq>

<iq type="get" to="conference.jabber" id="aac7a" >
<query xmlns="http://jabber.org/protocol/disco#info"/>
</iq>

<iq type="get" to="conference.jabber" id="aac8a" >
<query xmlns="http://jabber.org/protocol/disco#items"/>
</iq>

<iq from="conference.jabber" type="result" id="aac7a"
to="tweenie43 at jabber/Psi" >
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="conference" type="text" name="Public Chatrooms" />
<feature var="http://jabber.org/protocol/muc" />
<feature var="http://jabber.org/protocol/disco" />
<feature var="jabber:iq:browse" />
<feature var="jabber:iq:version" />
<feature var="jabber:iq:time" />
<feature var="jabber:iq:last" />
<feature var="vcard-temp" />
</query>
</iq>

<iq from="conference.jabber" type="result" id="aac8a"
to="tweenie43 at jabber/Psi" >
<query xmlns="http://jabber.org/protocol/disco#items">
<item name="disco" jid="disco at conference.jabber" />
<item name="1" jid="1 at conference.jabber" />
<item name="bar" jid="bar at conference.jabber" />
</query>
</iq>

<iq type="get" to="disco at conference.jabber" id="aac9a" >
<query xmlns="http://jabber.org/protocol/disco#info"/>
</iq>

<iq type="get" to="1 at conference.jabber" id="aacaa" >
<query xmlns="http://jabber.org/protocol/disco#info"/>
</iq>

<iq type="get" to="bar at conference.jabber" id="aacba" >
<query xmlns="http://jabber.org/protocol/disco#info"/>
</iq>

<iq from="disco at conference.jabber" type="result" id="aac9a"
to="tweenie43 at jabber/Psi" >
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="conference" type="text" name="disco" />
<feature var="http://jabber.org/protocol/muc" />
<feature var="http://jabber.org/protocol/disco" />
<feature var="jabber:iq:browse" />
<feature var="jabber:iq:version" />
<feature var="jabber:iq:last" />
<feature var="jabber:iq:time" />
<feature var="vcard-temp" />
<feature var="muc_unsecure" />
<feature var="muc_public" />
<feature var="muc_persistent" />
<feature var="muc_open" />
<feature var="muc_moderated" />
<feature var="muc_semianonymous" />
<feature var="muc-legacy" />
</query>
</iq>

<iq from="1 at conference.jabber" type="result" id="aacaa"
to="tweenie43 at jabber/Psi" >
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="conference" type="text" name="1" />
<feature var="http://jabber.org/protocol/muc" />
<feature var="http://jabber.org/protocol/disco" />
<feature var="jabber:iq:browse" />
<feature var="jabber:iq:version" />
<feature var="jabber:iq:last" />
<feature var="jabber:iq:time" />
<feature var="vcard-temp" />
<feature var="muc_unsecure" />
<feature var="muc_public" />
<feature var="muc_persistent" />
<feature var="muc_open" />
<feature var="muc_unmoderated" />
<feature var="muc_semianonymous" />
</query>
</iq>

<iq from="bar at conference.jabber" type="result" id="aacba"
to="tweenie43 at jabber/Psi" >
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="conference" type="text" name="bar" />
<feature var="http://jabber.org/protocol/muc" />
<feature var="http://jabber.org/protocol/disco" />
<feature var="jabber:iq:browse" />
<feature var="jabber:iq:version" />
<feature var="jabber:iq:last" />
<feature var="jabber:iq:time" />
<feature var="vcard-temp" />
<feature var="muc_unsecure" />
<feature var="muc_public" />
<feature var="muc_persistent" />
<feature var="muc_open" />
<feature var="muc_unmoderated" />
<feature var="muc_semianonymous" />
</query>
</iq>

 

-----Original Message-----
From: Jens Mikkelsen [mailto:gyldenskjold at mail.dk] 
Sent: woensdag 15 december 2004 21:55
To: jdev at jabber.org
Subject: [jdev] Check if room exists - MUC

_______________________________________________
jdev mailing list
jdev at jabber.org
http://mail.jabber.org/mailman/listinfo/jdev

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



More information about the JDev mailing list