XEP-0152: Reachability Addresses

Abstract
This document defines an XMPP protocol extension for communicating information about how an entity can be reached temporarily using methods other than the entity's normal JID.
Authors
  • Peter Saint-Andre
  • Joe Hildebrand
Copyright
© 2005 – 2014 XMPP Standards Foundation. SEE LEGAL NOTICES.
Status

Stable

NOTICE: The protocol defined herein is a Stable Standard of the XMPP Standards Foundation. Implementations are encouraged and the protocol is appropriate for deployment in production systems, but some changes to the protocol are possible before it becomes a Final Standard.
Type
Standards Track
Version
1.0 (2014-02-25)
Document Lifecycle
  1. Experimental
  2. Proposed
  3. Stable
  4. Final

1. Introduction

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 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:

This document defines methods for publishing addresses at which a user can be reached temporarily, as opposed to semi-permanent addresses of the kind that are more appropriately communicated in a user's vCard. We illustrate this usage through the scenario of a user sending a reachability address upon entering a physical conference room and then sending an updated notification (without a reachability address) upon leaving the conference room. Similar scenarios might apply when an XMPP implementation is used with technologies such as WebRTC and in deployments of the combined use of SIP and XMPP ("CUSAX"; RFC 7081 [5]).

2. Requirements

This document addresses the following requirements:

3. Data Format

The following is an example of the data format for reachability addresses:

Example 1. Data Format for Reachability Addresses
<reach xmlns='urn:xmpp:reach:0'>
  <addr uri='tel:+1-303-555-1212'/>
  <addr uri='sip:room123@example.com'/>
</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 [6]) or Internationalized Resource Identifier (RFC 3987 [7]) 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 [8] (although the default language MAY be specified at the stanza level; see RFC 6120 [9]). 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.

Example 2. Reachability Addresses With Descriptions
<reach xmlns='urn:xmpp:reach:0'>
  <addr uri='tel:+1-303-555-1212'>
    <desc xml:lang='en'>Conference room phone</desc>
  </addr>
  <addr uri='sip:room123@example.com'>
    <desc xml:lang='en'>In-room video system</desc>
  </addr>
</reach>

4. Data Transport

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.

4.1 Presence Transport

To broadcast reachability addresses in presence information, a user's client includes the <reach/> element in the <presence/> stanza it sends to its server.

For example, consider someone who walks into a conference room at the office. Via nearfield communication, the user's XMPP client might auto-discover a 'tel:' URI for the room audio system and a 'sip:' URI for the room video system.

Example 3. User's Client Includes Reachability Addresses in Presence
<presence from='romeo@example.com/mobile'>
  <reach xmlns='urn:xmpp:reach:0'>
    <addr uri='tel:+1-303-555-1212'/>
    <addr uri='sip:room123@example.com'/>
  </reach>
</presence>

The user's server then broadcasts that presence stanza to all entities who are subscribed to the user's presence:

Example 4. User's Server Broadcasts Presence Information
<presence from='romeo@montague.net/mobile' to='juliet@capulet.com'>
  <reach xmlns='urn:xmpp:reach:0'>
    <addr uri='tel:+1-303-555-1212'/>
    <addr uri='sip:room123@example.com'/>
  </reach>
</presence>

(Naturally, a reachability address MAY alternatively be included in directed presence.)

Upon leaving the conference room, the user's client would send updated presence without the reachability extension.

Example 5. User's Client Sends Updated Presence Without Reachability Addresses
<presence from='romeo@example.com/mobile'/>

4.2 Personal Eventing Protocol

To publish reachability addresses via the personal eventing protocol (Personal Eventing Protocol (XEP-0163) [10]), the entity publishes data to the "urn:xmpp:reach:0" node.

Example 6. Entity Publishes Reachability Addresses via PEP
<iq type='set'
    from='romeo@example.com'
    to='pubsub.shakespeare.example'
    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'>Conference room phone</desc>
          </addr>
          <addr uri='sip:room123@example.com'>
            <desc xml:lang='en'>In-room video system</desc>
          </addr>
        </reach>
      </item>
    </publish>
  </pubsub>
</iq>
Example 7. Subscriber Receives PEP Event with Payload
<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'>Conference room phone</desc>
          </addr>
          <addr uri='sip:room123@example.com'>
            <desc xml:lang='en'>In-room video system</desc>
          </addr>
        </reach>
      </item>
    </items>
  </event>
</message>

As above, when leaving the conference room the user's client would publish an updated payload indicating that it no longer has any temporary reachability addresses.

Example 8. Entity Publishes Payload with Empty Reachability Addresses
<iq type='set'
    from='romeo@example.com'
    to='pubsub.shakespeare.example'
    id='publish1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <publish node='urn:xmpp:reach:0'>
      <item id='a1s2d3f4g5h6bjeh936'>
        <reach xmlns='urn:xmpp:reach:0'/>
      </item>
    </publish>
  </pubsub>
</iq>

5. Determining Support

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 (XEP-0030) [11] information request.

Example 9. Service Discovery 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>
Example 10. Service Discovery Information Response
<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 (XEP-0115) [12]. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.

6. Implementation Notes

To preserve network bandwidth, the sender ought not include the <desc/> element unless that information is deemed necessary to enable communication.

A recipient ought to attempt communications with reachability addresses in the order that the <addr/> elements appear within the <reach/> element.

7. Internationalization Considerations

If included, the <desc/> element SHOULD possess an 'xml:lang' attribute specifying the language of the human-readable descriptive text for a particular address.

8. Security Considerations

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 multiple contacts in an unencrypted way (e.g., via XMPP presence or PEP in cases where not all hops are TLS-protected) introduces the possibility of information leakage and subsequent attacks such as unsolicited phone calls. Clients are advised to appropriately warn users about the dangers of such attacks. Alternatively, if the address is especially sensitive (say, a hashname RFC 6920 [13] for use in a system that enables direct private communication outside of XMPP), then a client could send it in a message that itself is end-to-end encrypted.

9. IANA Considerations

This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [14].

10. XMPP Registrar Considerations

10.1 Protocol Namespaces

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 [15] shall add the foregoing namespace to the registry located at <https://xmpp.org/registrar/namespaces.html>, as described in Section 4 of XMPP Registrar Function (XEP-0053) [16].

10.2 Namespace Versioning

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.

11. XML Schema

<?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:annotation>
    <xs:documentation>
      The protocol documented by this schema is defined in
      XEP-0152: http://www.xmpp.org/extensions/xep-0152.html
    </xs:documentation>
  </xs:annotation>

  <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>

Appendices

Appendix A: Document Information

Series
XEP
Number
0152
Publisher
XMPP Standards Foundation
Status
Stable
Type
Standards Track
Version
1.0
Last Updated
2014-02-25
Approving Body
XMPP Council
Dependencies
XMPP Core, XMPP IM
Supersedes
None
Superseded By
None
Short Name
reach
Schema
XML Schema for the 'reach' namespace: <http://www.xmpp.org/schemas/reach.xsd>
Source Control
HTML

This document in other formats: XML  PDF

Appendix B: Author Information

Peter Saint-Andre
Email
stpeter@stpeter.im
JabberID
stpeter@jabber.org
URI
https://stpeter.im/
Joe Hildebrand
Email
jhildebr@cisco.com
JabberID
hildjj@jabber.org

Copyright

This XMPP Extension Protocol is copyright © 1999 – 2024 by the XMPP Standards Foundation (XSF).

Permissions

Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.

Disclaimer of Warranty

## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##

Limitation of Liability

In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.

IPR Conformance

This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at <https://xmpp.org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).

Visual Presentation

The HTML representation (you are looking at) is maintained by the XSF. It is based on the YAML CSS Framework, which is licensed under the terms of the CC-BY-SA 2.0 license.

Appendix D: Relation to XMPP

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.

Appendix E: Discussion Venue

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 <https://xmpp.org/community/> for a complete list.

Errata can be sent to <editor@xmpp.org>.

Appendix F: Requirements Conformance

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".

Appendix G: Notes

1. XEP-0054: vcard-temp <https://xmpp.org/extensions/xep-0054.html>.

2. XEP-0292: vCard4 over XMPP <https://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 <https://xmpp.org/extensions/xep-0060.html>.

5. RFC 7081: CUSAX: Combined Use of the Session Initiation Protocol (SIP) and the Extensible Messaging and Presence Protocol (XMPP) <http://tools.ietf.org/html/rfc7081>.

6. RFC 3986: Uniform Resource Identifiers (URI): Generic Syntax <http://tools.ietf.org/html/rfc3986>.

7. RFC 3987: Internationalized Resource Identifiers (IRIs) <http://tools.ietf.org/html/rfc3987>.

8. RFC 4646: Tags for Identifying Languages <http://tools.ietf.org/html/rfc4646>.

9. RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core <http://tools.ietf.org/html/rfc6120>.

10. XEP-0163: Personal Eventing Protocol <https://xmpp.org/extensions/xep-0163.html>.

11. XEP-0030: Service Discovery <https://xmpp.org/extensions/xep-0030.html>.

12. XEP-0115: Entity Capabilities <https://xmpp.org/extensions/xep-0115.html>.

13. RFC 6920: Naming Things with Hashes <http://tools.ietf.org/html/rfc6920>.

14. 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/>.

15. 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 <https://xmpp.org/registrar/>.

16. XEP-0053: XMPP Registrar Function <https://xmpp.org/extensions/xep-0053.html>.

Appendix H: Revision History

Note: Older versions of this specification might be available at https://xmpp.org/extensions/attic/

  1. Version 1.0 (2014-02-25)

    Per a vote of the XMPP Council, advanced specification from Experimental to Draft.

    XEP Editor (mm)
  2. Version 0.6 (2013-12-02)

    Further clarified the intent of the protocol.

    psa
  3. Version 0.5 (2013-09-25)

    Modified the text and examples to better illustrate the primary use case.

    psa
  4. Version 0.4 (2013-02-05)

    Updated to reflect new XMPP RFCs; strengthened security considerations.

    psa
  5. Version 0.3 (2008-10-06)
    psa
  6. Version 0.2 (2006-09-17)

    Defined PEP transport.

    psa
  7. Version 0.1 (2005-06-16)

    Initial published version.

    psa
  8. Version 0.0.1 (2005-06-07)

    First draft.

    psa/jjh

Appendix I: Bib(La)TeX Entry

@report{saint-andre2005reach,
  title = {Reachability Addresses},
  author = {Saint-Andre, Peter and Hildebrand, Joe},
  type = {XEP},
  number = {0152},
  version = {1.0},
  institution = {XMPP Standards Foundation},
  url = {https://xmpp.org/extensions/xep-0152.html},
  date = {2005-06-07/2014-02-25},
}

END