[jdev] How to create a MUC room
js at camaya.net
Thu Apr 19 08:32:24 CDT 2007
On Thu Apr 19 2007, david hidalgo wrote:
> I'm trying to create a MUC room using a php script, but if fails.
> My php script (the client) connects to my server, it authenticates,
> sends messages to other users, receives events wihtout problems... But
> it fails when I try to create a MUC room the server.
> I'm sending this xml to the server...
> from='myuser at domain.com'
> <x xmlns='http://jabber.org/protocol/muc'/>
> <iq from='myuser at domain.com'
> <query xmlns='http://jabber.org/protocol/muc#owner'>
> <x xmlns='jabber:x:data' type='submit'/>
> As you can see, i'm specifying the "to" attribute with the jabber server
> host. I understand that "from" attribute is my own user, but I don't
> know what i should specify for "to" attribute. Who or what is "to", is
> the server host?
It's the room + "@" + the muc service + "/" + your room nick, e.g.
jdev at conference.jabber.org/david
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the JDev