This document defines an XMPP protocol extension for getting the attention of another user.
NOTICE: This document is currently within Last Call or under consideration by the XMPP Council for advancement to the next stage in the XSF standards process.
Series: XEP
Number: 0224
Publisher: XMPP Standards Foundation
Status:
Proposed
Type:
Standards Track
Version: 0.2
Last Updated: 2008-10-01
Approving Body: XMPP Council
Dependencies: XMPP Core, XEP-0030
Supersedes: None
Superseded By: None
Short Name: attention
Email:
andy@monitzer.com
JabberID:
andy@monitzer.com
The preferred venue for discussion of this document is the Standards discussion list: <http://mail.jabber.org/mailman/listinfo/standards>.
Errata may be sent to <editor@xmpp.org>.
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The following keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. Introduction
2. Requirements
3. Protocol
4. Business Rules
5. Determining Support
6. Implementation Notes
7. Security Considerations
8. IANA Considerations
9. XMPP Registrar Considerations
9.1. Protocol Namespaces
9.2. Protocol Versioning
10. XML Schema
11. Acknowledgements
Notes
Revision History
Even though a client might be available (as stated in the most recent presence stanza), the user this client belongs to might not be focused on the client currently. Presence Obtained via Kinesthetic Excitation (POKE) [1] defines a method for a physical test of user presence. Since this requires special hardware that can not be assumed to be available, this XEP defines a software-only implementation where no direct feedback is expected. This is known as 'nudge' or 'buzz' in some legacy IM protocols.
It was discussed whether this should be part of Chat State Notifications [2]. However, the semantics are inherently different, since it describes the sender's state, not a request to change the receiver's. Thus, a separate extension is desirable.
The specification addresses remotely getting the user's attention in a more assertive way than simple text messages.
In the following conversation, a user talks to somebody, but this user doesn't respond. The second inquiry includes an attention extension.
<message from='calvin@usrobots.lit/lab' to='herbie@usrobots.lit/home' type='chat'> <body>All right, then, Herbie, give! We're waiting.</body> </message>
When no reply is received, the sending user might want to grab the other's attention. This is done by sending a message that includes an <attention/> element qualified by the 'urn:xmpp:attention:0' namespace (see Namespace Versioning regarding the possibility of incrementing the version number). Note: The message may or may not include a <body/> element.
<message from='calvin@usrobots.lit/lab' to='herbie@usrobots.lit/home' type='headline'> <attention xmlns='urn:xmpp:attention:0'/> <body>Why don't you answer, Herbie?</body> </message>
Finally, the receiving user notices the urgency of the message and responds.
<message from='herbie@usrobots.lit/home' to='calvin@usrobots.lit/lab' type='chat'> <body>I cannot. You know I cannot! Dr. Bogert and Dr. Lanning don't want me to.</body> </message>
The following rules apply to generating and processing of the attention extension.
If an entity supports receiving the attention extension, it MUST advertise that fact in its responses to Service Discovery [4] information ("disco#info") requests by returning a feature of "urn:xmpp:attention:0":
<iq type='get' from='calvin@usrobots.lit/lab' to='herbie@usrobots.lit/home' id='disco1'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq>
<iq type='result' from='herbie@usrobots.lit/home' to='calvin@usrobots.lit/lab' id='disco1'> <query xmlns='http://jabber.org/protocol/disco#info'> ... <feature var='urn:xmpp:attention:0'/> ... </query> </iq>
In order for an application to determine whether an entity supports this protocol, where possible it SHOULD use the dynamic, presence-based profile of service discovery defined in Entity Capabilities [5]. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.
The implementation of the alert is up to the developer. Possible behavior is:
However, since some users might not want this feature to disturb them, a client SHOULD allow the user to disable support. When the feature is disabled, it MUST NOT be advertised in disco#info.
Rate-limiting might be desirable in some implementations.
Formal feedback in response to the attention request to the requesting user is not specified, and so the request might be silently dropped.
It is RECOMMENDED that only message stanzas containing attention extensions from peers on the user's roster are accepted. Finer grained control might be implemented.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].
This specification defines the following XML namespace:
Upon advancement of this specification from a status of Experimental to a status of Draft, the XMPP Registrar [7] shall add the foregoing namespace to the registry located at <http://xmpp.org/registrar/namespaces.html>, as described in Section 4 of XMPP Registrar Function [8].
If the protocol defined in this specification undergoes a major revision that is not fully backward-compatible with an older version, or that contains significant new features, the XMPP Registrar shall increment the protocol version number found at the end of the XML namespaces defined herein, as described in Section 4 of XEP-0053.
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='urn:xmpp:attention:0' xmlns='urn:xmpp:attention:0' elementFormDefault='qualified'> <xs:element name='attention' type='empty'/> <xs:simpleType name='empty'> <xs:restriction base='xs:string'> <xs:enumeration value=''/> </xs:restriction> </xs:simpleType> </xs:schema>
The quotes have been taken from Isaac Asimov's short story "Liar!" as published in the book The Complete Robot.
1. XEP-0132: Presence Obtained via Kinesthetic Excitation (POKE) <http://xmpp.org/extensions/xep-0132.html>.
2. XEP-0085: Chat State Notifications <http://xmpp.org/extensions/xep-0085.html>.
3. XEP-0203: Delayed Delivery <http://xmpp.org/extensions/xep-0203.html>.
4. XEP-0030: Service Discovery <http://xmpp.org/extensions/xep-0030.html>.
5. XEP-0115: Entity Capabilities <http://xmpp.org/extensions/xep-0115.html>.
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <http://xmpp.org/registrar/>.
8. XEP-0053: XMPP Registrar Function <http://xmpp.org/extensions/xep-0053.html>.
Modified namespace to incorporate namespace versioning.
(psa)Initial published version.
(psa)Initial version.
(am)END