<?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 rfc5057 PUBLIC '' 'http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5057.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 I-D.roach-sipcore-6665-clarification PUBLIC '' 'http://xml.resource.org/public/rfc/bibxml3/reference.I-D.roach-sipcore-6665-clarification.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-ietf-sipcore-refer-clarifications-04">

<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="22" month="April" year="2015"/>

<abstract>
<t>
The SIP REFER method relies on 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>
The SIP REFER method relies on 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>

Accepting a REFER request (without invoking extensions) results in an implicit
SIP-Events subscription.  If that REFER was part of an existing dialog, the
implicit subscription creates a new, problematic dialog-usage within that
dialog <xref target="RFC5057"/>. The "norefersub" extension defined in <xref
target="RFC4488"/> asks to suppress this implicit subscription, but cannot
prevent its creation. 

</t>

<t>
There are implementations in some known specialized environments (such as 3gpp) that use out-of-signalling agreements to
ensure that in-dialog REFER requests using the RFC4488 extension do not create a new subscription inside that dialog. In the 3gpp
environment, the behavior is based on capabilities advertised using media feature tags. That mechanism does not, however, prevent
additional dialog usages when interoperating with implementations that do not support the mechanism. The extensions in
<xref target="I-D.ietf-sipcore-refer-explicit-subscription"/>
provide a standardized mechanism that allows avoiding any additional dialog usage.
</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
for notifiers to implement and use as the local target in the subscription created by the REFER request. 
</t><t>
A user agent accepting a REFER that creates a subscription MUST populate its Contact header field with a GRUU. 
</t>
<t>
A UA that might possibly become a notifier (e.g. by accepting a REFER 
request that creates a subscription) needs to include a GRUU in the 
Contact header field of dialog-forming and target-refresh methods (such as INVITE) 
<xref target="I-D.roach-sipcore-6665-clarification"/>.  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.ietf-sipcore-refer-explicit-subscription"/>)
might relax this requirement by defining a REFER request that 
cannot create an implicit subscription, thus not causing the
accepting UA to become an RFC6665 notifier in the context of this
dialog.
</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 in a dialog MUST build it as an out-of-dialog
message as defined in [RFC3261], unless the remote endpoint is
an older, pre-RFC6665 implementation (as determined by the absence
of a GRUU in the remote target). Thus, the REFER request will have no tag
parameter in its To: header field. 
</t>
<t>
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 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 <xref target="I-D.ietf-sipcore-refer-explicit-subscription"/>), the REFER request MAY be sent within an existing dialog (whether or not the remote target is a GRUU). 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 anchor="deprecated-202" title="The 202 response code is deprecated">
<t>
Section 8.3.1 of <xref target="RFC6665"/> requires that elements do not send a 202 response code to a subscribe request, but use the 200 response code instead. Any 202 response codes received to a subscribe request are treated as 200s. These changes also apply to REFER. Specifically, an element accepting a REFER request MUST NOT reply
with a 202 response code and MUST treat any 202 responses received as identical to a 200 response. Wherever <xref target="RFC3515"/> requires sending a 202 response code, a 200 response code MUST be sent instead. 
</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>

<section title="Acknowledgements">
<t> Christer Holmberg provided the formulation for the final paragraph of the introduction. Christer Holmberg and Ivo Sedlacek provided detailed comments during working group discussion of the document. </t>
</section>

<section title="Changelog">
<t>RFC Editor - please remove this section when formatting this document as an RFC</t>
<t><list>
<t>-03 to -04</t>
<t><list>
<t>Added section on deprecating 202.</t>
</list></t>
<t>-02 to -03</t>
<t><list>
<t>Reinforced that the MAY send in-dialog applied no matter what the remote target URI contained.</t>
</list></t>
<t>-01 to -02</t>
<t><list>
<t>Tweaked the third paragraph of section 3 per list discussion. (Note the subject line of that discussion said -explicit-subscription)</t>
</list></t>
<t>-00 to -01</t>
<t><list>
<t>Added the 3rd paragraph to the introduction per extensive list discussion</t>
</list></t>
<t>draft-sparks-sipcore-refer-clarifications-05 to draft-ietf-sipcore-refer-clarifications-00</t>
<t> <list>
<t>Attempted to improve the accuracy of the Abstract and Introduction without diluting the essential point of the document.</t>
<t>Added an informative reference to RFC5057.</t>
<t>Adjusted text to more reflect what RFC6665 (as clarified by draft-roach-sipcore-6665-clarification) actually requires, and added a normative reference to that clarification draft. Specifically, the requirement for the _sender_ of a REFER to use a GRUU as its local target was removed.</t>
<t>Clarified why the explicit-subscription extensions relieve an in-dialog REFERer from the 6665 requirements for using GRUU as its contact in the INVITE dialog.</t>
</list></t>

</list></t>

</section>

</middle>
<back>

<references title="Normative References">
&rfc2119;
&rfc3261;
&rfc3515;
&rfc4538;
&rfc5627;
&rfc6665;
&I-D.roach-sipcore-6665-clarification;
</references>

<references title="Informative References">
&rfc4488;
&rfc5057;
&rfc5589;
<reference anchor="I-D.ietf-sipcore-refer-explicit-subscription">
<front>
<title>Explicit Subscriptions for the REFER Method</title>
<author initials="R" surname="Sparks" fullname="Robert Sparks"><organization/></author>
<date month="November" day="21" year="2014"/>
<abstract><t>The SIP REFER method relies on 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>
<seriesInfo name="Internet-Draft" value="draft-ietf-sipcore-refer-explicit-subscription-00"/>
<format type="TXT" target="http://www.ietf.org/internet-drafts/draft-ietf-sipcore-refer-explicit-subscription-00.txt"/>
</reference>


</references>

</back>
	
</rfc>
