Re: Resources, presence and routing?

"Peter Millard" <me-STcBuFROdrv2eFz/[email protected]>
Newsgroups gmane.network.jabber.exodus.user
Message-ID <00a401c3e047$0a4093d0$e201020a@pmillard2k>
DouglasK wrote:
> I'm mainly wondering if the end user or the client has any control over
> where the messages are routed to, and if so, how can one ensure that
> messages go to the resource with the shortest idle time?

Absolutely, this is what "priority" is for when logging in and setting presence.
The best way to handle this is always use a priority of > 0 for all resources,
and setup auto-away and other non-available presence changes to always change
the priority back to 0. This should do a pretty good job of keeping your
"current" resource as something which is > 0, and the others which are currently
logged on at 0. The server will ALWAYS route to the highest priority.

When two resources "tie" for priority, different servers MAY have different
tie-breaking rules. The open source jabberd uses the "most recently logged in"
resource.

Lemme know if this isn't clear... this is a somewhat 'advanced' user topic :)

pgm.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.