<?xml version="1.0" encoding="US-ASCII"?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">

<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>

<rfc number="8606" category="std" submissionType="IETF" consensus="yes"
  ipr="trust200902" updates="3326">

  <front>
    <title abbrev="ISUP Release Location Parameter">ISDN User Part (ISUP)
    Cause Location Parameter for&nbsp;the&nbsp;SIP&nbsp;Reason&nbsp;Header&nbsp;Field</title> 
    
        <author initials="R." surname="Jesske" fullname="Roland Jesske">
      <organization>Deutsche Telekom</organization>
      <address>
	    <postal>
	        <street>Heinrich-Hertz Str, 3-7</street>
	        <city>Darmstadt</city>
	        <code>64295</code>
	        <country>Germany</country>
	    </postal>
	    <phone></phone>
	    <email>r.jesske@telekom.de</email>
	    <uri>www.telekom.de</uri>
      </address>
    </author>
  
    <date month="June" year="2019"/>
    <area>ART</area>
    <workgroup>SIPCORE</workgroup>

    <keyword>Reason</keyword>
    <keyword>Call</keyword>
    <keyword>Location</keyword>

    <abstract>

      <t>
	The SIP Reason header field is defined to carry ISUP
	(ISDN User Part) cause values
	as well as SIP response codes. Some services in SIP networks  
	may need to know the ISUP location where the call was released
	in the PSTN (Public Switched Telephone Network) to correctly
	interpret the reason of release. 
<!-- [rfced] Please note that we have updated this sentence as described
below.  Please let us know if you have any objections. 

Previously:
   This document adds a location
   parameter for this purpose and updates RFC 3326.

Current: 
    This document updates RFC 3326 by adding a location parameter for this
    purpose. 
-->
    This document updates RFC 3326 by adding a location parameter for this purpose. 
      </t>

    </abstract>
  </front>
  <middle>
<!-- ***************************************************************************************************** --> 
       
    <section anchor="intro" title="Introduction">
    <t>Section 3.4 of <xref target="RFC3326"/> describes a SIP message flow
    for canceling an INVITE request when a REL (release) message is received
    from the ISUP side. That document specifies the SIP Reason header field
    <xref target="RFC3326"/> that is used to indicate the reason of release.
The reason of release indicates why a SIP Dialog or a PSTN call, in cases where
the call was interworked to the PSTN, was terminated. The termination may be
normal, based on a failure within an entity (e.g. temporary failure) or caused
by other factors (e.g., congestion). The reason may be a SIP response or an ISUP release
cause as specified within <xref target="Q.850"/>. <xref target="RFC6432"/>
specifies that an ISUP <xref target="Q.850"/> cause code can be carried within
a SIP response, but not the Q.850 location information. The <xref
target="Q.850"/> location information identifies the part of the ISUP network
where the call was released.
    </t>
    <t>
   This document adds a location value parameter to the reason-extension
   parameter defined in <xref target="RFC3326"/> so that the <xref
   target="Q.850"/> location value can be interworked from the PSTN. The
   interworking from the PSTN needs only to include the location received by
   the interworking gateway. <xref target="Q.850"/> describes the definitions
   of the cause code values and the locations used in ISDN and DSS1 (Digital
   Subscriber Signalling System No.&nbsp;1) environments. The cause code is
   used for identifying the reason of release of a call, and the location
   identifies where the call was released.
    </t>
    </section>
    <!-- ***************************************************************************************************** --> 
       
      <section anchor="terminology" title="Terminology">
        <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&nbsp;14 <xref target="RFC2119"/> <xref target="RFC8174"/> 
    when, and only when, they appear in all capitals, as shown here.
        </t>
      </section>
 <!-- ***************************************************************************************************** --> 
 
<!-- ***************************************************************************************************** --> 
    <?rfc needLines="30" ?>
    <section anchor="rationale" title="Rationale">
    
      <t>The primary intent of the parameter defined in this specification is for use in
         IMS (IP Multimedia Subsystem) networks defined by 3GPP, but it is also
	 open to be used by any other networks that include ISUP interworking 
         gateways and use Q.850 reason codes.  

The purpose of this parameter is to hold the location of the call release so
   that it can be transported from the originating PSTN entity to the SIP
   entity via a response or BYE message.
        
        The ISDN location is defined in <xref target="Q.850"/>. 
               
      </t>
      
      </section>
      <!-- ***************************************************************************************************** --> 
       

       <section anchor="mechanism" title="Mechanism">     
      	<t>
      	As defined by <xref target="RFC6432"/>, any SIP Response message, with the exception of 100 (Trying),
MAY contain a Reason header field with a Q.850 [Q.850] cause code.
	</t>
	<t>This specification adds a parameter with the ISUP location value defined in <xref target="Q.850"/> to the Reason header field
       that identifies the location of the call release in ISUP. The location is a 4-bit value that reflects the possible locations where an ISUP call is released. Some values are spare or reserved for national use. The Augmented BNF (ABNF) <xref target="RFC5234"/> for this parameter is shown in <xref target="ABNF"/>.
      </t>
      
     <figure anchor="ABNF" title="ABNF for isup-cause-location">


<artwork><![CDATA[
   reason-extension    =/ isup-cause-location
   isup-cause-location =  "location" EQUAL isup-location-value

   isup-location-value =
      "U" /      ; for 0 0 0 0 user
      "LPN" /    ; for 0 0 0 1 private network serving the local user
      "LN" /     ; for 0 0 1 0 public network serving the local user
      "TN" /     ; for 0 0 1 1 transit network
      "RLN" /    ; for 0 1 0 0 public network serving the remote user
      "RPN" /    ; for 0 1 0 1 private network serving the remote user
      "LOC-6" /  ; for 0 1 1 0 spare
      "INTL" /   ; for 0 1 1 1 international network
      "LOC-8" /  ; for 1 0 0 0 spare
      "LOC-9" /  ; for 1 0 0 1 spare
      "BI" /     ; for 1 0 1 0 network beyond interworking point
      "LOC-11" / ; for 1 0 1 1 spare
      "LOC-12" / ; for 1 1 0 0 reserved for national use
      "LOC-13" / ; for 1 1 0 1 reserved for national use
      "LOC-14" / ; for 1 1 1 0 reserved for national use
      "LOC-15"   ; for 1 1 1 1 reserved for national use
     ]]></artwork></figure>
		
		<t>Note: These are the location values defined within <xref target="Q.850"/>. The 'LOC-*' names are the wire codepoints for the
		values currently left as 'spare' or 'reserved' in <xref target="Q.850"/>;
		these will continue to be the wire codepoints in the case of
		future allocation or national usage of the such values.</t>

     <t>The UAC or UAS SHALL include the location parameter in a request or
     response when setting up the Reason header field with a <xref target="Q.850"/> cause
     when the ISUP <xref target="Q.850"/> location is available.</t>

      <t>The use of the location parameter is restricted to
      Q.850 cause values. Other values MUST be ignored if present. 
		</t>
    </section>
<!-- ***************************************************************************************************** --> 
       

	<section anchor="example" title="Example">
	<t>
		The following example shows a SIP 404 response message containing a Reason header field
		with a <xref target="Q.850"/> cause value and an isup-cause-location value.
		The 404 Response will be sent when a gateway receives an ISUP release with a <xref target="Q.850"/> cause 
		set to 1, meaning Unallocated (unassigned) number, i.e., the number is not known in the PSTN.
	</t>
	

	<figure anchor="location" title="Example of a Location in the Reason Header Field"><artwork><![CDATA[
      
      SIP/2.0 404 Not Found
      Via: SIP/2.0/TCP proxy.example.com:5060;branch=z9hG4bKx5st
      Via: SIP/2.0/TCP 192.0.2.3:5060;branch=z9hG4bK4321
      From: Alice <sips:alice@atlanta.example.com>;tag=1234567
      To: Bob <sips:bob@biloxi.example.com>;tag=765432
      Call-ID: 12345600@atlanta.example.com
      CSeq: 1 INVITE
      Reason: Q.850;cause=1;text="Unallocated (unassigned) number";
           location=LN 
      Content-Length: 0

]]></artwork></figure>

	</section>
<!-- ***************************************************************************************************** --> 	
  




    <section anchor="privacy" title="Privacy Considerations">
      <t> While the addition of the location parameter 
         provides an indicator of the entity that added the location in the signaling
         path, it provides little more exposure than the <xref target="Q.850"/> cause itself.
The ISUP location value itself will not reveal the identity of the originating or terminating party of the call.  It shows only the ISUP network location of the device that released the call. The ISUP location does not show the physical location of the caller or callee. 
              
         </t>
    </section>

   <!-- ***************************************************************************************************** --> 

    <section anchor="security" title="Security Considerations">
      <t>This document doesn't change any of the security considerations described in
         <xref target="RFC3326"/>. The addition of the location parameter 
         provides an indicator of the <xref target="Q.850"/> location where
	 the call was released within the PSTN. This information may be used
	 for specific location-driven services but does not create any
	 additional security constraints. Because the <xref target="Q.850"/>
	 location is very imprecise, the <xref target="Q.850"/> location value
	 itself will not add any major security constraints. The use of this
	 parameter is not restricted to a specific architecture.  
     </t>
     <t>
     <xref target="RFC3398"/> describes detailed security considerations due to
  interworking between ISUP and SIP.    Beyond these considerations, the
  addition of the location does not introduce new security concerns. 
The location shows the network part where the call was released. Knowing this
does not increase the possibilities of extended fraud scenarios. 
</t>
     </section>

   <!-- ***************************************************************************************************** --> 

    <section anchor="iana" title="IANA Considerations">
      <section title="Registration of the Location Parameter for the Reason Header Field">
        <t>IANA has registered a new SIP header parameter in the "Header Field
	Parameters and Parameter Values" subregistry of the "Session Initiation
	Protocol (SIP) Parameters" registry &lt;https://www.iana.org/assignments/sip-parameters&gt;, per the guidelines 
           in <xref target="RFC3968"/>:
        <list style="hanging">
          <t hangText="Header Field:">Reason</t>
          <t hangText="Parameter Name:">location</t>
          <t hangText="Predefined Values:">Yes</t>
          <t hangText="Reference:">RFC 8606</t>
        </list>
        </t>
      </section>
    </section>

   <!-- ***************************************************************************************************** --> 

  </middle>
  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.2119"?>
      <?rfc include="reference.RFC.8174"?>
      <?rfc include="reference.RFC.3326"?>
      <?rfc include="reference.RFC.5234"?>
      <?rfc include="reference.RFC.3968"?>
      <?rfc include="reference.RFC.3398"?>	
      <?rfc include="reference.RFC.6432"?>
			
		<reference anchor="Q.850" target="https://www.itu.int/rec/T-REC-Q.850">
           <front>
               <title>Usage of cause and location in the Digital
Subscriber Signalling System No. 1 and the
Signalling System No. 7 ISDN user part
               </title>
               <author>
                   <organization>ITU-T</organization>
               </author>

               <date month="October" year="2018" />
           </front>
           <seriesInfo name="Recommendation ITU-T" value="Q.850" />
           
       </reference>	
  </references>

    <section title="Acknowledgments" numbered="no">
      <t> Thanks to Michael Kreipl, Thoams Belling, Marianne Mohali, Peter
      Daws, Paul Kyzivat, Dale Worley, Yehoshua Gev, and Keith Drage for the
      comments and review.</t> 
    </section>


  </back>
</rfc>
