<?xml version="1.0"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
  <!ENTITY rfc2119 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml'>
  <!ENTITY rfc3261 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3261.xml'>
  <!ENTITY rfc3515 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3515.xml'>
  <!ENTITY rfc4488 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4488.xml'>
  <!ENTITY rfc4538 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4538.xml'>
  <!ENTITY rfc5589 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5589.xml'>
  <!ENTITY rfc5627 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5627.xml'>
  <!ENTITY rfc6665 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6665.xml'>
  <!ENTITY referexp PUBLIC '' 'http://xml.resource.org/public/rfc/bibxml3/reference.I-D.sparks-sipcore-refer-explicit-subscription.xml'>
]>

<?rfc toc="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<?rfc sortrefs="yes" ?>
<?rfc strict="yes" ?>
<?rfc comments="yes" ?>
<?rfc inline="yes" ?>
<?rfc symrefs="yes" ?>

<rfc ipr="trust200902"  category="std" updates="3515" docName="draft-sparks-sipcore-refer-clarifications-05">

<front>

<title abbrev="Refer Clarifications">
Clarifications for the use of REFER with RFC6665
</title>

<author initials="R." surname="Sparks" fullname="Robert Sparks" >
 <organization>Oracle</organization>
 <address>
 <postal>
 <street>7460 Warren Parkway</street>
 <street>Suite 300</street>
 <city>Frisco</city>
 <region>Texas</region>
 <code>75034</code>
 <country>US</country>
 </postal>
 <email>rjsparks@nostrum.com</email>
 </address>
</author>

    <author fullname="Adam Roach" initials="A. B." surname="Roach">
      <organization>Mozilla</organization>
      <address>
        <postal>
          <street></street>
          <city>Dallas</city>
          <region>TX</region>
          <code></code>
          <country>US</country>
        </postal>
        <phone>+1 650 903 0800 x863</phone>
        <email>adam@nostrum.com</email>
      </address>
    </author>

<date day="27" month="October" year="2014"/>

<abstract>
<t>
An accepted SIP REFER method creates an implicit subscription using the SIP-Specific Event
Notification Framework. That framework was revised by RFC6665. This document highlights
the implications of the requirement changes in RFC6665, and updates the definition of
the REFER method, RFC3515, to clarify and disambiguate the impact of those changes.
</t>
</abstract>

</front>

<middle>
<section anchor="conventions" title="Conventions and Definitions" >
<t>
        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 <xref target= "RFC2119"/>.
</t>
</section>

<section anchor="intro" title="Introduction">
<t>
An accepted SIP REFER method creates an implicit subscription using the SIP-Specific Event
Notification Framework. That framework was revised by <xref target="RFC6665"/>. This document highlights
the implications of the requirement changes in RFC6665, and updates <xref target="RFC3515"/> to 
clarify and disambiguate the impact of those changes.
</t><t>
</t>
</section>

<section anchor="GRUU" title="Use of GRUU is mandatory">
<t>
Section 4.5.1 of <xref target="RFC6665"/> makes GRUU <xref target="RFC5627"/> mandatory
to implement and use as the local target in the subscription
created by the REFER request. 
</t><t>
A user agent constructing any REFER that can result in an implicit subscription
MUST populate its Contact header field with a GRUU. 
</t><t>
  As RFC6665 details, this is necessary to ensure that NOTIFY requests sent in
  the implicitly created subscription arrive at this user agent without
  creating a second usage inside an existing dialog.  Using the "norefersub"
  option tag <xref target="RFC4488"/> does not change this requirement, even
  if used in a "Require" header field. Even if the recipient supports the
  "norefersub" mechanism, and accepts the request with the option tag in the 
  "Require" header field, it is allowed to return a "Refer-Sub" header field
  with a value of "true" in the response, and create an implicit subscription.
</t>

<t>
  A UA that will accept a REFER request needs to include
  a GRUU in the Contact header field of all INVITE requests.  This
  ensures that out-of-dialog REFER requests corresponding to any
  resulting INVITE dialogs arrive at this UA. Future extensions
  (such as
  <xref target="I-D.sparks-sipcore-refer-explicit-subscription"/>)
  might relax this requirement by defining a REFER request that 
  cannot create an implicit subscription.
</t>

</section>

<section anchor="dialog-sharing" title="Dialog reuse is prohibited">
<t>
If a peer in an existing dialog has provided a GRUU as its Contact, sending
a REFER that might result in an additional dialog usage within that dialog
is prohibited. This is a direct consequence of <xref target="RFC6665"/> requiring the use 
of GRUU, and the requirements in section 4.5.2 of that document.
</t><t>

A user agent constructing a REFER request that could result in an implicit
subscription MUST build it as an out-of-dialog message as defined in <xref
target="RFC3261"/>.  Thus, the REFER request will have no tag parameter in its
To: header field. 

</t><t>
A user agent wishing to identify an existing dialog (such as for call transfer as defined in <xref target="RFC5589"/> MUST use the "Target-Dialog" extension defined in <xref target="RFC4538"/> to do so, and user agents accepting REFER MUST be able to process that extension in requests they receive.
</t>
<t>
If a user agent can be certain that no implicit subscription will be created as a result of sending a REFER request (such as by requiring an extension that disallows any such subscription), the REFER request MAY be sent within an existing dialog. Such a REFER will be constructed with its Contact header field populated with the dialog's Local URI as specified in section 12 of <xref target="RFC3261"/>.
</t><t>
As described in section 4.5.2 of <xref target="RFC6665"/>, there are cases where a user agent may fall back to sharing existing dialogs for backwards-compatibility purposes. This applies to REFER only when the peer has not provided a GRUU as its Contact in the existing dialog (i.e. when the peer is a pre-RFC6665 implementation).
</t>
</section>


<section title="Security Considerations">
<t>
This document introduces no new security considerations directly. The updated considerations in <xref target="RFC6665"/> apply to the implicit subscription created by an accepted REFER request.
</t>
</section>

<section title="IANA Considerations">
<t>
This document has no actions for IANA.
</t>
</section>

</middle>
<back>

<references title="Normative References">
&rfc2119;
&rfc3261;
&rfc3515;
&rfc4538;
&rfc5627;
&rfc6665;
</references>

<references title="Informative References">
&rfc4488;
&rfc5589;
&referexp;
</references>

</back>
	
</rfc>
