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>&lt;presence from="imjaxlim at im.jaxl.im/jaxl.1282558721" to="jaxl.im-b-global at muc.jaxl.im/imjaxlim"&gt;<br><span>&nbsp;&nbsp;&nbsp; <x xmlns="&lt;a target='_blank' href='http://jabber.org/protocol/muc'&gt;http://jabber.org/protocol/muc&lt;/a&gt;"></x></span><br>&lt;/presence&gt;<br><br>[10339] 2010-08-23 03:18:43 - [[XMPPSend]] 171<br>&lt;presence
 from="jaxl at im.jaxl.im/jaxl.1282558719" to="jaxl.im-b-global at muc.jaxl.im/jaxl"&gt;<br><span>&nbsp;&nbsp;&nbsp; <x xmlns="&lt;a target='_blank' href='http://jabber.org/protocol/muc'&gt;http://jabber.org/protocol/muc&lt;/a&gt;"><history maxstanzas="10"></history></x></span><br>&lt;/presence&gt;<br><br>[10339] 2010-08-23 03:18:44 - [[XMPPGet]]<br>&lt;presence from='jaxl.im-b-global at muc.jaxl.im/imjaxlim' to='imjaxlim at im.jaxl.im/jaxl.1282558721' type='error'&gt;<br><span>&nbsp;&nbsp;&nbsp; <x xmlns="&lt;a target=" _blank="" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc'/&gt;</x></span><br>&nbsp;&nbsp;&nbsp; &lt;error code='503' type='cancel'&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/error&gt;<br>&lt;/presence&gt;<br>&lt;presence from='jaxl.im-b-global at muc.jaxl.im/jaxl'
 to='jaxl at im.jaxl.im/jaxl.1282558719'&gt;<br><span>&nbsp;&nbsp;&nbsp; <x xmlns="&lt;a target=" _blank="" href="http://jabber.org/protocol/muc#user">http://jabber.org/protocol/muc#user'&gt;</x></span><br>&nbsp;&nbsp;&nbsp; &lt;item affiliation='none' role='participant'/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;status code='201'/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/x&gt;<br>&lt;/presence&gt;<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(&lt;0.5744.0&gt;:ejabberd_receiver:320) : Received XML on stream = "<presence from="\&quot;imjaxlim at im.jaxl.im/jaxl.1282558721\&quot;" to="\&quot;jaxl.im-b-global at muc.jaxl.im/imjaxlim\&quot;"><x xmlns="\&quot;&lt;a" target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc\"&gt;</x></presence>"</span><br><br>=INFO REPORT==== 2010-08-23 03:18:42 ===<br>D(&lt;0.5745.0&gt;:ejabberd_router:313)
 : route<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from {jid,"imjaxlim","im.jaxl.im","jaxl.1282558721","imjaxlim",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "im.jaxl.im","jaxl.1282558721"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to {jid,"jaxl.im-b-global","muc.jaxl.im","imjaxlim",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "jaxl.im-b-global","muc.jaxl.im","imjaxlim"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; packet {xmlelement,"presence",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"from","imjaxlim at im.jaxl.im/jaxl.1282558721"},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 {"to","jaxl.im-b-global at muc.jaxl.im/imjaxlim"}],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,"x",<br><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"xmlns","<a target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a>"}],</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; []}]}<br><br>=INFO REPORT==== 2010-08-23 03:18:42 ===<br>D(&lt;0.3771.0&gt;:mod_muc:557) : MUC: open new room 'jaxl.im-b-global'<br><br>=INFO REPORT==== 2010-08-23 03:18:42 ===<br>I(&lt;0.5758.0&gt;: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(&lt;0.5758.0&gt;:ejabberd_router:313) : route<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from {jid,"jaxl.im-b-global","muc.jaxl.im","imjaxlim",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "jaxl.im-b-global","muc.jaxl.im","imjaxlim"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to {jid,"imjaxlim","im.jaxl.im","jaxl.1282558721","imjaxlim",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "im.jaxl.im","jaxl.1282558721"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; packet {xmlelement,"presence",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"type","error"},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 {"to","imjaxlim at im.jaxl.im/jaxl.1282558721"},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {"from","jaxl.im-b-global at muc.jaxl.im/imjaxlim"}],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,"x",<br><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"xmlns","<a target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a>"}],</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; []},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 {xmlelement,"error",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"code","503"},{"type","cancel"}],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,"service-unavailable",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; []}]}]}<br><br>=INFO REPORT==== 2010-08-23 03:18:43 ===<br><span>D(&lt;0.5744.0&gt;:ejabberd_receiver:320) : Received XML on stream = "<presence
 from="\&quot;jaxl at im.jaxl.im/jaxl.1282558719\&quot;" to="\&quot;jaxl.im-b-global at muc.jaxl.im/jaxl\&quot;"><x xmlns="\&quot;&lt;a" target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc\"&gt;<history maxstanzas="\&quot;10\&quot;/"></history></x>"</presence></span><br><br>=INFO REPORT==== 2010-08-23 03:18:43 ===<br>D(&lt;0.5745.0&gt;:ejabberd_router:313) : route<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from {jid,"jaxl","im.jaxl.im","jaxl.1282558719","jaxl","im.jaxl.im",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "jaxl.1282558719"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to {jid,"jaxl.im-b-global","muc.jaxl.im","jaxl","jaxl.im-b-global",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "muc.jaxl.im","jaxl"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; packet
 {xmlelement,"presence",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"from","jaxl at im.jaxl.im/jaxl.1282558719"},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {"to","jaxl.im-b-global at muc.jaxl.im/jaxl"}],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,"x",<br><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"xmlns","<a target="_blank" href="http://jabber.org/protocol/muc">http://jabber.org/protocol/muc</a>"}],</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,"history",[{"maxstanzas","10"}],[]}]}]}<br><br>=INFO REPORT==== 2010-08-23
 03:18:43 ===<br>D(&lt;0.3710.0&gt;:mod_muc:507) : MUC: send to process &lt;0.5758.0&gt; <br><br>=INFO REPORT==== 2010-08-23 03:18:43 ===<br>D(&lt;0.5758.0&gt;:ejabberd_router:313) : route<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from {jid,"jaxl.im-b-global","muc.jaxl.im","jaxl","jaxl.im-b-global",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "muc.jaxl.im","jaxl"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to {jid,"jaxl","im.jaxl.im","jaxl.1282558719","jaxl","im.jaxl.im",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "jaxl.1282558719"}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; packet {xmlelement,"presence",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 [{"from","jaxl at im.jaxl.im/jaxl.1282558719"},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {"to","jaxl.im-b-global at muc.jaxl.im/jaxl"}],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,"x",<br><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{"xmlns","<a target="_blank" href="http://jabber.org/protocol/muc#user">http://jabber.org/protocol/muc#user</a>"}],</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,"item",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 [{"affiliation","none"},{"role","participant"}],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; []},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {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 &lt;kevin at kismith.co.uk&gt;<br><b><span style="font-weight: bold;">To:</span></b> Jabber/XMPP software development list &lt;jdev at jabber.org&gt;<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>
&gt; From: Abhinav Singh &lt;<a ymailto="mailto:abhinavsingh at ymail.com" href="mailto:abhinavsingh at ymail.com">abhinavsingh at ymail.com</a>&gt;<br>&gt; Sent: Mon, August 23, 2010 4:46:19 PM<br>&gt; Subject: Re: [jdev] Unexpected 503 error code returned by MUC (ejabberd),<br>&gt; help required<br>&gt;<br>&gt; Hi Kevin,<br>&gt;<br>&gt; Sorry but I am not clear on your message. Can you expand "sending an empty<br>&gt; presence before sending the room join presence"?<br>&gt;<br>&gt; To be specific, here is what my code does:<br>&gt; - 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>&gt; 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>&gt; - Code identifies room
 doesn't already exists and hence try to create one by<br>&gt; 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>&gt; <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>&gt; - Code also sends a room join presence from guest user to the room<br>&gt; immediately.<br>&gt;<br>&gt; However, jabber server returns a 503 for 1st room join while a success for<br>&gt; 2nd room join presence.<br>&gt; But ejabberd log shows 1st room join presence actually created the room, but<br>&gt; still receives a 503 presence.<br>&gt;<br>&gt; PS: I don't see sending any empty presence before room join presence....<br>&gt; &lt;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>&gt; 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"&gt;<br>&gt; &lt;/presence&gt;<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>&gt; or<br>&gt; &lt;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>&gt; 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"&gt;<br><span>&gt; <x xmlns="&lt;a target='_blank' href='http://jabber.org/protocol/muc'&gt;http://jabber.org/protocol/muc&lt;/a&gt;"></x></span><br>&gt;
 &lt;/presence&gt;<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