This document defines an XMPP protocol extension for communicating reachability information related to non-XMPP devices.
WARNING: Consideration of this document has been Deferred by the XMPP Standards Foundation. Implementation of the protocol described herein is not recommended.
Series: XEP
Number: 0152
Publisher: XMPP Standards Foundation
Status:
Deferred
Type:
Standards Track
Version: 0.2
Last Updated: 2006-09-17
Approving Body: XMPP Council
Dependencies: XMPP Core, XMPP IM
Supersedes: None
Superseded By: None
Short Name: reach
Wiki Page: <http://wiki.jabber.org/index.php/Reachability Addresses (XEP-0152)>
Email:
jhildebrand@jabber.com
JabberID:
hildjj@jabber.org
JabberID:
stpeter@jabber.org
URI:
https://stpeter.im/
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. Data Format
4. Data Transport
4.1. Presence Broadcast
4.2. Personal Eventing
4.3. IQ Request
5. Implementation Notes
6. Internationalization Considerations
7. Security Considerations
8. IANA Considerations
9. XMPP Registrar Considerations
9.1. Protocol Namespaces
10. XML Schema
Notes
Revision History
Sometimes it is desirable or necessary to switch from instant messaging (IM) to another real-time communications medium, such as a telephone conversation conducted over the traditional public switched telephone network (PSTN) or more recent Voice over Internet Protocol (VoIP) applications. In order to facilitate switching from IM to telephony or some other medium, a user needs to advertise the address(es) at which they can be reached. There are several possible ways to do this:
Publish the reachability address(es) in the user's vCard (see vcard-temp [1]); 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).
Publish the user's reachability status (but not addresses) as a feature bundle within Entity Capabilities [2] information; this is somewhat dynamic (subscribers can be informed when reachability information is available) but requires every interested subscriber to perform service discovery in order to determine the reachability address(es).
Send the reachability address(es) within a <presence/> stanza; this option is described in the Presence Broadcast section of this document and is consistent with Section 5.1.2 of RFC 3921 [3] since reachability is one aspect of a user's availability for communication.
Send reachability address(es) to the appropriate Personal Eventing via Pubsub [4] node; this option is described in the PEP Transport section of this document but may not be available at all service providers.
This document addresses the following requirements:
The following is an example of the basic data format for reachability addresses:
<reach xmlns='http://jabber.org/protocol/reach'> <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 Section 9.1.5 of RFC 3920 [8]). In order to preserve bandwidth, the <desc/> element SHOULD NOT be included when sending reachbility data via presence broadcast, but MAY be included when using personal eventing.
<reach xmlns='http://jabber.org/protocol/reach'> <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>
As described below, 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 using an <iq/> request-response sequence.
In order 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='http://jabber.org/protocol/reach'> <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='http://jabber.org/protocol/reach'> <addr uri='tel:+1-303-555-1212'/> <addr uri='sip:romeo@sipspeare.lit'/> </reach> </presence> . . .
In order to publish reachability via the publish-subscribe transport, an entity MUST first create the appropriate node as explained in XEP-0060. Here we assume that the node already exists.
<iq type='set' from='romeo@montague.net' to='pubsub.shakespeare.lit' id='publish1'> <pubsub xmlns='http://jabber.org/protocol/pubsub'> <publish node='http://jabber.org/protocol/reach'> <item id='a1s2d3f4g5h6bjeh936'> <reach xmlns='http://jabber.org/protocol/reach'> <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='http://jabber.org/protocol/reach'> <item id='a1s2d3f4g5h6bjeh936'> <reach xmlns='http://jabber.org/protocol/reach'> <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 a client supports the reachability addresses protocol described herein, it SHOULD include a Service Discovery [9] feature of 'http://jabber.org/protocol/reach' in its replies to disco#info requests:
<iq from='juliet@capulet.com/balcony' to='romeo@montague.net/orchard' id='disco1'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq> <iq to='romeo@montague.net/orchard' from='juliet@capulet.com/balcony' id='disco1'> <query xmlns='http://jabber.org/protocol/disco#info'> ... <feature var='http://jabber.org/protocol/reach'/> ... </query> </iq>
If desired, the contact then MAY query the user for any reachability addresses:
<iq from='juliet@capulet.com/balcony' to='romeo@montague.net/orchard' id='reach1'> <reach xmlns='http://jabber.org/protocol/reach'/> </iq> <iq to='romeo@montague.net/orchard' from='juliet@capulet.com/balcony' id='reach1'> <reach xmlns='http://jabber.org/protocol/reach'> <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> </iq>
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.
This document introduces no security considerations above and beyond those described in RFC 3920, RFC 3921, and (for the personal eventing transport) XEP-0163.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [10].
The XMPP Registrar [11] shall include 'http://jabber.org/protocol/reach' in its registry of protocol namespaces.
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='http://jabber.org/protocol/reach' xmlns='http://jabber.org/protocol/reach' elementFormDefault='qualified'> <xs:element name='reach'> <xs:complexType> <xs:sequence> <xs:element ref='addr' minOccurs='0' maxOccurs='unbounded'/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name='address'> <xs:complexType> <xs:sequence> <xs:element ref='desc' minOccurs='0' maxOccurs='unbounded'/> </xs:sequence> <xs:attribute name='uri' use='required' type='xs:anyURI'/> </xs:complexType> </xs:element> <xs:element name='desc' type='xs:string'/> </xs:schema>
1. XEP-0054: vcard-temp <http://www.xmpp.org/extensions/xep-0054.html>.
2. XEP-0115: Entity Capabilities <http://www.xmpp.org/extensions/xep-0115.html>.
3. RFC 3921: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence <http://tools.ietf.org/html/rfc3921>.
4. XEP-0163: Personal Eventing via Pubsub <http://www.xmpp.org/extensions/xep-0163.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 3920: Extensible Messaging and Presence Protocol (XMPP): Core <http://tools.ietf.org/html/rfc3920>.
9. XEP-0030: Service Discovery <http://www.xmpp.org/extensions/xep-0030.html>.
10. 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/>.
11. 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/>.
Defined PEP transport.
(psa)Initial version.
(psa)First draft.
(psa/jjh)END