<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='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'><id>tag:blogger.com,1999:blog-9029566079099206603</id><updated>2010-05-30T20:16:55.488-07:00</updated><title type='text'>Nerdovation</title><subtitle type='html'>Random ramblings about technology and gadgets.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.roobix.net/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9029566079099206603/posts/default'/><link rel='alternate' type='text/html' href='http://blog.roobix.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/06210261855013243009</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9029566079099206603.post-1276295026581339552</id><published>2010-02-07T22:50:00.000-08:00</published><updated>2010-02-07T22:53:33.239-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jabber'/><category scheme='http://www.blogger.com/atom/ns#' term='xmpp'/><category scheme='http://www.blogger.com/atom/ns#' term='priority'/><category scheme='http://www.blogger.com/atom/ns#' term='resource'/><title type='text'>Jabber / XMPP Resources and Priorities</title><content type='html'>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;</content><link rel='replies' type='application/atom+xml' href='http://blog.roobix.net/feeds/1276295026581339552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.roobix.net/2010/02/jabber-xmpp-resources-and-priorities.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9029566079099206603/posts/default/1276295026581339552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9029566079099206603/posts/default/1276295026581339552'/><link rel='alternate' type='text/html' href='http://blog.roobix.net/2010/02/jabber-xmpp-resources-and-priorities.html' title='Jabber / XMPP Resources and Priorities'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/06210261855013243009</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12503062333263188278'/></author><thr:total>0</thr:total></entry></feed>