Resources themselves mean absolutely nothing when it comes to routing messages, only priorities.
Away, available, all of that stuff doesn’t matter one bit. It’s all about the priority. You can be away with a priority of 50 indicating that you still want messages coming to your away resource. (Assuming of course the other resource is less than 50)
Well, when away with resource ‘desktop’ that got messages going on first, it does get priority of 0, and other one ‘laptop’ stays online with priority of 1, yet all and any messages still gets received to desktop until I am totally logged off with desktop. And what seems obviously wrong to me is that all the gateways stays at away too, changing only when desktop changes status, or when totally logged off with desktop.
So the real problem here is… why can’t I reproduce this behavior?
Now this would be too easy then it seems. I don’t know… Do you want to see any logs or something?
Openfire should be routing these according to whatever resource has the highest priority. There is a caveat to that, that being when two or more resources are logged in with the same priority. What happens at this point I do not know off the top of my head, but my understanding is that it’s supposed to go to the last one that had activity. (I think we have an open issue to add support for choosing that behavior at some point)
To here I have an suggestion, and basically a neccesity even: If there are multiple resources with same priority and new message arrives (no open conversation beforehand with that contact), then the messages should go to all resources that has same highest priority, until some resource answers to it. Then also messages should keep going into same resource no matter priority as long as same conversation is open on same resource, or until another resource starts talking to this contact.
Then again there should be some sort of timeout so that if I left some contact open for too long (left conversation open to desktop and going away) and the contact talks to me, messages should arrive again to highest priority(ies), or highest priority(ies) + already open resource until again I have answered to the contact from some resource.
All the better if those could be configurable for each owns tasting. Also my opinion is that you can’t never have messages going to too mmny resources, but you can to too little amount of them
Multiple resources was the thing I started to like about XMPP back then so this means much to me =)
Message was edited by: olmari, clarified text some bit