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 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
|
<pre>Network Working Group H. Schulzrinne
Request for Comments: 3326 Columbia University
Category: Standards Track D. Oran
Cisco
G. Camarillo
Ericsson
December 2002
<span class="h1">The Reason Header Field for 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.
Copyright Notice
Copyright (C) The Internet Society (2002). All Rights Reserved.
Abstract
For creating services, it is often useful to know why a Session
Initiation Protocol (SIP) request was issued. This document defines
a header field, Reason, that provides this information. The Reason
header field is also intended to be used to encapsulate a final
status code in a provisional response. This functionality is needed
to resolve the "Heterogeneous Error Response Forking Problem", or
HERFP.
<span class="grey">Schulzrinne, et. al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3326">RFC 3326</a> The Reason Header Field for SIP December 2002</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ............................................... <a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Terminology ................................................ <a href="#page-3">3</a>
<a href="#section-2">2</a>. The Reason Request Header Field ............................ <a href="#page-3">3</a>
<a href="#section-3">3</a>. Examples ................................................... <a href="#page-4">4</a>
<a href="#section-3.1">3.1</a>. Call Completed Elsewhere ................................... <a href="#page-4">4</a>
<a href="#section-3.2">3.2</a>. Refusing an Offer that Comes in a Response ................. <a href="#page-4">4</a>
<a href="#section-3.3">3.3</a>. Third Party Call Control ................................... <a href="#page-5">5</a>
<a href="#section-3.4">3.4</a>. ISUP interworking .......................................... <a href="#page-5">5</a>
<a href="#section-4">4</a>. IANA Considerations ........................................ <a href="#page-6">6</a>
<a href="#section-5">5</a>. Security Considerations .................................... <a href="#page-6">6</a>
<a href="#section-6">6</a>. Acknowledgments ............................................ <a href="#page-7">7</a>
<a href="#section-7">7</a>. Authors' Addresses ......................................... <a href="#page-7">7</a>
<a href="#section-8">8</a>. Normative References ....................................... <a href="#page-7">7</a>
<a href="#section-9">9</a>. Full Copyright Statement ................................... <a href="#page-8">8</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The same SIP [<a href="#ref-1" title=""SIP: Session Initiation Protocol"">1</a>] request can be issued for a variety of reasons. For
example, a SIP CANCEL request can be issued if the call has completed
on another branch or was abandoned before answer. While the protocol
and system behavior is the same in both cases, namely, alerting will
cease, the user interface may well differ. In the second case, the
call may be logged as a missed call, while this would not be
appropriate if the call was picked up elsewhere.
Third party call controllers sometimes generate a SIP request upon
reception of a SIP response from another dialog. Gateways generate
SIP requests after receiving messages from a different protocol than
SIP. In both cases the client may be interested in knowing what
triggered the SIP request.
SIP responses already offer a means of informing the user of why a
request failed. The simple mechanism in this document accomplishes
something roughly similar for requests.
An INVITE can sometimes be rejected not because the session
initiation was declined, but because some aspect of the request was
not acceptable. If the INVITE forked and resulted in a rejection,
the error response may never be forwarded to the client unless all
the other branches also reject the request. This problem is known as
the "Heterogeneous Error Response Forking Problem", or HERFP. It is
foreseen that a solution to this problem may involve encapsulating
the final error response in a provisional response. The Reason header
field is a candidate to be used for such encapsulation.
<span class="grey">Schulzrinne, et. al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3326">RFC 3326</a> The Reason Header Field for SIP December 2002</span>
Initially, the Reason header field defined here appears to be most
useful for BYE and CANCEL requests, but it can appear in any request
within a dialog, in any CANCEL request and in any response whose
status code explicitly allows the presence of this header field.
Note that the Reason header field is usually not needed in responses
because the status code and the reason phrase already provide
sufficient information.
Clients and servers are free to ignore this header field. It has no
impact on protocol processing.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a> Terminology</span>
In this document, the key words "MUST", "MUST NOT", "REQUIRED",
"SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY",
and "OPTIONAL" are to be interpreted as described in <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>
[<a href="#ref-2" title=""Key words for use in RFCs to indicate requirement levels,"">2</a>] and indicate requirement levels for compliant SIP
implementations.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. The Reason Header Field</span>
The Reason header field MAY appear in any request within a dialog, in
any CANCEL request and in any response whose status code explicitly
allows the presence of this header field. The syntax of the header
field follows the standard SIP parameter syntax.
Reason = "Reason" HCOLON reason-value *(COMMA reason-value)
reason-value = protocol *(SEMI reason-params)
protocol = "SIP" / "Q.850" / token
reason-params = protocol-cause / reason-text
/ reason-extension
protocol-cause = "cause" EQUAL cause
cause = 1*DIGIT
reason-text = "text" EQUAL quoted-string
reason-extension = generic-param
The following values for the protocol field have been defined:
SIP: The cause parameter contains a SIP status code.
Q.850: The cause parameter contains an ITU-T Q.850 cause value
in decimal representation.
<span class="grey">Schulzrinne, et. al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3326">RFC 3326</a> The Reason Header Field for SIP December 2002</span>
Examples are:
Reason: SIP ;cause=200 ;text="Call completed elsewhere"
Reason: Q.850 ;cause=16 ;text="Terminated"
Reason: SIP ;cause=600 ;text="Busy Everywhere"
Reason: SIP ;cause=580 ;text="Precondition Failure"
Proxies generating a CANCEL request upon reception of a CANCEL from
the previous hop that contains a Reason header field SHOULD copy it
into the new CANCEL request.
In normal SIP operation, a SIP status code in a response provides the
client with information about the request that triggered the
response, the session parameters, or the user. For example, a 405
(Method not allowed) response indicates that the request contained an
unsupported method. A 488 (Not Acceptable Here) indicates that the
session parameters are unacceptable and a 486 (Busy Here) provides
information about the status of the user.
Any SIP status code MAY appear in the Reason header field of a
request. However, status codes that provide information about the
user and about session parameters are typically useful for
implementing services whereas status codes intended to report errors
about a request are typically useful for debugging purposes.
A SIP message MAY contain more than one Reason value (i.e., multiple
Reason lines), but all of them MUST have different protocol values
(e.g., one SIP and another Q.850). An implementation is free to
ignore Reason values that it does not understand.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Examples</span>
This section contains a number of examples that illustrate the use of
the Reason header field.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a> Call Completed Elsewhere</span>
A proxy forks an INVITE request and one of the branches returns a 200
(OK). The forking proxy includes this status code in a Reason header
field in the CANCEL request that it sends to the rest of the
branches.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a> Refusing an Offer that Comes in a Response</span>
A client sends an empty INVITE and receives an unacceptable offer in
a 200 (OK) response. The client sends an ACK with a correctly
formatted answer and immediately sends a BYE to terminate the
<span class="grey">Schulzrinne, et. al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3326">RFC 3326</a> The Reason Header Field for SIP December 2002</span>
session. The client includes a 488 (Not Acceptable Here) status code
in a Reason header field.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a> Third Party Call Control</span>
The third party call controller of figure 1 tries to establish a
session between A and B. However, user B is busy. The controller
sends a BYE with the status code 486 (Busy Here) in a Reason header
field.
A Controller B
| INV no SDP | |
|<------------------| |
| | |
| 200 SDP A1 | |
|-----------------> | |
| | |
| ACK SDP held | |
|<------------------| |
| | |
| | INV no SDP |
| |----------------->|
| | |
| | 486 Busy Here |
| |<-----------------|
| | |
| | ACK |
| |----------------->|
| BYE (486) | |
|<------------------| |
| | |
| 200 OK | |
|-----------------> | |
| | |
Figure 1: Third Party Call Control
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a> ISUP interworking</span>
The PSTN gateway of figure 2 generates an INVITE that has to be
CANCELed when a REL (release) message is received from the ISUP side.
The CANCEL request contains the Q.850 cause value (16 Normal Call
Clearing) of the REL message.
<span class="grey">Schulzrinne, et. al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3326">RFC 3326</a> The Reason Header Field for SIP December 2002</span>
A Gateway B
| IAM | |
|-----------------> | |
| | INVITE |
| |----------------->|
| | |
| | 100 Trying |
| |<-----------------|
| REL (16) | |
|-----------------> | |
| | CANCEL (Q.850 16)|
| |----------------->|
| | 200 OK |
| |<-----------------|
Figure 2: ISUP Interworking
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. IANA Considerations</span>
This document defines a new SIP header field, "Reason", according to
<a href="./rfc3261#section-27">Section 27 of RFC 3261</a>.
Protocol values (and their associated protocol cause) to be used with
this header field are registered by the IANA into a new sub-registry
under <a href="http://www.iana.org/assignments/sip-parameters">http://www.iana.org/assignments/sip-parameters</a>, labeled "Reason
Protocols". Reason protocols MUST refer to either an ITU-T
Recommendation number, an IETF protocol name or the recognized
protocol identifier from another standardization organization.
Protocol cause describes the source of the 'cause' field in the
Reason header field.
The only entries in the registry for the time being are:
Protocol Value Protocol Cause Reference
-------------- --------------- -----------
SIP Status code <a href="./rfc3261">RFC 3261</a>
Q.850 Cause value in decimal ITU-T Q.850
representation
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
Spoofing or removing the Reason header field from a response in a
HERFP scenario can make it impossible for a client to update properly
its previous request, making therefore session establishment
impossible. Thus, it is RECOMMENDED that this header field is
protected by a suitable integrity mechanism.
<span class="grey">Schulzrinne, et. al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc3326">RFC 3326</a> The Reason Header Field for SIP December 2002</span>
properly its previous request, making therefore session establishment
impossible. Thus, it is RECOMMENDED that this header field is
protected by a suitable integrity mechanism.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Acknowledgments</span>
Jonathan Rosenberg, Rohan Mahy and Vijay K. Gurbani provided helpful
comments and suggestions.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Normative References</span>
[<a id="ref-1">1</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-2">2</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.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Authors' Addresses</span>
Henning Schulzrinne
Dept. of Computer Science
Columbia University
1214 Amsterdam Avenue
New York, NY 10027
USA
EMail: schulzrinne@cs.columbia.edu
David R. Oran
Cisco Systems, Inc.
Acton, MA
USA
EMail: oran@cisco.com
Gonzalo Camarillo
Ericsson
Advanced Signalling Research Lab.
FIN-02420 Jorvas
Finland
EMail: Gonzalo.Camarillo@ericsson.com
<span class="grey">Schulzrinne, et. al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc3326">RFC 3326</a> The Reason Header Field for SIP December 2002</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Full Copyright Statement</span>
Copyright (C) The Internet Society (2002). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS 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.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Schulzrinne, et. al. Standards Track [Page 8]
</pre>
|