[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jabber-jdev
Subject:    Re: [jdev] How to create a MUC room
From:       Jakob Schroeter <js () camaya ! net>
Date:       2007-04-19 13:32:24
Message-ID: 200704191532.24765.js () camaya ! net
[Download RAW message or body]


On Thu Apr 19 2007, david hidalgo wrote:
> Hi!
> 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...
> <presence
>      from='myuser@domain.com'
>      to='server.com'>
>    <x xmlns='http://jabber.org/protocol/muc'/>
> </presence>
> <iq from='myuser@domain.com'
>      id='create1'
>      to='server.com'
>      type='set'>
>    <query xmlns='http://jabber.org/protocol/muc#owner'>
>      <x xmlns='jabber:x:data' type='submit'/>
>    </query>
> </iq>
>
> 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@conference.jabber.org/david
See <http://www.xmpp.org/extensions/xep-0045.html#enter-muc>

cheers,
Jakob

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic