[JDEV] conference room creation

Rob Davis lists at solarismedia.co.uk
Tue Nov 26 08:54:49 CST 2002


Hi David

Thanks for the suggestion - I did check this.

First I am sending (MUC compliant) presence to the room; then I am
requesting the config form (using 'get') and then I am sending the
following form response, with only the fields I want to change:

SEND: <iq type="set" from="test at mydomain.com/home"
to="newroom at conference.localhost" id="create2"><query
xmlns="http://jabber.org/protocol/muc#owner"><x xmlns="jabber:x:data"
type="submit"><field var="title"><value>Kitchen</value></field><field
var="maxusers"><value>10</value></field><field
var="public"><value>1</value></field><field
var="persistent"><value>0</value></field></x></query></iq>

MUC sends the following response, suggesting that all is OK:

RECEIVE: <iq type="result" from="newroom at conference.localhost"
to="test at mydomain.com/home" id="create2" />

But if I then browse the rooms, the values have not changed:

SEND: <iq type="get" to="conference.localhost" id="rooms"><query
xmlns="jabber:iq:browse" /></iq>

RECEIVE: <iq type="result" to="test at mydomain.com/home" id="rooms"
from="conference.localhost"><conference xmlns="jabber:iq:browse"
type="public" name="Public
Chatrooms"><ns>http://jabber.org/protocol/muc</ns><ns>jabber:iq:register
</ns><ns>jabber:iq:version</ns><ns>jabber:iq:time</ns><ns>jabber:iq:last
</ns><conference type="public" jid="lobby at conference.localhost"
name="The Lobby (0/25)" /><conference type="public"
jid="newroom at conference.localhost" name="newroom (1/30)"
/></conference></iq>

Notice how neither the room name nor the max users have changed in
reponse to the form.

Mysterious....

Rob


----- Original Message -----
From: "David Sutton" <jabber at dsutton.legend.uk.com>
To: <jdev at jabber.org>
Sent: Tuesday, November 26, 2002 12:46 PM
Subject: Re: [JDEV] conference room creation


> Hi there,
>
>   Just as a thought, how about 'get'ing the form before trying to
'set'
>   it? :)
>
> Regards,
>   David
>
> On Tue, Nov 26, 2002 at 01:59:22AM -0000, Rob Davis wrote:
> >
> > I seem to have solved this for the moment, by sending presence to
the
> > new room (using the old group chat protocol) before issuing the
> > configuration request. However this does not seem to be behaviour as
> > documented in JEP-45 so I don't think this its quite right...
> >
> > My problem now is that once I receive the configuration form and
reply
> > by sending back the form (with only several fields completed - the
ones
> > I want to change), MUC then responds by sending the entire config
form
> > again, BUT the values in my submitted fields have not been changed.
> >
> > i.e. the room configuration request is not being carried out for
some
> > reason.
> >
> > Any thoughts?
> >
> > Rob
> >
> > ----- Original Message -----
> > From: "Rob Davis" <lists at solarismedia.co.uk>
> > To: <jdev at jabber.org>
> > Sent: Monday, November 25, 2002 5:32 PM
> > Subject: Re: [JDEV] conference room creation
> >
> >
> > >
> > > Following David's suggestion (from earlier this month) about
creating
> > > rooms (without entering them) in MUC, I am sending the
> > > following room configuration request to MUC, as per JEP-45:
> > >
> > > <iq type="set" from="test at jabber.mydomain.com/home"
> > > to="newroom at conference.localhost" id="create1"><query
> > > xmlns="http://jabber.org/protocol/muc#owner" /></iq>
> > >
> > > However, rather than getting a configuration form as expected (or
a
> > > documented error), I am getting the following error:
> > >
> > > <iq type="error" from="newroom at conference.localhost"
> > > to="test at jabber.mydomain.com/home" id="create1"><query
> > > xmlns="http://jabber.org/protocol/muc#owner" /><error
code="400">Bad
> > > Request</error></iq>
> > >
> > > Does anyone know what is going wrong here?
> > >
> > > Rob
> > >
> > >
> > > > ----- Original Message -----
> > > > From: "David Sutton" <jabber at dsutton.legend.uk.com>
> > > > To: <jdev at jabber.org>
> > > > Sent: Tuesday, November 05, 2002 6:54 AM
> > > > Subject: Re: [JDEV] conference room creation
> > > >
> > > > Hi there,
> > > >
> > > >   With the existing conference (0.4 or v2) you can't avoid
entering
> > > the
> > > >   room.
> > > >
> > > >   With MU-Conference, you can. Its a new conference system I
> > released
> > > >   today, based on JEP-0045
> > (http://www.jabber.org/jeps/jep-0045.html)
> > > >   If you send a room configuration request to a room that
doesn't
> > > exist,
> > > >   the room is created and the configuration form is returned to
you.
> > > The
> > > >   problem is that normal rooms get deleted after ~5 minutes of
being
> > > >   empty, so you'll want to enable the 'persistent' option. This
will
> > > >   mean the room exists, even if the server is restarted. The
room
> > > >   creator can then just destroy the room when they've finished
with
> > > it.
> > > >
> > > > Regards,
> > > >
> > > >   David
> > > >
> > > > On Sun, Nov 03, 2002 at 12:11:40PM -0000, Rob Davis wrote:
> > > > >
> > > > > Hi there,
> > > > >
> > > > > I have a question about managing rooms with Jabber.
> > > > >
> > > > > I am developing a Jabber client. When I want to create and
enter a
> > > > > conference room on the Jabber conference server, I simply send
> > > > presence
> > > > > to the new room's address and it is created.
> > > > >
> > > > > Is there a way for the client to create a conference room
without
> > > > > actually having to enter that room?
> > > > >
> > > > > Rob
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > jdev mailing list
> > > > > jdev at jabber.org
> > > > > http://mailman.jabber.org/listinfo/jdev
> > > >
> > > > --
> > > > David Sutton
> > > > Email: dsutton at legend.co.uk
> > > > Jabber: peregrine at legend.net.uk
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > jdev mailing list
> > > > jdev at jabber.org
> > > > http://mailman.jabber.org/listinfo/jdev
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> >
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev





More information about the JDev mailing list