Hi David,
May I apologize in advance for not providing an answer to your
question and instead asking you other question. I should also
probably create a new thread for this one. I am sorry for that too.
David what do you when when you are sending a presence stanza. I mean
you never know if the response will arrive or not. All this would be
just a minor problem if you could use non-blocking streaming. But in
PHP you cann't when connecting using SSL. My question is what are you
doing to receive presence response stanza to prevent hanging the
script. I am also guessing that this is just a PHP specific problem.
On Apr 19, 2007, at 4:22 PM, 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='[EMAIL PROTECTED]'
to='server.com'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
<iq from='[EMAIL PROTECTED]'
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?
Well, the server sends me the next response...
<iq
from='server.com'
to='[EMAIL PROTECTED]/Resource'
type='error'
id='create1'>
<query xmlns='http://jabber.org/protocol/muc#owner'>
<x xmlns='jabber:x:data' type='submit'/>
</query>
<error code='501' type='cancel'>
<feature-not-implemented
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
I'm not the server admin, so, I don't know what he must to
configurate to allow MUC rooms. Could you help me? I'd like what to
configurate, or what i'm sending wrong to the server.
Oh, we are using eJabberd 1.1.2 as server.
Thank you!!!
David.