No subject
Sat Jul 10 15:26:43 CDT 2010
stanza which receives a 503 error code.
However, 2nd presence stanza receives success with 201 status code.
--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog
________________________________
From: Kevin Smith <kevin at kismith.co.uk>
To: Jabber/XMPP software development list <jdev at jabber.org>
Sent: Mon, August 23, 2010 6:14:43 PM
Subject: Re: [jdev] Fw: Unexpected 503 error code returned by MUC (ejabberd),
help required
> 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">
>
> </presence>
This is a join stanza. In the paste, this joined the room.
/K
_______________________________________________
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: JDev-unsubscribe at jabber.org
_______________________________________________
--0-379604670-1282570050=:54869
Content-Type: text/html; charset=us-ascii
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:10pt">Hi,<br><br>Probably these will help explain my misery. As I wrote before sending <span style="font-weight: bold;"><span><a target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a></span></span> qualified namespace presence stanza makes no difference to the output.<br><br><span style="text-decoration: underline;">Below are the logs from my XMPP client library:</span><br>[10339] 2010-08-23 03:18:42 - [[XMPPSend]] 153<br><presence from="imjaxlim at im.jaxl.im/jaxl.1282558721" to="jaxl.im-b-global at muc.jaxl.im/imjaxlim"><br><span> <x xmlns="<a target='_blank' href='http://jabber.org/protocol/muc'>http://jabber.org/protocol/muc</a>"></x></span><br></presence><br><br>[10339] 2010-08-23 03:18:43 - [[XMPPSend]] 171<br><presence
from="jaxl at im.jaxl.im/jaxl.1282558719" to="jaxl.im-b-global at muc.jaxl.im/jaxl"><br><span> <x xmlns="<a target='_blank' href='http://jabber.org/protocol/muc'>http://jabber.org/protocol/muc</a>"><history maxstanzas="10"></history></x></span><br></presence><br><br>[10339] 2010-08-23 03:18:44 - [[XMPPGet]]<br><presence from='jaxl.im-b-global at muc.jaxl.im/imjaxlim' to='imjaxlim at im.jaxl.im/jaxl.1282558721' type='error'><br><span> <x xmlns="<a target=" _blank="" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc'/></x></span><br> <error code='503' type='cancel'><br> <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><br> </error><br></presence><br><presence from='jaxl.im-b-global at muc.jaxl.im/jaxl'
to='jaxl at im.jaxl.im/jaxl.1282558719'><br><span> <x xmlns="<a target=" _blank="" href="http://jabber.org/protocol/muc#user">http://jabber.org/protocol/muc#user'></x></span><br> <item affiliation='none' role='participant'/><br> <status code='201'/><br> </x><br></presence><br><br><span style="text-decoration: underline;">Below is the corresponding ejabberd log:</span><br>=INFO REPORT==== 2010-08-23 03:18:42 ===<br><span>D(<0.5744.0>:ejabberd_receiver:320) : Received XML on stream = "<presence from="\"imjaxlim at im.jaxl.im/jaxl.1282558721\"" to="\"jaxl.im-b-global at muc.jaxl.im/imjaxlim\""><x xmlns="\"<a" target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc\"></x></presence>"</span><br><br>=INFO REPORT==== 2010-08-23 03:18:42 ===<br>D(<0.5745.0>:ejabberd_router:313)
: route<br> from {jid,"imjaxlim","im.jaxl.im","jaxl.1282558721","imjaxlim",<br> "im.jaxl.im","jaxl.1282558721"}<br> to {jid,"jaxl.im-b-global","muc.jaxl.im","imjaxlim",<br> "jaxl.im-b-global","muc.jaxl.im","imjaxlim"}<br> packet {xmlelement,"presence",<br> [{"from","imjaxlim at im.jaxl.im/jaxl.1282558721"},<br>
{"to","jaxl.im-b-global at muc.jaxl.im/imjaxlim"}],<br> [{xmlelement,"x",<br><span> [{"xmlns","<a target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a>"}],</span><br> []}]}<br><br>=INFO REPORT==== 2010-08-23 03:18:42 ===<br>D(<0.3771.0>:mod_muc:557) : MUC: open new room 'jaxl.im-b-global'<br><br>=INFO REPORT==== 2010-08-23 03:18:42 ===<br>I(<0.5758.0>:mod_muc_room:126) : <span style="font-weight: bold;">Created MUC room jaxl.im-b-global at muc.jaxl.im by imjaxlim at im.jaxl.im/jaxl.1282558721</span><br><br>=INFO REPORT==== 2010-08-23
03:18:42 ===<br>D(<0.5758.0>:ejabberd_router:313) : route<br> from {jid,"jaxl.im-b-global","muc.jaxl.im","imjaxlim",<br> "jaxl.im-b-global","muc.jaxl.im","imjaxlim"}<br> to {jid,"imjaxlim","im.jaxl.im","jaxl.1282558721","imjaxlim",<br> "im.jaxl.im","jaxl.1282558721"}<br> packet {xmlelement,"presence",<br> [{"type","error"},<br>
{"to","imjaxlim at im.jaxl.im/jaxl.1282558721"},<br> {"from","jaxl.im-b-global at muc.jaxl.im/imjaxlim"}],<br> [{xmlelement,"x",<br><span> [{"xmlns","<a target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a>"}],</span><br> []},<br>
{xmlelement,"error",<br> [{"code","503"},{"type","cancel"}],<br> [{xmlelement,"service-unavailable",<br> [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],<br> []}]}]}<br><br>=INFO REPORT==== 2010-08-23 03:18:43 ===<br><span>D(<0.5744.0>:ejabberd_receiver:320) : Received XML on stream = "<presence
from="\"jaxl at im.jaxl.im/jaxl.1282558719\"" to="\"jaxl.im-b-global at muc.jaxl.im/jaxl\""><x xmlns="\"<a" target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc\"><history maxstanzas="\"10\"/"></history></x>"</presence></span><br><br>=INFO REPORT==== 2010-08-23 03:18:43 ===<br>D(<0.5745.0>:ejabberd_router:313) : route<br> from {jid,"jaxl","im.jaxl.im","jaxl.1282558719","jaxl","im.jaxl.im",<br> "jaxl.1282558719"}<br> to {jid,"jaxl.im-b-global","muc.jaxl.im","jaxl","jaxl.im-b-global",<br> "muc.jaxl.im","jaxl"}<br> packet
{xmlelement,"presence",<br> [{"from","jaxl at im.jaxl.im/jaxl.1282558719"},<br> {"to","jaxl.im-b-global at muc.jaxl.im/jaxl"}],<br> [{xmlelement,"x",<br><span> [{"xmlns","<a target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a>"}],</span><br> [{xmlelement,"history",[{"maxstanzas","10"}],[]}]}]}<br><br>=INFO REPORT==== 2010-08-23
03:18:43 ===<br>D(<0.3710.0>:mod_muc:507) : MUC: send to process <0.5758.0> <br><br>=INFO REPORT==== 2010-08-23 03:18:43 ===<br>D(<0.5758.0>:ejabberd_router:313) : route<br> from {jid,"jaxl.im-b-global","muc.jaxl.im","jaxl","jaxl.im-b-global",<br> "muc.jaxl.im","jaxl"}<br> to {jid,"jaxl","im.jaxl.im","jaxl.1282558719","jaxl","im.jaxl.im",<br> "jaxl.1282558719"}<br> packet {xmlelement,"presence",<br>
[{"from","jaxl at im.jaxl.im/jaxl.1282558719"},<br> {"to","jaxl.im-b-global at muc.jaxl.im/jaxl"}],<br> [{xmlelement,"x",<br><span> [{"xmlns","<a target="_blank" href="http://jabber.org/protocol/muc#user">http://jabber.org/protocol/muc#user</a>"}],</span><br> [{xmlelement,"item",<br>
[{"affiliation","none"},{"role","participant"}],<br> []},<br> {xmlelement,"status",[{"code","201"}],[]}]}]}<br><div><br>From the logs above we know that MUC room was created by the 1st sent presence stanza which receives a 503 error code.<br>However, 2nd presence stanza receives success with 201 status code.<br><br></div>--<br>Abhinav Singh,<br>Founder, Jaxl Inc.<br>Bangalore, India<br><span><a target="_blank" href="http://abhinavsingh.com/blog">http://abhinavsingh.com/blog</a></span><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size:
13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Kevin Smith <kevin at kismith.co.uk><br><b><span style="font-weight: bold;">To:</span></b> Jabber/XMPP software development list <jdev at jabber.org><br><b><span style="font-weight: bold;">Sent:</span></b> Mon, August 23, 2010 6:14:43 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [jdev] Fw: Unexpected 503 error code returned by MUC (ejabberd), help required<br></font><br>
> From: Abhinav Singh <<a ymailto="mailto:abhinavsingh at ymail.com" href="mailto:abhinavsingh at ymail.com">abhinavsingh at ymail.com</a>><br>> Sent: Mon, August 23, 2010 4:46:19 PM<br>> Subject: Re: [jdev] Unexpected 503 error code returned by MUC (ejabberd),<br>> help required<br>><br>> Hi Kevin,<br>><br>> Sorry but I am not clear on your message. Can you expand "sending an empty<br>> presence before sending the room join presence"?<br>><br>> To be specific, here is what my code does:<br>> - Identify <a ymailto="mailto:guest.3666062361282549857235348 at im.jaxl.im" href="mailto:guest.3666062361282549857235348 at im.jaxl.im">guest.3666062361282549857235348 at im.jaxl.im</a>/jaxl.1282549857 wants<br>> to enter room <a ymailto="mailto:jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im" href="mailto:jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im">jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im</a><br>> - Code identifies room
doesn't already exists and hence try to create one by<br>> sending a room join presence from <a ymailto="mailto:imjaxlim at im.jaxl.im" href="mailto:imjaxlim at im.jaxl.im">imjaxlim at im.jaxl.im</a>/jaxl.1282549915 to<br>> <a ymailto="mailto:jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im" href="mailto:jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im">jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im</a>/imjaxlim<br>> - Code also sends a room join presence from guest user to the room<br>> immediately.<br>><br>> However, jabber server returns a 503 for 1st room join while a success for<br>> 2nd room join presence.<br>> But ejabberd log shows 1st room join presence actually created the room, but<br>> still receives a 503 presence.<br>><br>> PS: I don't see sending any empty presence before room join presence....<br>> <presence from="<a ymailto="mailto:imjaxlim at im.jaxl.im"
href="mailto:imjaxlim at im.jaxl.im">imjaxlim at im.jaxl.im</a>/jaxl.1282549915"<br>> to="<a ymailto="mailto:jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im" href="mailto:jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im">jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im</a>/imjaxlim"><br>> </presence><br><br>That is an empty presence stanza to a room you haven't joined yet. In<br>the paste from your previous mail, this got a 503 response.<br><br>> or<br>> <presence from="<a ymailto="mailto:imjaxlim at im.jaxl.im" href="mailto:imjaxlim at im.jaxl.im">imjaxlim at im.jaxl.im</a>/jaxl.1282549915"<br>> to="<a ymailto="mailto:jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im" href="mailto:jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im">jaxl.im-b-guest.366606_threadtitle at muc.jaxl.im</a>/imjaxlim"><br><span>> <x xmlns="<a target='_blank' href='http://jabber.org/protocol/muc'>http://jabber.org/protocol/muc</a>"></x></span><br>>
</presence><br><br>This is a join stanza. In the paste, this joined the room.<br><br>/K<br>_______________________________________________<br>JDev mailing list<br><span>Forum: <a target="_blank" href="http://www.jabberforum.org/forumdisplay.php?f=20">http://www.jabberforum.org/forumdisplay.php?f=20</a></span><br><span>Info: <a target="_blank" href="http://mail.jabber.org/mailman/listinfo/jdev">http://mail.jabber.org/mailman/listinfo/jdev</a></span><br>Unsubscribe: <a ymailto="mailto:JDev-unsubscribe at jabber.org" href="mailto:JDev-unsubscribe at jabber.org">JDev-unsubscribe at jabber.org</a><br>_______________________________________________<br></div></div>
</div><br>
</body></html>
--0-379604670-1282570050=:54869--
More information about the JDev
mailing list