<?xml version='1.0' encoding='utf-8'?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent" >
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-rum-rue-11" ipr="trust200902" obsoletes="" updates="" submissionType="IETF" xml:lang="en" tocDepth="4" sortRefs="true" symRefs="true" version="3" consensus="yes">
  <!-- ***** FRONT MATTER ***** -->
  <front>
    <title abbrev="Relay User Equipment Profile">Interoperability Profile for Relay User Equipment</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-rum-rue-11"/>
    <author fullname="Brian Rosen" initials="B." surname="Rosen">
      <address>
        <postal>
          <street>470 Conrad Dr</street>
          <!-- Reorder these if your country does things differently -->
          <city>Mars</city>
          <region>PA</region>
          <code>16046</code>
          <country>US</country>
        </postal>
         <email>br@brianrosen.net</email>
      </address>
    </author>
    <date year="2022"/>
    <area>art</area>
    <workgroup>rum</workgroup>
    <keyword>rue</keyword>
    <abstract>
      <t>Video Relay Service (VRS) is a term used to describe a method by which a hearing person can communicate with a deaf, hard of hearing or hearing impaired user using an interpreter ("Communications Assistant") connected via a videophone to the deaf/hard of hearing/hearing impaired user and an audio telephone call to the hearing user.  The CA interprets using sign language on the videophone link and voice on the telephone link.  Often the interpreters may be employed by a company or agency termed a "provider" in this document.  The provider also provides a video service that allows users to connect video devices to their service, and subsequently to CAs and other deaf/hard of hearing/hearing impaired users. It is desirable that the videophones used by the deaf, hard of hearing or hearing impaired user conform to a standard so that any device may be used with any provider and that direct video calls between deaf, hard of hearing or hearing impaired users work.  This document describes   the interface between a videophone and a provider.</t>
    </abstract>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Introduction</name>
      <t>Video Relay Service (VRS) is a form of Telecommunications Relay Service (TRS) that enables persons with hearing disabilities who use sign language,
         such as American Sign Language (ASL), to communicate with voice telephone users through video equipment. These services also enable communication between such
         individuals directly in suitable modalities, including any combination of sign language via video, real-time text (RTT), and speech.
      </t>
      <t>
        This Interoperability Profile for Relay User Equipment (RUE) is a profile of the Session Initiation Protocol (SIP) and related media protocols that
        enables end-user equipment registration and calling for VRS calls. It specifies the minimal set of call flows, Internet Engineering Task Force (IETF)
        and ITU-T standards that must be supported, provides guidance where the standards leave multiple implementation options, and specifies minimal and extended capabilities for RUE calls.</t>
      <t>
     
Both deaf/HoH to provider (interpreted) and direct deaf/HoH to deaf/HoH calls are supported on this interface.  While there are some accommodations in this document to maximize backwards compatibility with other devices and services that are used to provide VRS service, backwards compatibility is not a requirement, and some interwork may be required to allow direct video calls to older devices.  This document only describes the interface between the device and the provider, and not any other interface the provider may have.  </t>
      <t>The following illustrates a typical relay call.  The RUE device and the Commincations Assistant (sign language interpretter) have videophones.  The Hearing User has a telephone (mobile or fixed).</t>
      <artwork name="" type="" align="left" alt=""><![CDATA[
                           ||== RUE Interface (this document)
                           ||
                           \/
    +----+   +------+      -       +--------+     -      +-------+
    |Deaf|   |RUE   |    (   )     |Provider|    (  )    |Hearing|
    |User|<->|Device|<-(Internet)->|        |<-( PSTN )->|User   |
    +----+   +------+   --------   +--------+   ------   +-------+
                                        ^
                                        |
                                +--------------+
                                |Communications|
                                |Assistant     |
                                +--------------+
    ]]></artwork>
    </section>
    <section numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Terminology</name>
      <t>
        Communication Assistant (CA): A sign-language interpreter working for a VRS provider, providing functionally equivalent phone service.
      </t>
      <t>
        Communication modality (modality): A specific form of communication that may be employed by two users, e.g., English voice, Spanish voice,
        American Sign Language, English lip-reading, or French real-time-text. Here, one communication modality is assumed to encompass both the
        language and the way that language is exchanged. For example, English voice and French voice are two different communication modalities.
      </t>
      <t>
        Default video relay service: The video relay service operated by a subscriber's default VRS provider.
      </t>
      <t>
          Default video relay service provider (default provider): The VRS
  provider that registers, and assigns a telephone number to a
  specific subscriber, and by default provides the
  VRS for incoming voice calls to the user.  The default
  provider also by default provides VRS for outgoing relay calls. The
  user can have more than one telephone number and each has a default
  provider.
      </t>
      <t>
        Outbound Dial-around call: A relay call where the subscriber specifies the use of a VRS provider other than the default VRS provider.
        This can be accomplished by the user dialing a "front-door" number for a VRS provider and signing or texting a phone number to call ("two-stage").
        Alternatively, this can be accomplished by the user's RUE software instructing the server of its default VRS provider to automatically route the call through the alternate provider to the desired public switched telephone network (PSTN) directory number ("one-stage").  Dial-around is per-call -- for any call, a user can use the default VRS provider or any dial-around VRS provider.
      </t>
      <t>
        Full Intra Request (FIR): A request to a video media sender, requiring that media sender to send a Decoder Refresh Point at the earliest opportunity. FIR is sometimes known as "instantaneous decoder refresh request", "video fast update request", or "fast update request".
      </t><t>
        Point-to-Point Call (P2P Call): A call between two RUEs, without including a CA.
      </t>
      <t>
        Relay call: A call that allows persons with hearing or speech disabilities to use a RUE to talk to users of conventional voice services with the aid of a communication assistant (CA) to relay the communication.
      </t>
      <t>
        Relay service (RS): A service that allow a registered subscriber to use a RUE to make and receive relay calls, point-to-point calls, and relay-to-relay calls. The functions provided by the relay service include the provision of media links supporting the communication modalities used by the caller and callee, and user registration and validation, authentication, authorization, automatic call distributor (ACD) platform functions, routing (including emergency call routing), call setup, mapping, call features (such as call forwarding and video mail), and assignment of CAs to relay calls.
      </t>
      <t>
        Relay service provider (provider): An organization that operates a relay service. A subscriber selects a relay service provider to assign and register a telephone number for their use, to register with for receipt of incoming calls, and to provide the default service for outgoing calls.
      </t>
      <t>
        Relay user: Please refer to "subscriber".
      </t>
      <t>
        Relay user E.164 Number (user E.164): The telephone number (in ITU-T E.164 format) assigned to the user.
      </t>
      <t>
        Relay user equipment (RUE): A SIP user agent (UA) enhanced with extra features to support a subscriber in requesting, receiving and using relay calls. A RUE may take many forms, including a stand-alone device; an application running on a general-purpose computing device such as a laptop, tablet or smartphone; or proprietary equipment connected to a server that provides the RUE interface.
</t>
      <t>
	RUE Interface: the interfaces described in this document between a RUE and a VRS provider who supports it
      </t>
      <t>
        Sign language: A language that uses hand gestures and body language to convey meaning including, but not limited to, American Sign Language (ASL).
      </t>
      <t>
        Subscriber: An individual who has registered with a provider and who obtains service by using relay user equipment. This is the conventional telecom term for an end-user customer, which in our case is a relay user.  A user may be a subscriber to more than one VRS provider.
      </t>

      <t>
        Video relay service (VRS): A relay service for people with hearing or speech disabilities who use sign language to communicate using video equipment (video RUE) with other people in real time. The video link allows the CA to view and interpret the subscriber's signed conversation and relay the conversation back and forth with the other party.
      </t>
    </section>
    <section numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Requirements Language</name>
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
          "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
          "OPTIONAL" in this document are to be interpreted as described in BCP
          14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all
          capitals, as shown here.  Lower- or mixed-case uses of these key
          words are not to be interpreted as carrying special significance.
</t>
    </section>
    <section anchor="general" numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>General Requirements</name>
      <t>
           All HTTP/HTTPS <xref target="RFC7230"/> and <xref target="RFC2818"/> connections specified throughout this document MUST use HTTPS. Both HTTPS and all SIP connections MUST use TLS conforming to at least <xref target="RFC7525" format="default"/> and MUST support <xref target="RFC8446" format="default"/>.
      </t>
      <t>
           All text data payloads not otherwise constrained by a specification in another standards document MUST be encoded as Unicode UTF-8.
      </t>
	<t>Implementations MUST support IPv4 and IPv6.  Dual stack support is NOT required and provider implementations MAY support separate interfaces for IPv4 and IPv6 by having more than one server in the appropriate SRV record where there is either an A or AAAA record in each server DNS record but not both.  The same version of IP MUST be used for both signaling and media of a call unless ICE (<xref target="RFC8445" format="default"/>) is used, in which case candidates may explicitly offer IPv4, IPv6 or both for any media stream.</t>
    </section>
    <section anchor="sip" numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>SIP Signaling</name>
      <t>
           Implementations of the RUE Interface MUST conform to the following core SIP standards:</t><ul>
               <li> <xref target="RFC3261" format="default"/> (Base SIP)</li>
               <li> <xref target="RFC3263" format="default"/> (Locating SIP Servers)</li>
               <li>  <xref target="RFC3264" format="default"/> (Offer/Answer)</li>
               <li>  <xref target="RFC3840" format="default"/> (User Agent Capabilities)</li>
               <li>  <xref target="RFC5626" format="default"/> (Outbound)</li>
               <li>  <xref target="RFC8866" format="default"/> (Session Description Protocol)</li>
               <li>  <xref target="RFC3323" format="default"/> (Privacy)</li>
               <li>  <xref target="RFC3605" format="default"/> (RTCP Attribute in SDP)</li>
               <li>  <xref target="RFC6665" format="default"/> (SIP Events)</li>
               <li>  <xref target="RFC3311" format="default"/> (UPDATE Method)</li>
               <li>  <xref target="RFC5393" format="default"/> (Loop-Fix)</li>
               <li>  <xref target="RFC5658" format="default"/> (Record Route fix)</li>
               <li>  <xref target="RFC5954" format="default"/> (ABNF fix)</li>
               <li>  <xref target="RFC3960" format="default"/> (Early Media)</li>
               <li>  <xref target="RFC6442" format="default"/> (Geolocation header field)</li>
               </ul>

	<t>
In the above documents the RUE device conforms to the requirements of a SIP user Agent, and the provider conforms to the requirements of Registrar and Proxy Server where the document specifies different behavior for different roles.  The only requirement on providers for RFC6665 (Events) is support for the Message Waiting Indicator (See <xref target="mwi"/>), which is optional and providers not supporting video mail need not support RFC6665.
	</t> 
      <t>
           In addition, implementations MUST conform to:</t>
       <ul>
          <li> <xref target="RFC3327" format="default"/> (Path)</li>
          <li>  <xref target="RFC8445" format="default"/> and <xref target="RFC8839"/> (ICE)</li>
          <li>  <xref target="RFC3326" format="default"/> (Reason header field)</li>
          <li>  <xref target="RFC3515" format="default"/> (REFER Method)</li>
          <li>  <xref target="RFC3891" format="default"/> (Replaces Header field)</li>
          <li>  <xref target="RFC3892" format="default"/> (Referred-By)</li>
        </ul>
       <t>Implementations MUST implement full ICE, although they MAY interwork with User Agents that implement ICE-lite.</t>
      <t>
           Implementations MUST include a "User-Agent" header field uniquely identifying the RUE application, platform, and version in all SIP requests, and MUST include a "Server" header field with the same content in SIP responses.
      </t>
<t>Implementations intended to support mobile platforms MUST support <xref target="RFC8599"/> and MUST use it as at least one way to support waking up the client from background state.  </t>
<t>The SIP signaling for registration and placing/receiving calls depends on configuration of various values into the RUE device.  <xref target="config"/> describes the configuration mechanism which provides values that are used in the signaling.  When the device starts, the configuration mechanism is run which retrieves the configuration data, and then SIP registration occurs using the values from the configuration.  After registration, calls may be sent or received by the RUE device.</t>
      <section anchor="register" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Registration</name>
        <t>
        The RUE MUST register with a SIP registrar, following <xref target="RFC3261" format="default"/> and <xref target="RFC5626" format="default"/> at a provider it has an account with. If the configuration (see <xref target="config"/>) contains multiple "outbound-proxies" in "RueConfigurationData", then the RUE MUST use them as specified in [RFC5626] to establish multiple flows.
        </t>
        <t>
        The Request-URI for the REGISTER request MUST contain the "provider-domain" from the configuration. The To-URI and From-URI MUST be identical URIs, formatted as follows:</t>
        <ul><li>if "user-name" is provided:"username@provider-domain"; </li>
            <li>if "user-name" is not provided: as specified in <xref target="uriphone"/>, using "phone-number" and "provider-domain" from the configuration.</li></ul>

        <t>
        The RUE determines the URI to resolve by initially determining if one or more outbound proxies are+ configured. If there are, the URI will be that of one of the "outbound-proxies". If no "outbound-proxies" are configured, the URI will be the Request-URI from the REGISTER request. The RUE extracts the domain from that URI and consults the DNS record for that domain. The DNS entry MUST contain NAPTR records conforming to RFC3263. One of those NAPTR records MUST specify TLS as the preferred transport for SIP. For example, a DNS NAPTR query for "sip: p1.red.example.net" could return:
        </t>
        <!-- v2v3: </> promoted to be child of <section/>, and the enclosing <t/> split. -->
        <sourcecode name="dns-rr" type=""><![CDATA[
      IN NAPTR 50  50 "s" "SIPS+D2T" "" _sips._tcp.p1.red.example.net
      IN NAPTR 90  50 "s" "SIP+D2T"  "" _sip._tcp.p1.red.example.net
      ]]></sourcecode>
        <t>
        If the RUE receives a 439 (First Hop Lacks Outbound Support) response to a REGISTER request, it MUST re-attempt registration without using the outbound mechanism.
        </t>
        <t>
        The registrar MAY authenticate the RUE using SIP digest authentication. The credentials to be used MUST come from the configuration <xref target="config"/>: "user-name" if provided or "phone-number" if user-name is not provided, and "sip-password". This "user-name"/"sip-password" combination SHOULD NOT be the same as
        that used for other purposes, except as expressly described below, such as retrieving the RUE configuration or logging into the Provider's customer service portal. <xref target="RFC8760" format="default"/> MUST be supported by all implementations and SHA-512 digest algorithms MUST be supported.
        </t>
        <t>
        If the registration request fails with an indication that credentials from the configuration are invalid,
        then the RUE MUST retrieve a fresh version of the configuration.
        If credentials from a freshly retrieved configuration are found to be invalid,
        then the RUE MUST cease attempts to register and inform the RUE User of the problem.
        </t>
        <t>
        Support for multiple simultaneous registrations with multiple providers by the RUE is OPTIONAL for the RUE (and providers do not need any support for this option).
        </t>
        <t>
        Multiple simultaneous RUE SIP registrations from different RUE devices with the same SIP URI SHOULD be permitted by the provider. The provider MAY limit the total number of simultaneous registrations. When a new registration request is received that results in exceeding the limit on simultaneous registrations, the provider MAY then prematurely terminate another registration; however, it SHOULD NOT do this if it would disconnect an active call.
        </t>
        <t>
        If a provider prematurely terminates a registration to reduce the total number of concurrent registrations with the same URI, it SHOULD take some action to prevent the affected RUE from automatically re-registering and re-triggering the condition.
        </t>
      </section>
      <section anchor="session" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Session Establishment</name>
        <section anchor="normalcall" numbered="true" toc="default">
          <!-- v2v3: Moved attribute title to <name/> -->
          <name>Normal Call Origination</name>
          <t>
          After initial SIP registration, the RUE adheres to SIP <xref target="RFC3261" format="default"/> basic call flows, as documented in <xref target="RFC3665" format="default"/>.
          </t>
          <t>
          A RUE device MUST route all outbound calls through an outbound proxy if configured.
          </t>
          <t>
          The SIP URIs in the To field and the Request-URI MUST be formatted as specified in subsection <xref target='uriphone'/> using the destination phone number, or as SIP URIs, as provided in the configuration (<xref target="config"/>). The domain field of the URIs SHOULD be the "provider-domain" from the configuration (e.g., sip:+15551234567@red.example.com;user=phone) except that an anonymous call would not use the provider domain.
          </t>
          <t>
          Anonymous calls MUST be supported by all implementations. An anonymous call is signaled per <xref target="RFC3323" format="default"/>.
          </t>
          <t>
          The From-URI MUST be formatted as specified in <xref target="uriphone" format="default"/>, using the phone-number and "provider-domain" from the configuration. It SHOULD also contain the display-name from the configuration when present. (Please refer to <xref target="config" format="default"/>.)
          </t>
          <t>
          Negotiated media MUST follow the requirements specified in <xref target="media" format="default"/> of this document.
          </t>
          <t>
          To allow time to time out an unanswered call and direct it to a videomail server, the User Agent Client MUST NOT impose a time limit less than the default SIP Invite transaction timeout of 3 minutes.
          </t>
        </section>
        <section anchor="onestage" numbered="true" toc="default">
          <!-- v2v3: Moved attribute title to <name/> -->
          <name>Dial-Around Origination</name>
          <t>Providers and RUE devices MUST support both One-Stage and Two-Stage dial-around</t>
          <t>
            Outbound dial-around calls allow a RUE user to select any provider to provide interpreting services for any call.
            "Two-stage" dial-around calls involve the RUE calling a telephone number that reaches the dial-around provider and
            using signing or DTMF to provide the called party telephone number. In two-stage dial-around, the To URI is the "frontDoor" URI (see <xref target="config"/>) in "ProviderConfigurationData" of
            the dial-around provider.  The RUE Provider Selection service (<xref target="providerselect"/>) can be used by the RUE to obtain a list of providers and then the Provider Configuration (<xref target="providerConfig"/>) can be used to find the front door URI for each of these providers.
          </t>
          <t>
            One-stage dial-around is a method where the called party telephone number is provided in the To URI and the Request-URI,
            using the domain of the dial-around provider.
          </t>
          <t>
            For one-stage dial-around, the RUE MUST follow the procedures in <xref target="normalcall" format="default"/> with the
            following exception: the domain part of the SIP URIs in the To field and the Request-URI MUST be the domain of the
            dial-around provider, discovered according to <xref target="providerselect" format="default"/>.
          </t>
          <t>
            The following is a partial example of a one-stage dial-around call from VRS user +1-555-222-0001 hosted by red.example.com
            to a hearing user +1-555-123-4567 using dial-around to green.example.com for the relay service. Only important details of the
            messages are shown and many header fields have been omitted:
          </t>
          <!-- v2v3: <figure/> promoted to be child of <section/>, and the enclosing <t/> split. -->
          <figure>
            <!-- v2v3: Moved attribute title to <name/> -->
            <name>One-Stage Dial-Around</name>
            <artwork name="" type="" align="left" alt=""><![CDATA[

  ,-+-.        ,----+----.    ,-----+-----.
  |RUE|        |Default  |    |Dial-Around|
  |   |        |Provider |    | Provider  |
  `-+-'        `----+----'    `-----+-----'
    |               |               |
    | [1] INVITE    |               |
    |-------------->| [2] INVITE    |
    |               |-------------->|

  Message Details:

  [1] INVITE Rue -> Default Provider

  INVITE sip:+15551234567@green.example.net;user=phone SIP/2.0
  To: <sip:+15551234567@green.example.net;user=phone>
  From: "Bob Smith" <sip:+15552220001@red.example.net;user=phone>


  [2] INVITE Default Provider -> Dial-Around Provider

  INVITE sip:+15551234567@green.example.net;user=phone SIP/2.0
  To: <sip:+15551234567@green.example.net;user=phone>
  From: "Bob Smith" sip:+15552220001@red.example.net;user=phone
  P-Asserted-Identity: sip:+15552220001@red.example.net
  ]]></artwork>
          </figure>
        </section>
        <section anchor="contact" numbered="true" toc="default">
          <!-- v2v3: Moved attribute title to <name/> -->
          <name>RUE Contact Information</name>
          <t>
                    To identify the owner of a RUE, the initial INVITE for a call from a RUE, or the 200 OK the RUE uses to accept a call,
                    identifies the owner by sending a Call-Info header field with a purpose parameter of "rue-owner".
                    The URI MAY be an HTTPS URI or Content-ID URL. The latter is defined by <xref target="RFC2392" format="default"/> to locate
                    message body parts. This URI type is present in a SIP message to convey the RUE ownership information as a
                    MIME body. The form of the RUE ownership information is a xCard <xref target="RFC6351" format="default"/>.
                    Please refer to <xref target="RFC6442"/> for an example of using Content-Indirect URLs in SIP messages. Note that use of the Content-Indirect URL
                    usually implies multiple message bodies ("mime/multipart"). The RUE owner is the entity that has local control over the device which is not necessarily the legal owner of the equipment.  It often is the user, but that is not necessarily true.  While no minimum fields in the xCard are specified, the name, address, phone number and email address of the RUE owner are expected to be supplied.
          </t>
        </section>
        <section anchor="incoming" numbered="true" toc="default">
          <!-- v2v3: Moved attribute title to <name/> -->
          <name>Incoming Calls</name>
          <t>
                    The RUE MUST only accept inbound calls sent to it by a proxy mentioned in the configuration.
          </t>
          <t>
                    If Multiple simultaneous RUE SIP registrations from different RUE devices with the same SIP URI exist,
                    the provider MUST parallel fork the call to all registered RUEs so that they ring at the same time.
                    The first RUE to reply with a 200 OK answers the call and the provider MUST CANCEL other call branches.
          </t>
        </section>
        <section anchor="emergency" numbered="true" toc="default">
          <!-- v2v3: Moved attribute title to <name/> -->
          <name>Emergency Calls</name>
          <t>
                Implementations MUST conform to <xref target="RFC6881" format="default"/> for handling of emergency calls, except that if the device is unable to determine its own location, it MAY send the emergency call without a Geolocation header field and without a Route header field (since it would be unable to query the LoST server for a route per RFC6881). If an emergency call arrives at the provider without a Geolocation header field, the provider MUST supply location by adding the Geolocation header field, and MUST supply the route by querying the LoST server with that location.
          </t>
          <t>
              If the emergency call is to be handled using existing country specific procedures,
                    the provider is responsible for modifying the INVITE to conform to the country-specific requirements.
                    In this case, location MAY be extracted from the RFC6881 conformant INVITE and used to
                    propagate it to the appropriate country-specific entities.  If the configuration specifies it, an implementation of a RUE device
                    MAY send a Geolocation header field containing its location in the
                    REGISTER request. If implemented, users MUST be offered an opt-out. Country-specific procedures might require the location to
                    be pre-loaded in some entity prior to placing an emergency call;
                    however, the RUE may have a more accurate and timely device location
                    than the manual, pre-loaded entry. That information MAY be used to populate the location to appropriate country-specific entities.  Re-registration SHOULD be used to update the location, so long as the rate of re-registration is limited if the device is moving.
          </t>
<t>Implementations MUST implement Additional Data, <xref target="RFC7852"/>.  RUE devices MUST implement Data Provider, Device Information and Owner/Subscriber Information blocks.  </t>
        </section>
      </section>
      <section anchor="midcall" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Mid-Call Signaling</name>
        <t>
                    Implementations MUST support re-INVITE to renegotiate media session parameters (among other uses). Per <xref target="srtp" format="default"/>, implementations MUST be able to support an INFO request for full frame refresh for devices that do not support RTCP mechanisms (please refer to <xref target="mediafeat" format="default"/>). Implementations MUST support an in-dialog REFER (<xref target="RFC3515" format="default"/> updated by <xref target="RFC7647" format="default"/> and including support for norefersub per <xref target="RFC4488" format="default"/>) with the Replaces header field <xref target="RFC3891" format="default"/> to enable call transfer.
        </t>
      </section>
      <section anchor="uriphone" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>URI Representation of Phone Numbers</name>
        <t>
                    SIP URIs constructed from non-URI sources (dial strings) and sent to SIP proxies by the RUE MUST be represented as follows, depending on whether they can be represented as an E.164 number.  In this section "expressed as an E.164 number" includes numbers such as toll-free numbers that are not actually E.164 numbers, but have the same format.
        </t>
        <t>
                A dial string that can be expressed as an E.164 phone number MUST be represented as a SIP URI with a URI ";user=phone" tag. The user part of the URI MUST be in conformance with 'global-number' defined in <xref target="RFC3966" format="default"/>. The user part MUST NOT contain any 'visual-separator' characters, as defined in <xref target="RFC3966"/>.
        </t>
        <t>
                    Dial strings that cannot be expressed as E.164 numbers MUST be represented as dialstring URIs, as specified by <xref target="RFC4967" format="default"/>, e.g., sip:411@red.example.net;user=dialstring.
        </t>
        <t>
                    The domain part of Relay Service URIs and User Address of Records (AoR) MUST resolve (per <xref target="RFC3263" format="default"/>) to globally routable IPv4 and/or IPv6 addresses.
        </t>
      </section>
      <section anchor="nat" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Transport</name>
        <t>
                    Implementations MUST conform to <xref target="RFC8835" format="default"/> except for its guidance on the WebRTC data channel, which this specification does not use. See <xref target="text"/> for how RUE supports real-time text without the data channel.
        </t>
        <t>
                    Implementations MUST support SIP outbound <xref target="RFC5626" format="default"/> (please also refer to <xref target="register" format="default"/>).
        </t>
      </section>
    </section>
    <section anchor="media" numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Media</name>
      <t>This specification adopts the media specifications for WebRTC (<xref target="RFC8825" format="default"/>).
                Where WebRTC defines how interactive media communications may be established using a browser as a client, this specification assumes a normal SIP call.
                Various RTP, RTCP, SDP and specific media requirements specified for WebRTC are adopted for this document. Explicit requirements from the WebRTC suite of documents are described below .  </t>
      <t>To use WebRTC with this document, a gateway that presents a WebRTC server interface towards a browser, and a RUE client interface towards a provider is assumed.  The gateway would interwork signaling, and as noted below, interwork at least any real time text media, in order to allow a standard browser based WebRTC client to be a VRS client.  The combination of the browser client and the gateway would be a RUE user.  This document does not specify the gateway.</t>

     <t> The following sections specify the WebRTC documents to which conformance is required.  "Mandatory to Implement" means a conforming implementation MUST implement the
                specified capability.  It does not mean that the capability must be used in every session.  For example, OPUS is a mandatory to implement audio codec, and all conforming
                implementations must support OPUS.  However, implementation presenting a call across the RUE Interface where the call originates in the Public Switched Telephone Network, or an older, non-RUE-compatible device, which only offers G.711 audio, does not need to
                include the OPUS codec in the offer, since it cannot be used with that call. Conformance to this document allows end-to-end RTCP and media congestion control for audio and video.</t>
      <section anchor="srtp" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>SRTP and SRTCP</name>
        <t>
                    Implementations MUST support <xref target="RFC8834" format="default"/> except that MediaStreamTracks are not used.  Implementations MUST conform to Section 6.4 of <xref target="RFC8827" format="default"/>.
        </t>
      </section>
      <section anchor="text" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Text-Based Communication</name>
        <t>
                 Implementations MUST support real-time text (<xref target="RFC4102" format="default"/> and <xref target="RFC4103" format="default"/>) via T.140 media.
                 One original and two redundant generations MUST be transmitted and supported, with a 300 ms transmission interval.  Implementations MUST support <xref target="RFC9071"/> especially for emergency calls.  Note that RFC4103 is
                 not how real-time text is transmitted in WebRTC and some form of transcoder would be required to interwork real-time text in the data channel
                 of WebRTC to RFC4103 real-time text.
        </t>
        <t>
            Transport of T.140 real-time text in WebRTC is specified in <xref target="RFC8865"/>, using
              the WebRTC data channel. RFC 8865 also has some advice on how gateways
              between RFC 4103 and RFC 8865 should operate. It is RECOMMENDED that
              RFC 8865 including multiparty support is used for communication with browser-based WebRTC implementations.  Implementations MUST support <xref target="RFC9071"/>.
        </t>

      </section>
      <section anchor="video" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Video</name>
        <t>
                        Implementations MUST conform to <xref target="RFC7742" format="default"/> with following exceptions:
                        only H.264, as specified in <xref target=
                            "RFC7742"/>, is Mandatory to Implement, and
                        VP8 support is OPTIONAL at both the device and providers. This is
                        because backwards compatibility is desirable, and older devices do
                        not support VP8.
        </t>
      </section>
      <section anchor="audio" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Audio</name>
        <t>
                        Implementations MUST conform to <xref target="RFC7874" format="default"/>.
        </t>
      </section>
      <section anchor="dtmf" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>DTMF Digits</name>
        <t>
                        Implementations MUST support the "audio/telephone-event" <xref target="RFC4733" format="default"/> media type. They MUST support
                        conveying event codes 0 through 11 (DTMF digits "0"-"9", "*","#") defined in Table 7 of [RFC4733]. Handling of other tones is OPTIONAL.
        </t>
      </section>
      <section anchor="SDP" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Session Description Protocol</name>
        <t>
            The SDP offers and answers MUST conform to the SDP rules in <xref target="RFC8829"/>
              except that the RUE interface uses SIP transport for SDP. The SDP
              for real-time text MUST specify the T.140 payload type <xref target="RFC4103"/>.
        </t>
      </section>
      <section anchor="privacy" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Privacy</name>
        <t>
            The RUE MUST provide for user privacy by implementing a local
              one-way mute, without signaling, for both audio and video. However, RUE
              MUST maintain any states in the network (e.g. NAT bindings) by periodically sending media packets
              on all active media sessions containing silence/comfort noise/black
              screen/etc. per <xref target="RFC6263" format="default"/>.
        </t>
      </section>
      <section anchor="mediafeat" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Negative Acknowledgment, Packet Loss Indicator, and Full Intraframe Request Features</name>
        <t>The NACK, FIR and PLI features as described in <xref target = "RFC4585"/> and <xref target="RFC5104"/> MUST be implemented.  Availability of these features MUST be announced with the "ccm" feedback value.  NACK should be used when negotiated and conditions warrant its use and the other end supports it.  Signaling picture losses as Packet Loss Indicator (PLI) should be preferred.  FIR should be used only in situations where not sending a decoder refresh point would render the video unusable for the users, as per RFC5104 subsection 4.3.1.2.
        </t>
        <t>
        For backwards compatibility with calling devices that do not support the foregoing methods, implementations MUST implement SIP INFO messages to send and receive XML encoded Picture Fast Update messages according to <xref target="RFC5168" format="default"/>.
        </t>
      </section>
    </section>
    <section anchor="contacts" numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Contacts</name>
      <section anchor="carddav" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>CardDAV Login and Synchronization</name>
        <t>
                  Support of CardDAV by providers is OPTIONAL.
        </t>
        <t>
                    The RUE MUST and providers MAY be able to synchronize the user's contact directory between the RUE endpoint and one maintained
                    by the user's VRS provider using CardDAV (<xref target="RFC6352" format="default"/> and <xref target="RFC6764" format="default"/>).
        </t>
        <t>
                    The configuration (see Section <xref target="config"/>) RueConfigurationData MAY
                    supply a "carddav-username" and "carddav-domain" identifying a
                    CardDAV server and address book for this account, plus an optional
                    "carddav-password".
        </t>
        <t>
                    To access the CardDAV server and address book, the RUE MUST follow Section 6 of RFC6764, using the configured carddav-username and carddav-domain in place of an email address. If the request triggers a challenge for digest authentication credentials, the RUE MUST continue using matching carddav-username and carddav-password from the configuration. If no carddav-username and carddav-password are configured, the RUE MUST use the SIP user-name and sip-password from the configuration. If the SIP credentials fail, the RUE MUST query the user.
        </t>
        <t>
                    Synchronization using CardDAV MUST be a two-way synchronization service, with proper handling of asynchronous adds, changes, and deletes at either end of the transport channel.
        </t>
        <t>The RUE MAY support other CardDAV services.</t>
      </section>
      <section anchor="import" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Contacts Import/Export Service</name>
        <t>
                    Implementations MUST be able to export/import the list of contacts in xCard <xref target="RFC6351" format="default"/> XML format.
        </t>
        <t>
                    The RUE accesses this service via the "contacts-uri" in the configuration. The URL MUST resolve to identify a web server resource that imports/exports contact lists for authorized users.
        </t>
        <t>
                    The RUE stores/retrieves the contact list (address book) by issuing an HTTPS POST or GET request. If the request triggers a challenge for digest authentication credentials, the RUE MUST attempt to continue using the "contacts-username" and "contacts-password" from the configuration. If no contacts-username is configured, the sip user-name from the configuration is used, and if the sip user-name is not configured, the phone-number is used.  If user-name or phone-number is used, the sip-password is used to authenticate to the contact list server.
        </t>
      </section>
    </section>
    <section anchor="mwi" numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Video Mail</name>
      <t>
          Support for video mail includes a retrieval mechanism and a Message Waiting Indicator (MWI).  Message storage is not specified by this document.  RUE devices MUST support message retrieval using a SIP call to a specified SIP URI using DTMF to manage the mailbox, as well as a browser based interface reached at a specified HTTPS URI.  If a provider supports video mail at least one of these mechanisms MUST be supported.  RUE devices MUST support both.  See <xref target="config" /> for how the URI to reach the retrieval interface is obtained.
      </t>
      <t>
              Implementations MUST support subscriptions to "message-summary" events <xref target="RFC3842" format="default"/> to the URI specified in the configuration. Providers MUST support MWI if they support video mail.  RUE devices MUST support MWI.
      </t>
      <t>
          The "videomail" and "mwi" properties in the configuration (see
          RueConfigurationData in <xref target="rueConfig"/>) gives the URIs for message
          retrieval and "message-summary" subscription.
      </t>
      <t>
              In notification bodies, if detailed message summaries are available, messages with video MUST be reported using "message-context-class multimedia-message" defined in <xref target="RFC3458" format="default"/> .
      </t>
    </section>
    <section numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Provisioning and Provider Selection</name>
      <t>To simplify how users interact with RUE devices, the RUE interface separates provisioning into two parts.  One provides a directory of providers so that a user interface can allow easy provider selection either for registering or for dial-around.  The other provides configuration data for the device for each provider.</t>
      <section anchor="providerselect" numbered="true" toc="default">
        <name>RUE Provider Selection</name>
        <t>
    To allow the user to select a relay service, the RUE MAY at any time obtain (typically on startup) a list of Providers that provide service in a country.  IANA has established a registry that contains a two-letter country code and an entry point string (See <xref target="plist"/>).  The entry point, when used with the following OpenAPI interface, returns a list of provider names for a country code suitable for display, with a corresponding entry point to obtain information about that provider.  No mechanism to determine the country the RUE is located is specified in this document.  Typically the country is the home country of the user, but may be a local country while traveling.  Some countries allow support from their home country when traveling abroad.  Regardless, the RUE device will need to allow the user to choose the country.
	</t>
	<t>
Each country that supports video relay service using this specification MAY support the provider list.  This document does not specify who maintains the list.  Some possibilities are a regulator or entity designated by a regulator, an agreement among providers to provide the list, or a user group.   
        </t><t>
            The interface to obtain the list of providers is described by an OpenApi <xref target=
                "OpenApi"/> interface description.  In that interface description, the "servers" component includes an occurance of "localhost".   The value from the registry of the "list entry point" string for the
                desired country is substituted for "localhost" in the "servers"
                component to obtain the server URI prefix of the interface to be
                used to obtain the list of providers for that country.  The "Providers" path then specifies the rest of the URI used to obtain the list.  For example, if the list entryPoint is "example.com/api", the provider list would be obtained from https://example.com/api/rum/v1/Providers.
                </t>
       <t>
        The V1.0 "ProviderList" is a JSON object consisting of an array where each entry describes one provider. Each entry consists of the following items:</t>
             <ul spacing="normal">
              <li>name: This parameter contains the text label identifying the provider and is meant to be displayed to the human VRS user.</li>
               <li>providerEntryPoint: A string used for configuration purposes by the RUE (as discussed in <xref target="config" format="default"/>).  The string MUST start with a domain, but MAY include other URI path elements after the domain. </li>
            </ul>
        <t>The VRS user interacts with the RUE to select from the provider list one or more providers with whom the user has already established an account, wishes to establish an account, or wishes to use the provider for a one-stage dial around.</t>
         <figure>
           <name>Example of a ProviderList JSON object</name>
          <sourcecode name="" type="json"><![CDATA[
  {
    "providers": [
      {
        "name": "Red",
        "entryPoint": "red.example.net"
      },
      {
        "name": "Green",
        "entryPoint": "green.example.net"
      },
      {
        "name": "Blue",
        "entryPoint": "blue.example.net"
      }
    ]
  }
            ]]></sourcecode>
        </figure>
      </section>
      <section anchor="config" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>RUE Configuration Service</name>
        <t>
                A RUE device may retrieve a provider configuration using a simple HTTPs web service. There are two entry points.  One is used without user credentials, and the response includes configuration data for new user sign up and dial around.  The other uses locally stored username and password that results from a new user sign up to authenticate to the interface and returns configuration data for the RUE.
	</t>
    <t>The interface to obtain configuration data is described by an OpenApi <xref target=
        "OpenApi"/> interface description.  In that interface description, the "servers" component string includes an occurence of "localhost".  The entry point string obtained from the provider list (<xref target="providerselect"/>) is substituted for "localhost" to obtain the server prefix of the interface.  The path then specifies the rest of the URI used to obtain the list.  For example, if the entryPoint from the provider list is "red.example.net", the provider configuration would be obtained from https://red.example.net/rum/V1/ProviderConfig and the RUE configuration would be obtained from https://red.example.net/rum/V1/RueConfig.
    </t>
	<t>
	In both the queries, an optional parameter may be provided to the interface which is an API Key (apiKey).  The implementation MAY have an apiKey obtained from the provider and specific to the implementation.  The method used to obtain the apiKey is not specified in this document.  The provider MAY refuse to provide service to an implementation presenting an apiKey it does not recognize.
        </t>
        <t>
Also in both queries, the RUE device provides a client provided, required parameter, which contains an instance identifier (instanceId).  This parameter MUST be the same value each time this instance (same implementation on same device) queries the interface.  This MAY be used by the provider, for example, to associate a location with the instance for emergency calls.  This should be globally unique.  A UUID is suggested.
        </t>
        <t>
            For example, a query for the RUE configuration could be https://red.example.net/rum/V1/RueConfig?apiKey="t65667Ajjss90uuuDisKt8999"&amp;instanceId="5595b5a3-0687-4b8e-9913-a7f2a04fb7bd"
        </t>
        <t>
                The data returned is a JSON object consisting of key/value configuration parameters to be used by the RUE.
        </t>
        <t>
                The configuration data payload includes the following data items. Items not noted as (OPTIONAL) are REQUIRED. If other unexpected items are found, they MUST be ignored.
        </t>
      <section anchor="providerConfig" numbered="true" toc="default">
        <name>Provider Configuration</name>
         <ul spacing="normal">
	<li><t>signup: (OPTIONAL) an array of JSON objects consisting of:</t>
		<ul spacing="normal">
		<li>language: entry from the IANA language subtag registry (https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). Normally, this would be a written language tag.</li>
		<li>uri: a URI to the website for creating a new account in the supported language. The new user signup URI may only initiate creation of a new account.  Various vetting, approval and other processes may be needed, which could take time, before the account is established.  The result of creating a new account would be account credentials (e.g. username and password), which would be manually entered into the RUE device which form the authentication parameters for the RUE configuration service described below in <xref target="rueConfig"/>.
                 </li>
		</ul>
	</li>
	<li><t>dialAround: an array of JSON objects consisting of:</t>
		<ul spacing="normal">
		<li>language: entry from the IANA language subtag registry.  Normally, this would be a sign language tag.</li>
		<li>frontDoor: a URI to a queue of interpreters supporting the specified language for a two-stage dial-around</li>
		<li>oneStage: a URI that can be used with a one-stage dial-around <xref target="onestage" /> using an interpreter supporting the specified language</li>
		</ul></li>

	<li><t>helpDesk: (OPTIONAL) an array of JSON objects consisting of:</t>
		<ul spacing = "normal">
		<li>language: entry from the IANA language subtag registry. Normally this would be a sign language tag, although it could be a written language tag if the help desk only supports a chat interface</li>
		<li>uri: URI that reaches a help desk for callers supporting the specified language.  The URI MAY be a SIP URI for help provided with a SIP call, or MAY be an HTTPS URI for help provided with a browser interface.</li>
		</ul>
       <t>A list is specified so that the provider can offer multiple choices to users for language and interface styles.</t>
    </li></ul></section>
        <section anchor="rueConfig" numbered="true" toc="default">
	<name>RUE Configuration</name>
        <ul spacing="normal">
          <li>lifetime: (optional) Specifies how long (in seconds) the RUE MAY cache the configuration values.  Values may not be valid when lifetime expires.  If the RUE caches configuration values, it MUST cryptographically protect them against unauthorized disclosure (e.g. by other applications on the platform the RUE is built on). The RUE SHOULD retrieve a fresh copy of the configuration before the lifetime expires or as soon as possible after it expires. The lifetime is not guaranteed: the configuration may change before the lifetime value expires. In that case, the Provider MAY indicate this by generating authorization challenges to requests and/or prematurely terminating a registration. Emergency Calls MUST continue to work.  If not specified, the RUE MUST fetch new configuration data every time it starts.
                 </li>
           <li>sip-password: (optional) a password used for SIP, STUN and TURN authentication.  The RUE device retains this data, which it MUST cryptographically protect against unauthorized disclosure (e.g. by other applications on the platform the RUE is built on).  If it is not supplied, but was supplied on a prior invocation of this interface, the most recently supplied password MUST be used.  If it was never supplied, the password used to authenticate to the configuration service is used for SIP, as well as STUN and TURN servers mentioned in this configuration.</li>
           <li>phone-number: The telephone number (in E.164 format) assigned to this subscriber. This becomes the user portion of the SIP URI identifying the subscriber.
                </li>
           <li>user-name: (optional) a username used for authenticating to the provider.  If not provided, the phone-number is used.</li>
          <li>display-name: (optional) a human readable display name for the subscriber</li>
          <li>provider-domain: the domain for the provider.  This becomes the server portion of the SIP URI identifying the subscriber.
               </li>
          <li>outbound-proxies: (optional) An array of URIs of SIP proxies to be used when sending requests to the provider.
              </li>
          <li>mwi: (optional) A URI identifying a SIP event server that generates "message-summary" events for this subscriber.
                </li>
          <li>videomail: (optional) An SIP or HTTPS URI that can be used to retrieve video mail messages.
              </li>
          <li>contacts: (optional) An HTTPS URI ("contacts-uri"), (optional) "contacts-username" and "contacts-password" that may be used to export (retrieve) the subscriber's complete contact list managed by the provider. At least the URI MUST be provided if the subscriber has contacts. If contact-username and contacts-password are not supplied, the sip credentials are used. If the contacts-username is provided, contacts-password MUST be provided.  If contacts-password is provided, contacts-username MUST be provided.
            </li>
          <li>carddav: (optional) An address ("carddav-domain"), (optional) "carddav-username" and "carddav-password" identifying a "CardDAV" server and account that can be used to synchronize the RUE's contact list with the contact list managed by the provider.  If carddav-username and carddav-password are not supplied, the sip credentials are used. If the carddav-username is provided, carddav-password MUST be provided.  If carddav-password is provided, carddav-username MUST be provided.
                </li>
          <li>sendLocationWithRegistration: (optional) True if the RUE should send a Geolocation header field with REGISTER, false if it should not. Defaults to false if not present.
                </li>
           <li>ice-servers: (optional) An array of server types and URLs identifying STUN and TURN servers available for use by the RUE for establishing media streams in calls via the provider. If the same URL provides both STUN and TURN services, it MUST be listed twice, each with different server types.</li>
         </ul></section>
        <section anchor="versions"><name>Versions</name>
            <t>
Both web services also have a simple version mechanism that returns a list of versions of the web service it supports.  This document describes version 1.0. Versions are described as a major version, the period &quot;.&quot; and a minor version, where major and minor versions are integers.  A backwards compatible change within a major version MAY increment only the minor version number.  A non-backwards compatible change MUST increment the major version number.  Backwards compatibility applies to both the server and the client.  Either may have any higher or lower minor revision and interoperate with its counterpart with the same major version.  To achieve backwards compatibility, implementations MUST ignore any object members they do not implement.  Minor version definitions SHALL only add objects, non-required members of existing objects, and non-mandatory-to use functions and SHALL NOT delete or change any objects, members of objects or functions.  This means an implementation of a specific major version and minor version is backwards compatible with all minor versions of the major version.  The version mechanism returns an array of supported versions, one for each major version supported, with the minor version listed being the highest supported minor version.</t>
<t>Unless the per-country provider list service is operated by a provider at the same base URI as that provider’s configuration service, the version of the configuration service MAY be different from the version of the provider list service.</t>
<figure>
  <name>Example of a Version JSON object</name>
 <sourcecode name="" type="json"><![CDATA[
{
  "versions": [
    {
     "major": 1,
     "minor": 6
    },
    {
     "major": 2,
     "minor": 13
    },
    {
     "major": 3,
     "minor": 2
    }
  ]
}]]></sourcecode>
</figure>

</section>
     <section anchor="configExamples"><name>Examples</name>
        <!-- v2v3: <figure/> promoted to be child of <section/>, and the enclosing <t/> split. -->
        <figure>
          <!-- v2v3: Moved attribute title to <name/> -->
          <name>Example JSON provider configuration payload</name>
          <sourcecode name="" type="json"><![CDATA[
  {
    "signUp": [ 
       { "language" : "en", "uri" : "https:hello-en.example.net"},
       { "language" : "es", "uri" : "https:hello-es.example.net"} ] ,
    "dialAround": [ 
       { "language" : "en", "frontDoor" : "sip:fd-en.example.net",
            "oneStage" : "sip:1stg-eng.example.com" } ,
       { "language" : "es", "frontDoor" : "sip:fd-es.example.net",
            "oneStage" : "sip:1stg-spn.example.com" } ] ,
    "helpDesk": [ 
       { "language" : "en", "uri" : "sip:help-en.example.net"} ,
       { "language" : "es", "uri" : "sip:help-es.example.net"} ]
  }
               ]]></sourcecode>
        </figure>
       <figure>
          <!-- v2v3: Moved attribute title to <name/> -->
          <name>Example JSON RUE configuration payload</name>
          <sourcecode name="" type="json"><![CDATA[
  {
    "lifetime": 86400,
    "display-name" : "Bob Smith",
    "phone-number": "+15551234567",
    "provider-domain": "red.example.net",
    "outbound-proxies": [
      "sip:p1.red.example.net",
      "sip:p2.red.example.net" ],
    "mwi": "sip:+15551234567@red.example.net;user=phone",
    "videomail": "sip:+15551234567@vm.red.example.net;user=phone",
    "contacts": {
      "contacts-uri":
         "https://red.example.net:443/c/3617b719-2c3a-46f4-9c13",
      "contacts-username": "bob",
      "contacts-password": "XhOT4ch@ZEi&3u2xEYQNMO^5UGb"
    },
    "carddav": {
       "carddav-domain": "carddav.example.com",
       "carddav-username": "bob",
       "carddav-password": "sj887%dd*jJty%87hyys5hHT"
    },
    "sendLocationWithRegistration": false,
    "ice-servers": [
       {"stun":"stun.red.example.com:19302" },
       {"turn":"turn.red.example.com:3478"}
    ]
  }
                ]]></sourcecode>
        </figure>
      </section>
      <section anchor="configExplain">
        <name>Using the Provider Selection and RUE Configuration Services Together</name>
        <t>One way to use these two services is:</t>
	<ul>
		<li>At startup, the RUE retrieves the provider list for the country it is located in.</li>
		<li><t>For each provider in the list:</t>
			<ul>
			<li>If the RUE does not have credentials for that provider, if requested by the user, use the
                ProviderConfig path without credentials to obtain signup, dial around and helpdesk
                information. </li>
			<li>If the RUE has credentials for that provider, use the RueConfig path with the locally stored credentials to configure the RUE for that provider.</li>
 			</ul>
		</li>
	</ul>
      </section></section>
      <section anchor="schema" numbered="true" toc="default">
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>OpenAPI Interface Descriptions</name>
        <t>
                        The interfaces in <xref target='providerselect'/> and <xref target='config'/> are formally specified with OpenAPI 3.0 (<xref target="OpenApi"/>) descriptions in YAML form.
        </t>
        <t>The OpenAPI description below is normative.  If there is any conflict between the text or examples and this section, the OpenAPI description takes precedence.</t>
        <section anchor="listSchema"><name>Provider List</name><figure>
          <name>Provider List OpenAPI description (RueProviderList.yaml)</name>
           <sourcecode name="" type="yaml"><![CDATA[
openapi: 3.0.1
info:
  title: RUM Provider List API
  version: "1.0"
servers:
  - url: https://localhost/rum/v1
paths:
  /Providers:
    get:
      summary: Get a list of providers and domains to get
               config data from
      operationId: GetProviderList
      responses:
        '200':
          description: List of providers for a country
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderList'
  /Versions:
    servers:
      - url: https://localhost/rum
        description: Override base path for Versions query
    get:
      summary: Retrieves all supported versions
      operationId: RetrieveVersions
      responses:
        '200':
          description: Versions supported
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionsArray'
components:
  schemas:
    ProviderList:
      type: object
      required:
        - providers
      properties:
        providers:
          type: array
          items:
            type: object
            required:
              - name
              - providerEntryPoint
            properties:
              name:
                type: string
                description: Human readable provider name
              providerEntryPoint:
                type: string
                description: provider entry point for interface
    VersionsArray:
      type: object
      required:
        - versions
      properties:
        versions:
          type: array
          items:
            type: object
            required:
              - major
              - minor
            properties:
              major:
                type: integer
                format: int32
                description: Version major number
              minor:
                type: integer
                format: int32
                description: Version minor number
 ]]></sourcecode>
        </figure></section>
        <section anchor="configSchema"><name>Configuration</name><figure>
          <name>Configuration OpenAPI description (RueConfiguration.yaml)</name>
           <sourcecode name="" type="yaml"><![CDATA[
openapi: 3.0.1
info:
  title: RUM Configuration API
  version: "1.0"
servers:
  - url: https://localhost/rum/v1
paths:
  /ProviderConfig:
    get:
      summary: Configuration data for one provider
      operationId: GetProviderConfiguration
      parameters:
        - in: query
          name: apiKey
          schema:
            type: string
          description: API Key assigned to this implementation
        - in: query
          name: instanceId
          schema:
            type: string
          required: true
          description: Unique string for this implementation 
                       on this device
      responses:
        '200':
          description: configuration object
          content:
            application/json:
              schema:
                $ref:
                 '#/components/schemas/ProviderConfigurationData'
  /RueConfig:
    get:
      summary: Configuration data for one RUE
      operationId: GetRueConfiguration
      parameters:
        - in: query
          name: apiKey
          schema:
            type: string
          description: API Key assigned to this implementation
        - in: query
          name: instanceId
          schema:
            type: string
          required: true
          description: Unique string for this implementation 
                       on this device
      responses:
        '200':
          description: configuration object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RueConfigurationData'
  /Versions:
    servers:
      - url: https://localhost/rum
        description: Override base path for Versions query
    get:
      summary: Retrieves all supported versions
      operationId: RetrieveVersions
      responses:
        '200':
          description: Versions supported
          content:
            application/json:
              schema: 
                $ref: '#/components/schemas/VersionsArray'
components:
  schemas:
    ProviderConfigurationData:
      type: object
      required:
        - dialAround
      properties:
        signup:
          type: array
          items:
            type: object
            required:
              - language
              - uri
            properties:
              language:
                type: string
                description: entry from IANA language-subtag-registry
              uri:
                type: string
                format: uri
                description: URI to signup website supporting
                  this language
        dialAround:
          type: array
          items:
            type: object
            required:
              - language
              - frontDoor
              - oneStage
            properties:
              language:
                type: string
                description: entry from IANA language-subtag-registry
              frontDoor:
                type: string
                format: uri
                description: SIP URI for two-stage dial around
              oneStage:
                type: string
                format: uri
                description: SIP URI for one-stage dial around
        helpDesk:
          type: array
          items:
            type: object
            required:
              - language
              - uri
            properties:
              language:
                type: string
                description: entry from IANA language-subtag-registry
              uri:
                type: string
                format: uri
                description: SIP URI of helpdesk supporting language
    RueConfigurationData:
      type: object
      required:
        - phone-number
        - provider-domain
      properties:
        lifetime:
          type: integer
          description: how long (in seconds) the RUE MAY cache the 
                       configuration values
        sip-password:
          type: string
        phone-number:
          type: string
          description: telephone number assigned this subscriber in
            E.164 format
        user-name:
          type: string
          description: a username assigned this subscriber.
        display-name:
          type: string
          description: display name for the subscriber
        provider-domain:
          type: string
          description: domain of the provider for this subscriber
        outbound-proxies:
          type: array
          items:
             type: string
             format: uri
             description: SIP URI of a proxy to be used when sending
                       requests to the provider
        mwi:
          type: string
          format: uri
          description: A URI identifying a SIP event server that 
              generates "message-summary" events for this subscriber.
        videomail:
          type: string
          format: uri
          description: An HTTPS or SIP URI that can be used to
                       retrieve video mail messages.
        contacts:
          type: object
          description: server and credentials for contact
             import/export
          required:
            - contacts-uri
          properties:
            contacts-uri:
              type: string
              format: uri
              description: An HTTPS URI that may be used to export
                (retrieve) the subscriber's complete contact list
                managed by the provider.
            contacts-username:
              type: string
              description: username for authentication with CardDAV
                server.  Use sip user-name if not provided
            contacts-password:
              type: string
              description: password for authentication. Use provider
                sip-password if not provided
        carddav:
          type: object
          description: CardDAV server and user information that can
               be used to synchronize the RUE's contact list with
               the contact list managed by the provider.
          required:
            - carddav-domain
          properties: 
            carddav-domain:
              type: string
              description: CardDAV server address
            carddav-username:
              type: string
              description: username for authentication with CardDAV 
                    server.  Use sip user-name if not provided
            carddav-password:
              type: string
              description: password for authentication to the CardDAV 
                 server. Use provider sip-password if not provided
        sendLocationWithRegistration:
          type: boolean
          description: True if the RUE should send a Geolocation
               header field with REGISTER, false if it should not.
               Defaults to false if not present.
        ice-servers:
          type: array
          items:
            type: object
            required:
              - server-type
              - uri
            properties:
              server-type:
                type: string
                description: server type ("stun" or "turn")
              uri:
                type: string
                format: uri
                description: URIs identifying STUN and TURN servers
                  available for use by the RUE for establishing
                  media streams in calls via the provider.
    VersionsArray:
      type: object
      required:
        - versions
      properties:
        versions:
          type: array
          items:
            type: object
            required:
              - major
              - minor
            properties:
              major:
                type: integer
                format: int32
                description: Version major number
              minor:
                type: integer
                format: int32
                description: Version minor number
]]></sourcecode>
        </figure></section>
      </section>
    </section>

    <!-- Possibly a 'Contributors' section ... -->
    <section anchor="IANA" numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>IANA Considerations</name>
      <section anchor="plist" numbered="true" toc="default">
	<name>RUE Provider List Registry</name>
	<t>IANA has created the "RUE Provider List" registry.  The management policy for this registry is "Expert Review" <xref target="RFC8126"/>. The expert should prefer a regulator operated or designated list interface operator.  Otherwise, evidence that the proposed list interface operator will provide a complete list of providers is required to add the entry to the registry.  Updates to the registry are permitted if the expert judges the new proposed URI to provide a more accurate list than the existing entry.  Each entry has two fields, values for both of which MUST be provided when registering or updating an entry:</t>
	<ul>
	  <li>country code: a two-letter ISO93166 country code</li>
	  <li>list entry point: a string is used to compose the URI to the provider list interface for that country</li>
        </ul>
      </section>
      <section anchor="purpose">
        <name> Registration of rue-owner Value of the purpose Parameter</name>
<t>This document defines the new predefined value "rue-owner" for the "purpose" header field parameter of the Call-Info header field. The use for rue-owner is defined in <xref target="contact"/>. This modifies the "Header Field Parameters and Parameter Values" subregistry of the "Session Initiation Protocol (SIP) Parameters" registry by adding this RFC as a reference to the line for the header field "Call-Info" and parameter name "purpose"</t>
<ul>
<li>Header Field: Call-Info</li>
<li>Parameter Name: purpose</li>
<li>Predefined Values: Yes</li>
</ul>
    </section>
    </section>
    <section anchor="Security" numbered="true" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Security Considerations</name>
      <t>
         The RUE is required to communicate with servers on public IP addresses and specific ports to perform its required functions. If it is necessary for the RUE to function on a corporate or other network that operates a default-deny firewall between the RUE and these services, the user must arrange with their network manager for passage of traffic through such a firewall in accordance with the protocols and associated SRV records as exposed by the provider. Because VRS providers may use different ports for different services, these port numbers may differ from provider to provider.
      </t>
      <t>This document
          requires implementation and use of a number of other specifications in
          order to fulfill the RUE profile; the security considerations described
          in those documents apply accordingly to the RUE interactions.</t>
      <t> When a CA participates in a conversation they
          have access to the content of the conversation even though it is
          nominally a conversation between the two endpoints.  There is an
          expectation that the CA will keep the communication contents in
          confidence.  This is usually defined by contractual or legal requirements.</t>
      <t>Since different providers (within a given country) may have different
          policies, RUE implementations MUST include a user
          interaction step to select from available providers before proceeding to actually register with any given
          provider.</t>
    </section>
   </middle>
  <!--  *****BACK MATTER ***** -->
  <back>
    <!-- References split into informative and normative -->
    <!-- There are 2 ways to insert reference entries from the citation libraries:
    1. define an ENTITY at the top, and use "ampersand character"RFC2629; here (as shown)
    2. simply use a PI "less than character"?rfc include="reference.RFC.2119.xml"?> here
       (for I-Ds: include="reference.I-D.narten-iana-considerations-rfc2434bis.xml")

    Both are cited textually in the same manner: by using xref elements.
    If you use the PI option, xml2rfc will, by default, try to find included files in the same
    directory as the including file. You can also define the XML_LIBRARY environment variable
    with a value containing a set of directories to search.  These can be either in the local
    filing system or remote ones accessed by http (http://domain/dir/... ).-->
    <references>
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Normative References</name>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2818.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8446.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3261.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3263.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3264.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3840.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5626.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8866.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3323.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3605.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6665.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3311.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.4585.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5393.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5658.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5954.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3960.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6442.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3327.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8445.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8839.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3326.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3515.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.4488.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.7647.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3891.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3892.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2392.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3966.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.4967.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.4102.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.4103.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.4733.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6263.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5104.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5168.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6352.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6764.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3842.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3458.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.7525.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6881.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.7230.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.7852.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.7874.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.7742.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6351.xml"?>
       <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8174.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8825.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8827.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8829.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8834.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8835.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8760.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8865.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8599.xml"?>
      <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.9071.xml"?>
      <reference anchor="OpenApi" target="https://spec.openapis.org/oas/v3.0.1" >
        <front>
          <title>OpenAPI Specification v3.0.1</title>
          <!-- v2v3: Moved <seriesInfo/> inside <front/> element -->
           <author initials="D." surname="Miller" fullname="Darrel Miller">
            <organization/>
          </author>
           <author initials="J." surname="Whitlock" fullname="Jeremy Whitlock">
            <organization/>
          </author>
           <author initials="M." surname="Gardiner" fullname="Marsh Gardiner">
            <organization/>
          </author>
           <author initials="M." surname="Ralpson" fullname="Mike Ralphson">
            <organization/>
          </author>
           <author initials="R." surname="Ratovsky" fullname="Ron Ratovsky">
            <organization/>
          </author>
           <author initials="U." surname="Sarid" fullname="Uri Sarid">
            <organization/>
          </author>
         <date year="2017" month="December"/>
        </front>
      </reference>
      </references>
      <references>
        <!-- v2v3: Moved attribute title to <name/> -->
        <name>Informative References</name>
        <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3665.xml"?>
       <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8126.xml"?>
 
    </references>
    <section anchor="Acknowledgements" numbered="false" toc="default">
      <!-- v2v3: Moved attribute title to <name/> -->
      <name>Acknowledgements</name>
      <t>Brett Henderson and Jim Malloy provided many helpful edits to prior versions of this document.  Paul Kyzivat provided extensive reviews and comments.</t>
    </section>
  </back>
</rfc>
