This document defines an XMPP protocol extension for getting the attention of another user.
WARNING: This Standards-Track document is Experimental. Publication as an XMPP Extension Protocol does not imply approval of this proposal by the XMPP Standards Foundation. Implementation of the protocol described herein is encouraged in exploratory implementations, but production systems should not deploy implementations of this protocol until it advances to a status of Draft.
Series: XEP
Number: 0224
Publisher: XMPP Standards Foundation
Status:
Experimental
Type:
Standards Track
Version: 0.1
Last Updated: 2007-08-08
Approving Body: XMPP Council
Dependencies: XMPP Core, XEP-0030
Supersedes: None
Superseded By: None
Short Name: NOT YET ASSIGNED
Wiki Page: <http://wiki.jabber.org/index.php/Attention (XEP-0224)>
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
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 have the focus 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 'http://www.xmpp.org/extensions/xep-0224.html#ns' namespace (see Protocol Namespaces regarding issuance of one or more permanent namespaces). 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='http://www.xmpp.org/extensions/xep-0224.html#ns'/> <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 "http://www.xmpp.org/extensions/xep-0224.html#ns":
<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='http://www.xmpp.org/extensions/xep-0224.html#ns'/> ... </query> </iq>
In addition, support for receiving attention extensions in message stanzas can be determined through the dynamic profile of Service Discovery defined in Entity Capabilities [5].
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 enable 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].
Until this specification advances to a status of Draft, its associated namespace shall be "http://www.xmpp.org/extensions/xep-0224.html#ns"; upon advancement of this specification, the XMPP Registrar [7] shall issue a permanent namespace in accordance with the process defined in Section 4 of XMPP Registrar Function [8].
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='http://www.xmpp.org/extensions/xep-0224.html#ns' xmlns='http://www.xmpp.org/extensions/xep-0224.html#ns' 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://www.xmpp.org/extensions/xep-0132.html>.
2. XEP-0085: Chat State Notifications <http://www.xmpp.org/extensions/xep-0085.html>.
3. XEP-0203: Delayed Delivery <http://www.xmpp.org/extensions/xep-0203.html>.
4. XEP-0030: Service Discovery <http://www.xmpp.org/extensions/xep-0030.html>.
5. XEP-0115: Entity Capabilities <http://www.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://www.xmpp.org/registrar/>.
8. XEP-0053: XMPP Registrar Function <http://www.xmpp.org/extensions/xep-0053.html>.
Initial published version.
(psa)Initial version.
(am)END