[jdev] Fw: Unexpected 503 error code returned by MUC (ejabberd), help required
Kevin Smith
kevin at kismith.co.uk
Mon Aug 23 07:44:43 CDT 2010
> From: Abhinav Singh <abhinavsingh at ymail.com>
> Sent: Mon, August 23, 2010 4:46:19 PM
> Subject: Re: [jdev] Unexpected 503 error code returned by MUC (ejabberd),
> help required
>
> Hi Kevin,
>
> Sorry but I am not clear on your message. Can you expand "sending an empty
> presence before sending the room join presence"?
>
> To be specific, here is what my code does:
> - Identify guest.3666062361282549857235348 at im.jaxl.im/jaxl.1282549857 wants
> to enter room jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im
> - Code identifies room doesn't already exists and hence try to create one by
> sending a room join presence from imjaxlim at im.jaxl.im/jaxl.1282549915 to
> jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im/imjaxlim
> - Code also sends a room join presence from guest user to the room
> immediately.
>
> However, jabber server returns a 503 for 1st room join while a success for
> 2nd room join presence.
> But ejabberd log shows 1st room join presence actually created the room, but
> still receives a 503 presence.
>
> PS: I don't see sending any empty presence before room join presence....
> <presence from="imjaxlim at im.jaxl.im/jaxl.1282549915"
> to="jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im/imjaxlim">
> </presence>
That is an empty presence stanza to a room you haven't joined yet. In
the paste from your previous mail, this got a 503 response.
> or
> <presence from="imjaxlim at im.jaxl.im/jaxl.1282549915"
> to="jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im/imjaxlim">
> <x xmlns="http://jabber.org/protocol/muc"></x>
> </presence>
This is a join stanza. In the paste, this joined the room.
/K
More information about the JDev
mailing list