Abstract: | This document defines an XMPP protocol extension for communicating information about how an entity can be reached using methods other than the entity's normal JID. |
Authors: | Peter Saint-Andre, Joe Hildebrand |
Copyright: | © 1999 - 2013 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Proposed |
Type: | Standards Track |
Version: | 0.4 |
Last Updated: | 2013-02-05 |
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. The Last Call ends on 2013-03-19. Please send your feedback to the standards@xmpp.org discussion list.
1. Introduction
2. Requirements
3. Data Format
4. Data Transport
4.1. Presence Transport
4.2. Personal Eventing Protocol
5. Determining Support
6. Implementation Notes
7. Internationalization Considerations
8. Security Considerations
9. IANA Considerations
10. XMPP Registrar Considerations
10.1. Protocol Namespaces
10.2. Namespace Versioning
11. XML Schema
Appendices
A: Document Information
B: Author Information
C: Legal Notices
D: Relation to XMPP
E: Discussion Venue
F: Requirements Conformance
G: Notes
H: Revision History
Sometimes it is desirable to augment instant messaging (IM) with another real-time communications medium, such as a voice conversation conducted over the traditional public switched telephone network (PSTN) or more recent Voice over Internet Protocol (VoIP) applications. In order to facilitate this functionality, a user needs to advertise the address(es) at which they can be reached. There are several possible ways to do this:
Publish the address(es) in the user's vCard (see vcard-temp [1] and vCard4 over XMPP [2]); this is convenient, but is not very dynamic (e.g., reachability addresses might change when the user moves to a new conference room in an office building).
Send the address(es) within a <presence/> stanza; this option is described in the Presence Transport section of this document and is consistent with RFC 6121 [3] since reachability is one aspect of a user's availability for communication.
Send address(es) to the appropriate Publish-Subscribe [4] node; this option is described in the PEP Transport section of this document but might not be available at all service providers.
This document addresses the following requirements:
The following is an example of the data format for reachability addresses:
<reach xmlns='urn:xmpp:reach:0'> <addr uri='tel:+1-303-555-1212'/> <addr uri='sip:romeo@sipspeare.lit'/> </reach>
When publishing reachability addresses, the <reach/> element MUST contain at least one <addr/> element. Each <addr/> element MUST possess a 'uri' attribute, whose value MUST be the Uniform Resource Identifier (RFC 3986 [5]) or Internationalized Resource Identifier (RFC 3987 [6]) of an alternate communications method for reaching the user.
The <addr/> element MAY contain one or more <desc/> children whose XML character data is a natural-language description of the address; this element SHOULD possess an 'xml:lang' attribute whose value is a language tag that conforms to RFC 4646 [7] (although the default language MAY be specified at the stanza level; see RFC 6120 [8]). In order to preserve bandwidth, the <desc/> element SHOULD NOT be included when sending reachability data via presence broadcast, but MAY be included when using directed presence or the personal eventing protocol.
<reach xmlns='urn:xmpp:reach:0'> <addr uri='tel:+1-303-555-1212'> <desc xml:lang='en'>New conference room number</desc> </addr> <addr uri='sip:romeo@sipspeare.lit'> <desc xml:lang='en'>My softphone</desc> </addr> </reach>
This document specifies two methods of advertising reachability addresses:
This document does not recommend one transport method over the other.
In addition, a contact MAY request a user's reachability addresses in an XMPP <iq/> stanza of type "get" and a user MAY send reachability addresses in an XMPP <message/> stanza. However, the presence and PEP transport methods are preferred.
To broadcast reachability addresses in presence information, a user's client includes the <reach/> element in the <presence/> stanza it sends to its server:
<presence from='romeo@montague.net'> <reach xmlns='urn:xmpp:reach:0'> <addr uri='tel:+1-303-555-1212'/> <addr uri='sip:romeo@sipspeare.lit'/> </reach> </presence>
The user's server then broadcasts that presence stanza to all entities who are subscribed to the user's presence:
<presence from='romeo@montague.net' to='juliet@capulet.com'> <reach xmlns='urn:xmpp:reach:0'> <addr uri='tel:+1-303-555-1212'/> <addr uri='sip:romeo@sipspeare.lit'/> </reach> </presence>
Naturally, a reachability address MAY alternatively be included in directed presence.
To publish reachability addresses via the personal eventing protocol (XEP-0163), the entity publishes data to the "urn:xmpp:reach:0" node.
<iq type='set' from='romeo@montague.net' to='pubsub.shakespeare.lit' id='publish1'> <pubsub xmlns='http://jabber.org/protocol/pubsub'> <publish node='urn:xmpp:reach:0'> <item id='a1s2d3f4g5h6bjeh936'> <reach xmlns='urn:xmpp:reach:0'> <addr uri='tel:+1-303-555-1212'> <desc xml:lang='en'>My mobile number</desc> </addr> <addr uri='sip:romeo@sipspeare.lit'> <desc xml:lang='en'>My softphone</desc> </addr> </reach> </item> </publish> </pubsub> </iq>
<message from='pubsub.shakespeare.lit' to='juliet@capulet.com'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='urn:xmpp:reach:0'> <item id='a1s2d3f4g5h6bjeh936'> <reach xmlns='urn:xmpp:reach:0'> <addr uri='tel:+1-303-555-1212'> <desc xml:lang='en'>My mobile number</desc> </addr> <addr uri='sip:romeo@sipspeare.lit'> <desc xml:lang='en'>My softphone</desc> </addr> </reach> </item> </items> </event> </message>
If an entity supports reachability addresses, it MUST advertise that fact by returning a feature of "urn:xmpp:reach:0" (see Namespace Versioning regarding the possibility of incrementing the version number) in response to a Service Discovery [10] information request.
<iq from='juliet@capulet.com/balcony' id='disco1' to='romeo@montague.net/orchard' type='get'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq>
<iq from='romeo@montague.net/orchard' id='disco1' to='juliet@capulet.com/balcony' type='result'> <query xmlns='http://jabber.org/protocol/disco#info'> <feature var='urn:xmpp:reach: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 [11]. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.
To preserve network bandwidth, the sender SHOULD NOT include the <desc/> element unless that information is deemed necessary to enable communication.
A recipient SHOULD attempt communications with reachability addresses in the order that the <addr/> elements appear within the <reach/> element.
If included, the <desc/> element SHOULD possess an 'xml:lang' attribute specifying the language of the human-readable descriptive text for a particular address.
Security considerations for XMPP presence and PEP publication are described in RFC 6120, RFC 6121, XEP-0060, and XEP-0163.
Advertising a telephone number, SIP URI, or other real-time communication address to one contact or to multiple contacts introduces the possibility of information leakage and subsequent attacks (e.g., unsolicited phone calls). Clients are advised to appropriately warn users about the dangers of such attacks.This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [12].
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 [13] 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 [14].
If the protocol defined in this specification undergoes a revision that is not fully backwards-compatible with an older version, 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:reach:0' xmlns='urn:xmpp:reach:0' elementFormDefault='qualified'> <xs:element name='reach'> <xs:complexType> <xs:sequence> <xs:element name='addr' minOccurs='0' maxOccurs='unbounded' type='addrElementType'/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name='addrElementType'> <xs:sequence> <xs:element name='desc' minOccurs='0' maxOccurs='unbounded' type='xs:string'/> </xs:sequence> <xs:attribute name='uri' use='required' type='xs:anyURI'/> </xs:complexType> </xs:schema>
Series: XEP
Number: 0152
Publisher: XMPP Standards Foundation
Status:
Proposed
Type:
Standards Track
Version: 0.4
Last Updated: 2013-02-05
Approving Body: XMPP Council
Dependencies: XMPP Core, XMPP IM
Supersedes: None
Superseded By: None
Short Name: reach
Source Control:
HTML
This document in other formats:
XML
PDF
Email:
stpeter@jabber.org
JabberID:
stpeter@jabber.org
URI:
https://stpeter.im/
Email:
jhildebr@cisco.com
JabberID:
hildjj@jabber.org
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 6120) and XMPP IM (RFC 6121) 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 primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <http://xmpp.org/about/discuss.shtml> for a complete list.
Errata can be sent to <editor@xmpp.org>.
The following requirements 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. XEP-0054: vcard-temp <http://xmpp.org/extensions/xep-0054.html>.
2. XEP-0292: vCard4 over XMPP <http://xmpp.org/extensions/xep-0292.html>.
3. RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence <http://tools.ietf.org/html/rfc6121>.
4. XEP-0060: Publish-Subscribe <http://xmpp.org/extensions/xep-0060.html>.
5. RFC 3986: Uniform Resource Identifiers (URI): Generic Syntax <http://tools.ietf.org/html/rfc3986>.
6. RFC 3987: Internationalized Resource Identifiers (IRIs) <http://tools.ietf.org/html/rfc3987>.
7. RFC 4646: Tags for Identifying Languages <http://tools.ietf.org/html/rfc4646>.
8. RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core <http://tools.ietf.org/html/rfc6120>.
9. XEP-0163: Personal Eventing Protocol <http://xmpp.org/extensions/xep-0163.html>.
10. XEP-0030: Service Discovery <http://xmpp.org/extensions/xep-0030.html>.
11. XEP-0115: Entity Capabilities <http://xmpp.org/extensions/xep-0115.html>.
12. 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/>.
13. 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/>.
14. XEP-0053: XMPP Registrar Function <http://xmpp.org/extensions/xep-0053.html>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Updated to reflect new XMPP RFCs; strengthened security considerations.
(psa)Defined PEP transport.
(psa)Initial published version.
(psa)First draft.
(psa/jjh)END