ejabberd - Comments for "Room Information discovery problem." https://www.ejabberd.im/node/3433 en Example XMPP stanza https://www.ejabberd.im/node/3433#comment-54091 <div class="quote-msg"> <div class="quote-author"><em>dawit</em> wrote:</div> <p>I though it is possible to discover information about a public room without having to actually joining the room. </p></div> <p>Yes, it is possible:</p> <div class="codeblock"><code>&lt;iq to=&#039;testroom@conference.localhost&#039; type=&#039;get&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;http://jabber.org/protocol/disco#items&#039;/&gt;<br />&lt;/iq&gt; <p>&lt;iq from=&#039;testroom@conference.localhost&#039; type=&#039;result&#039; to=&#039;badlop@localhost/Tka&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;http://jabber.org/protocol/disco#info&#039;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;identity name=&#039;My room name&#039; type=&#039;text&#039; category=&#039;conference&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature var=&#039;http://jabber.org/protocol/muc&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature var=&#039;muc_public&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature var=&#039;muc_persistent&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature var=&#039;muc_open&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature var=&#039;muc_semianonymous&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature var=&#039;muc_moderated&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;feature var=&#039;muc_unsecured&#039;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;x xmlns=&#039;jabber:x:data&#039; type=&#039;result&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field var=&#039;FORM_TYPE&#039; type=&#039;hidden&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;http://jabber.org/protocol/muc#roominfo&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field label=&#039;Room description&#039; var=&#039;muc#roominfo_description&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;My room description&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field label=&#039;Number of occupants&#039; var=&#039;muc#roominfo_occupants&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;1&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/x&gt;<br />&nbsp; &lt;/query&gt;<br />&lt;/iq&gt;</p></code></div> <div class="quote-msg"> <div class="quote-author"><em>dawit</em> wrote:</div> <p>If I could not get information such as how many occupants a room has and stuff like that, is there a way to join a room on "INVISIBLE" mode? </p></div> <p>No, that is not possible.</p> Fri, 20 Mar 2009 01:47:51 +0000 mfoss comment 54091 at https://www.ejabberd.im