[Standards-JIG] proposal : defer action in AMP (JEP 79)
jacques.belissent at sun.com
Wed Aug 31 07:51:23 UTC 2005
Section 11 of RFC 3921 says:
Else if the JID is of the form <user at domain/resource> and no available
resource matches the full JID, the recipient's server (a) ..., (b), and
(c) SHOULD treat the stanza as if it were addressed to <user at domain> if
it is a message stanza.
I am looking for a way to ensure that *some* message stanzas are only
delivered to the resource specified in the to attribute, and stored
otherwise for later delivery (when this one resource becomes available).
I looked into doing this using AMP, but unfortunately no defined
action allows this.
Is there any way to achieve this behavior?
If not, is there a problem with the following registration proposal?
The message is stored for later delivery. It is recommended to
front any use of this action with an use an expiry rule.
<message to='abba at example.com/specialapp'
from='zxxz at example.com/zzzz'
<rule condition='match-resource' value='other' action='defer'/>
This causes the message to be delivered is abba at example.com/special is
available, otherwise stored until it become available or the expiration
date is reached.
Thanks in advance,
More information about the Standards