[jdev] Individual priority
Alexey Nezhdanov
snake at penza-gsm.ru
Sun Apr 25 01:51:47 CDT 2004
Hello.
As XMPP-IM 11.1 states,
=======
4. Else if the JID is of the form <user at domain> and there is at least
one available resource available for the user, the recipient's server
MUST follow these rules:
1. For message stanzas, the server SHOULD deliver the stanza to the
highest-priority available resource.
... if the only available resource has a negative priority, the server
SHOULD handle the message as if there were no available resources.
=======
I.e. message is postponed.
But what must (not _will_ since I'm talking about the theory and not the
jabberd2) happen if the message originator was previously received a
personal presence stanza?
F.e.:
Romeo sets negative priority for all, except Juliet:
<presence from='romeo at montague.net'><priority>-1</priority></presence>
<presence from='romeo at montague.net'
to='juliet at capulet.com'><priority>1</priority></presence>
Juliet sends a message to Romeo:
<message from='juliet at capulet.com' to='romeo at montague.net'><body>I love
you Romeo!</body></message>
(or the reverse case - all positive except one).
In other words my question is: can be XMPP-IM describe this use case so
that setting individual presence priority became possible without
conflicting with already implemented behaviour?
--
Respectfully
Alexey Nezhdanov
More information about the JDev
mailing list