5367
PROPOSED STANDARD

Subscriptions to Request-Contained Resource Lists in the Session Initiation Protocol (SIP)

Authors: G. Camarillo, A.B. Roach, O. Levin
Date: October 2008
Area: rai
Working Group: sip
Stream: IETF
Updates: RFC 3265

Abstract

This document specifies a way to create subscription to a list of resources in SIP. This is achieved by including the list of resources in the body of a SUBSCRIBE request. Instead of having a subscriber send a SUBSCRIBE request for each resource individually, the subscriber defines the resource list, subscribes to it, and gets notifications about changes in the resources' states using a single SUBSCRIBE dialog. [STANDARDS-TRACK]

RFC 5367: Subscriptions to Request-Contained Resource Lists in the Session Initiation Protocol (SIP) [RFC Home] [TEXT|PDF|HTML] [Tracker] [IPR] [Info page]

PROPOSED STANDARD
Network Working Group                                       G. Camarillo
Request for Comments: 5367                                      Ericsson
Updates: <a href="./rfc3265">3265</a>                                                 A.B. Roach
Category: Standards Track                                        Tekelec
                                                                O. Levin
                                                   Microsoft Corporation
                                                            October 2008


           <span class="h1">Subscriptions to Request-Contained Resource Lists</span>
                <span class="h1">in the Session Initiation Protocol (SIP)</span>

Status of This Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Abstract

   This document specifies a way to create subscription to a list of
   resources in SIP.  This is achieved by including the list of
   resources in the body of a SUBSCRIBE request.  Instead of having a
   subscriber send a SUBSCRIBE request for each resource individually,
   the subscriber defines the resource list, subscribes to it, and gets
   notifications about changes in the resources' states using a single
   SUBSCRIBE dialog.

Table of Contents

   <a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a>
   <a href="#section-2">2</a>. Terminology .....................................................<a href="#page-2">2</a>
   <a href="#section-3">3</a>. User Agent Client Procedures ....................................<a href="#page-2">2</a>
      <a href="#section-3.1">3.1</a>. Response Handling ..........................................<a href="#page-2">2</a>
      <a href="#section-3.2">3.2</a>. Subsequent SUBSCRIBE Requests ..............................<a href="#page-3">3</a>
   <a href="#section-4">4</a>. URI-List Document Format ........................................<a href="#page-3">3</a>
   <a href="#section-5">5</a>. Resource List Server Behavior ...................................<a href="#page-4">4</a>
      <a href="#section-5.1">5.1</a>. Subsequent SUBSCRIBE Requests ..............................<a href="#page-4">4</a>
   <a href="#section-6">6</a>. Providing a URI to Manipulate a Resource List ...................<a href="#page-4">4</a>
   <a href="#section-7">7</a>. Example .........................................................<a href="#page-5">5</a>
   <a href="#section-8">8</a>. Security Considerations .........................................<a href="#page-6">6</a>
   <a href="#section-9">9</a>. IANA Considerations .............................................<a href="#page-6">6</a>
      <a href="#section-9.1">9.1</a>. List-Management Purpose Parameter Value ....................<a href="#page-6">6</a>
      <a href="#section-9.2">9.2</a>. recipient-list-subscribe Option-Tag ........................<a href="#page-7">7</a>
   <a href="#section-10">10</a>. Acknowledgments ................................................<a href="#page-7">7</a>
   <a href="#section-11">11</a>. Normative References ...........................................<a href="#page-7">7</a>



<span class="grey">Camarillo                   Standards Track                     [Page 1]</span>

<span id="page-2" ></span>
<span class="grey"><a href="./rfc5367">RFC 5367</a>               SUBSCRIBE-Contained Lists            October 2008</span>


<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>.  Introduction</span>

   [<a id="ref-RFC4662">RFC4662</a>] specifies how to establish subscriptions to a homogeneous
   resource list in SIP (which is specified in [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>]) and defines
   the procedures for getting notifications about changes in the state
   of the associated resources.  Yet, list creation is outside the scope
   of [<a href="./rfc4662" title=""A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists"">RFC4662</a>].

   This document specifies a way to create a list with a set of
   resources and subscribe to it using a single SIP request.  This is
   achieved by including the list of resources (as defined in [<a href="./rfc5363" title=""Framework and Security Considerations for Session Initiation Protocol (SIP) URI- List Services"">RFC5363</a>])
   in the body of the SUBSCRIBE request.

<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>.  Terminology</span>

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].

<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>.  User Agent Client Procedures</span>

   A UAC (User Agent Client) that wants to create a resource list and
   subscribe to it using the mechanism described in this document
   constructs a SUBSCRIBE request with at least one body, whose
   disposition is type "recipient-list" as defined in [<a href="./rfc5363" title=""Framework and Security Considerations for Session Initiation Protocol (SIP) URI- List Services"">RFC5363</a>], that
   contains the URI list.  Additionally, the UAC MUST include the
   'recipient-list-subscribe' option-tag (which is registered with the
   IANA in <a href="#section-9">Section 9</a>) in a Require header field.  The UAC MUST build the
   rest of the SUBSCRIBE request following the rules in [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>].

   The UAC MUST support the "rlmi+xml" format defined in [<a href="./rfc4662" title=""A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists"">RFC4662</a>] and
   signal this by including "rlmi+xml" in the Accept header.  The UAC
   MAY support additional formats and include them in the Accept header
   field of the SUBSCRIBE request.

<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>.  Response Handling</span>

   The status code in the response to the SUBSCRIBE request does not
   provide any information about whether or not the resource list server
   was able to successfully subscribe to the URIs in the URI list.  The
   UAC obtains this information in the notifications sent by the server.










<span class="grey">Camarillo                   Standards Track                     [Page 2]</span>

<span id="page-3" ></span>
<span class="grey"><a href="./rfc5367">RFC 5367</a>               SUBSCRIBE-Contained Lists            October 2008</span>


<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>.  Subsequent SUBSCRIBE Requests</span>

   The previous sections have specified how to include a URI list in an
   initial SUBSCRIBE request to a resource list server in order to
   subscribe to the state of a set of resources.  Once the subscription
   has been created and a dialog between the UAC and the resource list
   server has been established, the UAC can send subsequent SUBSCRIBE
   requests to, for example, extend the duration of the subscription.

   At this point, there are no semantics associated with resource-list
   bodies in subsequent SUBSCRIBE requests (although future extensions
   can define them).  Therefore, UACs SHOULD NOT include resource-list
   bodies in subsequent SUBSCRIBE requests to a resource list server.

      Note that a difference between an initial SUBSCRIBE request and
      subsequent ones is that while the initial request is sent to the
      public URI of the resource list, subsequent ones are sent to the
      URI provided by the server when the dialog is established.
      Therefore, from the UAC's point of view, the resource identified
      by the former URI supports recipient-list bodies, while the
      resource identified by the latter does not support them.

<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>.  URI-List Document Format</span>

   [<a id="ref-RFC5363">RFC5363</a>] mandates that each URI-list services specification, such as
   the subscription service defined here, specifies the default format
   for the recipient-list bodies used within the particular service.

   The default format for the recipient-list bodies for the subscription
   service defined in this document is the resource list format defined
   in [<a href="./rfc4826" title=""Extensible Markup Language (XML) Formats for Representing Resource Lists"">RFC4826</a>].  UAs (User Agents) generating recipient-list bodies
   MUST support this format and MAY support other formats.  Resource
   list servers able to handle recipient-list bodies MUST support this
   format and MAY support other formats.

   The Extensible Markup Language (XML) Configuration Access Protocol
   (XCAP) resource list document provides features, such as hierarchical
   lists and the ability to include entries by reference relative to the
   XCAP root URI, that are not needed by the subscription service
   defined here, which only needs to transfer a flat list of URIs
   between a UA and the resource list server.  Therefore, when using the
   default resource list document, UAs SHOULD use flat lists (i.e., no
   hierarchical lists) and SHOULD NOT use <entry-ref> elements.  A
   resource list server receiving a URI list with more information than
   what has just been described MAY discard all the extra information.






<span class="grey">Camarillo                   Standards Track                     [Page 3]</span>

<span id="page-4" ></span>
<span class="grey"><a href="./rfc5367">RFC 5367</a>               SUBSCRIBE-Contained Lists            October 2008</span>


   Figure 1 shows an example of a flat list that follows the resource
   list document.

   <?xml version="1.0" encoding="UTF-8"?>
   <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <list>
       <entry uri="sip:[email protected]" />
       <entry uri="sip:[email protected]" />
       <entry uri="sip:[email protected]" />
     </list>
   </resource-lists>

                            Figure 1: URI list

<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>.  Resource List Server Behavior</span>

   Resource list servers that are able to receive and process SUBSCRIBE
   requests with a recipient-list body SHOULD include a 'recipient-list-
   subscribe' option-tag in a Supported header field when responding to
   OPTIONS requests.

   On reception of a SUBSCRIBE request with a URI list, a resource list
   server that chooses to accept the "rlmi+xml" format MUST comply with
   [<a href="./rfc4662" title=""A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists"">RFC4662</a>] for creating the subscription and reporting the changes in
   the resources within the created dialog.

<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>.  Subsequent SUBSCRIBE Requests</span>

   At this point, there are no semantics associated with resource-list
   bodies in subsequent SUBSCRIBE requests (although future extensions
   may define them).  Therefore, a resource list server receiving a
   subsequent SUBSCRIBE request with a resource-list body, following
   standard SIP procedures, rejects it with a 415 (Unsupported Media
   Type) response.

<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>.  Providing a URI to Manipulate a Resource List</span>

   A UAC can manipulate a resource list at a resource list server.  The
   resource list server MAY provide a URI to manipulate the resource
   list associated with a subscription using the Call-Info header field
   in the NOTIFY request that establishes the subscription.  The
   "purpose" parameter of the Call-Info header field MUST have a value
   of 'list-management', which we register with the IANA in <a href="#section-9">Section 9</a>.
   The following is an example of such a header field.

   Call-Info: <http://xcap.example.com/your-list.xml>
              ;purpose=list-management



<span class="grey">Camarillo                   Standards Track                     [Page 4]</span>

<span id="page-5" ></span>
<span class="grey"><a href="./rfc5367">RFC 5367</a>               SUBSCRIBE-Contained Lists            October 2008</span>


   The lifetime of a resource list to be manipulated by the URI provided
   by the server is bundled to the lifetime of the subscription.  That
   is, the resource list SHOULD be destroyed when the subscription
   expires or is otherwise terminated.

   <a href="./rfc3265#section-7.1">Section 7.1 of [RFC3265]</a> does not list the Call-Info header field in
   the table of header fields that NOTIFY requests can carry.  This
   document updates that table so that the Call-Info header field can be
   optionally included in NOTIFY requests.

<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>.  Example</span>

   The following is an example of a SUBSCRIBE request, which carries a
   URI list in its body, sent by a UAC to a resource list server.

   SUBSCRIBE  sip:[email protected] SIP/2.0
   Via: SIP/2.0/TCP terminal.example.com;branch=z9hG4bKwYb6QREiCL
   Max-Forwards: 70
   To: RLS <sip:rls@example.com>
   From: <sip:adam@example.com>;tag=ie4hbb8t
   Call-ID: [email protected]
   CSeq: 1 SUBSCRIBE
   Contact: <sip:terminal.example.com>
   Event: presence
   Expires: 7200
   Require: recipient-list-subscribe
   Supported: eventlist
   Accept: application/cpim-pidf+xml
   Accept: application/rlmi+xml
   Accept: multipart/related
   Accept: multipart/signed
   Accept: multipart/encrypted
   Content-Type: application/resource-lists+xml
   Content-Disposition: recipient-list
   Content-Length: 337

   <?xml version="1.0" encoding="UTF-8"?>
   <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <list>
       <entry uri="sip:[email protected]" />
       <entry uri="sip:[email protected]" />
       <entry uri="sip:[email protected]" />
     </list>
   </resource-lists>

                        Figure 2: SUBSCRIBE request




<span class="grey">Camarillo                   Standards Track                     [Page 5]</span>

<span id="page-6" ></span>
<span class="grey"><a href="./rfc5367">RFC 5367</a>               SUBSCRIBE-Contained Lists            October 2008</span>


<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>.  Security Considerations</span>

   The Security Considerations section of [<a href="./rfc4662" title=""A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists"">RFC4662</a>] discusses security
   issues related to resource list servers.  Resource list servers
   accepting request-contained URI lists MUST also follow the security
   guidelines given in [<a href="./rfc4662" title=""A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists"">RFC4662</a>].

   "Framework and Security Considerations for Session Initiation
   Protocol (SIP) URI-List Services" [<a href="./rfc5363" title=""Framework and Security Considerations for Session Initiation Protocol (SIP) URI- List Services"">RFC5363</a>] discusses issues related
   to SIP URI-list services.  Given that a resource list server sending
   SUBSCRIBE requests to a set of users acts as a URI-list service,
   implementations of resource list servers that handle request-
   contained URI lists MUST follow the security-related rules in
   [<a href="./rfc5363" title=""Framework and Security Considerations for Session Initiation Protocol (SIP) URI- List Services"">RFC5363</a>].  These rules include opt-in lists and mandatory
   authentication and authorization of clients.

<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>.  IANA Considerations</span>

   The following sections describe the IANA registration of the 'list-
   management' value for the "purpose" parameter of the Call-Info header
   field and the 'recipient-list-subscribe' SIP option-tag.

<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>.  List-Management Purpose Parameter Value</span>

   This document defines the 'list-management' value for the "purpose"
   parameter of the Call-Info header field.  A reference to this RFC (in
   double brackets) has been added to the existing "purpose" Call-Info
   parameter entry in the SIP Parameters registry, which currently looks
   as follows:

                                                  Predefined
   Header Field                  Parameter Name     Values     Reference
   ----------------------------  ---------------   ---------   ---------
   Call-Info                     purpose             Yes       [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>]

















<span class="grey">Camarillo                   Standards Track                     [Page 6]</span>

<span id="page-7" ></span>
<span class="grey"><a href="./rfc5367">RFC 5367</a>               SUBSCRIBE-Contained Lists            October 2008</span>


<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>.  recipient-list-subscribe Option-Tag</span>

   This document defines the SIP option tag "recipient-list-subscribe".

   The following row has been added to the "Option Tags" section of the
   SIP Parameter Registry:

   +--------------------------+----------------------------+-----------+
   | Name                     | Description                | Reference |
   +--------------------------+----------------------------+-----------+
   | recipient-list-subscribe | This option tag is used to | [<a href="./rfc5367">RFC5367</a>] |
   |                          | ensure that a server can   |           |
   |                          | process the recipient-list |           |
   |                          | body used in a SUBSCRIBE   |           |
   |                          | request.                   |           |
   +-------------------------------------------------------+-----------+

<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>.  Acknowledgments</span>

   Cullen Jennings and Jonathan Rosenberg provided useful comments on
   this document.

<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>.  Normative References</span>

   [<a id="ref-RFC2119">RFC2119</a>]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.

   [<a id="ref-RFC3261">RFC3261</a>]  Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
              A., Peterson, J., Sparks, R., Handley, M., and E.
              Schooler, "SIP: Session Initiation Protocol", <a href="./rfc3261">RFC 3261</a>,
              June 2002.

   [<a id="ref-RFC3265">RFC3265</a>]  Roach, A.B., "Session Initiation Protocol (SIP)-Specific
              Event Notification", <a href="./rfc3265">RFC 3265</a>, June 2002.

   [<a id="ref-RFC4662">RFC4662</a>]  Roach, A.B., Campbell, B., and J. Rosenberg, "A Session
              Initiation Protocol (SIP) Event Notification Extension for
              Resource Lists", <a href="./rfc4662">RFC 4662</a>, August 2006.

   [<a id="ref-RFC4826">RFC4826</a>]  Rosenberg, J., "Extensible Markup Language (XML) Formats
              for Representing Resource Lists", <a href="./rfc4826">RFC 4826</a>, May 2007.

   [<a id="ref-RFC5363">RFC5363</a>]  Camarillo, G. and A.B. Roach, "Framework and Security
              Considerations for Session Initiation Protocol (SIP) URI-
              List Services", <a href="./rfc5363">RFC 5363</a>, October 2008.






<span class="grey">Camarillo                   Standards Track                     [Page 7]</span>

<span id="page-8" ></span>
<span class="grey"><a href="./rfc5367">RFC 5367</a>               SUBSCRIBE-Contained Lists            October 2008</span>


Authors' Addresses

   Gonzalo Camarillo
   Ericsson
   Hirsalantie 11
   Jorvas  02420
   Finland

   EMail: [email protected]


   Adam Roach
   Tekelec
   17210 Campbell Rd Ste 250
   Dallas, TX  75252
   USA

   EMail: [email protected]


   Orit Levin
   Microsoft Corporation
   One Microsoft Way
   Redmond, WA  98052

   EMail: [email protected]

























<span class="grey">Camarillo                   Standards Track                     [Page 8]</span>

<span id="page-9" ></span>
<span class="grey"><a href="./rfc5367">RFC 5367</a>               SUBSCRIBE-Contained Lists            October 2008</span>


Full Copyright Statement

   Copyright (C) The IETF Trust (2008).

   This document is subject to the rights, licenses and restrictions
   contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
   retain all their rights.

   This document and the information contained herein are provided on an
   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
   THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
   OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
   THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Intellectual Property

   The IETF takes no position regarding the validity or scope of any
   Intellectual Property Rights or other rights that might be claimed to
   pertain to the implementation or use of the technology described in
   this document or the extent to which any license under such rights
   might or might not be available; nor does it represent that it has
   made any independent effort to identify any such rights.  Information
   on the procedures with respect to rights in RFC documents can be
   found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.

   Copies of IPR disclosures made to the IETF Secretariat and any
   assurances of licenses to be made available, or the result of an
   attempt made to obtain a general license or permission for the use of
   such proprietary rights by implementers or users of this
   specification can be obtained from the IETF on-line IPR repository at
   <a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.

   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights that may cover technology that may be required to implement
   this standard.  Please address the information to the IETF at
   [email protected].












Camarillo                   Standards Track                     [Page 9]

Additional Resources