ejabberd - Comments for "Server blocking messages?" https://www.ejabberd.im/node/2849 en Yes. the Resource is required https://www.ejabberd.im/node/2849#comment-51897 <p>Yes, adding the resource (one of the few combinatorial choices I did not test before posting) makes my test apps work just fine. Thanks to mremond &amp; badlop!</p> Thu, 28 Feb 2008 18:07:57 +0000 kyounger comment 51897 at https://www.ejabberd.im It looks like the correct https://www.ejabberd.im/node/2849#comment-51839 <p>It looks like the correct behaviour to me from the XMPP specifications itself. I think IQ only make sense when targetting an actual resource: Otherwise, you can end up sending packets to a client that do not support your RPC.</p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Wed, 20 Feb 2008 07:52:44 +0000 mremond comment 51839 at https://www.ejabberd.im Specify the full JID, including the resource https://www.ejabberd.im/node/2849#comment-51836 <div class="quote-msg"> <div class="quote-author"><em>kyounger</em> wrote:</div> <p>ejabberd 2.0 server doesn't seem to pass RPC messages, I get a 503 from the Server, not form the bot the RPC is addressed to.</p></div> <p>I have ejabberd 2.0.0-rc1, with vhost 'localhost'. I create two accounts: 'user1' and 'user2'. I start Tkabber two times, and in each client I login to a different account. The resources are 'Tka' for both users.</p> <p>First, user1 sends this packet:</p> <div class="codeblock"><code>&lt;iq to=&#039;user2@localhost/Tka&#039; type=&#039;get&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;jabber:iq:version&#039;/&gt;<br />&lt;/iq&gt;</code></div> <p>user2 receives the query and answers correctly. The result is that user1 receives a nice answer:</p> <div class="codeblock"><code>&lt;iq from=&#039;user2@localhost/Tka&#039;<br />&nbsp;&nbsp;&nbsp; type=&#039;result&#039;<br />&nbsp;&nbsp;&nbsp; to=&#039;user1@localhost/Tka&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;jabber:iq:version&#039;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;name&gt;Tkabber&lt;/name&gt;<br />&nbsp;&nbsp;&nbsp; &lt;version&gt;0.10.0-svn-20080115 (Tcl/Tk 8.4.18)&lt;/version&gt;<br />&nbsp;&nbsp;&nbsp; &lt;os&gt;Debian GNU/Linux lenny/sid 2.6.24-1-686&lt;/os&gt;<br />&nbsp; &lt;/query&gt;<br />&lt;/iq&gt;</code></div> <p>Now I'll send the IQ query to the bare JID, without specifying the resource of the destination:</p> <div class="codeblock"><code>&lt;iq to=&#039;user2@localhost&#039; type=&#039;get&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;jabber:iq:version&#039;/&gt;<br />&lt;/iq&gt;</code></div> <p>In this case, user2 doesn't receive the query because ejabberd doesn't deliver it. Instead, ejabberd immediately complains, and user1 receives this answer:</p> <div class="codeblock"><code>&lt;iq from=&#039;user2@localhost&#039;<br />&nbsp;&nbsp;&nbsp; type=&#039;error&#039;<br />&nbsp;&nbsp;&nbsp; to=&#039;user1@localhost/Tka&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;jabber:iq:version&#039;/&gt;<br />&nbsp; &lt;error type=&#039;cancel&#039; code=&#039;503&#039;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;service-unavailable xmlns=&#039;urn:ietf:params:xml:ns:xmpp-stanzas&#039;/&gt;<br />&nbsp; &lt;/error&gt;<br />&lt;/iq&gt;</code></div> <p>If you look closely the examples in XEP-0009, all of them specify full JIDs in the 'to' stanza attribute: all the JIDs include the resource.</p> <p>I don't know if the server should block or not iq queries when the destination JID is just a bare JID.</p> Tue, 19 Feb 2008 23:31:56 +0000 mfoss comment 51836 at https://www.ejabberd.im No, I am trying to move RPC https://www.ejabberd.im/node/2849#comment-51824 <p>No, I am trying to move RPC messages thru ejabberd 2.0 (rc1), using the jabber:iq:rpc namespace. I want to create a bot that can talk to a user and then commnicate with other bots of its kind by using the jabber RPC (jep-0009) ideas. The problem is, in both ruby and python, ejabberd 2.0 server doesn't seem to pass RPC messages, I get a 503 from the Server, not form the bot the RPC is addressed to. </p> <p>thx,</p> Tue, 19 Feb 2008 01:25:34 +0000 kyounger comment 51824 at https://www.ejabberd.im If you are getting harassing https://www.ejabberd.im/node/2849#comment-51822 <p>If you are getting harassing stanzas from some jabber user, you can setup a privacy list to block that user.</p> Mon, 18 Feb 2008 22:37:49 +0000 mfoss comment 51822 at https://www.ejabberd.im