1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
|
<pre>Internet Engineering Task Force (IETF) R. Sparks
Request for Comments: 8217 Oracle
Updates: <a href="./rfc3261">3261</a>, <a href="./rfc3325">3325</a>, <a href="./rfc3515">3515</a>, <a href="./rfc3892">3892</a>, <a href="./rfc4508">4508</a>, August 2017
<a href="./rfc5002">5002</a>, <a href="./rfc5318">5318</a>, <a href="./rfc5360">5360</a>, <a href="./rfc5502">5502</a>
Category: Standards Track
ISSN: 2070-1721
Clarifications for When to Use the name-addr Production in SIP Messages
Abstract
<a href="./rfc3261">RFC 3261</a> constrained several SIP header fields whose grammar contains
the "name-addr / addr-spec" alternative to use name-addr when certain
characters appear. Unfortunately, it expressed the constraints with
prose copied into each header field definition, and at least one
header field was missed. Further, the constraint has not been copied
into documents defining extension headers whose grammar contains the
alternative.
This document updates <a href="./rfc3261">RFC 3261</a> to state the constraint generically
and clarifies that the constraint applies to all SIP header fields
where there is a choice between using name-addr or addr-spec. It
also updates the RFCs that define extension SIP header fields using
the alternative to clarify that the constraint applies (RFCs 3325,
3515, 3892, 4508, 5002, 5318, 5360, and 5502).
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in <a href="./rfc7841#section-2">Section 2 of RFC 7841</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc8217">http://www.rfc-editor.org/info/rfc8217</a>.
<span class="grey">Sparks Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc8217">RFC 8217</a> name-addr Clarifications August 2017</span>
Copyright Notice
Copyright (c) 2017 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
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-3">3</a>
<a href="#section-3">3</a>. Updates to <a href="./rfc3261">RFC 3261</a> . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-4">4</a>. Updates to RFCs Defining SIP Extension Header Fields . . . . <a href="#page-4">4</a>
<a href="#section-5">5</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-6">6</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-7">7</a>. Normative References . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
[<a id="ref-RFC3261">RFC3261</a>] defines several header fields that contain URIs to allow
both a form that contains the bare URI (addr-spec) and one that
provides a name and the URI (name-addr). This subset, taken from the
ABNF [<a href="./rfc5234" title=""Augmented BNF for Syntax Specifications: ABNF"">RFC5234</a>] specified in [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>], shows the relevant part of the
definition of the syntax of the "From" header field:
From = ( "From" / "f" ) HCOLON from-spec
from-spec = ( name-addr / addr-spec )
*( SEMI from-param )
name-addr = [ display-name ] LAQUOT addr-spec RAQUOT
addr-spec = SIP-URI / SIPS-URI / absoluteURI
The prose in <a href="./rfc3261#section-20.20">Section 20.20 of [RFC3261]</a>, which discusses the "From"
header field, constrains how the production may be used by saying:
Even if the "display-name" is empty, the "name-addr" form
MUST be used if the "addr-spec" contains a comma, question
mark, or semicolon.
<span class="grey">Sparks Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc8217">RFC 8217</a> name-addr Clarifications August 2017</span>
<a href="./rfc3261#section-20.39">Section 20.39 of [RFC3261]</a>, which discusses the "To" header field,
contains no such constraining text.
This constraint is specified slightly differently, but with the same
intent, in the introduction to <a href="./rfc3261#section-20">Section 20 of [RFC3261]</a>:
The Contact, From, and To header fields contain a URI. If the URI
contains a comma, question mark or semicolon, the URI MUST be
enclosed in angle brackets (< and >).
Unfortunately, this can be read to only apply to the Contact, From,
and To header fields, making it necessary to provide the constraint
explicitly in the prose discussing any other header field using the
name-addr or addr-spec alternative.
As extension header fields were standardized, the specifications
sometimes failed to include the constraint. Many errata have been
entered to correct this omission. When the constraint has been
included, the requirement to use the name-addr form has not been
consistently stated.
This memo updates the specifications of SIP and its extensions to
clarify that the constraint to use the name-addr form applies
anywhere there is a choice between the name-addr and addr-spec
production rules in the grammar for SIP header fields.
It is important to note that a message formed without honoring the
constraint will still be syntactically valid, but it would very
likely be interpreted differently. The characters after the comma,
question mark, or semicolon will, in most cases, be interpreted as
header field parameters or additional header field values as
discussed in <a href="./rfc3261#section-7.3.1">Section 7.3.1 of [RFC3261]</a>. (An exception is the
degenerate case of a URL like sip:10.0.0.1,@10.0.0.0 where it is
possible to parse the comma via the 'user' production).
<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", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
<a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>] [<a href="./rfc8174" title=""Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words"">RFC8174</a>] when, and only when, they appear in all
capitals, as shown here.
<span class="grey">Sparks Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc8217">RFC 8217</a> name-addr Clarifications August 2017</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Updates to <a href="./rfc3261">RFC 3261</a></span>
This text from introduction to <a href="./rfc3261#section-20">Section 20 of [RFC3261]</a>:
The Contact, From, and To header fields contain a URI. If the URI
contains a comma, question mark or semicolon, the URI MUST be
enclosed in angle brackets (< and >). Any URI parameters are
contained within these brackets. If the URI is not enclosed in
angle brackets, any semicolon-delimited parameters are
header-parameters, not URI parameters.
is replaced with:
When constructing the value of any SIP header field whose grammar
allows choosing between name-addr and addr-spec, such as those
that use the form '(name-addr / addr-spec)', the addr-spec form
MUST NOT be used if its value would contain a comma, semicolon,
or question mark.
When a URI appears in such a header field, any URI parameters MUST
be contained within angle brackets (< and >). If the URI is not
enclosed in angle brackets, any semicolon-delimited parameters are
header-parameters, not URI parameters.
The header fields defined in this specification that allow this
choice are "To", "From", "Contact", and "Reply-To".
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Updates to RFCs Defining SIP Extension Header Fields</span>
The following Standards Track RFCs: [<a href="./rfc3515" title=""The Session Initiation Protocol (SIP) Refer Method"">RFC3515</a>], [<a href="./rfc3892" title=""The Session Initiation Protocol (SIP) Referred-By Mechanism"">RFC3892</a>], [<a href="./rfc4508" title=""Conveying Feature Tags with the Session Initiation Protocol (SIP) REFER Method"">RFC4508</a>],
and [<a href="./rfc5360" title=""A Framework for Consent-Based Communications in the Session Initiation Protocol (SIP)"">RFC5360</a>]
and the following Informational RFCs: [<a href="./rfc3325" title=""Private Extensions to the Session Initiation Protocol (SIP) for Asserted Identity within Trusted Networks"">RFC3325</a>], [<a href="./rfc5002" title=""The Session Initiation Protocol (SIP) P-Profile-Key Private Header (P-Header)"">RFC5002</a>],
[<a href="./rfc5318" title=""The Session Initiation Protocol (SIP) P-Refused-URI-List Private-Header (P-Header)"">RFC5318</a>], and [<a href="./rfc5502" title=""The SIP P-Served-User Private-Header (P-Header) for the 3GPP IP Multimedia (IM) Core Network (CN) Subsystem"">RFC5502</a>]
are updated to include:
This RFC contains the definition of one or more SIP header fields
that allow choosing between addr-spec and name-addr when
constructing header field values. As specified in <a href="./rfc8217">RFC 8217</a>,
the "addr-spec" form MUST NOT be used if its value would contain
a comma, semicolon, or question mark.
The status of these RFCs remains unchanged. In particular the status
of the Informational RFCs remains Informational.
<span class="grey">Sparks Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc8217">RFC 8217</a> name-addr Clarifications August 2017</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. IANA Considerations</span>
This document does not require any IANA actions.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Security Considerations</span>
The updates specified in this memo clarify a constraint on the
grammar for producing SIP messages. It introduces no new security
considerations. One pre-existing consideration is worth reiterating:
messages produced without honoring the constraint will very likely be
misinterpreted by the receiving element.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</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>,
DOI 10.17487/RFC2119, March 1997,
<<a href="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<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>,
DOI 10.17487/RFC3261, June 2002,
<<a href="http://www.rfc-editor.org/info/rfc3261">http://www.rfc-editor.org/info/rfc3261</a>>.
[<a id="ref-RFC3325">RFC3325</a>] Jennings, C., Peterson, J., and M. Watson, "Private
Extensions to the Session Initiation Protocol (SIP) for
Asserted Identity within Trusted Networks", <a href="./rfc3325">RFC 3325</a>,
DOI 10.17487/RFC3325, November 2002,
<<a href="http://www.rfc-editor.org/info/rfc3325">http://www.rfc-editor.org/info/rfc3325</a>>.
[<a id="ref-RFC3515">RFC3515</a>] Sparks, R., "The Session Initiation Protocol (SIP) Refer
Method", <a href="./rfc3515">RFC 3515</a>, DOI 10.17487/RFC3515, April 2003,
<<a href="http://www.rfc-editor.org/info/rfc3515">http://www.rfc-editor.org/info/rfc3515</a>>.
[<a id="ref-RFC3892">RFC3892</a>] Sparks, R., "The Session Initiation Protocol (SIP)
Referred-By Mechanism", <a href="./rfc3892">RFC 3892</a>, DOI 10.17487/RFC3892,
September 2004, <<a href="http://www.rfc-editor.org/info/rfc3892">http://www.rfc-editor.org/info/rfc3892</a>>.
[<a id="ref-RFC4508">RFC4508</a>] Levin, O. and A. Johnston, "Conveying Feature Tags with
the Session Initiation Protocol (SIP) REFER Method",
<a href="./rfc4508">RFC 4508</a>, DOI 10.17487/RFC4508, May 2006,
<<a href="http://www.rfc-editor.org/info/rfc4508">http://www.rfc-editor.org/info/rfc4508</a>>.
[<a id="ref-RFC5002">RFC5002</a>] Camarillo, G. and G. Blanco, "The Session Initiation
Protocol (SIP) P-Profile-Key Private Header (P-Header)",
<a href="./rfc5002">RFC 5002</a>, DOI 10.17487/RFC5002, August 2007,
<<a href="http://www.rfc-editor.org/info/rfc5002">http://www.rfc-editor.org/info/rfc5002</a>>.
<span class="grey">Sparks Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc8217">RFC 8217</a> name-addr Clarifications August 2017</span>
[<a id="ref-RFC5234">RFC5234</a>] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, <a href="./rfc5234">RFC 5234</a>,
DOI 10.17487/RFC5234, January 2008,
<<a href="http://www.rfc-editor.org/info/rfc5234">http://www.rfc-editor.org/info/rfc5234</a>>.
[<a id="ref-RFC5318">RFC5318</a>] Hautakorpi, J. and G. Camarillo, "The Session Initiation
Protocol (SIP) P-Refused-URI-List Private-Header
(P-Header)", <a href="./rfc5318">RFC 5318</a>, DOI 10.17487/RFC5318, December
2008, <<a href="http://www.rfc-editor.org/info/rfc5318">http://www.rfc-editor.org/info/rfc5318</a>>.
[<a id="ref-RFC5360">RFC5360</a>] Rosenberg, J., Camarillo, G., Ed., and D. Willis, "A
Framework for Consent-Based Communications in the Session
Initiation Protocol (SIP)", <a href="./rfc5360">RFC 5360</a>,
DOI 10.17487/RFC5360, October 2008,
<<a href="http://www.rfc-editor.org/info/rfc5360">http://www.rfc-editor.org/info/rfc5360</a>>.
[<a id="ref-RFC5502">RFC5502</a>] van Elburg, J., "The SIP P-Served-User Private-Header
(P-Header) for the 3GPP IP Multimedia (IM) Core Network
(CN) Subsystem", <a href="./rfc5502">RFC 5502</a>, DOI 10.17487/RFC5502, April
2009, <<a href="http://www.rfc-editor.org/info/rfc5502">http://www.rfc-editor.org/info/rfc5502</a>>.
[<a id="ref-RFC8174">RFC8174</a>] Leiba, B., "Ambiguity of Uppercase vs Lowercase in <a href="./rfc2119">RFC</a>
<a href="./rfc2119">2119</a> Key Words", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc8174">RFC 8174</a>, DOI 10.17487/RFC8174,
May 2017, <<a href="http://www.rfc-editor.org/info/rfc8174">http://www.rfc-editor.org/info/rfc8174</a>>.
Acknowledgments
Brett Tate identified this issue in several extension documents,
submitted several corresponding errata, and drove the discussion that
led to this memo. Substantive comments leading to this text were
provided by Paul Kyzivat, Gonzalo Camarillo, Dale Worley, and
Yehoshua Gev.
Author's Address
Robert Sparks
Oracle
Email: rjsparks@nostrum.com
Sparks Standards Track [Page 6]
</pre>
|