home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_j_p / draft-ietf-mmusic-sip-03.txt < prev    next >
Text File  |  1997-08-02  |  142KB  |  3,766 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Internet Engineering Task Force                                MMUSIC WG
  8. Internet Draft                              Handley/Schulzrinne/Schooler
  9. draft-ietf-mmusic-sip-03.txt                           ISI/Columbia U./Caltech
  10. July 31, 1997
  11. Expires: January 20, 1998
  12.  
  13.  
  14.                     SIP: Session Initiation Protocol
  15.  
  16. STATUS OF THIS MEMO
  17.  
  18.    This document is an Internet-Draft. Internet-Drafts are working
  19.    documents of the Internet Engineering Task Force (IETF), its areas,
  20.    and its working groups.  Note that other groups may also distribute
  21.    working documents as Internet-Drafts.
  22.  
  23.    Internet-Drafts are draft documents valid for a maximum of six months
  24.    and may be updated, replaced, or obsoleted by other documents at any
  25.    time.  It is inappropriate to use Internet-Drafts as reference
  26.    material or to cite them other than as ``work in progress''.
  27.  
  28.    To learn the current status of any Internet-Draft, please check the
  29.    ``1id-abstracts.txt'' listing contained in the Internet-Drafts Shadow
  30.    Directories on ftp.is.co.za (Africa), nic.nordu.net (Europe),
  31.    munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast), or
  32.    ftp.isi.edu (US West Coast).
  33.  
  34.    Distribution of this document is unlimited.
  35.  
  36.                                  ABSTRACT
  37.  
  38.  
  39.          Many styles of multimedia conferencing are likely to co-
  40.          exist on the Internet, and many of them share the need to
  41.          invite users to participate. The Session Initiation
  42.          Protocol (SIP) is a simple protocol designed to enable
  43.          the invitation of users to participate in such multimedia
  44.          sessions. It is not tied to any specific conference
  45.          control scheme. In particular, it aims to enable user
  46.          mobility by relaying and redirecting invitations to a
  47.          user's current location.
  48.  
  49.          This document is a product of the Multi-party Multimedia
  50.          Session Control (MMUSIC) working group of the Internet
  51.          Engineering Task Force.  Comments are solicited and
  52.          should be addressed to the working group's mailing list
  53.          at confctrl@isi.edu and/or the authors.
  54.  
  55.  
  56.  
  57.  
  58. Handley/Schulzrinne/Schooler                                  [Page 1]
  59.  
  60.  
  61. Internet Draft                    SIP                      July 31, 1997
  62.  
  63.  
  64. 1 Introduction
  65.  
  66. 1.1 Overview of SIP Functionality
  67.  
  68.    The Session Initiation Protocol (SIP) is an application-layer
  69.    protocol that can establish and control multimedia sessions or calls.
  70.    These multimedia sessions include multimedia conferences, distance
  71.    learning, Internet telephony and similar applications. SIP can
  72.    initiate both unicast and multicast sessions; the initiator does not
  73.    necessarily have to be a member of the session. Media and
  74.    participants can be added to an existing session. SIP can be used to
  75.    "call" both persons and "robots", for example, to invite a media
  76.    storage device to record an ongoing conference or to invite a video-
  77.    on-demand server to play a video into a conference. (SIP does not
  78.    directly control these services, however; see RTSP [4].)
  79.  
  80.    SIP transparently supports name mapping and redirection services,
  81.    allowing the implementation of telephony services such as selective
  82.    call forwarding, selective call rejection, conditional and
  83.    unconditional call forwarding, call forwarding busy, call forwarding
  84.    no response. SIP may use multicast to try several possible callee
  85.    locations at the same time.
  86.  
  87.    SIP supports personal mobility telecommunications intelligent network
  88.    services, this is defined as:  "Personal mobility is the ability of
  89.    end users to originate and receive calls and access subscribed
  90.    telecommunication services on any terminal in any location, and the
  91.    ability of the network to identify end users as they move. Personal
  92.    mobility is based on the use of a unique personal identity (i.e.,
  93.    'personal number')." [1].  Personal mobility complements terminal
  94.    mobility, i.e., the ability to maintain communications when moving a
  95.    single end system from one network to another.
  96.  
  97.    SIP supports some or all of four facets of establishing multimedia
  98.    communications:
  99.  
  100.         1.   user location: determination of the end system to be used
  101.              for communication;
  102.  
  103.         2.   user capabilities: determination of the media and media
  104.              parameters to be used;
  105.  
  106.         3.   user availability: determination of the willingness of the
  107.              called party to engage in communications;
  108.  
  109.         4.   call setup ("ringing", establishment of call parameters at
  110.              both called and calling party)
  111.         In particular, SIP can be used to locate a user and determine
  112.  
  113.  
  114.  
  115. Handley/Schulzrinne/Schooler                                  [Page 2]
  116.  
  117.  
  118. Internet Draft                    SIP                      July 31, 1997
  119.  
  120.  
  121.         the appropriate end system, leaving the actual call
  122.         establishment to other protocols such as H.323.
  123.  
  124.    SIP may also be used to terminate and transfer a call. SIP can also
  125.    initiate multi-party calls using a multipoint control unit (MCU) or
  126.    fully-meshed interconnection instead of multicast.
  127.  
  128.         These features are for further study.
  129.  
  130.    SIP is not a conference control protocol, but can be used to
  131.    introduce conference control protocols to a session.
  132.  
  133.    SIP is designed as part of the overall IETF multimedia data and
  134.    control architecture currently incorporating protocols such as RSVP
  135.    [2] for reserving network resources, RTP [3] for transporting real-
  136.    time data and providing QOS feedback, RTSP [4] for controlling
  137.    delivery of streaming media, SAP [5] for advertising multimedia
  138.    sessions via multicast and SDP [6] for describing multimedia
  139.    sessions, but SIP does not depend for its operation on any of these
  140.    protocols.
  141.  
  142. 1.2 Finding Multimedia Sessions
  143.  
  144.    There are two basic ways to locate and to participate in a multimedia
  145.    session:
  146.  
  147.    Advertisement: The session is advertised, potential participants see
  148.         the advertisement, then join the session address to participate.
  149.  
  150.    Invitation: Users are invited by others to participate in a session,
  151.         which may or may not be advertised.
  152.  
  153.    Sessions may be advertised using multicast protocols such as SAP [5],
  154.    electronic mail, news groups, web pages or directories (LDAP), among
  155.    others. SIP serves the role of the invitation protocol.
  156.  
  157.    SIP does not prescribe how a conference is to be managed, e.g.,
  158.    whether it uses a central server to manage conference and participant
  159.    state or distributes state via multicast.
  160.  
  161.    SIP does not allocate multicast addresses, leaving this functionality
  162.    to protocols such as SAP [5].
  163.  
  164.    SIP can invite users to conferences with and without resource
  165.    reservation. SIP does not reserve resources, but may convey to the
  166.    invited system the information necessary to do this. Quality-of-
  167.    service guarantees, if required, may depend on knowing the full
  168.    membership of the session; this information may or may not be known
  169.  
  170.  
  171.  
  172. Handley/Schulzrinne/Schooler                                  [Page 3]
  173.  
  174.  
  175. Internet Draft                    SIP                      July 31, 1997
  176.  
  177.  
  178.    to the agent performing session invitation.
  179.  
  180.    SIP offers some of the same functionality as H.323, but may also be
  181.    used in conjunction with it. In this mode, H.323 is used to locate
  182.    the appropriate terminal identified by a H.245 address [TBD: what
  183.    does this look like?]. An H.323-capable terminal then proceeds with a
  184.    normal H.323/H.245 invitation [7].
  185.  
  186. 1.3 Terminology
  187.  
  188.    In this document, the key words "MUST", "MUST NOT", "REQUIRED",
  189.    "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY",
  190.    and "OPTIONAL" are to be interpreted as described in RFC 2119 [8] and
  191.    indicate requirement levels for compliant SIP implementations.
  192.  
  193. 1.4 Definitions
  194.  
  195.    This specification uses a number of terms to refer to the roles
  196.    played by participants in SIP communications. The definitions of
  197.    client, server and proxy are similar to those used by the Hypertext
  198.    Transport Protocol (HTTP) [9].
  199.  
  200.    Client: An application program that establishes connections for the
  201.         purpose of sending requests. Clients may or may not interact
  202.         directly with a human user.
  203.  
  204.    Final response: A response that terminates a  ->  SIP transaction, as
  205.         opposed to a  ->  provisional response 3xx, 4xx, and 5xx
  206.         responses are final.
  207.  
  208.    Initiator, calling party: The party initiating a conference
  209.         invitation. Note that the calling party does not have to be the
  210.         same as the one creating a conference.
  211.  
  212.    Invitation: A request sent to a user (or service) requesting
  213.         participation in a session.
  214.  
  215.    Invitee, invited user, called party: The person or service that the
  216.         calling party is trying to invite to a conference.
  217.  
  218.    Location server: A program that is contacted by a  ->  client and
  219.         that returns one or more possible locations of the called party
  220.         or service. Location servers may be invoked by SIP redirect and
  221.         proxy servers and may be Co-located with a SIP server.
  222.  
  223.    Location service: A service used by a  ->  redirect or  ->  proxy
  224.         server to obtain information about a callee's possible location.
  225.  
  226.  
  227.  
  228.  
  229. Handley/Schulzrinne/Schooler                                  [Page 4]
  230.  
  231.  
  232. Internet Draft                    SIP                      July 31, 1997
  233.  
  234.  
  235.    Provisional response: A response used by the server to indicate
  236.         progress, but that does not terminate a  ->  SIP transaction.
  237.         All 1xx and 6xx responses are provisional. Other responses are
  238.         considered  ->  final.
  239.  
  240.    Proxy, proxy server: An intermediary program that acts as both a
  241.         server and a client for the purpose of making requests on behalf
  242.         of other clients. Requests are serviced internally or by passing
  243.         them on, possibly after translation, to other servers. A proxy
  244.         must interpret, and, if necessary, rewrite a request message
  245.         before forwarding it.
  246.  
  247.    Redirect server: A server that accepts a SIP request, maps the
  248.         address into zero or more new addresses and returns these
  249.         addresses to the client. Unlike a  ->  proxy server, it does not
  250.         initiate its own SIP request.
  251.  
  252.    Server: An application program that accepts requests in order to
  253.         service requests and sends back responses to those requests.
  254.         Servers are either proxy, redirect or user agent servers. An
  255.         application program may act as both server and client.
  256.  
  257.    Session: "A multimedia session is a set of multimedia senders and
  258.         receivers and the data streams flowing from senders to
  259.         receivers. A multimedia conference is an example of a multimedia
  260.         session." [6] For SIP, a session is equivalent to a "call".
  261.         (Note: a session as defined here may comprise one or more RTP
  262.         sessions.)
  263.  
  264.    (SIP) transaction: A SIP transaction occurs between a  ->  client and
  265.         a  ->  server and comprises all messages from the first request
  266.         sent from the client to the server up to a  ->  final (non-1xx)
  267.         response sent from the server to the client. A transaction is
  268.         for a single call (identified by a  Call-ID, Section 6.11).
  269.         There can only be one pending transaction between a server and
  270.         client for each call id.
  271.  
  272.    User agent server, called user agent: The server application that
  273.         contacts the user when a session request is received and that
  274.         returns a reply on behalf of the user. The reply may accept,
  275.         reject or redirect the call. (Note: in SIP, user agents can be
  276.         both clients and servers.)
  277.  
  278.    An application program may be capable of acting both as a client and
  279.    a server. For example, a typical multimedia conference control
  280.    application would act as a client to initiate calls or to invite
  281.    others to conferences and as a user agent server to accept
  282.    invitations.
  283.  
  284.  
  285.  
  286. Handley/Schulzrinne/Schooler                                  [Page 5]
  287.  
  288.  
  289. Internet Draft                    SIP                      July 31, 1997
  290.  
  291.  
  292. 1.5 Protocol Properties
  293.  
  294. 1.5.1 Minimal State
  295.  
  296.    There is no concept of an ongoing SIP session that lasts for the
  297.    duration of the conference or call. Rather, a single conference
  298.    session or call may involve one or more SIP request-response
  299.    transactions. For example, a conference control protocol may use SIP
  300.    to add or remove a media stream, but again, once the information has
  301.    been successfully conveyed to the participants, SIP is then no longer
  302.    involved.
  303.  
  304.    At most, a server has to maintain state for a single SIP transaction.
  305.    In some cases, it can process each message without regard to previous
  306.    messages ( stateless server ), as described in Section 12.
  307.  
  308. 1.5.2 Transport-Protocol Neutral
  309.  
  310.    SIP is able to utilize both UDP and TCP as transport protocols. UDP
  311.    allows the application to more carefully control the timing of
  312.    messages and their retransmission, to perform parallel searches
  313.    without requiring connection state for each outstanding request, and
  314.    to use multicast.  TCP allows easier passage through existing
  315.    firewalls, and given the similar protocol design, allows common
  316.    servers for SIP, HTTP and the Real Time Streaming Protocol (RTSP)
  317.    [4].
  318.  
  319.    When TCP is used, SIP can use one or more connections to attempt to
  320.    contact a user or to modify parameters of an existing session. The
  321.    concept of a session is not implicitly bound to a TCP connection, so
  322.    the initial SIP request and a subsequent SIP request may use
  323.    different TCP connections or a single persistent connection as
  324.    appropriate.
  325.  
  326.    Clients SHOULD implement both UDP and TCP transport, servers MUST.
  327.  
  328. 1.5.3 Text-Based
  329.  
  330.    SIP is text based. This allows easy implementation in languages such
  331.    as Tcl and Perl, allows easy debugging, and most importantly, makes
  332.    SIP flexible and extensible. As SIP is primarily used for session
  333.    initiation, it is believed that the additional overhead of using a
  334.    text-based protocol is not significant.
  335.  
  336. 1.6 SIP Addressing
  337.  
  338.    SIP uses two kinds of address identifiers, host-specific addresses
  339.    and host-independent addresses form user@host , where user is any
  340.  
  341.  
  342.  
  343. Handley/Schulzrinne/Schooler                                  [Page 6]
  344.  
  345.  
  346. Internet Draft                    SIP                      July 31, 1997
  347.  
  348.  
  349.    alphanumeric identifier and the form of host depends on the address
  350.    type. Note that SIP does not distinguish between the two and can,
  351.    while inviting a user, map repeatedly between the two address types.
  352.  
  353.    For a host-specific address, the user part is an operating-system
  354.    user name. The host part is either a domain name having a DNS A
  355.    (address) record, or a numeric network address. Examples include:
  356.  
  357.      mjh@metro.isi.edu
  358.      hgs@erlang.cs.columbia.edu
  359.      root@193.175.132.42
  360.  
  361.  
  362.  
  363.    A user's host-specific address can be obtained out-of-band, can be
  364.    learned via existing media agents, can be included in some mailers'
  365.    message headers, or can be recorded during previous invitation
  366.    interactions.
  367.  
  368.    Host-independent addresses contain a moniker (such as a civil name)
  369.    or user name and domain name that may not map into a single host.
  370.    [1]
  371.  
  372.    Host-independent addresses may use any unambiguous user name,
  373.    including aliases, identifying the called party as the user part of
  374.    the address. They may use a domain name having an MX [10], SRV [11]
  375.    or A [12] record for the host part.  These addresses may have
  376.    different degrees of location- and provider-independence and are
  377.    often chosen to be mnemonic. In many cases, the host-independent SIP
  378.    address can be the same as a user's electronic mail address, but this
  379.    is not required. SIP can thus leverage off the domain name system
  380.    (DNS) to provide a first-stage location mechanisms. Examples of
  381.    host-independent names include
  382.  
  383.      M.Handley@cs.ucl.ac.uk
  384.      H.G.Schulzrinne@ieee.org
  385.      info@ietf.org
  386.  
  387.  
  388.  
  389.    An address can designate an individual (possibly located at one of
  390.    several end systems), the first available person from a group of
  391.    individuals or a whole group. The form of the address, e.g.,
  392. _________________________
  393.   [1] We avoid the term  location-independent  ,  since
  394. the  address  may  indeed refer to a specific location,
  395. e.g., a company department.
  396.  
  397.  
  398.  
  399.  
  400. Handley/Schulzrinne/Schooler                                  [Page 7]
  401.  
  402.  
  403. Internet Draft                    SIP                      July 31, 1997
  404.  
  405.  
  406.    sales@example.com , is not sufficient, in general, to determine the
  407.    intent of the caller.
  408.  
  409.    If a user or service chooses to be reachable at an address that is
  410.    guessable from the person's name and organizational affiliation, the
  411.    traditional method of ensuring privacy by having an unlisted "phone"
  412.    number is compromised. However, unlike traditional telephony, SIP
  413.    offers authentication and access control mechanisms and can avail
  414.    itself of lower-layer security mechanisms, so that client software
  415.    can reject unauthorized or undesired call attempts.
  416.  
  417. 1.7 Locating a SIP Server
  418.  
  419.    Call setup may proceed in several phases. A SIP client MUST follow
  420.    the following steps to resolve the user part of a callee address. If
  421.    a client only supports TCP or UDP, but not both, the respective
  422.    address type is omitted.
  423.  
  424.         1.   If there is a SRV DNS resource record [11] of type sip.udp
  425.              , contact the listed SIP servers in order of preference
  426.              value using UDP as a transport protocol at the port number
  427.              listed in the DNS resource record.
  428.  
  429.         2.   If there is a SRV DNS resource record [11] of type sip.tcp
  430.              , contact the listed SIP servers in order of preference
  431.              value using TCP as a transport protocol at the port number
  432.              listed in the DNS resource record.
  433.  
  434.         3.   If there is a DNS MX record [10], contact the hosts listed
  435.              in their order of preference at the default port number
  436.              (TBD).  For each host listed, first try to contact the
  437.              server using UDP, then TCP.
  438.  
  439.         4.   Finally, check if there is a DNS CNAME or A record for the
  440.              given host and try to contact a SIP server at the one or
  441.              more addresses listed, again trying first UDP, then TCP.
  442.  
  443.         5.   If all of the above methods fail, the caller MAY contact an
  444.              SMTP server at the user's host and use the SMTP  EXPN
  445.              command to obtain an alternate address and repeat the steps
  446.              above. As a last resort, a client MAY choose to deliver the
  447.              session description to the callee using electronic mail.
  448.  
  449.    If a server is found using one of the methods below, the other
  450.    methods are not tried. A client SHOULD rely on ICMP "Port
  451.    Unreachable" messages rather than time-outs to determine that a
  452.    server is not reachable at a particular address. A client MAY cache
  453.    the result of the reachability steps, but SHOULD start at the
  454.  
  455.  
  456.  
  457. Handley/Schulzrinne/Schooler                                  [Page 8]
  458.  
  459.  
  460. Internet Draft                    SIP                      July 31, 1997
  461.  
  462.  
  463.    beginning of the sequence when the cached address fails.
  464.  
  465.    Implementation note for socket-based programs: For TCP, connect()
  466.    returns ECONNREFUSED if there is no server at the designated address;
  467.    for UDP, the socket should be bound to the destination address using
  468.    connect() rather than sendto() or similar.
  469.  
  470.  
  471.         This sequence is modeled after that described for SMTP,
  472.         where MX records are to be checked before A records [13].
  473.  
  474. 1.8 SIP Transactions
  475.  
  476.    Once the host part has been resolved to a SIP server, the client
  477.    sends one or more SIP requests to that server and receives one or
  478.    more responses from the server. If the invitation is SIP request is
  479.    an invitation, it contains a session description, for example written
  480.    in SDP format, that provides the called party with enough information
  481.    to join the session.
  482.  
  483.    If TCP is used, request and responses within a single SIP transaction
  484.    are carried over the same TCP connection. Thus, the client SHOULD
  485.    maintain the connection until a final response has been received.
  486.    Several SIP requests from the same client to the same server may use
  487.    the same TCP connection or may open a new connection for each
  488.    request. If the client sent the request sends via unicast UDP, the
  489.    response is sent to the source address of the UDP request. If the
  490.    request is sent via multicast UDP, the response is directed to the
  491.    same multicast address and destination port. For UDP, reliability is
  492.    achieved using retransmission (Section 11).
  493.  
  494.  
  495.         Need motivation why we ALWAYS want to have a multicast
  496.         return.
  497.  
  498.    The SIP message format and operation is independent of the transport
  499.    protocol.
  500.  
  501.    The basic message flow is shown in Fig. 1 and Fig. 2, for proxy and
  502.    redirect modes, respectively.
  503.  
  504.  
  505.  
  506. 1.9 Locating a User
  507.  
  508.    A callee may move between a number of different end systems over
  509.    time.  These locations can be dynamically registered with a location
  510.    server, typically for a single administrative domain, or a location
  511.  
  512.  
  513.  
  514. Handley/Schulzrinne/Schooler                                  [Page 9]
  515.  
  516.  
  517. Internet Draft                    SIP                      July 31, 1997
  518.  
  519.  
  520.  
  521.  
  522.  
  523.                                             +....... cs.columbia.edu .......+
  524.                                             :                               :
  525.                                             : (~~~~~~~~~~)                  :
  526.                                             : ( location )                  :
  527.                                             : ( service  )                  :
  528.                                             : (~~~~~~~~~~)                  :
  529.                                             :   ^      |                    :
  530.                                             :   |   hgs@play                :
  531.                                             :  2|     3|                    :
  532.                                             :   |      |                    :
  533.                                             : henning  |                    :
  534.    +.. cs.tu-berlin.de ..+ 1: INVITE        :   |      |                    :
  535.    :                     :    henning@cs.col:   |      | 4: INVITE  5: ring :
  536.    : cz@cs.tu-berlin.de ========================> tune  =========> play     :
  537.    :                    <........................       <.........          :
  538.    :                     : 7: 200 OK        :            6: 200 OK          :
  539.    +.....................+                  +...............................+
  540.  
  541.    ====> SIP request
  542.    ----> non-SIP protocols
  543.  
  544.  
  545.    Figure 1: Example of SIP proxy server
  546.  
  547.  
  548.    server may use other protocols, such as finger [14], rwho,
  549.    multicast-based protocols or operating-system dependent mechanism to
  550.    actively determine the end system where a user is reachable. The
  551.    location services yield a list of a zero or more possible locations,
  552.    possibly even sorted in order of likelihood of success.
  553.  
  554.    The location server can be part of the SIP server or the SIP server
  555.    may use a different protocol (e.g., finger [14] or LDAP [15]) to map
  556.    addresses. A single user may be registered at different locations,
  557.    either because she is logged in at several hosts simultaneously or
  558.    because the location server has (temporarily) inaccurate information.
  559.  
  560.    The action taken on receiving a list of locations varies with the
  561.    type of SIP server. A SIP redirect server simply returns the list to
  562.    the client sending the request as  Location headers (Section 6.17). A
  563.    SIP proxy server can sequentially try the addresses until the call is
  564.    successful (2xx response) or the callee has declined the call (40x
  565.    response). Alternatively, the server may issue several requests in
  566.    parallel. A proxy server can only issue more than one sequential or
  567.    parallel connection request if it is the first in the chain of hosts
  568.  
  569.  
  570.  
  571. Handley/Schulzrinne/Schooler                                 [Page 10]
  572.  
  573.  
  574. Internet Draft                    SIP                      July 31, 1997
  575.  
  576.  
  577.  
  578.  
  579.  
  580.                                             +....... cs.columbia.edu .......+
  581.                                             :                               :
  582.                                             : (~~~~~~~~~~)                  :
  583.                                             : ( location )                  :
  584.                                             : ( service  )                  :
  585.                                             : (~~~~~~~~~~)                  :
  586.                                             :   ^      |                    :
  587.                                             :   |   hgs@play                :
  588.                                             :  2|     3|                    :
  589.                                             :   |      |                    :
  590.                                             : henning  |                    :
  591.    +.. cs.tu-berlin.de ..+ 1: INVITE        :   |      |                    :
  592.    :                     :    henning@cs.col:   |      |                    :
  593.    : cz@cs.tu-berlin.de =======================>  tune                      :
  594.    :         ^ |        <.......................                            :
  595.    :         . |         : 4: 302 Moved     :                               :
  596.    +...........|.........+    hgs@play      :                               :
  597.              . |                            :                               :
  598.              . | 5: INVITE hgs@play.cs.columbia.edu                6: ring  :
  599.              . ==================================================> play     :
  600.              .....................................................          :
  601.                7: 200 OK                    :                               :
  602.                                             +...............................+
  603.  
  604.    ====> SIP request
  605.    ----> non-SIP protocols
  606.  
  607.  
  608.    Figure 2: Example of SIP redirect server
  609.  
  610.  
  611.    noted in the  Via header to do so. If it is not the first, it must
  612.    issue a redirect response.
  613.  
  614.    If a proxy server forwards a SIP request, it SHOULD add itself to the
  615.    end of the list of forwarders noted in the  Via (Section 6.31)
  616.    headers. A proxy server also notes whether it is attempting to reach
  617.    several possible locations at once ("connection forking"). The  Via
  618.    trace ensures that replies can take the same path back, thus ensuring
  619.    correct operation through compliant firewalls and loop-free requests.
  620.    On the reply path, each host most remove its Via, so that routing
  621.    internal information is hidden from the callee and outside networks.
  622.    When a multicast request is made, first the host making the request,
  623.    then the multicast address itself are added to the path.
  624.  
  625.  
  626.  
  627.  
  628. Handley/Schulzrinne/Schooler                                 [Page 11]
  629.  
  630.  
  631. Internet Draft                    SIP                      July 31, 1997
  632.  
  633.  
  634.    As discussed in Section 1.6, a SIP address may designate a group
  635.    rather than an individual. A client indicates using the  Reach
  636.    request header whether it wants to reach the first available
  637.    individual or treat the address as a group, to be invited as a whole.
  638.    The default is to attempt to reach the first available callee.  If
  639.    the address is designated as a group address, a proxy server MUST
  640.    return the list of individuals instead of attempting to connect to
  641.    these.
  642.  
  643.         Otherwise, the proxy cannot report errors and call status
  644.         appropriately.
  645.  
  646. 2 SIP Uniform Resource Locators
  647.  
  648.    SIP URLs are used within SIP messages to indicate the originator and
  649.    recipient of a SIP request, and to specify redirection addresses. A
  650.    SIP URL may be embedded in web pages or other hyperlinks to indicate
  651.    that a user or service may be called. Within SIP messages, an email
  652.    address could have been used, but this would have made it more
  653.    difficult to gateway between SIP and other protocols with other
  654.    addressing schemes.
  655.  
  656.    For greater functionality, because interaction with some resources
  657.    may require message headers or message bodies to be specified as well
  658.    as the SIP address, the sip URL scheme is extended to allow setting
  659.    SIP request-header fields and the SIP  message-body.
  660.  
  661.    A SIP URL follows the guidelines of RFC 1630 [16,17] and takes the
  662.    following form:
  663.  
  664.  
  665.  
  666.         SIP-URL            =    short-sip-url | full-sip-url
  667.         full-sip-url       =    "sip://" user [ ":" password ] "@" host
  668.                                 url-parameters [ headers ]
  669.         short-sip-url      =    user [ ":" password ] "@" host : port
  670.         user               =    ;  defined in RFC 1738 [18]
  671.         host               =    ;  defined in RFC 1738
  672.         port               =    *digit
  673.         url-parameters     =    *( ";" url-parameter)
  674.         url-parameter      =    transport-param |
  675.                                 ttl-param | maddr-param
  676.         transport-param    =    "transport=" ( "udp" | "tcp" )
  677.         ttl-param          =    "ttl=" ttl
  678.         ttl                =    1*3DIGIT                                     ; 0 to 255
  679.         maddr-param        =    "maddr=" maddr
  680.         maddr              =    ;  dotted decimal multicast address
  681.         headers            =    "?" header *( "                            " header )
  682.  
  683.  
  684.  
  685. Handley/Schulzrinne/Schooler                                 [Page 12]
  686.  
  687.  
  688. Internet Draft                    SIP                      July 31, 1997
  689.  
  690.  
  691.         header             =    hname "=" hvalue
  692.         hname              =    *urlc
  693.         hvalue             =    *urlc
  694.         urlc               =    ;  defined in [17]
  695.  
  696.  
  697.    Thus a SIP URL can take either a short form or a full form. The short
  698.    form MAY only be used within SIP messages where the scheme (SIP) can
  699.    be assumed. In all other cases, and when parameters are required to
  700.    be specified, the full form MUST be used.
  701.  
  702.    Note that all URL reserved characters must be encoded. The special
  703.    hname  "body" indicates that the associated  hvalue is the message-
  704.    body of the SIP  INVITE request. Within sip URLs, the characters
  705.    "?",  "=",  "&" are reserved.
  706.  
  707.    Examples of short and full form SIP URLs with identical address are:
  708.  
  709.      j.doe@big.com
  710.      sip://j.doe@big.com
  711.      sip://j.doe:secret@big.com;transport=tcp
  712.      sip://j.doe@big.com?subject=project
  713.  
  714.  
  715.  
  716.    The  password parameter allows to easily specify a call-back address
  717.    on a secure web page, but carries the same security risks as all
  718.    URL-based passwords and should only be used under special
  719.    circumstances where security requirements are low or all transport
  720.    paths are secured.
  721.  
  722.    Within a SIP message, URLs are used to indicate the source and
  723.    intended destination of a request, redirection addresses and the
  724.    current destination of a request. Normally all these fields will
  725.    contain SIP URLs. When additional parameters are not required, the
  726.    short form SIP URL can be used unambiguously.
  727.  
  728.    In some circumstances a non-SIP URL may be used in a SIP message. An
  729.    example might be making a call from a telephone which is relayed by a
  730.    gateway onto the internet as a SIP request. In such a case, the
  731.    source of the call is really the telephone number of the caller, and
  732.    so a SIP URL is inappropriate and a phone URL might be used instead.
  733.    Thus where SIP specifies user addresses it allows these addresses to
  734.    be URLs.
  735.  
  736.    Clearly not all URLs are appropriate to be used in a SIP message as a
  737.    user address. It is unlikely, for example, that HTTP or FTP URLs are
  738.    useful in this context. The correct behavior when an unknown scheme
  739.  
  740.  
  741.  
  742. Handley/Schulzrinne/Schooler                                 [Page 13]
  743.  
  744.  
  745. Internet Draft                    SIP                      July 31, 1997
  746.  
  747.  
  748.    is encountered by a SIP server is defined in the context of each of
  749.    the header fields that use a SIP URL.
  750.  
  751.    SIP URLs can define specific parameters of the request, including the
  752.    transport mechanism (UDP or TCP) and the use of multicast to make a
  753.    request. These parameters are added after the  host and are separated
  754.    by semi-colons. For example, to specify to call j.doe@big.com using
  755.    multicast to 239.255.255.1 with a ttl of 15, the following URL would
  756.    be used:
  757.  
  758.  
  759.      sip://j.doe@big.com;maddr=239.255.255.1;ttl=15
  760.  
  761.  
  762.  
  763.    The transport protocol UDP is to be assumed when a multicast address
  764.    is given.
  765.  
  766. 3 SIP Message Overview
  767.  
  768.    Since much of the message syntax is identical to HTTP/1.1, rather
  769.    than repeating it here we use [HX.Y] to refer to Section X.Y of the
  770.    current HTTP/1.1 specification [9]. In addition, we describe SIP in
  771.    both prose and an augmented Backus-Naur form (BNF) [H2.1] described
  772.    in detail in [19].
  773.  
  774.    All SIP messages are text-based and use HTTP/1.1 conventions [H4.1],
  775.    except for the additional ability of SIP to use UDP. When sent over
  776.    TCP or UDP, multiple SIP transactions can be carried in a single TCP
  777.    connection or UDP datagram. UDP datagrams, including all headers,
  778.    should not normally be larger than the path maximum transmission unit
  779.    (MTU) if the MTU is known, or 1500 bytes if the MTU is unknown.
  780.  
  781.  
  782.         The 1400 bytes accommodates lower-layer packet headers
  783.         within the "typical" MTU of around 1500 bytes. There are
  784.         few MTU values around 1 kB; the next value is 1006 bytes
  785.         for SLIP and 296 for low-delay PPP [20]. Recent studies
  786.         [21] indicate that an MTU of 1500 bytes is a reasonable
  787.         assumption. Thus, another reasonable value would be a
  788.         message size of 950 bytes, to accommodate packet headers
  789.         within the SLIP MTU without fragmentation.
  790.  
  791.    A SIP message is either a request from a client to a server, or a
  792.    response from a server to a client.
  793.  
  794.  
  795.         SIP-message = Request | Response  ; SIP messages
  796.  
  797.  
  798.  
  799. Handley/Schulzrinne/Schooler                                 [Page 14]
  800.  
  801.  
  802. Internet Draft                    SIP                      July 31, 1997
  803.  
  804.  
  805.    Both  Request (section 4) and  Response (section 5) messages use the
  806.    generic message format of RFC 822 [22] for transferring entities (the
  807.    payload of the message). Both types of message consist of a  start-
  808.    line, one or more header fields (also known as "headers"), an empty
  809.    line (i.e., a line with nothing preceding the carriage-return line-
  810.    feed ( CRLF)) indicating the end of the header fields, and an
  811.    optional message-body. To avoid confusion with similar-named headers
  812.    in HTTP, we refer to the header describing the message body as entity
  813.    headers.  These components are described in detail in the upcoming
  814.    sections.
  815.  
  816.  
  817.  
  818.         generic-message    =    start-line
  819.                                 *message-header
  820.                                 CRLF
  821.                                 [ message-body ]
  822.  
  823.         start-line         =    Request-Line | Status-Line
  824.  
  825.  
  826.  
  827.  
  828.         Request     =    Request-Line          ; Section 4.1
  829.                          *( general-header
  830.                          | request-header
  831.                          | entity-header )
  832.                          CRLF
  833.                          [ message-body ]
  834.  
  835.         Response    =    Status-Line           ; Section 5.1
  836.                          *( general-header
  837.                          | response-header
  838.                          | entity-header )
  839.                          CRLF
  840.                          [ message-body ]
  841.  
  842.  
  843.  
  844.    In the interest of robustness, any leading empty line(s) MUST be
  845.    ignored. In other words, if the  Request or  Response message begins
  846.    with a  CRLF, the  CRLF should be ignored.
  847.  
  848. 4 Request
  849.  
  850.    The  Request message format is shown below:
  851.  
  852.  
  853.  
  854.  
  855.  
  856. Handley/Schulzrinne/Schooler                                 [Page 15]
  857.  
  858.  
  859. Internet Draft                    SIP                      July 31, 1997
  860.  
  861.  
  862.  
  863.  
  864.    general-header     =     Call-ID                ; Section 6.11
  865.                       |     Date                   ; Section 6.14
  866.                       |     Expires                ; Section 6.15
  867.                       |     From                   ; Section 6.16
  868.                       |     Sequence               ; Section 6.26
  869.                       |     Via                    ; Section 6.31
  870.    entity-header      =     Content-Length         ; Section 6.12
  871.                       |     Content-Type           ; Section 6.13
  872.    request-header     =     Accept                 ; Section 6.6
  873.                       |     Accept-Language        ; Section 6.7
  874.                       |     Authorization          ; Section 6.9
  875.                       |     Organization           ; Section 6.18
  876.                       |     Priority               ; Section 6.20
  877.                       |     Proxy-Authorization    ; Section 6.22
  878.                       |     Reach                  ; Section 6.24
  879.                       |     Subject                ; Section 6.28
  880.                       |     To                     ; Section 6.29
  881.                       |     User-Agent             ; Section 6.30
  882.    response-header    =     Location               ; Section 6.17
  883.                       |     Proxy-Authenticate     ; Section 6.21
  884.                       |     Public                 ; Section 6.23
  885.                       |     Retry-After            ; Section 6.25
  886.                       |     Server                 ; Section 6.27
  887.                       |     Warning                ; Section 6.32
  888.                       |     WWW-Authenticate       ; Section 6.33
  889.  
  890.  
  891.    Table 1: SIP headers
  892.  
  893.         Request    =    Request-Line         ;  Section 4.1
  894.                         *( general-header
  895.                         | request-header
  896.                         | entity-header )
  897.                         CRLF
  898.                         [ message-body ]     ;  Section 8
  899.  
  900.  
  901. 4.1 Request-Line
  902.  
  903.    The  Request-Line begins with a method token, followed by the
  904.    Request-URI and the protocol version, and ending with  CRLF. The
  905.    elements are separated by  SP characters. No  CR or  LF are allowed
  906.    except in the final  CRLF sequence.
  907.  
  908.  
  909.         Request-Line = Method SP Request-URI SP SIP-Version CRLF
  910.  
  911.  
  912.  
  913. Handley/Schulzrinne/Schooler                                 [Page 16]
  914.  
  915.  
  916. Internet Draft                    SIP                      July 31, 1997
  917.  
  918.  
  919. 4.1.1 Methods
  920.  
  921.    The following methods are defined:
  922.  
  923.  
  924.  
  925.         method    =    "INVITE" | "CONNECTED" | "OPTIONS" | "BYE"
  926.                  |     "REGISTER" | "UNREGISTER"
  927.  
  928.  
  929.    INVITE: The user or service is being invited to participate in the
  930.         session. This method MUST be supported by a SIP server.
  931.  
  932.    CONNECTED: A  CONNECTED request confirms that the client has received
  933.         a successful response to an  INVITE request. See Section 11 for
  934.         details. This method MUST be supported by a SIP server.
  935.  
  936.    OPTIONS: The client is being queried as to its capabilities. A server
  937.         that believes it can contact the user, such as a user agent
  938.         where the user is logged in and has been recently active, MAY
  939.         respond to this request with a capability set. Support of this
  940.         method is OPTIONAL.
  941.  
  942.    BYE: The client indicates to the server that it wishes to abort the
  943.         call attempt. The leaving party can use a  Location header field
  944.         to indicate that the recipient of request should contact the
  945.         named address. This implements the "call transfer" telephony
  946.         functionality.  A client SHOULD also use this method to indicate
  947.         to the callee that it wishes to abort an on-going call attempt.
  948.  
  949.         With UDP, the caller has no other way to signal her intent
  950.         to drop the call attempt and the callee side will keep
  951.         "ringing".  When using TCP, a client MAY also close the
  952.         connection to abort a call attempt. Support of this method
  953.         is OPTIONAL.
  954.  
  955.    REGISTER: A client uses the  REGISTER method to register the address
  956.         listed in the request line to a SIP server. In the future, the
  957.         server MAY use the source address and port to forward SIP
  958.         requests to.  A server SHOULD silently drop the registration
  959.         after one hour, unless refreshed by the client. A server may set
  960.         or lower or higher refresh interval and indicate the interval
  961.         through the  Expires header (Section 6.15). A single address (if
  962.         host-independent) may be registered from several different
  963.         clients. Support of this method is OPTIONAL.
  964.  
  965.  
  966.         Beyond its use as a simple location service, this method is
  967.  
  968.  
  969.  
  970. Handley/Schulzrinne/Schooler                                 [Page 17]
  971.  
  972.  
  973. Internet Draft                    SIP                      July 31, 1997
  974.  
  975.  
  976.         needed if there are several SIP servers on a single host,
  977.         so that some cannot use the default port number. Each such
  978.         server would register with a server for the administrative
  979.         domain.
  980.  
  981.    UNREGISTER: A client cancels an existing registration established for
  982.         the  Request-URI with  REGISTER with the  UNREGISTER method. If
  983.         it unregisters a  Request-URI unknown to the servers, the server
  984.         returns a 200 (OK) response. Support of this method is OPTIONAL.
  985.  
  986.  
  987.         BYE and REGISTER are experimental and need to be discussed.
  988.  
  989.    Methods that are not supported by a proxy server SHOULD be treated by
  990.    that proxy as if they were an INVITE method, and relayed through
  991.    unchanged or cause a redirection as appropriate.
  992.  
  993.    Methods that are not supported by a server should cause a "501 Not
  994.    Implemented" response to be returned (Section 7).
  995.  
  996. 4.1.2 Request-URI
  997.  
  998.    The  Request-URI field is a SIP URL as described in Section 2 or a
  999.    general URI. It indicates the user or service that this request is
  1000.    being addressed to. Unlike the  To field, the  Request-URI field may
  1001.    be re-written by proxies. For example, a proxy may perform a lookup
  1002.    on the contents of the  To field to resolve a username from a mail
  1003.    alias, and then use this username as part of the  Request-URI field
  1004.    of requests it generates.
  1005.  
  1006.    If a SIP server receives a request contain a URI indicating a scheme
  1007.    other than SIP which that server does not understand, the server MUST
  1008.    return a "400 Bad Request" response. It MUST do this even if the To
  1009.    field contains a scheme it does understand.
  1010.  
  1011. 4.1.3 SIP Version
  1012.  
  1013.    Both request and response messages include the version of SIP in use,
  1014.    and basically follow [H3.1], with HTTP replaced by SIP. To be
  1015.    conditionally compliant with this specification, applications sending
  1016.    SIP messages MUST include a  SIP-Version of "SIP/2.0".
  1017.  
  1018. 5 Response
  1019.  
  1020.    After receiving and interpreting a request message, the recipient
  1021.    responds with a SIP response message. The response message format is
  1022.    shown below:
  1023.  
  1024.  
  1025.  
  1026.  
  1027. Handley/Schulzrinne/Schooler                                 [Page 18]
  1028.  
  1029.  
  1030. Internet Draft                    SIP                      July 31, 1997
  1031.  
  1032.  
  1033.         Response    =    Status-Line          ;  Section 5.1
  1034.                          *( general-header
  1035.                          | response-header
  1036.                          | entity-header )
  1037.                          CRLF
  1038.                          [ message-body ]     ;  Section 8
  1039.  
  1040.  
  1041.    [H6] applies except that  HTTP-Version is replaced by SIP-Version.
  1042.    Also, SIP defines additional response codes and does not use some
  1043.    HTTP codes.
  1044.  
  1045. 5.1 Status-Line
  1046.  
  1047.    The first line of a  Response message is the  Status-Line, consisting
  1048.    of the protocol version ((Section 4.1.3) followed by a numeric
  1049.    Status-Code and its associated textual phrase, with each element
  1050.    separated by SP characters. No  CR or LF is allowed except in the
  1051.    final  CRLF sequence.
  1052.  
  1053.  
  1054.         Status-Line = SIP-version SP Status-Code SP Reason-Phrase
  1055.         CRLF
  1056.  
  1057. 5.1.1 Status Codes and Reason Phrases
  1058.  
  1059.    The  Status-Code is a 3-digit integer result code that indicates the
  1060.    outcome of the attempt to understand and satisfy the request. The
  1061.    Reason-Phrase is intended to give a short textual description of the
  1062.    Status-Code. The  Status-Code is intended for use by automata,
  1063.    whereas the  Reason-Phrase is intended for the human user. The client
  1064.    is not required to examine or display the Reason-Phrase.
  1065.  
  1066.    We provide an overview of the  Status-Code below, and provide full
  1067.    definitions in section 7. The first digit of the Status-Code defines
  1068.    the class of response. The last two digits do not have any
  1069.    categorization role. SIP/2.0 allows 6 values for the first digit:
  1070.  
  1071.    1xx: Informational -- request received, continuing process;
  1072.  
  1073.    2xx: Success -- the action was successfully received, understood, and
  1074.         accepted;
  1075.  
  1076.    3xx: Redirection -- further action must be taken in order to complete
  1077.         the request;
  1078.  
  1079.    4xx: Client Error -- the request contains bad syntax or cannot be
  1080.         fulfilled at this server;
  1081.  
  1082.  
  1083.  
  1084. Handley/Schulzrinne/Schooler                                 [Page 19]
  1085.  
  1086.  
  1087. Internet Draft                    SIP                      July 31, 1997
  1088.  
  1089.  
  1090.    5xx: Server Error -- the server failed to fulfill an apparently valid
  1091.         request;
  1092.  
  1093.    6xx: Global Failure - the request is invalid at any server.
  1094.  
  1095.    Presented below are the individual values of the numeric response
  1096.    codes, and an example set of corresponding reason phrases for
  1097.    SIP/2.0. These reason phrases are only recommended; they may be
  1098.    replaced by local equivalents without affecting the protocol. Note
  1099.    that SIP adopts many HTTP/1.1 response codes. SIP/2.0 adds response
  1100.    codes in the range starting at x80 to avoid conflicts with newly
  1101.    defined HTTP response codes, and extends these response codes in the
  1102.    6xx range.
  1103.  
  1104.  
  1105.    SIP response codes are extensible. SIP applications are not required
  1106.    to understand the meaning of all registered response codes, though
  1107.    such understanding is obviously desirable. However, applications MUST
  1108.    understand the class of any response code, as indicated by the first
  1109.    digit, and treat any unrecognized response as being equivalent to the
  1110.    x00 response code of that class, with the exception that an
  1111.    unrecognized response MUST NOT be cached. For example, if a client
  1112.    receives an unrecognized response code of 431, it can safely assume
  1113.    that there was something wrong with its request and treat the
  1114.    response as if it had received a 400 response code. In such cases,
  1115.    user agents SHOULD present to the user the message body returned with
  1116.    the response, since that message body is likely to include human-
  1117.    readable information which will explain the unusual status.
  1118.  
  1119. 6 Header Field Definitions
  1120.  
  1121.    SIP header fields are similar to HTTP header fields in both syntax
  1122.    and semantics [H4.2], [H14]. In general the ordering of the header
  1123.    fields is not of importance (with the exception of  Via fields, see
  1124.    below), but proxies MUST NOT reorder or otherwise modify header
  1125.    fields other than by adding a new  Via field. This allows an
  1126.    authentication field to be added after the  Via fields that will not
  1127.    be invalidated by proxies.
  1128.  
  1129.    To,  From, and  Call-ID header MUST be present in each request with
  1130.    method  INVITE. The  Content-Type and Content-Length headers are
  1131.    required when there is a valid message body (of non-zero length)
  1132.    associated with the message (Section 8).
  1133.  
  1134.    A server MUST understand the  PEP-Require header.
  1135.  
  1136.    Other headers may be added as required; a server MAY ignore headers
  1137.    that it does not understand. A compact form of these header fields is
  1138.  
  1139.  
  1140.  
  1141. Handley/Schulzrinne/Schooler                                 [Page 20]
  1142.  
  1143.  
  1144. Internet Draft                    SIP                      July 31, 1997
  1145.  
  1146.  
  1147.  
  1148.    Status-Code       =    "100"                         ;  Trying
  1149.                     |     "180"                         ;  Ringing
  1150.                     |     "200"                         ;  OK
  1151.                     |     "300"                         ;  Multiple Choices
  1152.                     |     "301"                         ;  Moved Permanently
  1153.                     |     "302"                         ;  Moved Temporarily
  1154.                     |     "303"                         ;  See Other
  1155.                     |     "305"                         ;  Use Proxy
  1156.                     |     "380"                         ;  Alternative Service
  1157.                     |     "400"                         ;  Bad Request
  1158.                     |     "401"                         ;  Unauthorized
  1159.                     |     "402"                         ;  Payment Required
  1160.                     |     "403"                         ;  Forbidden
  1161.                     |     "404"                         ;  Not Found
  1162.                     |     "405"                         ;  Method Not Allowed
  1163.                     |     "407"                         ;  Proxy Authentication Required
  1164.                     |     "408"                         ;  Request Timeout
  1165.                     |     "409"                         ;  Conflict
  1166.                     |     "410"                         ;  Gone
  1167.                     |     "411"                         ;  Length Required
  1168.                     |     "412"                         ;  Precondition Failed
  1169.                     |     "413"                         ;  Request Message Body Too Large
  1170.                     |     "414"                         ;  Request-URI Too Large
  1171.                     |     "415"                         ;  Unsupported Media Type
  1172.                     |     "420"                         ;  Bad Extension
  1173.                     |     "480"                         ;  Temporarily not available
  1174.                     |     "500"                         ;  Internal Server Error
  1175.                     |     "501"                         ;  Not Implemented
  1176.                     |     "502"                         ;  Bad Gateway
  1177.                     |     "503"                         ;  Service Unavailable
  1178.                     |     "504"                         ;  Gateway Timeout
  1179.                     |     "505"                         ;  SIP Version not supported
  1180.                     |     "600"                         ;  Busy
  1181.                     |     "603"                         ;  Decline
  1182.                     |     "604"                         ;  Does not exist anywhere
  1183.                     |     "606"                         ;  Not Acceptable
  1184.                     |     extension-code
  1185.    extension-code    =    3DIGIT
  1186.    Reason-Phrase     =    *<TEXT,  excluding CR, LF>
  1187.  
  1188.  
  1189.    Figure 3: Status Codes
  1190.  
  1191.  
  1192.    also defined in Section 10 for use over UDP when the request has to
  1193.    fit into a single packet and size is an issue.
  1194.  
  1195.  
  1196.  
  1197.  
  1198. Handley/Schulzrinne/Schooler                                 [Page 21]
  1199.  
  1200.  
  1201. Internet Draft                    SIP                      July 31, 1997
  1202.  
  1203.  
  1204. 6.1 General Header Fields
  1205.  
  1206.    There are a few header fields that have general applicability for
  1207.    both request and response messages. These header fields apply only to
  1208.    the message being transmitted.
  1209.  
  1210.    General-header field names can be extended reliably only in
  1211.    combination with a change in the protocol version. However, new or
  1212.    experimental header fields may be given the semantics of general
  1213.    header fields if all parties in the communication recognize them to
  1214.    be general-header fields.
  1215.  
  1216. 6.2 Entity Header Fields
  1217.  
  1218.    Entity-header fields define meta-information about the message-body
  1219.    or, if no body is present, about the resource identified by the
  1220.    request. The term "entity header" is an HTTP 1.1 term where the reply
  1221.    body may contain a transformed version of the message body. The
  1222.    original message body is referred to as the "entity". We retain the
  1223.    same terminology for header fields but usually refer to the "message
  1224.    body" rather then the entity as the two are the same in SIP.
  1225.  
  1226. 6.3 Request Header Fields
  1227.  
  1228.    The  request-header fields allow the client to pass additional
  1229.    information about the request, and about the client itself, to the
  1230.    server. These fields act as request modifiers, with semantics
  1231.    equivalent to the parameters on a programming language method
  1232.    invocation.
  1233.  
  1234.    Request-header field names can be extended reliably only in
  1235.    combination with a change in the protocol version. However, new or
  1236.    experimental header fields MAY be given the semantics of request-
  1237.    header fields if all parties in the communication recognize them to
  1238.    be request-header fields. Unrecognized header fields are treated as
  1239.    entity-header fields.
  1240.  
  1241. 6.4 Response Header Fields
  1242.  
  1243.    The  response-header fields allow the server to pass additional
  1244.    information about the response which cannot be placed in the Status-
  1245.    Line. These header fields give information about the server and about
  1246.    further access to the resource identified by the Request-URI.
  1247.  
  1248.    Response-header field names can be extended reliably only in
  1249.    combination with a change in the protocol version. However, new or
  1250.    experimental header fields MAY be given the semantics of response-
  1251.    header fields if all parties in the communication recognize them to
  1252.  
  1253.  
  1254.  
  1255. Handley/Schulzrinne/Schooler                                 [Page 22]
  1256.  
  1257.  
  1258. Internet Draft                    SIP                      July 31, 1997
  1259.  
  1260.  
  1261.    be  response-header fields. Unrecognized header fields are treated as
  1262.    entity-header fields.
  1263.  
  1264. 6.5 Header Field Format
  1265.  
  1266.    Header fields ( general-header,  request-header, response-header, and
  1267.    entity-header) follow the same generic header format as that given in
  1268.    Section 3.1 of RFC 822 [22].
  1269.  
  1270.    Each header field consists of a name followed by a colon (":") and
  1271.    the field value. Field names are case-insensitive. The field value
  1272.    may be preceded by any amount of leading white space (LWS), though a
  1273.    single space (SP) is preferred. Header fields can be extended over
  1274.    multiple lines by preceding each extra line with at least one  SP or
  1275.    horizontal tab (HT). Applications SHOULD follow HTTP "common form"
  1276.    when generating these constructs, since there might exist some
  1277.    implementations that fail to accept anything beyond the common forms.
  1278.  
  1279.  
  1280.  
  1281.         message-header    =    field-name ":" [ field-value ] CRLF
  1282.         field-name        =    token
  1283.         field-value       =    *( field-content | LWS )
  1284.         field-content     =    < the OCTETs  making up the field-value
  1285.                                 and consisting of either *TEXT or combinations
  1286.                                 of token, tspecials, and quoted-string>
  1287.  
  1288.  
  1289.    The order in which header fields are received is not significant if
  1290.    the header fields have different field names. Multiple header fields
  1291.    with the same field-name may be present in a message if and only if
  1292.    the entire field-value for that header field is defined as a comma-
  1293.    separated list (i.e., #(values) ). It MUST be possible to combine the
  1294.    multiple header fields into one "field-name: field-value" pair,
  1295.    without changing the semantics of the message, by appending each
  1296.    subsequent field-value to the first, each separated by a comma. The
  1297.    order in which header fields with the same field-name are received is
  1298.    therefore significant to the interpretation of the combined field
  1299.    value, and thus a proxy MUST NOT change the order of these field
  1300.    values when a message is forwarded.
  1301.  
  1302.    Field names are not case-sensitive, although their values may be.
  1303.  
  1304. 6.6 Accept
  1305.  
  1306.    See [H14.1]. This request header field is used only with the OPTIONS
  1307.    request to indicate what description formats are acceptable.
  1308.  
  1309.  
  1310.  
  1311.  
  1312. Handley/Schulzrinne/Schooler                                 [Page 23]
  1313.  
  1314.  
  1315. Internet Draft                    SIP                      July 31, 1997
  1316.  
  1317.  
  1318.    Example:
  1319.  
  1320.  
  1321.      Accept: application/sdp;level=1, application/x-private
  1322.  
  1323.  
  1324.  
  1325. 6.7 Accept-Language
  1326.  
  1327.    See [H14.4]. The  Accept-Language request header can be used to allow
  1328.    the client to indicate to the server in which language it would
  1329.    prefer to receive reason phrases. This may also be used as a hint by
  1330.    the proxy as to which destination to connect the call to (e.g., for
  1331.    selecting a human operator).
  1332.  
  1333.    Example:
  1334.  
  1335.  
  1336.      Accept-Language: da, en-gb;q=0.8, en;q=0.7
  1337.  
  1338.  
  1339.  
  1340. 6.8 Allow
  1341.  
  1342.    See [H14.7].
  1343.  
  1344. 6.9 Authorization
  1345.  
  1346.    See [H14.8].
  1347.  
  1348. 6.10 Authentication
  1349.  
  1350.    Authentication fields provide a digital signature of the remaining
  1351.    fields for authentication purposes. They are not yet defined The use
  1352.    of authentication headers is optional. If used, authentication
  1353.    headers MUST be added to the header after the  Via fields and before
  1354.    the rest of the fields.
  1355.  
  1356.  
  1357.         HS: Should probably re-use S/MIME here rather than invent
  1358.         our own. Maybe better to fold into Authorization field.
  1359.  
  1360. 6.11 Call-ID
  1361.  
  1362.    The  Call-ID uniquely identifies a particular invitation. Note that a
  1363.    single multimedia conference may give rise to several calls, e.g., if
  1364.    a user invites several different people. Calls to different callee
  1365.    MUST always use different  Call-IDs unless they are the result of a
  1366.  
  1367.  
  1368.  
  1369. Handley/Schulzrinne/Schooler                                 [Page 24]
  1370.  
  1371.  
  1372. Internet Draft                    SIP                      July 31, 1997
  1373.  
  1374.  
  1375.    proxy server "forking" a single request.
  1376.  
  1377.    The  Call-ID may be any URL-encoded string that can be guaranteed to
  1378.    be globally unique for the duration of the request. Using the
  1379.    initiator's IP-address, process id, and instance (if more than one
  1380.    request is being made simultaneously) satisfies this requirement.
  1381.  
  1382.    The form  local-id@host is recommended, where  host is either the
  1383.    fully qualified domain name or a globally routable IP address, and
  1384.    local-id depends on the application and operating system of the host,
  1385.    but is an ID that can be guaranteed to be unique during this session
  1386.    initiation request.
  1387.  
  1388.  
  1389.  
  1390.         Call-ID    =     ( "Call-ID" | "i" ) ":" atom "@" host
  1391.  
  1392.  
  1393.    Example:
  1394.  
  1395.      Call-ID: 9707211351.AA08181@foo.bar.com
  1396.  
  1397.  
  1398.  
  1399. 6.12 Content-Length
  1400.  
  1401.    The  Content-Length entity-header field indicates the size of the
  1402.    message-body, in decimal number of octets, sent to the recipient.
  1403.  
  1404.  
  1405.         Content-Length = "Content-Length" ":" 1*DIGIT
  1406.  
  1407.    An example is
  1408.  
  1409.      Content-Length: 3495
  1410.  
  1411.  
  1412.  
  1413.    Applications SHOULD use this field to indicate the size of the
  1414.    message-body to be transferred, regardless of the media type of the
  1415.    entity. Any  Content-Length greater than or equal to zero is a valid
  1416.    value. If no body is present in a message, then the Content-Length
  1417.    header MAY be omitted or set to zero.  Section 8 describes how to
  1418.    determine the length of the message body.
  1419.  
  1420. 6.13 Content-Type
  1421.  
  1422.    The  Content-Type entity-header field indicates the media type of the
  1423.  
  1424.  
  1425.  
  1426. Handley/Schulzrinne/Schooler                                 [Page 25]
  1427.  
  1428.  
  1429. Internet Draft                    SIP                      July 31, 1997
  1430.  
  1431.  
  1432.    message-body sent to the recipient.
  1433.  
  1434.  
  1435.         Content-Type = "Content-Type" ":" media-type
  1436.  
  1437.    An example of the field is
  1438.  
  1439.      Content-Type: application/sdp
  1440.  
  1441.  
  1442.  
  1443. 6.14 Date
  1444.  
  1445.    See [H14.19].
  1446.  
  1447.  
  1448.         The  Date header field is useful for simple devices without
  1449.         their own clock.
  1450.  
  1451. 6.15 Expires
  1452.  
  1453.    The  Expires header field gives the date/time after which the
  1454.    registration expires.
  1455.  
  1456.    This header field is currently defined only for the  REGISTER and
  1457.    INVITE methods.  For  REGISTER, it is a response-header field and
  1458.    allows the server to indicate when the client has to re-register. For
  1459.    INVITE, it is a request-header with which the callee can limit the
  1460.    validity of an invitation. (For example, if a client wants to limit
  1461.    how long a search should take at most or when a conference being
  1462.    invited to is time-limited. A user interface may take this is as a
  1463.    hint to leave the invitation window on the screen even if the user is
  1464.    not currently at the workstation.)
  1465.  
  1466.    The value of this field can be either an  HTTP-date or an integer
  1467.    number of seconds (in decimal), measured from the receipt of the
  1468.    request.
  1469.  
  1470.  
  1471.         Expires = "Expires" ":" ( HTTP-date | delta-seconds )
  1472.  
  1473.    Two example of its use are
  1474.  
  1475.      Expires: Thu, 01 Dec 1994 16:00:00 GMT
  1476.      Expires: 5
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483. Handley/Schulzrinne/Schooler                                 [Page 26]
  1484.  
  1485.  
  1486. Internet Draft                    SIP                      July 31, 1997
  1487.  
  1488.  
  1489. 6.16 From
  1490.  
  1491.    Requests MUST and responses SHOULD contain a  From header field,
  1492.    indicating the invitation initiator. The field MUST be a SIP URL as
  1493.    defined in Section 2. Only a single initiator and a single invited
  1494.    user are allowed to be specified in a single SIP request.  The sense
  1495.    of  To and  From header fields is maintained from request to
  1496.    response, i.e., if the  From header is sip://bob@example.edu in the
  1497.    request then it is MUST also be sip://bob@example.edu in the response
  1498.    to that request.
  1499.  
  1500.    The  From field is a URL and not a simple SIP address (Section 1.6
  1501.    address to allow a gateway to relay a call into a SIP request and
  1502.    still produce an appropriate  From field.  An example might be a
  1503.    telephone call relayed into a SIP request where the from field might
  1504.    contain a  phone:// URL. Normally however this field will contain a
  1505.    sip:// URL in either the long or short form.
  1506.  
  1507.    If a SIP agent or proxy receives a request sourced  From a URL
  1508.    indicating a scheme other that SIP that is unknown to it, this MUST
  1509.    NOT be treated as an error.
  1510.  
  1511.  
  1512.         From = ( "From" | "f" ) ":" *1( ( SIP-URL | URL ) [ comment
  1513.         ] )
  1514.  
  1515.    Example:
  1516.  
  1517.  
  1518.      From: mjh@isi.edu (Mark Handley)
  1519.  
  1520.  
  1521.  
  1522. 6.17 Location
  1523.  
  1524.    The  Location response header can be used with a 2xx or 3xx response
  1525.    codes to indicate a new location to try. It contains a SIP URL giving
  1526.    the new location or username to try, or may simply specify addition
  1527.    transport parameters. For example, a "301 Moved Permanently" response
  1528.    SHOULD contain a  Location field containing the SIP URL giving the
  1529.    new location and username to try. However, a "302 Moved Temporarily"
  1530.    MAY give simply the same location and username that was being tried
  1531.    but specify additional transport parameters such as a multicast
  1532.    address to try or a change of transport from UDP to TCP or vice
  1533.    versa.
  1534.  
  1535.    A user agent or redirect server sending a definitive, positive
  1536.    response (2xx), SHOULD insert a  Location response header indicating
  1537.  
  1538.  
  1539.  
  1540. Handley/Schulzrinne/Schooler                                 [Page 27]
  1541.  
  1542.  
  1543. Internet Draft                    SIP                      July 31, 1997
  1544.  
  1545.  
  1546.    the SIP address under which it is reachable most directly for future
  1547.    SIP requests. This may be the address of the server itself or that of
  1548.    a proxy (e.g., if the host is behind a firewall).
  1549.  
  1550.  
  1551.  
  1552.         Location              =    ( "Location" | "m" ) ( SIP-URL | URL )
  1553.                                    *( ";" location-params )
  1554.         extension-name       =     token
  1555.         extension-value      =     *( token | quoted-string | LWS | extension-specials)
  1556.         extension-specials   =      < any element of  tspecials except <"> >
  1557.         language-tag         =     <  see [H3.10] >
  1558.         service-tag          =     "fax" | "IP" | "PSTN" | "ISDN" | "pager" | "voice-mail
  1559.                                    | "attendant"
  1560.         media-tag            =      < see SDP: "audio" | "video" | ...
  1561.         feature-list         =      to be determined
  1562.  
  1563.  
  1564.  
  1565.    location-params       =    "q"                     "="    qvalue
  1566.                          |    "mobility"              "="    ( "fixed" | "mobile" )
  1567.                          |    "class"                 "="    ( "personal" | "business" )
  1568.                          |    "language"              "="    1# language-tag
  1569.                          |    "service"               "="    1# service-tag
  1570.                          |    "media"                 "="    1# media-tag
  1571.                          |    "features"              "="    1# feature-list
  1572.                          |    "description"           "="    quoted-string
  1573.                          |    "duplex"                "="    ( "full" | "half" | "receive-only" |
  1574.                                                              "send-only" )
  1575.                          |    extension-attributes
  1576.    extension-attribute   =    extension-name          "="    extension-value
  1577.  
  1578.  
  1579.    Examples:
  1580.  
  1581.  
  1582.      Location: sip://hgs@erlang.cs.columbia.edu ;service=IP,voice-mail
  1583.                ;media=audio ;duplex=full ;q=0.7
  1584.      Location: phone://1-415-555-1212 ; service=ISDN;mobility=fixed;
  1585.                language=en,es,iw ;q=0.5
  1586.      Location: phone://1-800-555-1212 ; service=pager;mobility=mobile;
  1587.                duplex=send-only;media=text; q=0.1
  1588.  
  1589.  
  1590.  
  1591.    Attributes which are unknown should be omitted. New tags for class-
  1592.    tag and  service-tag can be registered with IANA. The media tag uses
  1593.    Internet media types, e.g., audio, video, application/x-wb, etc. This
  1594.  
  1595.  
  1596.  
  1597. Handley/Schulzrinne/Schooler                                 [Page 28]
  1598.  
  1599.  
  1600. Internet Draft                    SIP                      July 31, 1997
  1601.  
  1602.  
  1603.    is meant for indicating general communication capability, sufficient
  1604.    for the caller to choose an appropriate address.
  1605.  
  1606. 6.18 Organization
  1607.  
  1608.    The Organization request-header fields conveys the name of the
  1609.    organization to which the callee belongs. It may be inserted by
  1610.    proxies at the boundary of an organization and may be used by client
  1611.    software to filter calls.
  1612.  
  1613. 6.19 PEP
  1614.  
  1615.    This corresponds to the  PEP header in the "Protocol Extension
  1616.    Protocol" defined in RFC XXXX. The Protocol Extension Protocol (PEP)
  1617.    is an extension mechanism designed to accommodate dynamic extension
  1618.    of applications such as SIP clients and servers by software
  1619.    components.  The  PEP general header declares new headers and whether
  1620.    an application must or may understand them. Servers MUST parse this
  1621.    field and MUST return "420 Bad Extension" when there is a PEP
  1622.    extension of strength "must" (see RFC XXXX) that they do not
  1623.    understand.
  1624.  
  1625. 6.20 Priority
  1626.  
  1627.    The priority request header signals the urgency of the call to the
  1628.    callee.
  1629.  
  1630.  
  1631.  
  1632.         Priority          =    "Priority" ":" priority-value
  1633.         priority-value    =    "urgent" | "normal" | "non-urgent"
  1634.  
  1635.  
  1636.    Example:
  1637.  
  1638.  
  1639.      Subject: A tornado is heading our way!
  1640.      Priority: urgent
  1641.  
  1642.  
  1643.  
  1644. 6.21 Proxy-Authenticate
  1645.  
  1646.    See [H14.33].
  1647.  
  1648. 6.22 Proxy-Authorization
  1649.  
  1650.    See [H14.34].
  1651.  
  1652.  
  1653.  
  1654. Handley/Schulzrinne/Schooler                                 [Page 29]
  1655.  
  1656.  
  1657. Internet Draft                    SIP                      July 31, 1997
  1658.  
  1659.  
  1660. 6.23 Public
  1661.  
  1662.    See [H14.35].
  1663.  
  1664. 6.24 Reach
  1665.  
  1666.    The  Reach request header field allows the client to indicate whether
  1667.    it wants to reach the group identified by the user part of the
  1668.    address (value "all") or the first available individual (value
  1669.    "first"). If not present, a value of "first" is implied. The "do-
  1670.    not-forward" request prohibits proxies from forwarding the call to
  1671.    another individual (e.g., the call is personal or the caller does not
  1672.    want to be shunted to a secretary if the line is busy.)  Section 1.6
  1673.    describes the behavior of proxy servers when resolving group aliases.
  1674.  
  1675.  
  1676.         Reach = "Reach" ":" 1#( "first" | "all" ) ( "do-not-
  1677.         forward" )
  1678.  
  1679.    Example:
  1680.  
  1681.      Reach: first, do-not-forward
  1682.  
  1683.  
  1684.  
  1685.  
  1686.         HS: This header is experimental.
  1687.  
  1688. 6.25 Retry-After
  1689.  
  1690.    The  Retry-After response header field can be used with a "503
  1691.    Service Unavailable" response to indicate how long the service is
  1692.    expected to be unavailable to the requesting client and with a "404
  1693.    Not Found" or "451 Busy" response to indicate when the called party
  1694.    may be available again. The value of this field can be either an
  1695.    HTTP-date or an integer number of seconds (in decimal) after the time
  1696.    of the response.
  1697.  
  1698.  
  1699.         Retry-After = "Retry-After" ":" ( HTTP-date | delta-seconds
  1700.         )
  1701.  
  1702.    Two examples of its use are
  1703.  
  1704.      Retry-After: Mon, 21 Jul 1997 18:48:34 GMT
  1705.      Retry-After: 120
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711. Handley/Schulzrinne/Schooler                                 [Page 30]
  1712.  
  1713.  
  1714. Internet Draft                    SIP                      July 31, 1997
  1715.  
  1716.  
  1717.    In the latter example, the delay is 2 minutes.
  1718.  
  1719. 6.26 Sequence
  1720.  
  1721.    The  Sequence header field MAY be added by a SIP client making a
  1722.    request if it needs to distinguish responses to several consecutive
  1723.    requests sent with the same  Call-ID. A  Sequence field contains a
  1724.    single decimal sequence number chosen by the requesting client.
  1725.    Consecutive different requests made with the same  Call-ID MUST
  1726.    contain strictly monotonically increasing sequence numbers although
  1727.    the sequence space MAY NOT be contiguous. A server responding to a
  1728.    request containing a sequence number MUST echo the sequence number
  1729.    back in the response.
  1730.  
  1731.  
  1732.         Sequence = "Sequence" ":" 1*DIGIT
  1733.  
  1734.    Sequence header fields are NOT needed for SIP requests using the
  1735.    INVITE or  OPTIONS methods but may be needed for future methods.
  1736.  
  1737.    Example:
  1738.  
  1739.  
  1740.      Sequence: 4711
  1741.  
  1742.  
  1743.  
  1744. 6.27 Server
  1745.  
  1746.    See [H14.39].
  1747.  
  1748. 6.28 Subject
  1749.  
  1750.    This is intended to provide a summary, or indicate the nature, of the
  1751.    call, allowing call filtering without having to parse the session
  1752.    description. (Also, the session description may not necessarily use
  1753.    the same subject indication as the invitation.)
  1754.  
  1755.  
  1756.         Subject = ( "Subject" | "s" ) ":" *text
  1757.  
  1758.    Example:
  1759.  
  1760.  
  1761.      Subject: Tune in - they are talking about your work!
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768. Handley/Schulzrinne/Schooler                                 [Page 31]
  1769.  
  1770.  
  1771. Internet Draft                    SIP                      July 31, 1997
  1772.  
  1773.  
  1774. 6.29 To
  1775.  
  1776.    The  To request header field specifies the invited user, with the
  1777.    same SIP URL syntax as the  From field.
  1778.  
  1779.  
  1780.         To = ( "To" | "t" ) ":" ( SIP-URL | URL ) [ comment ]
  1781.  
  1782.    If a SIP server receives a request destined  To a URL indicating a
  1783.    scheme other than SIP and that is unknown to it, the server returns a
  1784.    "400 bad request" response.
  1785.  
  1786.    Example:
  1787.  
  1788.      To: sip://operator@cs.columbia.edu (The Operator)
  1789.  
  1790.  
  1791.  
  1792. 6.30 User-Agent
  1793.  
  1794.    See [H14.42].
  1795.  
  1796. 6.31 Via
  1797.  
  1798.    The  Via field indicates the path taken by the request so far.  This
  1799.    prevents request looping and ensures replies take the same path as
  1800.    the requests, which assists in firewall traversal and other unusual
  1801.    routing situations.
  1802.  
  1803.    In the request path, an initiator MUST add its own  Via field to each
  1804.    request. This  Via field MUST be the first field in the request. Each
  1805.    subsequent client or proxy that sends the message onwards MUST add
  1806.    its own additional  Via field, which MUST be added before any
  1807.    existing  Via fields. Additionally, if the message goes to a
  1808.    multicast address, an extra  Via field is added before all the others
  1809.    giving the multicast address and TTL.
  1810.  
  1811.    In the return path,  Via fields are processed by a proxy or client
  1812.    according to the following rules:
  1813.  
  1814.         o If the first  Via field in the reply received is the client's
  1815.          or server's local address, remove the  Via field and process
  1816.          the reply.
  1817.  
  1818.         o If the first  Via field in a reply you are going to send is a
  1819.          multicast address, remove that  Via field before sending to the
  1820.          multicast address.
  1821.  
  1822.  
  1823.  
  1824.  
  1825. Handley/Schulzrinne/Schooler                                 [Page 32]
  1826.  
  1827.  
  1828. Internet Draft                    SIP                      July 31, 1997
  1829.  
  1830.  
  1831.    These rules ensure that a client or proxy server only has to check
  1832.    the first  Via field in a reply to see if it needs processing.
  1833.  
  1834.    When a reply passes through a proxy on the reverse path, that proxies
  1835.    Via field MUST be removed from the reply.
  1836.  
  1837.    The format for a  Via header is:
  1838.  
  1839.  
  1840.         Via                   =    ( "Via" | "v") ":" 1#( sent-protocol sent-by
  1841.                                    *( ";" via-params ) [ comment ] )
  1842.         via-params            =    "ttl" "=" ttl
  1843.                              |     "fanout"
  1844.         sent-protocol         =    [ protocol-name "/" ] protocol-version
  1845.         [ "/" transport ]
  1846.         protocol-name         =    "SIP" | token
  1847.         protocol-version      =    token
  1848.         transport             =    "UDP" | "TCP"
  1849.         sent-by               =    host [ ":" port ]
  1850.         ttl                   =    1*3DIGIT                                         ; 0 to 255
  1851.  
  1852.  
  1853.    The "ttl" parameter is included only if the address is a multicast
  1854.    address. The "fanout" parameter indicates that this proxy has
  1855.    initiated several connection attempts and that subsequent proxies
  1856.    should not do the same.
  1857.  
  1858.    Example:
  1859.  
  1860.  
  1861.      Via: SIP/2.0/UDP first.example.com:4000 ;fanout
  1862.  
  1863.  
  1864.  
  1865. 6.32 Warning
  1866.  
  1867.    The  Warning response-header field is used to carry additional
  1868.    information about the status of a response. Warning headers are sent
  1869.    with responses using:
  1870.  
  1871.  
  1872.  
  1873.         Warning          =    "Warning" ":" 1#warning-value
  1874.         warning-value    =    warn-code SP warn-agent SP warn-text
  1875.         warn-code        =    2DIGIT
  1876.         warn-agent       =    ( host [ ":" port ] ) | pseudonym
  1877.                               ;  the name or pseudonym of the server adding
  1878.                               ;  the Warning header, for use in debugging
  1879.  
  1880.  
  1881.  
  1882. Handley/Schulzrinne/Schooler                                 [Page 33]
  1883.  
  1884.  
  1885. Internet Draft                    SIP                      July 31, 1997
  1886.  
  1887.  
  1888.         warn-text        =    quoted-string
  1889.  
  1890.  
  1891.    A response may carry more than one  Warning header.
  1892.  
  1893.    The  warn-text should be in a natural language and character set that
  1894.    is most likely to be intelligible to the human user receiving the
  1895.    response. This decision may be based on any available knowledge, such
  1896.    as the location of the cache or user, the  Accept-Language field in a
  1897.    request, the  Content-Language field in a response, etc. The default
  1898.    language is English and the default character set is ISO- 8859-1.
  1899.  
  1900.    Any server may add  Warning headers to a response. New Warning
  1901.    headers should be added after any existing  Warning headers. A proxy
  1902.    server MUST NOT delete any  Warning header that it received with a
  1903.    response.
  1904.  
  1905.    When multiple  Warning headers are attached to a response, the user
  1906.    agent SHOULD display as many of them as possible, in the order that
  1907.    they appear in the response. If it is not possible to display all of
  1908.    the warnings, the user agent should follow these heuristics:
  1909.  
  1910.         o Warnings that appear early in the response take priority over
  1911.          those appearing later in the response.
  1912.  
  1913.         o Warnings in the user's preferred character set take priority
  1914.          over warnings in other character sets but with identical
  1915.          warn-codes and  warn-agents.
  1916.  
  1917.    Systems that generate multiple  Warning headers should order them
  1918.    with this user agent behavior in mind.
  1919.  
  1920.    Example:
  1921.  
  1922.  
  1923.      Warning: 606.4 isi.edu Multicast not available
  1924.      Warning: 606.2 isi.edu Incompatible protocol (RTP/XXP)
  1925.  
  1926.  
  1927.  
  1928. 6.33 WWW-Authenticate
  1929.  
  1930.    See [H14.46].
  1931.  
  1932. 7 Status Code Definitions
  1933.  
  1934.    The response codes are consistent with, and extend, HTTP/1.1 response
  1935.    codes. Not all HTTP/1.1 response codes are appropriate, and only
  1936.  
  1937.  
  1938.  
  1939. Handley/Schulzrinne/Schooler                                 [Page 34]
  1940.  
  1941.  
  1942. Internet Draft                    SIP                      July 31, 1997
  1943.  
  1944.  
  1945.    those that are appropriate are given here. Response codes not defined
  1946.    by HTTP/1.1 have codes x80 upwards to avoid clashes with future HTTP
  1947.    response codes. Also, SIP defines a new class, 6xx. The default
  1948.    behavior for unknown response codes is given for each category of
  1949.    codes.
  1950.  
  1951. 7.1 Informational 1xx
  1952.  
  1953.    Informational responses indicate that the server or proxy contacted
  1954.    is performing some further action and does not yet have a definitive
  1955.    response. The client SHOULD wait for a further response from the
  1956.    server, and the server SHOULD send such a response without further
  1957.    prompting. If UDP transport is being used, the client SHOULD
  1958.    periodically re-send the request in case the final response is lost.
  1959.    Typically a server should send a "1xx" response if it expects to take
  1960.    more than one second to obtain a final reply.
  1961.  
  1962. 7.1.1 100 Trying
  1963.  
  1964.    Some further action is being taken (e.g., the request is being
  1965.    forwarded) but the user has not yet been located.
  1966.  
  1967. 7.1.2 180 Ringing
  1968.  
  1969.    The user agent or conference server has located a possible location
  1970.    where the user has been recently and is trying to alert them.
  1971.  
  1972. 7.2 Successful 2xx
  1973.  
  1974.    The request was successful and MUST terminate a search.
  1975.  
  1976. 7.2.1 200 OK
  1977.  
  1978.    The request was successful in contacting the user, and the user has
  1979.    agreed to participate.
  1980.  
  1981. 7.3 Redirection 3xx
  1982.  
  1983.    3xx responses give information about the user's new location, or
  1984.    about alternative services that may be able to satisfy the call.
  1985.    They SHOULD terminate an existing search, and MAY cause the initiator
  1986.    to begin a new search if appropriate.
  1987.  
  1988. 7.3.1 300 Multiple Choices
  1989.  
  1990.    The requested resource corresponds to any one of a set of
  1991.    representations, each with its own specific location, and agent-
  1992.    driven negotiation (i.e., controlled by the SIP client) is being
  1993.  
  1994.  
  1995.  
  1996. Handley/Schulzrinne/Schooler                                 [Page 35]
  1997.  
  1998.  
  1999. Internet Draft                    SIP                      July 31, 1997
  2000.  
  2001.  
  2002.    provided so that the user (or user agent) can select a preferred
  2003.    communication end point and redirect its request to that location.
  2004.  
  2005.    The response SHOULD include an entity containing a list of resource
  2006.    characteristics and location(s) from which the user or user agent can
  2007.    choose the one most appropriate. The entity format is specified by
  2008.    the media type given in the  Content-Type header field. Depending
  2009.    upon the format and the capabilities of the user agent, selection of
  2010.    the most appropriate choice may be performed automatically. However,
  2011.    this specification does not define any standard for such automatic
  2012.    selection.
  2013.  
  2014.    The choices SHOULD also be listed as  Location fields (Section 6.17).
  2015.    Unlike HTTP, the SIP response may contain several  Location fields.
  2016.    User agents MAY use the  Location field value for automatic
  2017.    redirection or MAY ask the user to confirm a choice.
  2018.  
  2019. 7.3.2 301 Moved Permanently
  2020.  
  2021.    The requesting client should retry on the new address given by the
  2022.    Location field because the user has permanently moved and the address
  2023.    this response is in reply to is no longer a current address for the
  2024.    user. A 301 response MUST NOT suggest any of the hosts in the  Via
  2025.    path of the request as the user's new location.
  2026.  
  2027. 7.3.3 302 Moved Temporarily
  2028.  
  2029.    The requesting client should retry on the new address(es) given by
  2030.    the Location header. A 302 response MUST NOT suggest any of the hosts
  2031.    in the  Via path of the request as the user's new location.
  2032.  
  2033. 7.3.4 380 Alternative Service
  2034.  
  2035.    The call was not successful, but alternative services are possible.
  2036.    The alternative services are described in the message body of the
  2037.    response.
  2038.  
  2039. 7.4 Request Failure 4xx
  2040.  
  2041.    4xx responses are definite failure responses from a particular
  2042.    server.  The client SHOULD NOT retry the same request without
  2043.    modification (e.g., adding appropriate authorization). However, the
  2044.    same request to a different server may be successful.
  2045.  
  2046. 7.4.1 400 Bad Request
  2047.  
  2048.    The request could not be understood due to malformed syntax.
  2049.  
  2050.  
  2051.  
  2052.  
  2053. Handley/Schulzrinne/Schooler                                 [Page 36]
  2054.  
  2055.  
  2056. Internet Draft                    SIP                      July 31, 1997
  2057.  
  2058.  
  2059. 7.4.2 401 Unauthorized
  2060.  
  2061.    The request requires user authentication.
  2062.  
  2063. 7.4.3 402 Payment Required
  2064.  
  2065.    Reserved for future use.
  2066.  
  2067. 7.4.4 403 Forbidden
  2068.  
  2069.    The server understood the request, but is refusing to fulfill it.
  2070.    Authorization will not help, and the request should not be repeated.
  2071.  
  2072. 7.4.5 404 Not Found
  2073.  
  2074.    The server has definitive information that the user does not exist at
  2075.    the domain specified in the  Request-URI.
  2076.  
  2077. 7.4.6 405 Method Not Allowed
  2078.  
  2079.    The method specified in the  Request-Line is not allowed for the
  2080.    address identified by the  Request-URI. The response MUST include an
  2081.    Allow header containing a list of valid methods for the indicated
  2082.    address.
  2083.  
  2084. 7.4.7 407 Proxy Authentication Required
  2085.  
  2086.    This code is similar to 401 (Unauthorized), but indicates that the
  2087.    client MUST first authenticate itself with the proxy. The proxy MUST
  2088.    return a  Proxy-Authenticate header field (section 6.21) containing a
  2089.    challenge applicable to the proxy for the requested resource. The
  2090.    client MAY repeat the request with a suitable Proxy-Authorization
  2091.    header field (section 6.22). SIP access authentication is explained
  2092.    in section [H11].
  2093.  
  2094.    This status code should be used for applications where access to the
  2095.    communication channel (e.g., a telephony gateway) rather than the
  2096.    callee herself requires authentication.
  2097.  
  2098. 7.4.8 408 Request Timeout
  2099.  
  2100.    The client did not produce a request within the time that the server
  2101.    was prepared to wait. The client MAY repeat the request without
  2102.    modifications at any later time.
  2103.  
  2104. 7.4.9 420 Bad Extension
  2105.  
  2106.    The server did not understand the protocol extension specified with
  2107.  
  2108.  
  2109.  
  2110. Handley/Schulzrinne/Schooler                                 [Page 37]
  2111.  
  2112.  
  2113. Internet Draft                    SIP                      July 31, 1997
  2114.  
  2115.  
  2116.    strength "must".
  2117.  
  2118. 7.4.10 480 Temporarily Unavailable
  2119.  
  2120.    The callee's end system was contacted successfully but the callee is
  2121.    currently unavailable (e.g., not logged in or logged in in such a
  2122.    manner as to preclude communication with the callee). The response
  2123.    may indicate a better time to call in the  Retry-After header. The
  2124.    user may also be available elsewhere (unbeknownst to this host),
  2125.    thus, this response does terminate any searches.
  2126.  
  2127. 7.5 Server Failure 5xx
  2128.  
  2129.    5xx responses are failure responses given when a server itself has
  2130.    erred. They are not definitive failures, and SHOULD NOT terminate a
  2131.    search if other possible locations remain untried.
  2132.  
  2133. 7.5.1 500 Server Internal Error
  2134.  
  2135.    The server encountered an unexpected condition that prevented it from
  2136.    fulfilling the request.
  2137.  
  2138. 7.5.2 501 Not implemented
  2139.  
  2140.    The server does not support the functionality required to fulfill the
  2141.    request. This is the appropriate response when the server does not
  2142.    recognize the request method and is not capable of supporting it for
  2143.    any user.
  2144.  
  2145. 7.5.3 502 Bad Gateway
  2146.  
  2147.    The server, while acting as a gateway or proxy, received an invalid
  2148.    response from the upstream server it accessed in attempting to
  2149.    fulfill the request.
  2150.  
  2151. 7.5.4 503 Service Unavailable
  2152.  
  2153.    The server is currently unable to handle the request due to a
  2154.    temporary overloading or maintenance of the server. The implication
  2155.    is that this is a temporary condition which will be alleviated after
  2156.    some delay. If known, the length of the delay may be indicated in a
  2157.    Retry-After header. If no  Retry-After is given, the client SHOULD
  2158.    handle the response as it would for a 500 response.
  2159.  
  2160.    Note: The existence of the 503 status code does not imply that a
  2161.    server must use it when becoming overloaded. Some servers may wish to
  2162.    simply refuse the connection.
  2163.  
  2164.  
  2165.  
  2166.  
  2167. Handley/Schulzrinne/Schooler                                 [Page 38]
  2168.  
  2169.  
  2170. Internet Draft                    SIP                      July 31, 1997
  2171.  
  2172.  
  2173. 7.5.5 504 Gateway Timeout
  2174.  
  2175.    The server, while acting as a gateway, did not receive a timely
  2176.    response from the upstream server (e.g., a location server) it
  2177.    accessed in attempting to complete the request.
  2178.  
  2179. 7.6 Global Failures
  2180.  
  2181.    6xx responses indicate that a server has definitive information about
  2182.    a particular user, not just the particular instance indicated in the
  2183.    Request-URI. All further searches for this user are doomed to failure
  2184.    and pending searches SHOULD be terminated.
  2185.  
  2186. 7.6.1 600 Busy
  2187.  
  2188.    The callee's end system was contacted successfully but the callee is
  2189.    busy and does not wish to take the call at this time. The response
  2190.    may indicate a better time to call in the  Retry-After header. If the
  2191.    callee does not wish to reveal the reason for declining the call, the
  2192.    callee should use status code 680 instead.
  2193.  
  2194. 7.6.2 603 Decline
  2195.  
  2196.    The callee's machine was successfully contacted but the user
  2197.    explicitly does not wish to participate. The response may indicate a
  2198.    better time to call in the  Retry-After header.
  2199.  
  2200. 7.6.3 604 Does not exist anywhere
  2201.  
  2202.    The server has authoritative information that the user indicated in
  2203.    the To request field does not exist anywhere. Searching for the user
  2204.    elsewhere will not yield any results.
  2205.  
  2206. 7.6.4 606 Not Acceptable
  2207.  
  2208.    The user's agent was contacted successfully but some aspects of the
  2209.    session profile (the requested media, bandwidth, or addressing style)
  2210.    were not acceptable.
  2211.  
  2212.    A "606 Not Acceptable" reply means that the user wishes to
  2213.    communicate, but cannot adequately support the session described. The
  2214.    "604 Not Acceptable" reply MAY contain a list of reasons in a Warning
  2215.    header describing why the session described cannot be supported.
  2216.    These reasons can be one or more of:
  2217.  
  2218.    606.1 Insufficient Bandwidth: The bandwidth specified in the session
  2219.         description or defined by the media exceeds that known to be
  2220.         available.
  2221.  
  2222.  
  2223.  
  2224. Handley/Schulzrinne/Schooler                                 [Page 39]
  2225.  
  2226.  
  2227. Internet Draft                    SIP                      July 31, 1997
  2228.  
  2229.  
  2230.    606.2 Incompatible Protocol: One or more protocols described in the
  2231.         request are not available.
  2232.  
  2233.    606.3 Incompatible Format: One or more media formats described in the
  2234.         request is not available.
  2235.  
  2236.    606.4 Multicast not available: The site where the user is located
  2237.         does not support multicast.
  2238.  
  2239.    606.5 Unicast not available: The site where the user is located does
  2240.         not support unicast communication (usually due to the presence
  2241.         of a firewall).
  2242.  
  2243.    Other reasons are likely to be added later. It is hoped that
  2244.    negotiation will not frequently be needed, and when a new user is
  2245.    being invited to join a pre-existing lightweight session, negotiation
  2246.    may not be possible. It is up to the invitation initiator to decide
  2247.    whether or not to act on a "606 Not Acceptable" reply.
  2248.  
  2249. 8 SIP Message Body
  2250.  
  2251.    The session description body gives details of the session the user is
  2252.    being invited to join. Its Internet media type MUST be given by the
  2253.    Content-type header field, and the body length in bytes MUST be given
  2254.    by the  Content-Length header field. If the body has undergone any
  2255.    encoding (such as compression) then this MUST be indicated by the
  2256.    Content-encoding header field, otherwise Content-encoding MUST be
  2257.    omitted.
  2258.  
  2259.    If required, the session description can be encrypted using public
  2260.    key cryptography, and then can also carry private session keys for
  2261.    the session. If this is the case, four random bytes are added to the
  2262.    beginning of the session description before encryption and are
  2263.    removed after decryption but before parsing.
  2264.  
  2265. 8.1 Body Inclusion
  2266.  
  2267.    For a request message, the presence of a body is signaled by the
  2268.    inclusion of a  Content-Length header. A body may be included in a
  2269.    request only when the request method allows one.
  2270.  
  2271.    For response messages, whether or not a body is included is dependent
  2272.    on both the request method and the response message's response code.
  2273.    All 1xx informational responses MUST NOT include a body. All other
  2274.    responses MAY include a payload, although it may be of zero length.
  2275.  
  2276. 8.2 Message Body Length
  2277.  
  2278.  
  2279.  
  2280.  
  2281. Handley/Schulzrinne/Schooler                                 [Page 40]
  2282.  
  2283.  
  2284. Internet Draft                    SIP                      July 31, 1997
  2285.  
  2286.  
  2287.    If no body is present in a message, then the  Content-Length header
  2288.    MAY be omitted or set to zero. When a body is included, its length in
  2289.    bytes is indicated in the  Content-Length header and is determined by
  2290.    one of the following:
  2291.  
  2292.         1.   Any response message which MUST NOT include a body (such as
  2293.              the 1xx responses) is always terminated by the first empty
  2294.              line after the header fields, regardless if any  entity-
  2295.              header fields are present.
  2296.  
  2297.         2.   Otherwise, a  Content-Length header MUST be present (this
  2298.              requirement differs from HTTP/1.1). Its value in bytes
  2299.              represents the length of the message body.
  2300.  
  2301.    The "chunked" transfer encoding of HTTP/1.1 MUST NOT be used for SIP.
  2302.  
  2303. 9 Examples
  2304.  
  2305. 9.1 Invitation
  2306.  
  2307. 9.1.1 Request
  2308.  
  2309.    The example below is a request message en route from initiator to
  2310.    invitee:
  2311.  
  2312.  
  2313.    C->S: INVITE schooler@vlsi.cs.caltech.edu SIP/2.0
  2314.          Via: SIP/2.0/UDP 239.128.16.254 16
  2315.          Via: SIP/2.0/UDP 131.215.131.131
  2316.          Via: SIP/2.0/UDP 128.16.64.19
  2317.          From: mjh@isi.edu (Mark Handley)
  2318.          Subject: SIP will be discussed, too
  2319.          To: schooler@cs.caltech.edu (Eve Schooler)
  2320.          Call-ID: 62729-27@oregon.isi.edu
  2321.          Content-type: application/sdp
  2322.          Content-Length: 187
  2323.  
  2324.          v=0
  2325.          o=user1 53655765 2353687637 IN IP4 128.3.4.5
  2326.          s=Mbone Audio
  2327.          i=Discussion of Mbone Engineering Issues
  2328.          e=mbone@somewhere.com
  2329.          c=IN IP4 224.2.0.1/127
  2330.          t=0 0
  2331.          m=audio 3456 RTP/AVP 0
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337.  
  2338. Handley/Schulzrinne/Schooler                                 [Page 41]
  2339.  
  2340.  
  2341. Internet Draft                    SIP                      July 31, 1997
  2342.  
  2343.  
  2344.    The first line above states that this is a SIP version 2.0 request.
  2345.  
  2346.    The  Via fields give the hosts along the path from invitation
  2347.    initiator (the first element of the list) towards the invitee. In the
  2348.    example above, the message was last multicast to the administratively
  2349.    scoped group 239.128.16.254 with a ttl of 16 from the host
  2350.    131.215.131.131
  2351.  
  2352.    The request header above states that the request was initiated by
  2353.    mjh@isi.edu the host 128.16.64.19 schooler@cs.caltech.edu is being
  2354.    invited; the message is currently being routed to
  2355.    schooler@vlsi.cs.caltech.edu
  2356.  
  2357.    In this case, the session description is using the Session
  2358.    Description Protocol (SDP), as stated in the  Content-type header.
  2359.  
  2360.    The header is terminated by an empty line and is followed by a
  2361.    message body containing the session description.
  2362.  
  2363. 9.1.2 Reply
  2364.  
  2365.    The called user agent, directly or indirectly through proxy servers,
  2366.    indicates that it is alerting ("ringing") the called party:
  2367.  
  2368.  
  2369.    S->C: SIP/2.0 180 Ringing
  2370.          Via: SIP/2.0/UDP 239.128.16.254 16
  2371.          Via: SIP/2.0/UDP 131.215.131.131
  2372.          Via: SIP/2.0/UDP 128.16.64.19 1
  2373.          From: mjh@isi.edu
  2374.          Call-ID: 62729-27@128.16.64.19
  2375.          Location: sip://es@jove.cs.caltech.edu
  2376.  
  2377.  
  2378.  
  2379.    A sample reply to the invitation is given below. The first line of
  2380.    the reply states the SIP version number, that it is a "200 OK" reply,
  2381.    which means the request was successful. The  Via headers are taken
  2382.    from the request, and entries are removed hop by hop as the reply
  2383.    retraces the path of the request. A new authentication field MAY be
  2384.    added by the invited user's agent if required. The  Call-ID is taken
  2385.    directly from the original request, along with the remaining fields
  2386.    of the request message. The original sense of  From field is
  2387.    preserved (i.e., it is the session initiator).
  2388.  
  2389.    In addition, the  Location header gives details of the host where the
  2390.    user was located, or alternatively the relevant proxy contact point
  2391.    which should be reachable from the caller's host.
  2392.  
  2393.  
  2394.  
  2395. Handley/Schulzrinne/Schooler                                 [Page 42]
  2396.  
  2397.  
  2398. Internet Draft                    SIP                      July 31, 1997
  2399.  
  2400.  
  2401.    S->C: SIP/2.0 200 OK
  2402.          Via: SIP/2.0/UDP 239.128.16.254 16
  2403.          Via: SIP/2.0/UDP 131.215.131.131
  2404.          Via: SIP/2.0/UDP 128.16.64.19 1
  2405.          From: mjh@isi.edu
  2406.          To: schooler@cs.caltech.edu
  2407.          Call-ID: 62729-27@128.16.64.19
  2408.          Location: sip://es@jove.cs.caltech.edu
  2409.  
  2410.  
  2411.  
  2412.    For two-party Internet phone calls, the response must contain a
  2413.    description of where to send data to, for example the reply from
  2414.    schooler to mjh :
  2415.  
  2416.  
  2417.    S->C: SIP/2.0 200 OK
  2418.          Via: SIP/2.0/UDP 239.128.16.254 16
  2419.          Via: SIP/2.0/UDP 131.215.131.131
  2420.          Via: SIP/2.0/UDP 128.16.64.19 1
  2421.          From: mjh@isi.edu
  2422.          To: schooler@cs.caltech.edu
  2423.          Call-ID: 62729-27@128.16.64.19
  2424.          Location: sip://es@jove.cs.caltech.edu
  2425.          Content-Length: 102
  2426.  
  2427.          v=0
  2428.          o=schooler 4858949 4858949 IN IP4 192.1.2.3
  2429.          t=0 0
  2430.          m=audio 5004 RTP/AVP 0
  2431.          c=IN IP4 131.215.131.147
  2432.  
  2433.  
  2434.  
  2435.    The caller confirms the invitation by sending a request to the
  2436.    location named in the  Location header:
  2437.  
  2438.  
  2439.    C->S: CONNECTED schooler@jove.cs.caltech.edu SIP/2.0
  2440.          From: mjh@isi.edu
  2441.          To: schooler@cs.caltech.edu
  2442.          Call-ID: 62729-27@128.16.64.19
  2443.  
  2444.  
  2445.  
  2446. 9.1.3 Aborting a Call
  2447.  
  2448.    If the caller wants to abort a pending call, it sends a  BYE request.
  2449.  
  2450.  
  2451.  
  2452. Handley/Schulzrinne/Schooler                                 [Page 43]
  2453.  
  2454.  
  2455. Internet Draft                    SIP                      July 31, 1997
  2456.  
  2457.  
  2458.    C->S: BYE schooler@jove.cs.caltech.edu
  2459.          From: mjh@isi.edu
  2460.          To: schooler@cs.caltech.edu
  2461.          Call-ID: 62729-27@128.16.64.19
  2462.  
  2463.  
  2464.  
  2465. 9.1.4 Redirects
  2466.  
  2467.    Replies with response codes "301 Moved Permanently" or "302 Moved
  2468.    Temporarily" SHOULD specify another location using the  Location
  2469.    field.
  2470.  
  2471.  
  2472.    S->C: SIP/2.0 302 Moved temporarily
  2473.          Via: SIP/2.0/UDP 131.215.131.131
  2474.          Via: SIP/2.0/UDP 128.16.64.19
  2475.          From: mjh@isi.edu
  2476.          To: schooler@cs.caltech.edu
  2477.          Call-ID: 62729-27@128.16.64.19
  2478.          Location: sip://239.128.16.254;ttl=16;transport=udp
  2479.          Content-length: 0
  2480.  
  2481.  
  2482.  
  2483.    In this example, the proxy located at 131.215.131.131 is being
  2484.    advised to contact the multicast group 239.128.16.254 with a ttl of
  2485.    16 and UDP transport. In normal situations, a server would not
  2486.    suggest a redirect to a local multicast group unless, as in the above
  2487.    situation, it knows that the previous proxy or client is within the
  2488.    scope of the local group. If the request is redirected to a multicast
  2489.    group, a proxy server SHOULD query the multicast address itself
  2490.    rather than sending the redirect back towards the client as multicast
  2491.    may be scoped; this allows a proxy within the appropriate scope
  2492.    regions to make the query.
  2493.  
  2494. 9.1.5 Alternative Services
  2495.  
  2496.    An example of a "350 Alternative Service" reply is:
  2497.  
  2498.  
  2499.    S->C: SIP/2.0 350 Alternative Service
  2500.          Via: SIP/2.0/UDP 131.215.131.131
  2501.          Via: SIP/2.0/UDP 128.16.64.19
  2502.          From: mjh@isi.edu
  2503.          To: schooler@cs.caltech.edu
  2504.          Call-ID: 62729-27@128.16.64.19
  2505.          Location: recorder@131.215.131.131
  2506.  
  2507.  
  2508.  
  2509. Handley/Schulzrinne/Schooler                                 [Page 44]
  2510.  
  2511.  
  2512. Internet Draft                    SIP                      July 31, 1997
  2513.  
  2514.  
  2515.          Content-type: application/sdp
  2516.          Content-length: 146
  2517.  
  2518.          v=0
  2519.          o=mm-server 2523535 0 IN IP4 131.215.131.131
  2520.          s=Answering Machine
  2521.          i=Leave an audio message
  2522.          c=IN IP4 131.215.131.131
  2523.          t=0 0
  2524.          m=audio 12345 RTP/AVP 0
  2525.  
  2526.  
  2527.  
  2528.    In this case, the answering server provides a session description
  2529.    that describes an "answering machine". If the invitation initiator
  2530.    decides to take advantage of this service, it should send an
  2531.    invitation request to the answering machine at 131.215.131.131 with
  2532.    the session description provided (modified as appropriate for a
  2533.    unicast session to contain the appropriate local address and port for
  2534.    the invitation initiator). This request SHOULD contain a different
  2535.    Call-ID from the one in the original request. An example would be:
  2536.  
  2537.  
  2538.    C->S: INVITE mm-server@131.215.131.131 SIP/2.0
  2539.          Via: SIP/2.0/UDP 128.16.64.19
  2540.          From: mjh@isi.edu
  2541.          To: schooler@cs.caltech.edu
  2542.          Call-ID: 62729-28@128.16.64.19
  2543.          Content-type: application/sdp
  2544.          Content-length: 146
  2545.  
  2546.          v=0
  2547.          o=mm-server 2523535 0 IN IP4 131.215.131.131
  2548.          s=Answering Machine
  2549.          i=Leave an audio message
  2550.          c=IN IP4 128.16.64.19
  2551.          t=0 0
  2552.          m=audio 26472 RTP/AVP 0
  2553.  
  2554.  
  2555.  
  2556.    Invitation initiators MAY choose to treat a "350 Alternative Service"
  2557.    reply as a failure if they wish to do so.
  2558.  
  2559. 9.1.6 Negotiation
  2560.  
  2561.    An example of a "606 Not Acceptable" reply is:
  2562.  
  2563.  
  2564.  
  2565.  
  2566. Handley/Schulzrinne/Schooler                                 [Page 45]
  2567.  
  2568.  
  2569. Internet Draft                    SIP                      July 31, 1997
  2570.  
  2571.  
  2572.    S->C: SIP/2.0 606 Not Acceptable
  2573.          From: mjh@isi.edu
  2574.          To: schooler@cs.caltech.edu
  2575.          Call-ID:62729-27@128.16.64.19
  2576.          Location: mjh@131.215.131.131
  2577.          Warning: 606.1 Insufficient bandwidth (only have ISDN),
  2578.            606.3 Incompatible format,
  2579.            606.4 Multicast not available
  2580.          Content-Type: application/sdp
  2581.          Content-Length: 50
  2582.  
  2583.          v=0
  2584.          s=Lets talk
  2585.          b=CT:128
  2586.          c=IN IP4 131.215.131.131
  2587.          m=audio 3456 RTP/AVP 7 0 13
  2588.          m=video 2232 RTP/AVP 31
  2589.  
  2590.  
  2591.  
  2592.    In this example, the original request specified 256 kb/s total
  2593.    bandwidth, and the reply states that only 128 kb/s is available. The
  2594.    original request specified GSM audio, H.261 video, and WB whiteboard.
  2595.    The audio coding and whiteboard are not available, but the reply
  2596.    states that DVI, PCM or LPC audio could be supported in order of
  2597.    preference. The reply also states that multicast is not available.
  2598.    In such a case, it might be appropriate to set up a transcoding
  2599.    gateway and re-invite the user.
  2600.  
  2601. 9.2 OPTIONS Request
  2602.  
  2603.    A caller Alice can use an  OPTIONS request to find out the
  2604.    capabilities of a potential callee Bob, without "ringing" the
  2605.    designated address. In this case, Bob indicates that he can be
  2606.    reached at three different addresses, ranging from voice-over-IP to a
  2607.    PSTN phone to a pager.
  2608.  
  2609.  
  2610.    C->S: OPTIONS bob@example.com SIP/2.0
  2611.          From: alice@anywhere.org (Alice)
  2612.          To: bob@example.com (Bob)
  2613.          Accept: application/sdp
  2614.  
  2615.    S->C: SIP/2.0 200 OK
  2616.          Location: sip://bob@host.example.com ;service=IP,voice-mail
  2617.                    ;media=audio ;duplex=full ;q=0.7
  2618.          Location: phone://1-415-555-1212 ; service=ISDN;mobility=fixed;
  2619.                    language=en,es,iw ;q=0.5
  2620.  
  2621.  
  2622.  
  2623. Handley/Schulzrinne/Schooler                                 [Page 46]
  2624.  
  2625.  
  2626. Internet Draft                    SIP                      July 31, 1997
  2627.  
  2628.  
  2629.          Location: phone://1-800-555-1212 ; service=pager;mobility=mobile;
  2630.                    duplex=send-only;media=text; q=0.1
  2631.  
  2632.  
  2633.  
  2634.    Alternatively, Bob could have returned a description of
  2635.  
  2636.    C->S: OPTIONS bob@example.com SIP/2.0
  2637.          From: alice@anywhere.org (Alice)
  2638.          To: bob@example.com (Bob)
  2639.          Accept: application/sdp
  2640.  
  2641.    S->C: SIP/2.0 200 OK
  2642.          Content-Length: 81
  2643.          Content-Type: application/sdp
  2644.  
  2645.          v=0
  2646.          m=audio 0 RTP/AVP 0 1 3 99
  2647.          m=video 0 RTP/AVP 29 30
  2648.          a:rtpmap:98 SX7300/8000
  2649.  
  2650.  
  2651.  
  2652. 10 Compact Form
  2653.  
  2654.    When SIP is carried over UDP with authentication and a complex
  2655.    session description, it may be possible that the size of a request or
  2656.    reply is larger than the MTU. To reduce this problem, a more compact
  2657.    form of SIP is also defined by using alternative names for common
  2658.    header fields.  These short forms are NOT abbreviations, they are
  2659.    field names. No other abbreviations are allowed.
  2660.  
  2661.  
  2662.    short field name    long field name      note
  2663.    c                    Content-Type
  2664.    e                    Content-Encoding
  2665.    f                    From
  2666.    i                    Call-ID
  2667.    l                    Content-Length
  2668.    m                    Location            from "moved"
  2669.    s                    Subject
  2670.    t                    To
  2671.    v                    Via
  2672.  
  2673.  
  2674.    Thus the header in section 9.1 could also be written:
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680. Handley/Schulzrinne/Schooler                                 [Page 47]
  2681.  
  2682.  
  2683. Internet Draft                    SIP                      July 31, 1997
  2684.  
  2685.  
  2686.      INVITE schooler@vlsi.caltech.edu SIP/2.0
  2687.      v:SIP/2.0/UDP 239.128.16.254 16
  2688.      v:SIP/2.0/UDP 131.215.131.131
  2689.      v:SIP/2.0/UDP 128.16.64.19
  2690.      f:mjh@isi.edu
  2691.      t:schooler@cs.caltech.edu
  2692.      i:62729-27@128.16.64.19
  2693.      c:application/sdp
  2694.      l:187
  2695.  
  2696.      v=0
  2697.      o=user1 53655765 2353687637 IN IP4 128.3.4.5
  2698.      s=Mbone Audio
  2699.      i=Discussion of Mbone Engineering Issues
  2700.      e=mbone@somewhere.com
  2701.      c=IN IP4 224.2.0.1/127
  2702.      t=0 0
  2703.      m=audio 3456 RTP/AVP 0
  2704.  
  2705.  
  2706.  
  2707.    Mixing short field names and long field names is allowed, but not
  2708.    recommended. Servers MUST accept both short and long field names for
  2709.    requests. Proxies MUST NOT translate a request between short and long
  2710.    forms if authentication fields are present.
  2711.  
  2712. 11 SIP Transport
  2713.  
  2714.    SIP is defined so it can use either UDP or TCP as a transport
  2715.    protocol.
  2716.  
  2717. 11.1 Achieving Reliability For UDP Transport
  2718.  
  2719. 11.1.1 General Operation
  2720.  
  2721.    SIP assumes no additional reliability from IP. Requests or replies
  2722.    may be lost. A SIP client SHOULD simply retransmit a SIP request
  2723.    periodically with timer T1 (default value of T1: once a second) until
  2724.    it receives a response, or until it has reached a set limit on the
  2725.    number of retransmissions. The default limit is 20.
  2726.  
  2727.    SIP requests and replies are matched up by the client using the
  2728.    Call-ID header field; thus, a server can only have one outstanding
  2729.    request per call at any given time.
  2730.  
  2731.  
  2732.         HS: A transaction or request ID would remove this
  2733.         limitation.
  2734.  
  2735.  
  2736.  
  2737. Handley/Schulzrinne/Schooler                                 [Page 48]
  2738.  
  2739.  
  2740. Internet Draft                    SIP                      July 31, 1997
  2741.  
  2742.  
  2743.    If the reply is a provisional response, the initiating client SHOULD
  2744.    continue retransmitting the request, albeit less frequently, using
  2745.    timer T2. The default retransmission interval T2 is 5 seconds.
  2746.  
  2747.    After the server sends a final response, it cannot be sure the client
  2748.    has received the response, and thus SHOULD cache the results for at
  2749.    least 30 seconds to avoid having to, for example, contact the user or
  2750.    user location server again upon receiving a retransmission.
  2751.  
  2752. 11.1.2 INVITE
  2753.  
  2754.    Special considerations apply for the  INVITE method.
  2755.  
  2756.         1.   After receiving an invitation, considerable time may elapse
  2757.              before the server can determine the outcome. For example,
  2758.              the called party may be "rung" or extensive searches may be
  2759.              performed, so delays can reach several tens of seconds.
  2760.  
  2761.         2.   It is possible that the invitation request reaches the
  2762.              callee and the callee is willing to take the call, but that
  2763.              the final response (200 OK, in this case) is lost on the
  2764.              way to the caller. If the session still exists but the
  2765.              initiator gives up on including the user, the contacted
  2766.              user has sufficient information to be able to join the
  2767.              session. However, if the session no longer exists because
  2768.              the invitation initiator "hung up" before the reply arrived
  2769.              and the session was to be two-way, the conferencing system
  2770.              should be prepared to deal with this circumstance.
  2771.  
  2772.         3.   If a telephony user interface is modeled or if we need to
  2773.              interface to the PSTN, the caller will provide "ringback",
  2774.              a signal that the callee is being alerted. Once the callee
  2775.              picks up, the caller needs to know so that it can enable
  2776.              the voice path and stop ringback.  The callee's response to
  2777.              the invitation could get lost. Unless the response is
  2778.              transmitted reliably, the caller will continue to hear
  2779.              ringback while the callee assumes that the call exists.
  2780.  
  2781.         4.   The client has to be able to terminate an on-going request,
  2782.              e.g., because it is no longer willing to wait for the
  2783.              connection or search to succeed. One cannot rely on the
  2784.              absence of request retransmission, since the server would
  2785.              have to continue honoring the request for several request
  2786.              retransmission periods, that is, possible tens of seconds
  2787.              if only one or two packets can be lost.
  2788.  
  2789.    The first problem is solved by indicating progress to the caller: the
  2790.    server returns a provisional response indicating it is searching or
  2791.  
  2792.  
  2793.  
  2794. Handley/Schulzrinne/Schooler                                 [Page 49]
  2795.  
  2796.  
  2797. Internet Draft                    SIP                      July 31, 1997
  2798.  
  2799.  
  2800.    ringing the user.
  2801.  
  2802.    The server retransmits the final response at intervals of T3 (default
  2803.    value of T3 = 2 seconds) until it receives a  CONNECTED request for
  2804.    the same  Call-ID or until it has retransmitted the final response 10
  2805.    times. The  CONNECTED request is acknowledged only once. If the
  2806.    request is syntactically valid and the  Request-URI matches that in
  2807.    the  INVITED request with the same  Call-ID, the server answers with
  2808.    status code 200, otherwise with status code 400.
  2809.  
  2810.    Fig. 4 and 5 show the client and server state diagram for
  2811.    invitations.
  2812.  
  2813.  
  2814.  
  2815. 11.2 Connection Management for TCP
  2816.  
  2817.    A single TCP connection can serve one or more SIP transactions. A
  2818.    transaction contains zero or more provisional responses followed by
  2819.    exactly one final response.
  2820.  
  2821.    The client MAY close the connection at any time. Closing the
  2822.    connection before receiving a final response signals that the client
  2823.    wishes to abort the request.
  2824.  
  2825.    The server SHOULD NOT close the TCP connection until it has sent its
  2826.    final response, at which point it MAY close the TCP connection if it
  2827.    wishes to. However, normally it is the client's responsibility to
  2828.    close the connection.
  2829.  
  2830.    If the server leaves the connection open, and if the client so
  2831.    desires it may re-use the connection for further SIP requests or for
  2832.    requests from the same family of protocols (such as HTTP or stream
  2833.    control commands).
  2834.  
  2835. 12 Behavior of SIP Servers
  2836.  
  2837.    This section describes behavior of a SIP server in detail. Servers
  2838.    can operate in proxy or redirect mode. Proxy servers can "fork"
  2839.    connections, i.e., a single incoming request spawns several outgoing
  2840.    (client) requests.
  2841.  
  2842.    A proxy server always inserts a  Via header field containing their
  2843.    own address into requests it issues that are caused by an incoming
  2844.    request.
  2845.  
  2846.    We define an "A--B proxy" as a proxy that receives SIP requests over
  2847.    transport protocol A and issues requests, acting as a SIP client,
  2848.  
  2849.  
  2850.  
  2851. Handley/Schulzrinne/Schooler                                 [Page 50]
  2852.  
  2853.  
  2854. Internet Draft                    SIP                      July 31, 1997
  2855.  
  2856.  
  2857.  
  2858.                            +===========+
  2859.                            |  Initial  |
  2860.                            +===========+
  2861.                                  |
  2862.                                  |
  2863.                                  |    -
  2864.                                  |  ------
  2865.                                  |  INVITE
  2866.                      +------v    v
  2867.                     T1     +-----------+
  2868.                   ------   |  Calling  |-------------------+
  2869.                   INVITE   +-----------+                   |
  2870.                      +------| |  |                         |
  2871.              +----------------+  |                         |
  2872.              |                   |                         |
  2873.              |                   |                         |
  2874.              |                   |                         |
  2875.              |                   |                         |
  2876.              |       +------v    v    v-----|              |
  2877.              |      T2     +-----------+   1xx             |
  2878.              |    ------   |  Ringing  |   ---             |
  2879.              |    INVITE   +-----------+    -              |
  2880.              |       +------|    |  | |-----+              |
  2881.              |                   |  +--------------+       |
  2882.              |     2xx           |                 | >=300 |
  2883.              |  ---------        |    2xx          | ----- |
  2884.              |  CONNECTED        | ---------       |   -   |
  2885.              |                   | CONNECTED       |       |
  2886.              +----------------+  |                 |       |
  2887.                      +------v |  v                 v       v
  2888.                     2xx    +-----------+         +-----------+
  2889.                  --------- | Connected |         |  Failure  |
  2890.                  CONNECTED +-----------+         +-----------+
  2891.                      +------|
  2892.  
  2893.               event
  2894.              -------
  2895.              message
  2896.  
  2897.  
  2898.    Figure 4: State transition diagram of client for  INVITE method
  2899.  
  2900.  
  2901.    using transport protocol B. If not stated explicitly, rules apply to
  2902.    any combination of transport protocols. For conciseness, we only
  2903.    describe behavior with UDP and TCP, but the same rules apply for any
  2904.    unreliable datagram or reliable protocol, respectively.
  2905.  
  2906.  
  2907.  
  2908. Handley/Schulzrinne/Schooler                                 [Page 51]
  2909.  
  2910.  
  2911. Internet Draft                    SIP                      July 31, 1997
  2912.  
  2913.  
  2914.  
  2915.                             +===========+
  2916.               +------------>|  Initial  |<-------------+
  2917.               |             +===========+              |
  2918.               |                   |                    |
  2919.               |   failure         |                    |
  2920.               | -----------       |  INVITE            |
  2921.               | 3xx,4xx,5xx       |  ------            |
  2922.               |                   |   1xx              |
  2923.               |       +------v    v                    |
  2924.               |    INVITE   +-----------+              |
  2925.               |    ------   | Searching |              |
  2926.               |      1xx    +-----------+              |
  2927.               |       +------| |  |  +---------------->+
  2928.               |                |  |                    |
  2929.               |                |  |  callee picks up   |
  2930.               +----------------+  |  ---------------   |
  2931.                                   |       200          |
  2932.                                   |                    | BYE
  2933.                       +------v    v    v-----|         | ---
  2934.                    INVITE   +-----------+   T3         | 200
  2935.                    ------   | Answered  |   ---        |
  2936.                      1xx    +-----------+   200        |
  2937.                       +------|    |  | |-----+         |
  2938.                                   |  +---------------->+
  2939.                                   |                    |
  2940.                                   |  CONNECTED         |
  2941.                                   |  ---------         |
  2942.                                   |     200            |
  2943.                                   |                    |
  2944.                       +------v    v                    |
  2945.                   CONNECTED +-----------+              |
  2946.                   --------- | Connected |              |
  2947.                      200    +-----------+              |
  2948.                       +------|       |                 |
  2949.                                      +-----------------+
  2950.  
  2951.                event
  2952.               -------
  2953.               message
  2954.  
  2955.  
  2956.    Figure 5: State transition diagram of server for  INVITE method
  2957.  
  2958.  
  2959.    The detailed connection behavior for UDP and TCP is described in
  2960.    Section 11.
  2961.  
  2962.  
  2963.  
  2964.  
  2965. Handley/Schulzrinne/Schooler                                 [Page 52]
  2966.  
  2967.  
  2968. Internet Draft                    SIP                      July 31, 1997
  2969.  
  2970.  
  2971. 12.1 Redirect Server
  2972.  
  2973.    A redirect server does not issue any SIP requests of its own. It can
  2974.    return a response that accepts, refuses or redirects the request.
  2975.    After receiving a request, a redirect server proceeds through the
  2976.    following steps:
  2977.  
  2978.         1.   If the request cannot be answered immediately (e.g.,
  2979.              because a location server needs to be contacted), it
  2980.              returns one or more provisional responses.
  2981.  
  2982.         2.   Once the server has gathered the list of alternative
  2983.              locations or has decided to accept or refuse the call, it
  2984.              returns the final response.  This ends the SIP transaction.
  2985.  
  2986.    The redirect server maintains transaction state for the whole SIP
  2987.    transaction. Servers in user agents are redirect servers.
  2988.  
  2989. 12.2 Proxies Issuing Single Unicast Requests
  2990.  
  2991.    Proxies in this category issue at most a single unicast request for
  2992.    each incoming SIP request, that is, they do not "fork" requests.
  2993.    Servers may choose to always operate in the mode described in Section
  2994.    12.3.
  2995.  
  2996. 12.2.1 UDP--UDP Proxy Server
  2997.  
  2998.    The UDP--UDP server can forward the request and any responses. It
  2999.    does not have to maintain any state for the SIP transaction. UDP
  3000.    reliability is assured by the next redirect server in the server
  3001.    chain.
  3002.  
  3003. 12.2.2 UDP--TCP Proxy Server
  3004.  
  3005.    A proxy server issuing a single request over TCP maintains state for
  3006.    the whole SIP transaction indexed by the  Call-ID.
  3007.  
  3008.    If it receives a UDP retransmission of the same request for an
  3009.    existing session, it retransmits the last response received from the
  3010.    TCP side.  Any changes in the message body compared to the last
  3011.    request for the Call-ID are silently ignored. (Otherwise, the proxy
  3012.    would have to remember and compare the message body; this also
  3013.    violates the notion of a SIP transaction. TBD) The server SHOULD
  3014.    cache the final response for a particular  Call-ID after the SIP
  3015.    transaction on the TCP side has completed.
  3016.  
  3017.    After the cache entry has been expired, the server cannot tell
  3018.    whether an incoming request is actually a retransmission of an older
  3019.  
  3020.  
  3021.  
  3022. Handley/Schulzrinne/Schooler                                 [Page 53]
  3023.  
  3024.  
  3025. Internet Draft                    SIP                      July 31, 1997
  3026.  
  3027.  
  3028.    request, where the TCP side has terminated. It will treat it as a new
  3029.    request.
  3030.  
  3031. 12.3 Proxy Server Issuing Several Requests
  3032.  
  3033.    All requests carry the same  Call-ID. For unicast, each of the
  3034.    requests has a different (host-dependent)  Request-URI. For
  3035.    multicast, a single request is issued, likely with a host-independent
  3036.    Request-URI. A client receiving a multicast query does not have to
  3037.    check whether the host part of the  Request-URI matches its own host
  3038.    or domain name. To avoid response implosion, servers SHOULD NOT
  3039.    answer multicast requests with a 404 (Not Found) status code.
  3040.    Servers MAY decide not to answer multicast requests if their response
  3041.    would be 5xx.
  3042.  
  3043.    The server MAY respond to the request immediately with a "100 Trying"
  3044.    response; otherwise it MAY wait until either the first response to
  3045.    its requests or the UDP retransmission interval.
  3046.  
  3047.    The following pseudo-code describes the behavior of a proxy server
  3048.    issuing several requests in response to an incoming request. The
  3049.    function request(a) sends a SIP request to address a.
  3050.    await_response() waits until a response is received and returns the
  3051.    response. request_close(a) closes the TCP connection to client with
  3052.    address a; this is optional. response(s, l, L) sends a response to
  3053.    the client with status s and list of locations L, with l entries.
  3054.    ismulticast() returns 1 if the location is a multicast address and
  3055.    zero otherwise. The variable timeleft indicates the amount of time
  3056.    left until the maximum response time has expired. The variable
  3057.    recurse indicates whether the server will recursively try addresses
  3058.    returned through a 3xx response. A server MAY decide to recursively
  3059.    try only certain addresses, e.g., those which are within the same
  3060.    domain as the proxy server. Thus, an initial multicast request may
  3061.    trigger additional unicast requests.
  3062.  
  3063.  
  3064.      int N = 0;            /* number of connection attempts */
  3065.      address_t address[];  /* list of addresses */
  3066.      location[];           /* list of locations */
  3067.      int heard = 0;        /* number of sites heard from */
  3068.      int class;            /* class of status code */
  3069.      int best = 1000;      /* best response so far */
  3070.      int timeleft = 120;   /* sample timeout value */
  3071.      int loc = 0;          /* number of locations */
  3072.      struct {              /* response */
  3073.        int status;         /* response status */
  3074.        char *location;     /* redirect locations */
  3075.        address_t a;        /* address of respondent */
  3076.  
  3077.  
  3078.  
  3079. Handley/Schulzrinne/Schooler                                 [Page 54]
  3080.  
  3081.  
  3082. Internet Draft                    SIP                      July 31, 1997
  3083.  
  3084.  
  3085.      } r;
  3086.      int i;
  3087.  
  3088.      if (multicast) {
  3089.        request(address[0]);
  3090.      } else {
  3091.        N = /* number of addresses to try */
  3092.        for (i = 0; i < N; i++) {
  3093.          request(address[i]);
  3094.        }
  3095.      }
  3096.  
  3097.      while (timeleft > 0 && (heard < N || multicast)) {
  3098.        r = await_response();
  3099.        class = r.status / 100;
  3100.  
  3101.        if (class >= 2) {
  3102.          heard++;
  3103.          if (tcp) request_close(a);
  3104.        }
  3105.  
  3106.        if (class == 2) {
  3107.          best = r.status;
  3108.          break;
  3109.        }
  3110.        else if (class == 3) {
  3111.              /* A server may optionally recurse.  The server MUST check whether
  3112.               * it has tried this location before and whether the location is
  3113.               * part of the Via path of the incoming request.  This check is
  3114.               * omitted here for brevity. Multicast locations MUST NOT be
  3115.           * returned to the client if the server is not recursing.
  3116.           */
  3117.          if (recurse) {
  3118.            multicast = 0;
  3119.            N++;
  3120.            request(r.location);
  3121.          } else if (!ismulticast(r.location)) {
  3122.            locations[loc++] = r.location;
  3123.            best = r.status;
  3124.          }
  3125.        }
  3126.        else if (class == 4) {
  3127.          if (best >= 400) best = r.status;
  3128.        }
  3129.        else if (class == 5) {
  3130.          if (best >= 500) best = r.status;
  3131.        }
  3132.        else if (class == 6) {
  3133.  
  3134.  
  3135.  
  3136. Handley/Schulzrinne/Schooler                                 [Page 55]
  3137.  
  3138.  
  3139. Internet Draft                    SIP                      July 31, 1997
  3140.  
  3141.  
  3142.          best = r.status;
  3143.          break;
  3144.        }
  3145.      }
  3146.      /* We haven't heard anything useful from anybody. */
  3147.      if (best == 1000) {
  3148.        best = 404;
  3149.      }
  3150.      if (best/100 != 3) locs = 0;
  3151.      response(best, locs, locations);
  3152.  
  3153.  
  3154.  
  3155.    When operating in this mode, a proxy server MUST ignore any responses
  3156.    received for  Call-IDs that it does not have a pending transaction
  3157.    for. (If server were to forward responses not belonging to a current
  3158.    transaction using the  Via field, the requesting client would get
  3159.    confused if it has just issued another request using the same Call-
  3160.    ID.)
  3161.  
  3162. 13 Security Considerations
  3163.  
  3164. 13.1 Confidentiality
  3165.  
  3166.    Unless SIP transactions are protected by lower-layer security
  3167.    mechanisms such as SSL , an attacker may be able to eavesdrop on call
  3168.    establishment and invitations and, through the  Subject header field
  3169.    or the session description, gain insights into the topic of
  3170.    conversation.
  3171.  
  3172. 13.2 Integrity
  3173.  
  3174.    Unless SIP transactions are protected by lower-layer security
  3175.    mechanisms such as SSL , an active attacker may be able to modify SIP
  3176.    requests.
  3177.  
  3178. 13.3 Access Control
  3179.  
  3180.    SIP requests are not authenticated unless the SIP  Authorization and
  3181.    WWW-Authenticate headers are being used. The strengths and weaknesses
  3182.    of these authentication mechanisms are the same as for HTTP.
  3183.  
  3184. 13.4 Privacy
  3185.  
  3186.    User location and SIP-initiated calls may violate a callee's privacy.
  3187.    An implementation SHOULD be able to restrict, on a per-user basis,
  3188.    what kind of location and availability information is given out to
  3189.    certain classes of callers.
  3190.  
  3191.  
  3192.  
  3193. Handley/Schulzrinne/Schooler                                 [Page 56]
  3194.  
  3195.  
  3196. Internet Draft                    SIP                      July 31, 1997
  3197.  
  3198.  
  3199. A Summary of Augmented BNF
  3200.  
  3201.    In this specification we use the Augmented Backus-Naur Form notation
  3202.    described in [19]. For quick reference, the following is a brief
  3203.    summary of the main features of this ABNF.
  3204.  
  3205.    "abc"
  3206.         The case-insensitive string of characters "abc" (or "Abc",
  3207.         "aBC", etc.);
  3208.  
  3209.    %d32
  3210.         The character with ASCII code decimal 32 (space);
  3211.  
  3212.    *term
  3213.         zero of more instances of  term;
  3214.  
  3215.    3*term
  3216.         three or more instances of  term;
  3217.  
  3218.    2*4term
  3219.         two, three or four instances of  term;
  3220.  
  3221.    [ term ]
  3222.         term is optional;
  3223.  
  3224.    term1 term2 term3
  3225.         set notation:  term1,  term2 and  term3 must all appear but
  3226.         their order is unimportant;
  3227.  
  3228.    term1 | term2
  3229.         either  term1 or  term2 may appear but not both;
  3230.  
  3231.    #term
  3232.         a comma separated list of  term;
  3233.  
  3234.    2#term
  3235.         a comma separated list of  term containing at least 2 items;
  3236.  
  3237.    2#4term
  3238.         a comma separated list of  term containing 2 to 4 items.
  3239.  
  3240.  
  3241.    Common Tokens
  3242.  
  3243.    Certain tokens are used frequently in the BNF this document, and not
  3244.    defined elsewhere. Their meaning is well understood but we include it
  3245.    here for completeness.
  3246.  
  3247.  
  3248.  
  3249.  
  3250. Handley/Schulzrinne/Schooler                                 [Page 57]
  3251.  
  3252.  
  3253. Internet Draft                    SIP                      July 31, 1997
  3254.  
  3255.  
  3256.         CR       =    %d13            ;  carriage return character
  3257.         LF       =    %d10            ;  line feed character
  3258.         CRLF     =    CR LF           ;  typically the end of a line
  3259.         SP       =    %d32            ;  space character
  3260.         TAB      =    %d09            ;  tab character
  3261.         LWS      =    *( SP | TAB)    ;  linear whitespace
  3262.         DIGIT    =    "0" .. "9"      ;  a single decimal digit
  3263.  
  3264.  
  3265.  
  3266.    Changes
  3267.  
  3268.    Since version -01, the following things have changed:
  3269.  
  3270.         o Added personal note to "Searching" section indicating that 6xx
  3271.          codes may not be necessary. Added figures.
  3272.  
  3273.         o Initial author's note removed; dated.
  3274.  
  3275.         o Introduction rewritten to give quick, concise overview as to
  3276.          what SIP does.
  3277.  
  3278.         o Conference control (tight vs. loose) seems less and less
  3279.          appropriate. All share some state such as notions of
  3280.          membership; some (ITU versions) tend to keep it in a central
  3281.          server, others distribute it. Some state is synchronized at
  3282.          larger timescales than other. (After all, even a server won't
  3283.          know if a participant disconnects from the network until TCP
  3284.          keep-alive, if any, kicks in.)
  3285.  
  3286.         o Added list of related protocols to emphasize that this is part
  3287.          of a whole architecture.
  3288.  
  3289.         o Terminology: user always reminds me of controlled substances;
  3290.          thus, this term is avoided where better terminology exists.
  3291.          Since this protocol sits at the boundary between traditional
  3292.          Internet and telephony services, some of the terminology
  3293.          familiar in that realm is introduced.
  3294.  
  3295.         o Terminology: user location server replaced by redirect server,
  3296.          since a proxy server may also invoke user location. Also, the
  3297.          actual user location server (e.g., an LDAP, ULS or similar
  3298.          directory) may be invoked using protocols other than SIP.
  3299.  
  3300.         o Rearranged ordering of address resolution to correspond to
  3301.          host requirements for MX and suggestions in DNS SRV RFC. Adding
  3302.          note about caching and socket implementation. Added note about
  3303.          using SMTP EXPN to get an alternate address.
  3304.  
  3305.  
  3306.  
  3307. Handley/Schulzrinne/Schooler                                 [Page 58]
  3308.  
  3309.  
  3310. Internet Draft                    SIP                      July 31, 1997
  3311.  
  3312.  
  3313.         o Defined SIP transaction, provisional and final responses.
  3314.  
  3315.         o Assigned values to timeout parameters; otherwise, there will
  3316.          be unnecessary retransmissions between different
  3317.          implementations.
  3318.  
  3319.         o Retransmission was greatly simplified; there does not seem to
  3320.          be a need for all the rules governing transitions between TCP
  3321.          and UDP domains. A proxy should look just like a server to one
  3322.          side and like a client to the other. Proxies need to maintain
  3323.          transaction state in any event since they need to remember
  3324.          where they forwarded the last SIP request to ( Confirm wouldn't
  3325.          work otherwise, for example.).  Invoking a location service may
  3326.          yield inconsistent results, introduces additional failure modes
  3327.          (what if the location server is temporarily unavailable?),
  3328.          increases delay and processing overhead. UDP--UDP proxies can
  3329.          still be built without state; they just forward packets and
  3330.          responses. Proxies with TCP on one and UDP on the other side
  3331.          will have to act like a normal UDP server and issue 100
  3332.          responses.
  3333.  
  3334.         o Removed redundancies and contradictions from request and
  3335.          response definitions (space vs. SP, duplicate CRLF definition,
  3336.          recursive request-header, ...).
  3337.  
  3338.         o Added the experimental methods  CONNECTED,  REGISTER,
  3339.          UNREGISTER and  BYE.
  3340.  
  3341.         o Re-engineered the invitation reliability mechanism to use a
  3342.          separate confirmation message.
  3343.  
  3344.         o Tentative increase of MTU to 1500 bytes, as per discussion in
  3345.          Stevens.
  3346.  
  3347.         o Added  Reach,  Organization,  Subject, Priority,
  3348.          Authorization,  WWW-Authentication headers for improved call
  3349.          handling. WWW "basic" authentication isn't great, but it is
  3350.          widely deployed and probably sufficient for giving out
  3351.          "private" telephone numbers, particularly those where the
  3352.          callee incurs a charge.  (I want to be able to give somebody a
  3353.          password to call my 800 number via an Internet gateway;
  3354.          authenticating who that person is requires that I modify a
  3355.          script on my server to add another distinguished name to the
  3356.          list of allowable callees.)
  3357.  
  3358.         o Renamed  Reason to  Warning (to align with HTTP) header since
  3359.          the response line already offers a failure reason.
  3360.          Unfortunately, listing several failures is not all that helpful
  3361.  
  3362.  
  3363.  
  3364. Handley/Schulzrinne/Schooler                                 [Page 59]
  3365.  
  3366.  
  3367. Internet Draft                    SIP                      July 31, 1997
  3368.  
  3369.  
  3370.          since the calling party cannot determine which of the media
  3371.          within the description causes the difficulty or whether it was
  3372.          the set of media as a whole, but it may give the user agent
  3373.          some indication as to what's going on.
  3374.  
  3375.         o SEP and CRLF in headers removed, since this is always implied
  3376.          between items. Missing ":" added. CRLF was already in the
  3377.          message definition. Also, unlike RFC 822 and HTTP, the
  3378.          definition did not allow spaces between the field name and the
  3379.          colon.
  3380.  
  3381.         o Added (reluctantly) password to URL. It's no worse than ftp
  3382.          and needed to easily call from a secure web page, without
  3383.          having to type in a password manually.
  3384.  
  3385.         o Added port to SIP URL to specify non-standard port.
  3386.  
  3387.         o CAPABILITIES to OPTIONS for closer alignment with HTTP and
  3388.          RTSP;
  3389.  
  3390.         o Path to Via for closer alignment with HTTP and RTSP;
  3391.  
  3392.         o Content type meta changed to application, since "meta" doesn't
  3393.          exist as a top-level Internet media type.
  3394.  
  3395.         o Formatting closer to HTTP and RTSP.
  3396.  
  3397.         o Explain relationship to H.323.
  3398.  
  3399. B Open Issues
  3400.  
  3401.    RELIABLE: How to provide reliability?
  3402.  
  3403.    BYE: Use of BYE method?
  3404.  
  3405.    REGISTER: Use of REGISTER method?
  3406.  
  3407.    H.323: Interaction with H.323 and H.245.
  3408.  
  3409.    TRANSACTION: Should we have a transaction id in addition to a call
  3410.         ID? Call-IDs are for the end system, but a transaction ID is for
  3411.         a single SIP exchange. This is useful for Internet telephony,
  3412.         where a single call may trigger several transactions.
  3413.  
  3414. C Acknowledgments
  3415.  
  3416.    We wish to thank the members of the IETF MMUSIC WG for their comments
  3417.    and suggestions. This work is based, inter alia, on [23,24].
  3418.  
  3419.  
  3420.  
  3421. Handley/Schulzrinne/Schooler                                 [Page 60]
  3422.  
  3423.  
  3424. Internet Draft                    SIP                      July 31, 1997
  3425.  
  3426.  
  3427.    Parameters of the terminal negotiation mechanism were influenced by
  3428.    Scott Petrack's CMA design.
  3429.  
  3430. D Authors' Addresses
  3431.  
  3432.    Mark Handley
  3433.    USC Information Sciences Institute
  3434.    c/o MIT Laboratory for Computer Science
  3435.    545 Technology Square
  3436.    Cambridge, MA 02139
  3437.    USA
  3438.    electronic mail:  mjh@isi.edu
  3439.  
  3440.    Henning Schulzrinne
  3441.    Dept. of Computer Science
  3442.    Columbia University
  3443.    1214 Amsterdam Avenue
  3444.    New York, NY 10027
  3445.    USA
  3446.    electronic mail:  schulzrinne@cs.columbia.edu
  3447.  
  3448.    Eve Schooler
  3449.    Computer Science Department 256-80
  3450.    California Institute of Technology
  3451.    Pasadena, CA 91125
  3452.    USA
  3453.    electronic mail:  schooler@cs.caltech.edu
  3454.  
  3455. E Bibliography
  3456.  
  3457.    [1] R. Pandya, "Emerging mobile and personal communication systems,"
  3458.    IEEE Communications Magazine , vol. 33, pp. 44--52, June 1995.
  3459.  
  3460.    [2] R. Braden, L. Zhang, S. Berson, S. Herzog, and S. Jamin,
  3461.    "Resource reservation protocol (RSVP) -- version 1 functional
  3462.    specification," Internet Draft, Internet Engineering Task Force, June
  3463.    1997.  Work in progress.
  3464.  
  3465.    [3] H. Schulzrinne, S. Casner, R. Frederick, and V. Jacobson, "RTP: a
  3466.    transport protocol for real-time applications,"  RFC 1889, Internet
  3467.    Engineering Task Force, Jan. 1996.
  3468.  
  3469.    [4] H. Schulzrinne, A. Rao, and R. Lanphier, "Real time streaming
  3470.    protocol (RTSP)," Internet Draft, Internet Engineering Task Force,
  3471.    Mar. 1997.  Work in progress.
  3472.  
  3473.    [5] M. Handley, "SAP: Session announcement protocol," Internet Draft,
  3474.    Internet Engineering Task Force, Nov. 1996.  Work in progress.
  3475.  
  3476.  
  3477.  
  3478. Handley/Schulzrinne/Schooler                                 [Page 61]
  3479.  
  3480.  
  3481. Internet Draft                    SIP                      July 31, 1997
  3482.  
  3483.  
  3484.    [6] M. Handley and V. Jacobson, "SDP: Session description protocol,"
  3485.    Internet Draft, Internet Engineering Task Force, Mar. 1997.  Work in
  3486.    progress.
  3487.  
  3488.    [7] P. Lantz, "Usage of H.323 on the Internet," Internet Draft,
  3489.    Internet Engineering Task Force, Feb. 1997.  Work in progress.
  3490.  
  3491.    [8] S. Bradner, "Key words for use in RFCs to indicate requirement
  3492.    levels," RFC 2119, Internet Engineering Task Force, Mar. 1997.
  3493.  
  3494.    [9] R. Fielding, J. Gettys, J. Mogul, H. Frystyk, and T. Berners-Lee,
  3495.    "Hypertext transfer protocol -- HTTP/1.1,"  RFC 2068, Internet
  3496.    Engineering Task Force, Jan. 1997.
  3497.  
  3498.    [10] C. Partridge, "Mail routing and the domain system,"  STD 14, RFC
  3499.    974, Internet Engineering Task Force, Jan. 1986.
  3500.  
  3501.    [11] A. Gulbrandsen and P. Vixie, "A DNS RR for specifying the
  3502.    location of services (DNS SRV),"  RFC 2052, Internet Engineering Task
  3503.    Force, Oct.  1996.
  3504.  
  3505.    [12] P. Mockapetris, "Domain names - implementation and
  3506.    specification,"  STD 13, RFC 1035, Internet Engineering Task Force,
  3507.    Nov. 1987.
  3508.  
  3509.    [13] R. Braden, "Requirements for internet hosts - application and
  3510.    support," STD 3, RFC 1123, Internet Engineering Task Force, Oct.
  3511.    1989.
  3512.  
  3513.    [14] D. Zimmerman, "The finger user information protocol,"  RFC 1288,
  3514.    Internet Engineering Task Force, Dec. 1991.
  3515.  
  3516.    [15] W. Yeong, T. Howes, and S. Kille, "Lightweight directory access
  3517.    protocol," RFC 1777, Internet Engineering Task Force, Mar. 1995.
  3518.  
  3519.    [16] T. Berners-Lee, "Universal resource identifiers in WWW: a
  3520.    unifying syntax for the expression of names and addresses of objects
  3521.    on the network as used in the world-wide web,"  RFC 1630, Internet
  3522.    Engineering Task Force, June 1994.
  3523.  
  3524.    [17] T. Berners-Lee, R. Fielding, and L. Masinter, "Uniform resource
  3525.    locators (URL): Generic syntax and semantics," Internet Draft,
  3526.    Internet Engineering Task Force, May 1997.  Work in progress.
  3527.  
  3528.    [18] T. Berners-Lee, L. Masinter, and M. McCahill, "Uniform resource
  3529.    locators (URL),"  RFC 1738, Internet Engineering Task Force, Dec.
  3530.    1994.
  3531.  
  3532.  
  3533.  
  3534.  
  3535. Handley/Schulzrinne/Schooler                                 [Page 62]
  3536.  
  3537.  
  3538. Internet Draft                    SIP                      July 31, 1997
  3539.  
  3540.  
  3541.    [19] D. Crocker, "Augmented BNF for syntax specifications: ABNF,"
  3542.    Internet Draft, Internet Engineering Task Force, Oct. 1996.  Work in
  3543.    progress.
  3544.  
  3545.    [20] J. Mogul and S. Deering, "Path MTU discovery,"  RFC 1191,
  3546.    Internet Engineering Task Force, Nov. 1990.
  3547.  
  3548.    [21] W. R. Stevens, TCP/IP illustrated: the protocols , vol. 1.
  3549.    Reading, Massachusetts: Addison-Wesley, 1994.
  3550.  
  3551.    [22] D. Crocker, "Standard for the format of ARPA internet text
  3552.    messages," STD 11, RFC 822, Internet Engineering Task Force, Aug.
  3553.    1982.
  3554.  
  3555.    [23] E. M. Schooler, "Case study: multimedia conference control in a
  3556.    packet-switched teleconferencing system," Journal of Internetworking:
  3557.    Research and Experience , vol. 4, pp. 99--120, June 1993.  ISI
  3558.    reprint series ISI/RS-93-359.
  3559.  
  3560.    [24] H. Schulzrinne, "Personal mobility for multimedia services in
  3561.    the Internet," in European Workshop on Interactive Distributed
  3562.    Multimedia Systems and Services , (Berlin, Germany), Mar. 1996.
  3563.  
  3564.  
  3565.  
  3566.  
  3567.                            Table of Contents
  3568.  
  3569.  
  3570.  
  3571.    1          Introduction ........................................    2
  3572.    1.1        Overview of SIP Functionality .......................    2
  3573.    1.2        Finding Multimedia Sessions .........................    3
  3574.    1.3        Terminology .........................................    4
  3575.    1.4        Definitions .........................................    4
  3576.    1.5        Protocol Properties .................................    6
  3577.    1.5.1      Minimal State .......................................    6
  3578.    1.5.2      Transport-Protocol Neutral ..........................    6
  3579.    1.5.3      Text-Based ..........................................    6
  3580.    1.6        SIP Addressing ......................................    6
  3581.    1.7        Locating a SIP Server ...............................    8
  3582.    1.8        SIP Transactions ....................................    9
  3583.    1.9        Locating a User .....................................    9
  3584.    2          SIP Uniform Resource Locators .......................   12
  3585.    3          SIP Message Overview ................................   14
  3586.    4          Request .............................................   15
  3587.    4.1        Request-Line ........................................   16
  3588.    4.1.1      Methods .............................................   17
  3589.  
  3590.  
  3591.  
  3592. Handley/Schulzrinne/Schooler                                 [Page 63]
  3593.  
  3594.  
  3595. Internet Draft                    SIP                      July 31, 1997
  3596.  
  3597.  
  3598.    4.1.2      Request-URI .........................................   18
  3599.    4.1.3      SIP Version .........................................   18
  3600.    5          Response ............................................   18
  3601.    5.1        Status-Line .........................................   19
  3602.    5.1.1      Status Codes and Reason Phrases .....................   19
  3603.    6          Header Field Definitions ............................   20
  3604.    6.1        General Header Fields ...............................   22
  3605.    6.2        Entity Header Fields ................................   22
  3606.    6.3        Request Header Fields ...............................   22
  3607.    6.4        Response Header Fields ..............................   22
  3608.    6.5        Header Field Format .................................   23
  3609.    6.6        Accept ..............................................   23
  3610.    6.7        Accept-Language .....................................   24
  3611.    6.8        Allow ...............................................   24
  3612.    6.9        Authorization .......................................   24
  3613.    6.10       Authentication ......................................   24
  3614.    6.11       Call-ID .............................................   24
  3615.    6.12       Content-Length ......................................   25
  3616.    6.13       Content-Type ........................................   25
  3617.    6.14       Date ................................................   26
  3618.    6.15       Expires .............................................   26
  3619.    6.16       From ................................................   27
  3620.    6.17       Location ............................................   27
  3621.    6.18       Organization ........................................   29
  3622.    6.19       PEP .................................................   29
  3623.    6.20       Priority ............................................   29
  3624.    6.21       Proxy-Authenticate ..................................   29
  3625.    6.22       Proxy-Authorization .................................   29
  3626.    6.23       Public ..............................................   30
  3627.    6.24       Reach ...............................................   30
  3628.    6.25       Retry-After .........................................   30
  3629.    6.26       Sequence ............................................   31
  3630.    6.27       Server ..............................................   31
  3631.    6.28       Subject .............................................   31
  3632.    6.29       To ..................................................   32
  3633.    6.30       User-Agent ..........................................   32
  3634.    6.31       Via .................................................   32
  3635.    6.32       Warning .............................................   33
  3636.    6.33       WWW-Authenticate ....................................   34
  3637.    7          Status Code Definitions .............................   34
  3638.    7.1        Informational 1xx ...................................   35
  3639.    7.1.1      100 Trying ..........................................   35
  3640.    7.1.2      180 Ringing .........................................   35
  3641.    7.2        Successful 2xx ......................................   35
  3642.    7.2.1      200 OK ..............................................   35
  3643.    7.3        Redirection 3xx .....................................   35
  3644.    7.3.1      300 Multiple Choices ................................   35
  3645.    7.3.2      301 Moved Permanently ...............................   36
  3646.  
  3647.  
  3648.  
  3649. Handley/Schulzrinne/Schooler                                 [Page 64]
  3650.  
  3651.  
  3652. Internet Draft                    SIP                      July 31, 1997
  3653.  
  3654.  
  3655.    7.3.3      302 Moved Temporarily ...............................   36
  3656.    7.3.4      380 Alternative Service .............................   36
  3657.    7.4        Request Failure 4xx .................................   36
  3658.    7.4.1      400 Bad Request .....................................   36
  3659.    7.4.2      401 Unauthorized ....................................   37
  3660.    7.4.3      402 Payment Required ................................   37
  3661.    7.4.4      403 Forbidden .......................................   37
  3662.    7.4.5      404 Not Found .......................................   37
  3663.    7.4.6      405 Method Not Allowed ..............................   37
  3664.    7.4.7      407 Proxy Authentication Required ...................   37
  3665.    7.4.8      408 Request Timeout .................................   37
  3666.    7.4.9      420 Bad Extension ...................................   37
  3667.    7.4.10     480 Temporarily Unavailable .........................   38
  3668.    7.5        Server Failure 5xx ..................................   38
  3669.    7.5.1      500 Server Internal Error ...........................   38
  3670.    7.5.2      501 Not implemented .................................   38
  3671.    7.5.3      502 Bad Gateway .....................................   38
  3672.    7.5.4      503 Service Unavailable .............................   38
  3673.    7.5.5      504 Gateway Timeout .................................   39
  3674.    7.6        Global Failures .....................................   39
  3675.    7.6.1      600 Busy ............................................   39
  3676.    7.6.2      603 Decline .........................................   39
  3677.    7.6.3      604 Does not exist anywhere .........................   39
  3678.    7.6.4      606 Not Acceptable ..................................   39
  3679.    8          SIP Message Body ....................................   40
  3680.    8.1        Body Inclusion ......................................   40
  3681.    8.2        Message Body Length .................................   40
  3682.    9          Examples ............................................   41
  3683.    9.1        Invitation ..........................................   41
  3684.    9.1.1      Request .............................................   41
  3685.    9.1.2      Reply ...............................................   42
  3686.    9.1.3      Aborting a Call .....................................   43
  3687.    9.1.4      Redirects ...........................................   44
  3688.    9.1.5      Alternative Services ................................   44
  3689.    9.1.6      Negotiation .........................................   45
  3690.    9.2        OPTIONS Request .....................................   46
  3691.    10         Compact Form ........................................   47
  3692.    11         SIP Transport .......................................   48
  3693.    11.1       Achieving Reliability For UDP Transport .............   48
  3694.    11.1.1     General Operation ...................................   48
  3695.    11.1.2     INVITE ..............................................   49
  3696.    11.2       Connection Management for TCP .......................   50
  3697.    12         Behavior of SIP Servers .............................   50
  3698.    12.1       Redirect Server .....................................   53
  3699.    12.2       Proxies Issuing Single Unicast Requests .............   53
  3700.    12.2.1     UDP--UDP Proxy Server ...............................   53
  3701.    12.2.2     UDP--TCP Proxy Server ...............................   53
  3702.    12.3       Proxy Server Issuing Several Requests ...............   54
  3703.  
  3704.  
  3705.  
  3706. Handley/Schulzrinne/Schooler                                 [Page 65]
  3707.  
  3708.  
  3709. Internet Draft                    SIP                      July 31, 1997
  3710.  
  3711.  
  3712.    13         Security Considerations .............................   56
  3713.    13.1       Confidentiality .....................................   56
  3714.    13.2       Integrity ...........................................   56
  3715.    13.3       Access Control ......................................   56
  3716.    13.4       Privacy .............................................   56
  3717.    A          Summary of Augmented BNF ............................   57
  3718.    B          Open Issues .........................................   60
  3719.    C          Acknowledgments .....................................   60
  3720.    D          Authors' Addresses ..................................   61
  3721.    E          Bibliography ........................................   61
  3722.  
  3723.  
  3724.  
  3725.  
  3726.  
  3727.  
  3728.  
  3729.  
  3730.  
  3731.  
  3732.  
  3733.  
  3734.  
  3735.  
  3736.  
  3737.  
  3738.  
  3739.  
  3740.  
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763. Handley/Schulzrinne/Schooler                                 [Page 66]
  3764.  
  3765.  
  3766.