Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
evilempire22 #1
Member since Oct 2006 · 10 posts
Group memberships: Members
Show profile · Link to this post
Subject: Creating a new conference room
I've found a few topics regarding conference room creation, but none specifically answer the question I am about to ask:

Can a conference room be created without having to join it immediately?

For example, I am looking for the following functionality in my app: I want to display a list of available conference rooms to a user. If a desired one doesn't exist, allow the user to submit a name for the new conference room and add it to a list. At this point can the conference room is created. Then the list is refreshed and the user can select the new conference room from the list and join. Thanks in advance!

Other conference room creation threads:

http://forum.ag-software.de/forum.php?req=thread&id=238
http://forum.ag-software.de/forum.php?req=thread&id=195
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

Depending on the server configuration you can create a room and set it to persistant in the room configuration. After its created you can leave it and it will stay until it gets destroyed by a owner or admin.

Alex
Alexander Gnauck
AG-Software
Avatar
evilempire22 #3
Member since Oct 2006 · 10 posts
Group memberships: Members
Show profile · Link to this post
Ok, I understand that idea, but my question is how do you create a room without joining it.
Avatar
Alex #4
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you can't.  You join it, config it, and leave it.
While you config the room it is blocked anyway and does not exist on the server. After you sent the config leave it immediately.

Alex
Alexander Gnauck
AG-Software
Avatar
evilempire22 #5
Member since Oct 2006 · 10 posts
Group memberships: Members
Show profile · Link to this post
How is the config done? It doesn't look like the MucManager has any properties.
Avatar
Alex #6
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
it is possible, but not with the MUC Manager.
What you are looking for are reserved rooms.
see: http://www.xmpp.org/extensions/xep-0045.html#createroom-re…

Alex
Alexander Gnauck
AG-Software
Avatar
evilempire22 #7
Member since Oct 2006 · 10 posts
Group memberships: Members
Show profile · Link to this post
Ok, I appreciate you reponding quickly, but that link doesn't help me if I don't know how that can be achieved using the agsXMPP methods available to me. For the most part I have used portions of the MiniClient example for my needs, but now need to add this creating room functionality which the MiniClient doesn't demonstrate. What are the steps I need to do to code the Reserved Room?
Avatar
Alex #8
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You have to send an OwnerIQ to the MUC service.

  1. OwnerIq iq = new OwnerIq();
  2. iq.Type = IqType.get;
  3. iq.To = roomJid

the MUC server will reply with an configuration xdata form or error.
If its a xdata form then show it in your gui, fill it out and submit it. If the server accepts it and replies with no error then the room is created

Alex
Alexander Gnauck
AG-Software
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 SDK Support RSS