Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
ktutnik #1
Member since May 2013 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: how to get maximum occupants of room
Hi,

I using DiscoManager.DiscoverInformation method to get room info, but the result does not containing maximum occupants.

my code:

var dm = new DiscoManager(con);
dm.DiscoverInformation("<room>@conference.<myserver>.com", new IqCB(OnIqReturn));

it is return

<?xml version="1.0" encoding="utf-8" ?>
<iq xmlns="jabber:client" type="result" id="agsXMPP_5">
  <query xmlns="http://jabber.org/protocol/disco#info">
    <identity type="text" name="room_" category="conference" />
    <feature var="http://jabber.org/protocol/muc" />
    <feature var="muc_public" />
    <feature var="muc_open" />
    <feature var="muc_unmoderated" />
    <feature var="muc_nonanonymous" />
    <feature var="muc_unsecured" />
    <feature var="muc_temporary" />
    <feature var="http://jabber.org/protocol/disco#info" />
    <x xmlns="jabber:x:data" type="result">
      <field type="hidden" var="FORM_TYPE">
        <value>http://jabber.org/protocol/muc#roominfo</value>
      </field>
      <field var="muc#roominfo_description" label="Description">
        <value>room_</value>
      </field>
      <field var="muc#roominfo_occupants" label="Number of occupants">
        <value />
        <value>8</value>
      </field>
      <field var="x-muc#roominfo_creationdate" label="Creation date">
        <value>20130325T10:11:26</value>
      </field>
    </x>
  </query>
</iq>

no maximum occupant information on the result. how to achieve that?

any info/help highly appreciated
ktutnik
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I guess there is no way when your server does not put it in the disco info.
You have to ask your server vendor.
Avatar
ktutnik #3
Member since May 2013 · 5 posts
Group memberships: Members
Show profile · Link to this post
thank you Alex.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS