<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-9029566079099206603</atom:id><lastBuildDate>Mon, 31 May 2010 03:16:55 +0000</lastBuildDate><title>Nerdovation</title><description>Random ramblings about technology and gadgets.</description><link>http://blog.roobix.net/</link><managingEditor>noreply@blogger.com (Rafi)</managingEditor><generator>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-9029566079099206603.post-1276295026581339552</guid><pubDate>Mon, 08 Feb 2010 06:50:00 +0000</pubDate><atom:updated>2010-02-07T22:53:33.239-08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>jabber</category><category domain='http://www.blogger.com/atom/ns#'>xmpp</category><category domain='http://www.blogger.com/atom/ns#'>priority</category><category domain='http://www.blogger.com/atom/ns#'>resource</category><title>Jabber / XMPP Resources and Priorities</title><description>The most common point of confusion for users who are new to Jabber seems to revolve around the use of resources and priorities.&amp;nbsp; Unlike most other instant messaging implementations, Jabber is designed to support multiple concurrent client connections.&amp;nbsp; Each unique connection is identified as a "resource".&amp;nbsp; The name of a resource is basically arbitrary, in that they can be named however you want.&lt;br /&gt;&lt;br /&gt;Let's take the most common use case.&amp;nbsp; Assume you want to be connected to your Jabber account from two locations: home and work.&amp;nbsp; The resource configuration for each of your clients can be named exactly as such.&amp;nbsp; You can establish an almost unlimited number of connections into the same Jabber account, provided that each connection is given a unique resource name.&lt;br /&gt;&lt;br /&gt;Now that you have multiple connections, you will want to control how and when messages are directed to each.&amp;nbsp; This is where priorities come into play.&lt;br /&gt;&lt;br /&gt;Here are the basic rules for priorities:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The resource with the highest priority at any given time will be the one which receives incoming messages.&lt;/li&gt;&lt;li&gt;If two or more resources have the same priority, all resources with said priority will receive incoming messages.&lt;/li&gt;&lt;li&gt;If all connected resources have a negative priority, incoming messages will be queued server-side until one of the resources resets priority to be positive.&lt;/li&gt;&lt;/ul&gt;Many clients will allow for configuring a different priority for each status (active, away, extended away, etc).&amp;nbsp; I have mine configured as follows:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Home: Active (40), Away (30)&lt;/li&gt;&lt;li&gt;Work: Active (41), Away (31)&lt;/li&gt;&lt;li&gt;Mobile: Active (42), Away (32)&lt;/li&gt;&lt;/ul&gt;This allows me to leave my home connection logged in at all times.&amp;nbsp; When I'm logged in from work, incoming messages are routed there until I log out at which point they are sent to the home connection.&amp;nbsp; Mobile is set with the highest priority, which I only connect from when I plan to be away from both my home or work machines for an extended period of time.&lt;br /&gt;&lt;br /&gt;The most popular Jabber client these days is &lt;a href="http://pidgin.im/"&gt;Pidgin&lt;/a&gt;.&amp;nbsp; Unfortunately it does not support configuration of priorities with a default installation.&amp;nbsp; Instead, it hard codes priorities to 1 and 0, for active and away, respectively.&amp;nbsp; However, you can get around this limitation by installing the&lt;a href="http://plugins.guifications.org/trac/downloads"&gt; Purple Pidgin Plugin Pack&lt;/a&gt;.&amp;nbsp; There are a number of plugins included but the one we care about is "xmppprio".&amp;nbsp; Once enabled, two new configuration elements will become available in your account configuration to set priorities.&lt;br /&gt;&lt;br /&gt;Alternatively, check out &lt;a href="http://www.gajim.org/"&gt;Gajim &lt;/a&gt;(what I use) or &lt;a href="http://psi-im.org/"&gt;Psi&lt;/a&gt;, both of which are more complete (in terms of XEP implementations) clients.&amp;nbsp; And while I have you clicking around, &lt;a href="http://developer.pidgin.im/ticket/9874"&gt;I have a bug open against Pidgin&lt;/a&gt; (related to priorities) which could use some voting to get prioritized.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9029566079099206603-1276295026581339552?l=blog.roobix.net' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.roobix.net/2010/02/jabber-xmpp-resources-and-priorities.html</link><author>noreply@blogger.com (Rafi)</author><thr:total>0</thr:total></item></channel></rss>