home *** CD-ROM | disk | FTP | other *** search
/ Internet Core Protocols / Oreilly-InternetCoreProtocols.iso / RFCs / rfc2705.txt < prev    next >
Encoding:
Text File  |  1999-10-14  |  304.3 KB  |  7,508 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                          M. Arango
  8. Request for Comments: 2705                                       RSL COM
  9. Category: Informational                                         A. Dugan
  10.                                                               I. Elliott
  11.                                                    Level3 Communications
  12.                                                               C. Huitema
  13.                                                                Telcordia
  14.                                                               S. Pickett
  15.                                                        Vertical Networks
  16.                                                             October 1999
  17.  
  18.  
  19.                  Media Gateway Control Protocol (MGCP)
  20.                               Version 1.0
  21.  
  22. Status of this Memo
  23.  
  24.    This memo provides information for the Internet community.  It does
  25.    not specify an Internet standard of any kind.  Distribution of this
  26.    memo is unlimited.
  27.  
  28. Copyright Notice
  29.  
  30.    Copyright (C) The Internet Society (1999).  All Rights Reserved.
  31.  
  32. IESG NOTE:
  33.  
  34.    This document is being published for the information of the
  35.    community.  It describes a protocol that is currently being deployed
  36.    in a number of products.  Implementers should be aware of
  37.    developments in the IETF Megaco Working Group and ITF-T SG16 who are
  38.    currently working on a potential successor to this protocol.
  39.  
  40. Abstract
  41.  
  42.    This document describes an application programming interface and a
  43.    corresponding protocol (MGCP) for controlling Voice over IP (VoIP)
  44.    Gateways from external call control elements. MGCP assumes a call
  45.    control architecture where the call control "intelligence" is outside
  46.    the gateways and handled by external call control elements.
  47.  
  48.    The document is structured in 6 main sections:
  49.  
  50.    *  The introduction presents the basic assumptions and the relation
  51.       to other protocols such as H.323, RTSP, SAP or SIP.
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Arango, et al.               Informational                      [Page 1]
  59.  
  60. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  61.  
  62.  
  63.    *  The interface section presents a conceptual overview of the MGCP,
  64.       presenting the naming conventions, the usage of the session
  65.       description protocol SDP, and the procedures that compose MGCP:
  66.       Notifications Request, Notification, Create Connection, Modify
  67.       Connection, Delete Connection, AuditEndpoint, AuditConnection and
  68.       RestartInProgress.
  69.  
  70.    *  The protocol description section presents the MGCP encodings,
  71.       which are based on simple text formats, and the transmission
  72.       procedure over UDP.
  73.  
  74.    *  The security section presents the security requirement of MGCP,
  75.       and its usage of IP security services (IPSEC).
  76.  
  77.    *  The event packages section provides an initial definition of
  78.       packages and event names.
  79.  
  80.    *  The description of the changes made in combining SGCP 1.1 and IPDC
  81.       to create MGCP 1.0.
  82.  
  83. Table of Contents
  84.  
  85.    1.  Introduction ..............................................  5
  86.       1.1.  Relation with the H.323 standards ....................  7
  87.       1.2.  Relation with the IETF standards .....................  8
  88.       1.3.  Definitions ..........................................  9
  89.    2.  Media Gateway Control Interface ...........................  9
  90.       2.1.  Model and naming conventions. ........................ 10
  91.          2.1.1.  Types of endpoints .............................. 10
  92.             2.1.1.1.  Digital channel (DS0) ...................... 11
  93.             2.1.1.2.  Analog line ................................ 11
  94.             2.1.1.3.  Annoucement server access point ............ 12
  95.             2.1.1.4.  Interactive Voice Response access point .... 12
  96.             2.1.1.5.  Conference bridge access point ............. 13
  97.             2.1.1.6.  Packet relay ............................... 13
  98.             2.1.1.7.  Wiretap access point ....................... 14
  99.             2.1.1.8.  ATM "trunk side" interface. ................ 14
  100.          2.1.2.  Endpoint identifiers ............................ 15
  101.          2.1.3.  Calls and connections ........................... 17
  102.             2.1.3.1.  Names of calls ............................. 20
  103.             2.1.3.2.  Names of connections ....................... 20
  104.             2.1.3.3.  Management of resources, attributes of ..... 20
  105.             2.1.3.4.  Special case of local connections .......... 23
  106.          2.1.4.  Names of Call Agents and other entities ......... 23
  107.          2.1.5.  Digit maps ...................................... 24
  108.          2.1.6.  Names of events ................................. 26
  109.       2.2.  Usage of SDP ......................................... 29
  110.       2.3.  Gateway Control Commands ............................. 30
  111.  
  112.  
  113.  
  114. Arango, et al.               Informational                      [Page 2]
  115.  
  116. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  117.  
  118.  
  119.          2.3.1.  EndpointConfiguration ........................... 32
  120.          2.3.2.  NotificationRequest ............................. 33
  121.          2.3.3.  CreateConnection ................................ 38
  122.          2.3.4.  ModifyConnection ................................ 44
  123.          2.3.5.  DeleteConnection (from the Call Agent) .......... 46
  124.          2.3.6.  DeleteConnection (from the VoIP gateway) ........ 51
  125.          2.3.7.  DeleteConnection (multiple connections, from the  51
  126.          2.3.8.  Audit Endpoint .................................. 52
  127.          2.3.9.  Audit Connection ................................ 55
  128.          2.3.10.  Restart in progress ............................ 56
  129.       2.4.  Return codes and error codes. ........................ 58
  130.       2.5.  Reason Codes ......................................... 61
  131.    3.  Media Gateway Control Protocol ............................ 61
  132.       3.1.  General description .................................. 62
  133.       3.2.  Command Header ....................................... 62
  134.          3.2.1.  Command line .................................... 62
  135.             3.2.1.1.  Coding of the requested verb ............... 63
  136.             3.2.1.2.  Transaction Identifiers .................... 63
  137.             3.2.1.3.  Coding of the endpoint identifiers and ..... 64
  138.             3.2.1.4.  Coding of the protocol version ............. 65
  139.          3.2.2.  Parameter lines ................................. 65
  140.             3.2.2.1.  Response Acknowledgement ................... 68
  141.             3.2.2.2.  Local connection options ................... 68
  142.             3.2.2.3.  Capabilities ............................... 70
  143.             3.2.2.4.  Connection parameters ...................... 71
  144.             3.2.2.5.  Reason Codes ............................... 72
  145.             3.2.2.6.  Connection mode ............................ 73
  146.             3.2.2.7.  Coding of event names ...................... 73
  147.             3.2.2.8.  RequestedEvents ............................ 74
  148.             3.2.2.9.  SignalRequests ............................. 76
  149.             3.2.2.10.  ObservedEvent ............................. 76
  150.             3.2.2.11.  RequestedInfo ............................. 76
  151.             3.2.2.12.  QuarantineHandling ........................ 77
  152.             3.2.2.13.  DetectEvents .............................. 77
  153.             3.2.2.14.  EventStates ............................... 77
  154.             3.2.2.15.  RestartMethod ............................. 78
  155.             3.2.2.16.  Bearer Information ........................ 78
  156.       3.3.  Format of response headers ........................... 78
  157.       3.4.  Formal syntax description of the protocol ............ 81
  158.       3.5.  Encoding of the session description .................. 86
  159.          3.5.1.  Usage of SDP for an audio service ............... 86
  160.          3.5.2.  Usage of SDP in a network access service ........ 87
  161.          3.5.3.  Usage of SDP for ATM connections ................ 90
  162.          3.5.4.  Usage of SDP for local connections .............. 91
  163.       3.6.  Transmission over UDP ................................ 91
  164.          3.6.1.  Providing the At-Most-Once functionality ........ 91
  165.          3.6.2.  Transaction identifiers and three ways handshake. 92
  166.          3.6.3.  Computing retransmission timers ................. 93
  167.  
  168.  
  169.  
  170. Arango, et al.               Informational                      [Page 3]
  171.  
  172. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  173.  
  174.  
  175.          3.6.4.  Piggy backing ................................... 94
  176.          3.6.5.  Provisional responses ........................... 94
  177.    4.  States, failover and race conditions. ..................... 95
  178.       4.1.  Basic Asumptions ..................................... 95
  179.       4.2.  Security, Retransmission, and Detection of Lost ...... 96
  180.       4.3.  Race conditions ...................................... 99
  181.          4.3.1.  Quarantine list ................................. 99
  182.          4.3.2.  Explicit detection ..............................103
  183.          4.3.3.  Ordering of commands, and treatment of disorder .104
  184.          4.3.4.  Fighting the restart avalanche ..................105
  185.          4.3.5.  Disconnected Endpoints ..........................107
  186.    1.   A "disconnected" timer is initialized to a random value, .107
  187.    2.   The gateway then waits for either the end of this timer, .107
  188.    3.   When the "disconnected" timer elapses, when a command is .107
  189.    4.   If the "disconnected" procedure still left the endpoint ..107
  190.    5.  Security requirements .....................................108
  191.       5.1.  Protection of media connections ......................109
  192.    6.  Event packages and end point types ........................109
  193.       6.1.  Basic packages .......................................110
  194.          6.1.1.  Generic Media Package ...........................110
  195.          6.1.2.  DTMF package ....................................112
  196.          6.1.3.  MF Package ......................................113
  197.          6.1.4.  Trunk Package ...................................114
  198.          6.1.5.  Line Package ....................................116
  199.          6.1.6.  Handset emulation package .......................119
  200.          6.1.7.  RTP Package .....................................120
  201.          6.1.8.  Network Access Server Package ...................121
  202.          6.1.9.  Announcement Server Package .....................122
  203.          6.1.10.  Script Package .................................122
  204.       6.2.  Basic endpoint types and profiles ....................123
  205.    7.  Versions and compatibility ................................124
  206.       7.1.  Differences between version 1.0 and draft 0.5 ........124
  207.       7.2.  Differences between draft-04 and draft-05 ............125
  208.       7.3.  Differences between draft-03 and draft-04 ............125
  209.       7.4.  Differences between draft-02 and draft-03 ............125
  210.       7.5.  Differences between draft-01 and draft-02 ............126
  211.       7.6.  The making of MGCP from IPDC and SGCP ................126
  212.       7.7.  Changes between MGCP and initial versions of SGCP ....126
  213.    8.  Security Considerations ...................................128
  214.    9.  Acknowledgements ..........................................128
  215.    10. References ................................................129
  216.    11. Authors' Addresses ........................................130
  217.    12. Appendix A: Proposed "MoveConnection" command .............132
  218.       12.1.  Proposed syntax modification ........................133
  219.    13. Full Copyright Statement ..................................134
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Arango, et al.               Informational                      [Page 4]
  227.  
  228. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  229.  
  230.  
  231. 1.  Introduction
  232.  
  233.    This document describes an abstract application programming interface
  234.    and a corresponding protocol (MGCP) for controlling Telephony
  235.    Gateways from external call control elements called media gateway
  236.    controllers or call agents. A telephony gateway is a network element
  237.    that provides conversion between the audio signals carried on
  238.    telephone circuits and data packets carried over the Internet or over
  239.    other packet networks.  Example of gateways are:
  240.  
  241.    *  Trunking gateways, that interface between the telephone network
  242.       and a Voice over IP network. Such gateways typically manage a
  243.       large number of digital circuits.
  244.  
  245.    *  Voice over ATM gateways, which operate much the same way as voice
  246.       over IP trunking gateways, except that they interface to an ATM
  247.       network.
  248.  
  249.    *  Residential gateways, that provide a traditional analog (RJ11)
  250.       interface to a Voice over IP network. Examples of residential
  251.       gateways include cable modem/cable set-top boxes, xDSL devices,
  252.       broad-band wireless devices
  253.  
  254.    *  Access gateways, that provide a traditional analog (RJ11) or
  255.       digital PBX interface to a Voice over IP network. Examples of
  256.       access gateways include small-scale voice over IP gateways.
  257.  
  258.    *  Business gateways, that provide a traditional digital PBX
  259.       interface or an integrated "soft PBX" interface to a Voice over IP
  260.       network.
  261.  
  262.    *  Network Access Servers, that can attach a "modem" to a telephone
  263.       circuit and provide data access to the Internet. We expect that,
  264.       in the future, the same gateways will combine Voice over IP
  265.       services and Network Access services.
  266.  
  267.    *  Circuit switches, or packet switches, which can offer a control
  268.       interface to an external call control element.
  269.  
  270.    MGCP assumes a call control architecture where the call control
  271.    "intelligence" is outside the gateways and handled by external call
  272.    control elements. The MGCP assumes that these call control elements,
  273.    or Call Agents, will synchronize with each other to send coherent
  274.    commands to the gateways under their control. MGCP does not define a
  275.    mechanism for synchronizing Call Agents. MGCP is, in essence, a
  276.    master/slave protocol, where the gateways are expected to execute
  277.    commands sent by the Call Agents.  In consequence, this document
  278.    specifies in great detail the expected behavior of the gateways, but
  279.  
  280.  
  281.  
  282. Arango, et al.               Informational                      [Page 5]
  283.  
  284. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  285.  
  286.  
  287.    only specify those parts of a call agent implementation, such as
  288.    timer management, that are mandated for proper operation of the
  289.    protocol.
  290.  
  291.    MGCP assumes a connection model where the basic constructs are
  292.    endpoints and connections. Endpoints are sources or sinks of data and
  293.    could be physical or virtual. Examples of physical endpoints are:
  294.  
  295.    *  An interface on a gateway that terminates a trunk connected to a
  296.       PSTN switch (e.g., Class 5, Class 4, etc.). A gateway that
  297.       terminates trunks is called a trunk gateway.
  298.  
  299.    *  An interface on a gateway that terminates an analog POTS
  300.       connection to a phone, key system, PBX, etc. A gateway that
  301.       terminates residential POTS lines (to phones) is called a
  302.       residential gateway.
  303.  
  304.    An example of a virtual endpoint is an audio source in an audio-
  305.    content server. Creation of physical endpoints requires hardware
  306.    installation, while creation of virtual endpoints can be done by
  307.    software.
  308.  
  309.    Connections may be either point to point or multipoint. A point to
  310.    point connection is an association between two endpoints with the
  311.    purpose of transmitting data between these endpoints. Once this
  312.    association is established for both endpoints, data transfer between
  313.    these endpoints can take place. A multipoint connection is
  314.    established by connecting the endpoint to a multipoint session.
  315.  
  316.    Connections can be established over several types of bearer networks:
  317.  
  318.    *  Transmission of audio packets using RTP and UDP over a TCP/IP
  319.       network.
  320.  
  321.    *  Transmission of audio packets using AAL2, or another adaptation
  322.       layer, over an ATM network.
  323.  
  324.    *  Transmission of packets over an internal connection, for example
  325.       the TDM backplane or the interconnection bus of a gateway. This is
  326.       used, in particular, for "hairpin" connections, connections that
  327.       terminate in a gateway but are immediately rerouted over the
  328.       telephone network.
  329.  
  330.    For point-to-point connections the endpoints of a connection could be
  331.    in separate gateways or in the same gateway.
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. Arango, et al.               Informational                      [Page 6]
  339.  
  340. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  341.  
  342.  
  343. 1.1.  Relation with the H.323 standards
  344.  
  345.    MGCP is designed as an internal protocol within a distributed system
  346.    that appears to the outside as a single VoIP gateway. This system is
  347.    composed of a Call Agent, that may or may not be distributed over
  348.    several computer platforms, and of a set of gateways, including at
  349.    least one "media gateway" that perform the conversion of media
  350.    signals between circuits and packets,  and at least one "signalling
  351.    gateway" when connecting to an SS7 controlled network.  In a typical
  352.    configuration, this distributed gateway system will interface on one
  353.    side with one or more telephony (i.e. circuit) switches, and on the
  354.    other side with H.323 conformant systems, as indicated in the
  355.    following table:
  356.  
  357.     ___________________________________________________________________
  358.    | Functional|  Phone     |  Terminating    |  H.323 conformant     |
  359.    | Plane     |  switch    |  Entity         |  systems              |
  360.    |___________|____________|_________________|_______________________|
  361.    | Signaling |  Signaling |  Call agent     |  Signaling exchanges  |
  362.    | Plane     |  exchanges |                 |  with the call agent  |
  363.    |           |  through   |                 |  through H.225/RAS and|
  364.    |           |  SS7/ISUP  |                 |  H.225/Q.931.         |
  365.    |___________|____________|_________________|_______________________|
  366.    |           |            |                 |  Possible negotiation |
  367.    |           |            |                 |  of logical channels  |
  368.    |           |            |                 |  and transmission     |
  369.    |           |            |                 |  parameters through   |
  370.    |           |            |                 |  H.245 with the call  |
  371.    |           |            |                 |  agent.               |
  372.    |___________|____________|_________________|_______________________|
  373.    |           |            |  Internal       |                       |
  374.    |           |            |  synchronization|                       |
  375.    |           |            |  through MGCP   |                       |
  376.    |___________|____________|_________________|_______________________|
  377.    | Bearer    |  Connection|  Telephony      |  Transmission of VOIP |
  378.    | Data      |  through   |  gateways       |  data using RTP       |
  379.    | Transport |  high speed|                 |  directly between the |
  380.    | Plane     |  trunk     |                 |  H.323 station and the|
  381.    |           |  groups    |                 |  gateway.             |
  382.    |___________|____________|_________________|_______________________|
  383.  
  384.  
  385.    In the MGCP model, the gateways focus on the audio signal translation
  386.    function, while the Call Agent handles the signaling and call
  387.    processing functions. As a consequence, the Call Agent implements the
  388.    "signaling" layers of the H.323 standard, and presents itself as an
  389.    "H.323 Gatekeeper" or as one or more "H.323 Endpoints"  to the H.323
  390.    systems.
  391.  
  392.  
  393.  
  394. Arango, et al.               Informational                      [Page 7]
  395.  
  396. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  397.  
  398.  
  399. 1.2.  Relation with the IETF standards
  400.  
  401.    While H.323 is the recognized standard for VoIP terminals, the IETF
  402.    has also produced specifications for other types of multi-media
  403.    applications. These other specifications include:
  404.  
  405.    *  the Session Description Protocol (SDP), RFC 2327,
  406.  
  407.    *  the Session Announcement Protocol (SAP),
  408.  
  409.    *  the Session Initiation Protocol (SIP),
  410.  
  411.    *  the Real Time Streaming Protocol (RTSP), RFC 2326.
  412.  
  413.    The latter three specifications are in fact alternative signaling
  414.    standards that allow for the transmission of a session description to
  415.    an interested party. SAP is used by multicast session managers to
  416.    distribute a multicast session description to a large group of
  417.    recipients, SIP is used to invite an individual user to take part in
  418.    a point-to-point or unicast session, RTSP is used to interface a
  419.    server that provides real time data. In all three cases, the session
  420.    description is described according to SDP; when audio is transmitted,
  421.    it is transmitted through the Real-time Transport Protocol, RTP.
  422.  
  423.    The distributed gateway systems and MGCP will enable PSTN telephony
  424.    users to access sessions set up using SAP, SIP or RTSP. The Call
  425.    Agent provides for signaling conversion, according to the following
  426.    table:
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450. Arango, et al.               Informational                      [Page 8]
  451.  
  452. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  453.  
  454.  
  455.     _____________________________________________________________________
  456.    | Functional|  Phone     |  Terminating    |  IETF conforming systems|
  457.    | Plane     |  switch    |  Entity         |                         |
  458.    |___________|____________|_________________|_________________________|
  459.    | Signaling |  Signaling |  Call agent     |  Signaling exchanges    |
  460.    | Plane     |  exchanges |                 |  with the call agent    |
  461.    |           |  through   |                 |  through SAP, SIP or    |
  462.    |           |  SS7/ISUP  |                 |  RTSP.                  |
  463.    |___________|____________|_________________|_________________________|
  464.    |           |            |                 |  Negotiation of session |
  465.    |           |            |                 |  description parameters |
  466.    |           |            |                 |  through SDP (telephony |
  467.    |           |            |                 |  gateway terminated but |
  468.    |           |            |                 |  passed via the call    |
  469.    |           |            |                 |  agent to and from the  |
  470.    |           |            |                 |  IETF conforming system)|
  471.    |___________|____________|_________________|_________________________|
  472.    |           |            |  Internal       |                         |
  473.    |           |            |  synchronization|                         |
  474.    |           |            |  through MGCP   |                         |
  475.    |___________|____________|_________________|_________________________|
  476.    | Bearer    |  Connection|  Telephony      |  Transmission of VoIP   |
  477.    | Data      |  through   |  gateways       |  data using RTP,        |
  478.    | Transport |  high speed|                 |  directly between the   |
  479.    | Plane     |  trunk     |                 |  remote IP end system   |
  480.    |           |  groups    |                 |  and the gateway.       |
  481.    |___________|____________|_________________|_________________________|
  482.  
  483.  
  484.    The SDP standard has a pivotal status in this architecture. We will
  485.    see in the following description that we also use it to carry session
  486.    descriptions in MGCP.
  487.  
  488. 1.3.  Definitions
  489.  
  490.    Trunk: A communication channel between two switching systems. E.g., a
  491.    DS0 on a T1 or E1 line.
  492.  
  493. 2.  Media Gateway Control Interface
  494.  
  495.    The interface functions provide for connection control and endpoint
  496.    control. Both use the same system model and the same naming
  497.    conventions.
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506. Arango, et al.               Informational                      [Page 9]
  507.  
  508. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  509.  
  510.  
  511. 2.1.  Model and naming conventions
  512.  
  513.    The MGCP assumes a connection model where the basic constructs are
  514.    endpoints and connections. Connections are grouped in calls. One or
  515.    more connections can belong to one call. Connections and calls are
  516.    set up at the initiative of one or several Call Agents.
  517.  
  518. 2.1.1.  Types of endpoints
  519.  
  520.    In the introduction, we presented several classes of gateways.  Such
  521.    classifications, however, can be misleading.  Manufacturers can
  522.    arbitrarily decide to provide several types of services in a single
  523.    packaging.  A single product could well, for example, provide some
  524.    trunk connections to telephony switches, some primary rate
  525.    connections and some analog line interfaces, thus sharing the
  526.    characteristics of what we described in the introduction as
  527.    "trunking", "access" and "residential" gateways.   MGCP does not make
  528.    assumptions about such groupings.  We simply assume that media
  529.    gateways support collections of endpoints.  The type of the endpoint
  530.    determines its functionalities. Our analysis, so far, has led us to
  531.    isolate the following basic endpoint types:
  532.  
  533.    *    Digital channel (DS0),
  534.  
  535.    *    Analog line,
  536.  
  537.    *    Annoucement server access point,
  538.  
  539.    *    Interactive Voice Response access point,
  540.  
  541.    *    Conference bridge access point,
  542.  
  543.    *    Packet relay,
  544.  
  545.    *    Wiretap access point,
  546.  
  547.    *    ATM "trunk side" interface.
  548.  
  549.    In this section, we will develop the expected behavior of such end
  550.    points.
  551.  
  552.    This list is not limitative.  There may be other types of endpoints
  553.    defined in the future, for example test endpoint that could be used
  554.    to check network quality, or frame-relay endpoints that could be used
  555.    to managed audio channels multiplexed over a frame-relay virtual
  556.    circuit.
  557.  
  558.  
  559.  
  560.  
  561.  
  562. Arango, et al.               Informational                     [Page 10]
  563.  
  564. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  565.  
  566.  
  567. 2.1.1.1.  Digital channel (DS0)
  568.  
  569.    Digital channels provide an 8Khz*8bit service.  Such channels are
  570.    found in trunk and ISDN interfaces.  They are typically part of
  571.    digital multiplexes, such as T1, E1, T3 or E3 interfaces. Media
  572.    gateways that support such channels are capable of translating the
  573.    digital signals received on the channel, which may be encoded
  574.    according to A or mu-law, using either the complete set of 8 bits or
  575.    only 7 of these bits, into audio packets.  When the media gateway
  576.    also supports a NAS service, the gateway shall be capable of
  577.    receiving either audio-encoded data (modem connection) or binary data
  578.    (ISDN connection) and convert them into data packets.
  579.  
  580.                                          +-------
  581.                            +------------+|
  582.               (channel) ===|DS0 endpoint| -------- Connections
  583.                            +------------+|
  584.                                          +-------
  585.  
  586.    Media gateways should be able to establish several connections
  587.    between the endpoint and the packet networks, or between the endpoint
  588.    and other endpoints in the same gateway.  The signals originating
  589.    from these connections shall be mixed according to the connection
  590.    "mode", as specified later in this document.  The precise number of
  591.    connections that an endpoint support is a characteristic of the
  592.    gateway, and may in fact vary according with the allocation of
  593.    resource within the gateway.
  594.  
  595.    In some cases, digital channels are used to carry signalling.  This
  596.    is the case for example of SS7 "F" links, or ISDN "D" channels.
  597.    Media gateways that support these signalling functions shall be able
  598.    to send and receive the signalling packets to and from a call agent,
  599.    using the "back haul" procedures defined by the SIGTRAN working group
  600.    of the IETF.  Digital channels are sometimes used in conjunction with
  601.    channel associated signalling, such as "MF R2".  Media gateways that
  602.    support these signalling functions shall be able to detect and
  603.    produce the corresponding signals, such as for example "wink" or "A",
  604.    according to the event signalling and reporting procedures defined in
  605.    MGCP.
  606.  
  607. 2.1.1.2.  Analog line
  608.  
  609.    Analog lines can be used either as a "client" interface, providing
  610.    service to a classic telephone unit, or as a "service" interface,
  611.    allowing the gateway to send and receive analog calls.  When the
  612.    media gateway also supports a NAS service, the gateway shall be
  613.    capable of receiving audio-encoded data (modem connection) and
  614.    convert them into data packets.
  615.  
  616.  
  617.  
  618. Arango, et al.               Informational                     [Page 11]
  619.  
  620. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  621.  
  622.  
  623.                                          +-------
  624.                         +---------------+|
  625.               (line) ===|analog endpoint| -------- Connections
  626.                         +---------------+|
  627.                                          +-------
  628.  
  629.    Media gateways should be able to establish several connections
  630.    between the endpoint and the packet networks, or between the endpoint
  631.    and other endpoints in the same gateway.  The audio signals
  632.    originating from these connections shall be mixed according to the
  633.    connection "mode", as specified later in this document.  The precise
  634.    number of connections that an endpoint support is a characteristic of
  635.    the gateway, and may in fact vary according with the allocation of
  636.    resource within the gateway.  A typical gateway should however be
  637.    able to support two or three connections per endpoint, in order to
  638.    provide services such as "call waiting" or "three ways calling".
  639.  
  640. 2.1.1.3.  Annoucement server access point
  641.  
  642.    An announcement server endpoint provides acces to an announcement
  643.    service. Under requests from the call agent, the announcement server
  644.    will "play" a specified announcement.  The requests from the call
  645.    agent will follow the event signalling and reporting procedures
  646.    defined in MGCP.
  647.  
  648.              +----------------------+
  649.              | Announcement endpoint| -------- Connection
  650.              +----------------------+
  651.  
  652.    A given announcement endpoint is not supposed to support more than
  653.    one connection at a time. If several connections were established to
  654.    the same endpoint, then the same announcements would be played
  655.    simultaneously over all the connections.
  656.  
  657.    Connections to an announcement server are typically oneway, or "half
  658.    duplex" -- the announcement server is not expected to listen the
  659.    audio signals from the connection.
  660.  
  661. 2.1.1.4.  Interactive Voice Response access point
  662.  
  663.    An Interactive Voice Response (IVR) endpoint provides acces to an IVR
  664.    service. Under requests from the call agent, the IVR server will
  665.    "play" announcements and tones, and will "listen" to responses from
  666.    the user.  The requests from the call agent will follow the event
  667.    signalling and reporting procedures defined in MGCP.
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674. Arango, et al.               Informational                     [Page 12]
  675.  
  676. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  677.  
  678.  
  679.                       +-------------+
  680.                       | IVR endpoint| -------- Connection
  681.                       +-------------+
  682.  
  683.    A given IVR endpoint is not supposed to support more than one
  684.    connection at a time. If several connections were established to the
  685.    same endpoint, then the same tones and announcements would be played
  686.    simultaneously over all the connections.
  687.  
  688. 2.1.1.5.  Conference bridge access point
  689.  
  690.    A conference bridge endpoint is used to provide access to a specific
  691.    conference.
  692.  
  693.                                          +-------
  694.              +--------------------------+|
  695.              |Conference bridge endpoint| -------- Connections
  696.              +--------------------------+|
  697.                                          +-------
  698.  
  699.    Media gateways should be able to establish several connections
  700.    between the endpoint and the packet networks, or between the endpoint
  701.    and other endpoints in the same gateway.  The signals originating
  702.    from these connections shall be mixed according to the connection
  703.    "mode", as specified later in this document. The precise number of
  704.    connections that an endpoint support is a characteristic of the
  705.    gateway, and may in fact vary according with the allocation of
  706.    resource within the gateway.
  707.  
  708. 2.1.1.6.  Packet relay
  709.  
  710.    A packet relay endpoint is a specific form of conference bridge, that
  711.    typically only supports two connections.  Packets relays can be found
  712.    in firewalls between a protected and an open network, or in
  713.    transcoding servers used to provide interoperation between
  714.    incompatible gateways, for example gateways that do not support
  715.    compatible compression algorithms, or gateways that operate over
  716.    different transmission networks such as IP and ATM.
  717.  
  718.                                           +-------
  719.                   +---------------------+ |
  720.                   |Packet relay endpoint|  2 connections
  721.                   +---------------------+ |
  722.                                           +-------
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. Arango, et al.               Informational                     [Page 13]
  731.  
  732. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  733.  
  734.  
  735. 2.1.1.7.  Wiretap access point
  736.  
  737.    A wiretap access point provides access to a wiretap service,
  738.    providing either a recording or a life playback of a connection.
  739.  
  740.                   +-----------------+
  741.                   | Wiretap endpoint| -------- Connection
  742.                   +-----------------+
  743.  
  744.    A given wiretap endpoint is not supposed to support more than one
  745.    connection at a time. If several connections were established to the
  746.    same endpoint, then the recording or playback would mix the audio
  747.    signals received on this connections.
  748.  
  749.    Connections to an wiretap endpoint are typically oneway, or "half
  750.    duplex" -- the wiretap server is not expected to signal its presence
  751.    in a call.
  752.  
  753. 2.1.1.8.  ATM "trunk side" interface.
  754.  
  755.    ATM "trunk side" endpoints are typically found when one or several
  756.    ATM permanent virtual circuits are used as a replacement for the
  757.    classic "TDM" trunks linking switches.  When ATM/AAL2 is used,
  758.    several trunks or channels are multiplexed on a single virtual
  759.    circuit; each of these trunks correspond to a single endpoint.
  760.  
  761.                                          +-------
  762.                      +------------------+|
  763.          (channel) = |ATM trunk endpoint| -------- Connections
  764.                      +------------------+|
  765.                                          +-------
  766.  
  767.    Media gateways should be able to establish several connections
  768.    between the endpoint and the packet networks, or between the endpoint
  769.    and other endpoints in the same gateway.  The signals originating
  770.    from these connections shall be mixed according to the connection
  771.    "mode", as specified later in this document.  The precise number of
  772.    connections that an endpoint support is a characteristic of the
  773.    gateway, and may in fact vary according with the allocation of
  774.    resource within the gateway.
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. Arango, et al.               Informational                     [Page 14]
  787.  
  788. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  789.  
  790.  
  791. 2.1.2.  Endpoint identifiers
  792.  
  793.    Endpoints identifiers have two components that both are case
  794.    insensitive:
  795.  
  796.    *  the domain name of the gateway that is managing the endpoint,
  797.  
  798.    *  a local name within that gateway,
  799.  
  800.    The syntax of the local name depends on the type of endpoint being
  801.    named. However, the local name for each of these types is naturally
  802.    hierarchical, beginning with a term which identifies the physical
  803.    gateway containing the given endpoint and ending in a term which
  804.    specifies the individual endpoint concerned. With this in mind,  the
  805.    following rules for construction and interpretation of the Entity
  806.    Name field for these entity types MUST be supported:
  807.  
  808.    1) The individual terms of the naming path MUST be separated by a
  809.       single slash ("/", ASCII 2F hex).
  810.  
  811.    2) The individual terms are character strings composed of letters,
  812.       digits or other printable characters, with the exception of
  813.       characters used as delimitors ("/", "@"), characters used for
  814.       wildcarding ("*", "$") and white spaces.
  815.  
  816.    3) Wild-carding is represented either by an asterisk ("*") or a
  817.       dollar sign ("$") for the terms of the naming path which are to be
  818.       wild-carded. Thus, if the full naming path looks like
  819.  
  820.              term1/term2/term3
  821.  
  822.       then the Entity Name field looks like this depending on which
  823.       terms are wild-carded:
  824.  
  825.              */term2/term3 if term1 is wild-carded
  826.              term1/*/term3 if term2 is wild-carded
  827.              term1/term2/* if term3 is wild-carded
  828.              term1/*/* if term2 and term3 are wild-carded,
  829.               etc.
  830.  
  831.       In each of these examples a dollar sign could have appeared
  832.       instead of an asterisk.
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842. Arango, et al.               Informational                     [Page 15]
  843.  
  844. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  845.  
  846.  
  847.    4) A term represented by an asterisk is to be interpreted as: "use
  848.       ALL values of this term known within the scope of the Media
  849.       Gateway".  A term represented by a dollar sign is to be
  850.       interpreted as: "use ANY ONE value of this term known within the
  851.       scope of the Media Gateway".  The description of a specific
  852.       command may add further criteria for selection within the general
  853.       rules given here.
  854.  
  855.    If the Media Gateway controls multiple physical gateways, the first
  856.    term of the naming MUST identify the physical gateway containing the
  857.    desired entity.  If the Media Gateway controls only a single physical
  858.    gateway, the first term of the naming string MAY identify that
  859.    physical gateway, depending on local practice.  A local name that is
  860.    composed of only a wildcard character refers to either all (*) or any
  861.    ($) endpoints within the media gateway.
  862.  
  863.    In the case of trunking gateways, endpoints are trunk circuits
  864.    linking a gateway to a telephone switch. These circuits are typically
  865.    grouped into a digital multiplex, that is connected to the gateway by
  866.    a physical interface. Such circuits are named in three contexts:
  867.  
  868.    *  In the ISUP protocol, trunks are grouped into trunk groups,
  869.       identified by the SS7 point codes of the switches that the group
  870.       connects. Circuits within a trunk group are identified by a
  871.       circuit number (CIC in ISUP).
  872.  
  873.    *  In the gateway configuration files, physical interfaces are
  874.       typically identified by the name of the interface, an arbitrary
  875.       text string. When the interface multiplexes several circuits,
  876.       individual circuits are typically identified by a circuit number.
  877.  
  878.    *  In MGCP, the endpoints are identified by an endpoint identifier.
  879.  
  880.    The Call Agents use configuration databases to map ranges of circuit
  881.    numbers within an ISUP trunk group to corresponding ranges of
  882.    circuits in a multiplex connected to a gateway through a physical
  883.    interface. The gateway will be identified, in MGCP, by a domain name.
  884.    The local name will be structured to encode both the name of the
  885.    physical interface, for example X35V3+A4, and the circuit number
  886.    within the multiplex connected to the interface, for example 13. The
  887.    circuit number will be separated from the name of the interface by a
  888.    fraction bar, as in:
  889.  
  890.         X35V3+A4/13
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898. Arango, et al.               Informational                     [Page 16]
  899.  
  900. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  901.  
  902.  
  903.    Other types of endpoints will use different conventions. For example,
  904.    in gateways were physical interfaces by construction only control one
  905.    circuit, the circuit number will be omitted. The exact syntax of such
  906.    names should be specified in the corresponding server specification.
  907.  
  908. 2.1.3.  Calls and connections
  909.  
  910.    Connections are created on the call agent on each endpoint that will
  911.    be involved in the "call."  In the classic example of a connection
  912.    between two "DS0" endpoints (EP1 and EP2), the call agents
  913.    controlling the end points will establish two connections (C1 and
  914.    C2):
  915.  
  916.                  +---+                            +---+
  917.    (channel1) ===|EP1|--(C1)--...        ...(C2)--|EP2|===(channel2)
  918.                  +---+                            +---+
  919.  
  920.    Each connection will be designated locally by a connection
  921.    identifier, and will be characterized by connection attributes.
  922.  
  923.    When the two endpoints are located on gateways that are managed by
  924.    the same call agent, the creation is done via the three following
  925.    steps:
  926.  
  927.    1) The call agent asks the first gateway to "create a connection" on
  928.       the first endpoint.  The gateway allocates resources to that
  929.       connection, and respond to the command by providing a "session
  930.       description."  The session description contains the information
  931.       necessary for a third party to send packets towards the newly
  932.       created connection, such as for example IP address, UDP port, and
  933.       packetization parameters.
  934.  
  935.    2) The call agent then asks the second gateway to "create a
  936.       connection" on the second endpoint.  The command carries the
  937.       "session description" provided by the first gateway. The gateway
  938.       allocates resources to that connection, and respond to the command
  939.       by providing its own "session description."
  940.  
  941.    3) The call agent uses a "modify connection" command to provide this
  942.       second "session description" to the first endpoint.  Once this is
  943.       done, communication can proceed in both directions.
  944.  
  945.    When the two endpoints are located on gateways that are managed by
  946.    the different call agents, these two call agents shall exchange
  947.    information through a call-agent to call-agent signalling protocol,
  948.    in order to synchronize the creation of the connection on the two
  949.    endpoints.
  950.  
  951.  
  952.  
  953.  
  954. Arango, et al.               Informational                     [Page 17]
  955.  
  956. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  957.  
  958.  
  959.    Once established, the connection parameters can be modified at any
  960.    time by a "modify connection" command.  The call agent may for
  961.    example instruct the gateway to change the compression algorithm used
  962.    on a connection, or to modify the IP address and UDP port to which
  963.    data should be sent, if a connection is "redirected."
  964.  
  965.    The call agent removes a connection by sending to the gateway a
  966.    "delete connection" command.  The gateway may also, under some
  967.    circumstances, inform a gateway that a connection could not be
  968.    sustained.
  969.  
  970.    The following diagram provides a view of the states of a connection,
  971.    as seen from the gateway:
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010. Arango, et al.               Informational                     [Page 18]
  1011.  
  1012. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1013.  
  1014.  
  1015.              Create connection
  1016.                 received
  1017.                     |
  1018.                     V
  1019.            +-------------------+
  1020.            |resource allocation|-(failed)-+
  1021.            +-------------------+          |
  1022.                     |           (connection refused)
  1023.               (successful)
  1024.                     |
  1025.                     v
  1026.        +----------->+
  1027.        |            |
  1028.        |   +-------------------+
  1029.        |   |  remote session   |
  1030.        |   |   description     |----------(yes)--------+
  1031.        |   |    available ?    |                       |
  1032.        |   +-------------------+                       |
  1033.        |            |                                  |
  1034.        |          (no)                                 |
  1035.        |            |                                  |
  1036.        |      +-----------+                         +------+
  1037.        | +--->| half open |------> Delete   <-------| open |<----------+
  1038.        | |    |  (wait)   |      Connection         |(wait)|           |
  1039.        | |    +-----------+       received          +------+           |
  1040.        | |          |                 |              |                 |
  1041.        | |   Modify Connection        |         Modify Connection      |
  1042.        | |      received              |            received            |
  1043.        | |          |                 |                |               |
  1044.        | | +--------------------+     |       +--------------------+   |
  1045.        | | |assess modification |     |       |assess modification |   |
  1046.        | | +--------------------+     |       +--------------------+   |
  1047.        | |    |             |         |          |             |       |
  1048.        | |(failed)     (successful)   |      (failed)     (successful) |
  1049.        | |    |             |         |          |             |       |
  1050.        | +<---+             |         |          +-------------+-------+
  1051.        |                    |         |
  1052.        +<-------------------+         |
  1053.                                       |
  1054.                              +-----------------+
  1055.                              | Free connection |
  1056.                              | resources.      |
  1057.                              | Report.         |
  1058.                              +-----------------+
  1059.                                       |
  1060.                                       V
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066. Arango, et al.               Informational                     [Page 19]
  1067.  
  1068. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1069.  
  1070.  
  1071. 2.1.3.1.  Names of calls
  1072.  
  1073.    One of the attributes of each connection is the "call identifier."
  1074.  
  1075.    Calls are identified by unique identifiers, independent of the
  1076.    underlying platforms or agents. These identifiers are created by the
  1077.    Call Agent. They are treated in MGCP as unstructured octet strings.
  1078.  
  1079.    Call identifiers are expected to be unique within the system, or at a
  1080.    minimum, unique within the collection of Call Agents that control the
  1081.    same gateways. When a Call Agent builds several connections that
  1082.    pertain to the same call, either on the same gateway or in different
  1083.    gateways, these connections that belong to the same call share the
  1084.    same call-id.  This identifier can then be used by accounting or
  1085.    management procedures, which are outside the scope of MGCP.
  1086.  
  1087. 2.1.3.2.  Names of connections
  1088.  
  1089.    Connection identifiers are created by the gateway when it is
  1090.    requested to create a connection. They identify the connection within
  1091.    the context of an endpoint. They are treated in MGCP as unstructured
  1092.    octet strings.  The gateway should make sure that a proper waiting
  1093.    period, at least 3 minutes, elapses between the end of a connection
  1094.    that used this identifier and its use in a new connection for the
  1095.    same endpoint.  (Gateways may decide to use identifiers that are
  1096.    unique within the context of the gateway.)
  1097.  
  1098. 2.1.3.3.  Management of resources, attributes of connections
  1099.  
  1100.    Many types of resources will be associated to a connection, such as
  1101.    specific signal processing functions or packetization functions.
  1102.    Generally, these resources fall in two categories:
  1103.  
  1104.    1) Externally visible resources, that affect the format of "the bits
  1105.       on the network" and must be communicated to the second endpoint
  1106.       involved in the connection.
  1107.  
  1108.    2) Internal resources, that determine which signal is being sent over
  1109.       the connection and how the received signals are processed by the
  1110.       endpoint.
  1111.  
  1112.    The resources allocated to a connection, and more generally the
  1113.    handling of the connection, are chosen by the gateway under
  1114.    instructions from the call agent.  The call agent will provide these
  1115.    instructions by sending two set of parameters to the gateway:
  1116.  
  1117.    1) The local directives instruct the gateway on the choice of
  1118.       resources that should be used for a connection,
  1119.  
  1120.  
  1121.  
  1122. Arango, et al.               Informational                     [Page 20]
  1123.  
  1124. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1125.  
  1126.  
  1127.    2) When available, the "session description" provided by the other
  1128.       end of the connection.
  1129.  
  1130.    The local directives specify such parameters as the mode of the
  1131.    connection (e.g. send only, send-receive), preferred coding or
  1132.    packetization methods, usage of echo cancellation or silence
  1133.    suppression.  (A detailed list can be found in the specification of
  1134.    the LocalConnectionOptions parameter of the CreateConnection
  1135.    command.) For each of these parameters, the call agent can either
  1136.    specify a value, a range of value, or no value at all.  This allow
  1137.    various implementations to implement various level of control, from a
  1138.    very tight control where the call agent specifies minute details of
  1139.    the connection handling to a very loose control where the call agent
  1140.    only specifies broad guidelines, such as the maximum bandwidth, and
  1141.    let the gateway choose the detailed values.
  1142.  
  1143.    Based on the value of the local directives, the gateway will
  1144.    determine the resources allocated to the connection.  When this is
  1145.    possible, the gateway will choose values that are in line with the
  1146.    remote session description - but there is no absolute requirement
  1147.    that the parameters be exactly the same.
  1148.  
  1149.    Once the resource have been allocated, the gateway will compose a
  1150.    "session description" that describes the way it intends to receive
  1151.    packets.  Note that the session description may in some cases present
  1152.    a range of values.  For example, if the gateway is ready to accept
  1153.    one of several compression algorithm, it can provide a list of these
  1154.    accepted algorithms.
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178. Arango, et al.               Informational                     [Page 21]
  1179.  
  1180. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1181.  
  1182.  
  1183.                  Local Directives
  1184.                 (from call agent 1)
  1185.                         |
  1186.                         V
  1187.                  +-------------+
  1188.                  | resources   |
  1189.                  | allocation  |
  1190.                  | (gateway 1) |
  1191.                  +-------------+
  1192.                    |         |
  1193.                    V         |
  1194.                  Local       |
  1195.               Parameters     V
  1196.                    |      Session
  1197.                    |    Description               Local Directives
  1198.                    |         |                   (from call agent 2)
  1199.                    |         +---> Transmission----+      |
  1200.                    |                (CA to CA)     |      |
  1201.                    |                               V      V
  1202.                    |                           +-------------+
  1203.                    |                           | resources   |
  1204.                    |                           | allocation  |
  1205.                    |                           | (gateway 2) |
  1206.                    |                           +-------------+
  1207.                    |                               |      |
  1208.                    |                               |      V
  1209.                    |                               |    Local
  1210.                    |                               |  Parameters
  1211.                    |                            Session
  1212.                    |                          Description
  1213.                    |         +---- Transmission<---+
  1214.                    |         |      (CA to CA)
  1215.                    V         V
  1216.                  +-------------+
  1217.                  | modification|
  1218.                  | (gateway 1) |
  1219.                  +-------------+
  1220.                    |
  1221.                    V
  1222.                  Local
  1223.               Parameters
  1224.  
  1225.       -- Information flow: local directives & session descriptions --
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234. Arango, et al.               Informational                     [Page 22]
  1235.  
  1236. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1237.  
  1238.  
  1239. 2.1.3.4.  Special case of local connections
  1240.  
  1241.    Large gateways include a large number of endpoints which are often of
  1242.    different types.  In some networks, we may often have to set-up
  1243.    connections between endpoints that are located within the same
  1244.    gateway.  Examples of such connections may be:
  1245.  
  1246.    *  Connecting a trunk line to a wiretap device,
  1247.  
  1248.    *  Connecting a call to an Interactive Voice-Response unit,
  1249.  
  1250.    *  Connecting a call to a Conferencing unit,
  1251.  
  1252.    *  Routing a call from on endpoint to another, something often
  1253.       described as a "hairpin" connection.
  1254.  
  1255.    Local connections are much simpler to establish than network
  1256.    connections. In most cases, the connection will be established
  1257.    through some local interconnecting device, such as for example a TDM
  1258.    bus.
  1259.  
  1260.    When two endpoints are managed by the same gateway, it is possible to
  1261.    specify the connection in a single command that conveys the name of
  1262.    the two endpoints that will be connected.  The command is essentially
  1263.    a "Create Connection" command which includes the name of the second
  1264.    endpoint in lieu of the "remote session description."
  1265.  
  1266. 2.1.4.  Names of Call Agents and other entities
  1267.  
  1268.    The media gateway control protocol has been designed to allow the
  1269.    implementation of redundant Call Agents, for enhanced network
  1270.    reliability.  This means that there is no fixed binding between
  1271.    entities and hardware platforms or network interfaces.
  1272.  
  1273.    Reliability can be improved by the following precautions:
  1274.  
  1275.    *  Entities such as endpoints or Call Agents are identified by their
  1276.       domain name, not their network addresses. Several addresses can be
  1277.       associated with a domain name. If a command or a response cannot
  1278.       be forwarded to one of the network addresses, implementations
  1279.       should retry the transmission using another address.
  1280.  
  1281.    *  Entities may move to another platform. The association between a
  1282.       logical name (domain name) and the actual platform are kept in the
  1283.       domain name service. Call Agents and Gateways should keep track of
  1284.       the time-to-live of the record they read from the DNS. They should
  1285.       query the DNS to refresh the information if the time to live has
  1286.       expired.
  1287.  
  1288.  
  1289.  
  1290. Arango, et al.               Informational                     [Page 23]
  1291.  
  1292. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1293.  
  1294.  
  1295.    In addition to the indirection provided by the use of domain names
  1296.    and the DNS, the concept of "notified entity" is central to
  1297.    reliability and fail-over in MGCP. The "notified entity" for an
  1298.    endpoint is the Call Agent currently controlling that endpoint. At
  1299.    any point in time, an endpoint has one, and only one, "notified
  1300.    entity" associated with it, and when the endpoint needs to send a
  1301.    command to the Call Agent, it MUST send the command to the current
  1302.    "notified entity" for which endpoint(s) the command pertains. Upon
  1303.    startup, the "notified entity" MUST be set to a provisioned value.
  1304.    Most commands sent by the Call Agent include the ability to
  1305.    explicitly name the "notified entity" through the use of a
  1306.    "NotifiedEntity" parameter. The "notified entity" will stay the same
  1307.    until either a new "NotifiedEntity" parameter is received or the
  1308.    endpoint reboots. If the "notified entity" for an endpoint is empty
  1309.    or has not been set explicitly, the "notified entity" will then
  1310.    default to the source address of the last connection handling command
  1311.    or notification request received for the endpoint. Auditing will thus
  1312.    not change the "notified entity."
  1313.  
  1314. 2.1.5.  Digit maps
  1315.  
  1316.    The Call Agent can ask the gateway to collect digits dialed by the
  1317.    user.  This facility is intended to be used with residential gateways
  1318.    to collect the numbers that a user dials; it may also be used with
  1319.    trunking gateways and access gateways alike, to collect the access
  1320.    codes, credit card numbers and other numbers requested by call
  1321.    control services.
  1322.  
  1323.    An alternative procedure is for the gateway to notify the Call Agent
  1324.    of the dialed digits, as soon as they are dialed. However, such a
  1325.    procedure generates a large number of interactions. It is preferable
  1326.    to accumulate the dialed numbers in a buffer, and to transmit them in
  1327.    a single message.
  1328.  
  1329.    The problem with this accumulation approach, however, is that it is
  1330.    hard for the gateway to predict how many numbers it needs to
  1331.    accumulate before transmission. For example, using the phone on our
  1332.    desk, we can dial the following numbers:
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346. Arango, et al.               Informational                     [Page 24]
  1347.  
  1348. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1349.  
  1350.  
  1351.         _______________________________________________________
  1352.        |  0                     |  Local operator             |
  1353.        |  00                    |  Long distance operator     |
  1354.        |  xxxx                  |  Local extension number     |
  1355.        |  8xxxxxxx              |  Local number               |
  1356.        |  #xxxxxxx              |  Shortcut to local number at|
  1357.        |                        |  other corporate sites      |
  1358.        |  *xx                   |  Star services              |
  1359.        |  91xxxxxxxxxx          |  Long distance number       |
  1360.        |  9011 + up to 15 digits|  International number       |
  1361.        |________________________|_____________________________|
  1362.  
  1363.    The solution to this problem is to load the gateway with a digit map
  1364.    that correspond to the dial plan. This digit map is expressed using a
  1365.    syntax derived from the Unix system command, egrep. For example, the
  1366.    dial plan described above results in the following digit map:
  1367.  
  1368.       (0T| 00T|[1-7]xxx|8xxxxxxx|#xxxxxxx|*xx|91xxxxxxxxxx|9011x.T)
  1369.  
  1370.    The formal syntax of the digit map is described by the DigitMap rule
  1371.    in the formal syntax description of the protocol (section 3.4).  A
  1372.    Digit-Map, according to this syntax, is defined either by a "string"
  1373.    or by a list of strings. Each string in the list is an alternative
  1374.    numbering scheme, specified either as a set of digits or timers, or
  1375.    as regular expression. A gateway that detects digits, letters or
  1376.    timers will:
  1377.  
  1378.    1) Add the event parameter code as a token to the end of an internal
  1379.       state variable called the "current dial string"
  1380.  
  1381.    2) Apply the current dial string to the digit map table, attempting a
  1382.       match to each regular expression in the Digit Map in lexical order
  1383.  
  1384.    3) If the result is under-qualified (partially matches at least one
  1385.       entry in the digit map), do nothing further.
  1386.  
  1387.    If the result matches, or is over-qualified (i.e. no further digits
  1388.    could possibly produce a match), send the current digit string to the
  1389.    Call Agent. A match, in this specification, can be either a "perfect
  1390.    match," exactly matching one of the specified alternatives, or an
  1391.    impossible match, which occur when the dial string does not match any
  1392.    of the alternative. Unexpected timers, for example, can cause
  1393.    "impossible matches."  Both perfect matches and impossible matches
  1394.    trigger notification of the accumulated digits.
  1395.  
  1396.    Digit maps are provided to the gateway by the Call Agent, whenever
  1397.    the Call Agent instructs the gateway to listen for digits.
  1398.  
  1399.  
  1400.  
  1401.  
  1402. Arango, et al.               Informational                     [Page 25]
  1403.  
  1404. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1405.  
  1406.  
  1407. 2.1.6.  Names of events
  1408.  
  1409.    The concept of events and signals is central to MGCP. A Call Agent
  1410.    may ask to be notified about certain events occurring in an endpoint,
  1411.    e.g.  off-hook events, and a call agent may request certain signals
  1412.    to be applied to an endpoint, e.g. dial-tone.
  1413.  
  1414.    Events and signals are grouped in packages within which they share
  1415.    the same namespace which we will refer to as event names in the
  1416.    following.  Packages are groupings of the events and signals
  1417.    supported by a particular type of endpoint. For instance, one package
  1418.    may support a certain group of events and signals for analog access
  1419.    lines, and another package may support another group of events and
  1420.    signals for video lines. One or more packages may exist for a given
  1421.    endpoint-type.
  1422.  
  1423.    Event names are case insensitive and are composed of two logical
  1424.    parts, a package name and an event name. Both names are strings of
  1425.    letters, hyphens and digits, with the restriction that hyphens shall
  1426.    never be the first or last characters in a name. Package or event
  1427.    names are not case sensitive - values such as "hu", "Hu", "HU" or
  1428.    "hU" should be considered equal.
  1429.  
  1430.    Examples of package names are "D" (DTMF), "M" (MF), "T" (Trunk) or
  1431.    "L" (Line). Examples of event names can be "hu" (off hook or "hang-
  1432.    up" transition), "hf" (flash hook) or "0" (the digit zero).
  1433.  
  1434.    In textual representations, the package name, when present, is
  1435.    separated from the event name by a slash ("/").  The package name is
  1436.    in fact optional. Each endpoint-type has a default package associated
  1437.    with it, and if the package name is excluded from the event name, the
  1438.    default package name for that endpoint-type is assumed. For example,
  1439.    for an analog access line, the following two event names are equal:
  1440.  
  1441.    l/dl dial-tone in the line package for an analog access line.
  1442.  
  1443.    dl   dial-tone in the line package (default) for an analog access
  1444.         line.
  1445.  
  1446.    This document defines a basic set of package names and event names.
  1447.    Additional package names and event names can be registered with the
  1448.    IANA. A package definition shall define the name of the package, and
  1449.    the definition of each event belonging to the package. The event
  1450.    definition shall include the precise name of the event (i.e., the
  1451.    code used in MGCP), a plain text definition of the event, and, when
  1452.    appropriate, the precise definition of the corresponding signals, for
  1453.    example the exact frequencies of audio signal such as dial tones or
  1454.    DTMF tones.
  1455.  
  1456.  
  1457.  
  1458. Arango, et al.               Informational                     [Page 26]
  1459.  
  1460. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1461.  
  1462.  
  1463.    In addition, implementers can gain experience by using experimental
  1464.    packages. The names of experimental packages must start with the two
  1465.    characters "x-"; the IANA shall not register package names that start
  1466.    with these characters.
  1467.  
  1468.    Digits, or letters, are supported in many packages, notably "DTMF"
  1469.    and "MF". Digits and letters are defined by the rules "Digit" and
  1470.    "Letter" in the definition of digit maps. This definition refers to
  1471.    the digits (0 to 9), to the asterisk or star ("*") and orthotrope,
  1472.    number or pound sign ("#"), and to the letters "A", "B", "C" and "D",
  1473.    as well as the timer indication "T". These letters can be combined in
  1474.    "digit string" that represent the keys that a user punched on a dial.
  1475.    In addition, the letter "X" can be used to represent all digits, and
  1476.    the sign "$" can be used in wildcard notations. The need to easily
  1477.    express the digit strings has a consequence on the form of event
  1478.    names:
  1479.  
  1480.      An event name that does not denote a digit should always contain at
  1481.      least one character that is neither a digit, nor one of the letters
  1482.      A, B, C, D, T or X. (Such names should not contain the special
  1483.      signs "*", "#", "/" or "$".)
  1484.  
  1485.    A Call Agent may often have to ask a gateway to detect a group of
  1486.    events. Two conventions can be used to denote such groups:
  1487.  
  1488.    *  The wildcard convention can be used to detect any event belonging
  1489.       to a package, or a given event in many packages, or event any
  1490.       event in any package supported by the gateway.
  1491.  
  1492.    *  The regular expression Range notation can be used to detect a
  1493.       range of digits.
  1494.  
  1495.    The star sign (*) can be used as a wildcard instead of a package
  1496.    name, and the keyword "all" can be used as a wildcard instead of an
  1497.    event name:
  1498.  
  1499.      A name such as "foo/all" denotes all events in package "foo"
  1500.      A name such as "*/bar" denotes the event "bar" in any package
  1501.      supported by the gateway
  1502.      The names "*" or "*/all" denote all events supported by the
  1503.      gate way.
  1504.  
  1505.    The call agent can ask a gateway to detect a set of digits or letters
  1506.    either by individually describing those letters, or by using the
  1507.    "range" notation defined in the syntax of digit strings. For example,
  1508.    the call agent can:
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514. Arango, et al.               Informational                     [Page 27]
  1515.  
  1516. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1517.  
  1518.  
  1519.      Use the letter "x" to denote "any letter or digit."
  1520.      Use the notation "[0-9#]" to denote the digits 0 to 9 and the pound
  1521.      sign.
  1522.  
  1523.    In some cases, Call Agents will request the gateway to generate or
  1524.    detect events on connections rather than on the end point itself.
  1525.    For example, gateways may be asked to provide a ringback tone on a
  1526.    connection.  When an event shall be applied on a connection, the name
  1527.    of the connection is added to the name of the event, using an "at"
  1528.    sign (@) as a delimiter, as in:
  1529.  
  1530.      G/rt@0A3F58
  1531.  
  1532.    The wildcard character "*" (star) can be used to denote "all
  1533.    connections". When this convention is used, the gateway will generate
  1534.    or detect the event on all the connections that are connected to the
  1535.    endpoint. An example of this convention could be:
  1536.  
  1537.      R/qa@*
  1538.  
  1539.    The wildcard character "$" can be used to denote "the current
  1540.    connection." It should only be used by the call agent, when the event
  1541.    notification request is "encapsulated" within a command creation or
  1542.    modification command. When this convention is used, the gateway will
  1543.    generate or detect the event on the connection that is currently
  1544.    being created or modified. An example of this convention is:
  1545.  
  1546.      G/rt@$
  1547.  
  1548.    The connection id, or a wildcard replacement, can be used in
  1549.    conjunction with the "all packages" and "all events" conventions.
  1550.    For example, the notation:
  1551.  
  1552.      */all@*
  1553.  
  1554.    can be used to designate all events on all connections.
  1555.  
  1556.    Events and signals are described in packages. The package description
  1557.    must provide, for each events, the following informations:
  1558.  
  1559.    *  The description of the event and its purpose, which should mean
  1560.       the actual signal that is generated by the client (i.e., xx ms FSK
  1561.       tone) as well as the resulting user observed result (i.e., MW
  1562.       light on/off).
  1563.  
  1564.    *  The detailed characteristics of the event, such as for example
  1565.       frequencies and amplitude of audio signals, modulations and
  1566.       repetitions,
  1567.  
  1568.  
  1569.  
  1570. Arango, et al.               Informational                     [Page 28]
  1571.  
  1572. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1573.  
  1574.  
  1575.    *  The typical and maximum duration of the event.
  1576.  
  1577.    Signals are divided into different types depending on their behavior:
  1578.  
  1579.    *  On/off (OO) Once applied, these signals last forever until they
  1580.       are turned off.  This may happen either as the result of an event
  1581.       or a new SignalRequests (see later).
  1582.  
  1583.    *  Time-out (TO) Once applied, these signals last until they are
  1584.       either turned off (by an event or SignalRequests) or a signal
  1585.       specific period of time has elapsed. Depending on package
  1586.       specifications, a signal that times out may generate an "operation
  1587.       complete" event.
  1588.  
  1589.    *  Brief (BR) The duration of these signals is so short, that they
  1590.       stop on their own. If an event occurs the signal will not stop,
  1591.       however if a new SignalRequests is applied, the signal will stop.
  1592.       (Note: this point should be debated.  One could make a case that
  1593.       events such as strings of DTMF digits should in fact be allowed to
  1594.       complete.)
  1595.  
  1596.       TO signals are normally used to alert the endpoints' users, to
  1597.       signal them that they are expected to perform a specific action,
  1598.       such as hang down the phone (ringing). Transmission of these
  1599.       signals should typically be interrupted as soon as the first of
  1600.       the requested events has been produced.
  1601.  
  1602.       Package descriptions should describe, for all signals, their type
  1603.       (OO, TO, BR). They should also describe the maximum duration of
  1604.       the TO signals.
  1605.  
  1606. 2.2.  Usage of SDP
  1607.  
  1608.    The Call Agent uses the MGCP to provision the gateways with the
  1609.    description of connection parameters such as IP addresses, UDP port
  1610.    and RTP profiles. These descriptions will follow the conventions
  1611.    delineated in the Session Description Protocol which is now an IETF
  1612.    proposed standard, documented in RFC 2327.
  1613.  
  1614.    SDP allows for description of multimedia conferences. This version
  1615.    limits SDP usage to the setting of audio circuits and data access
  1616.    circuits.  The initial session descriptions contain the description
  1617.    of exactly one media, of type "audio" for audio connections, "nas"
  1618.    for data access.
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626. Arango, et al.               Informational                     [Page 29]
  1627.  
  1628. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1629.  
  1630.  
  1631. 2.3.  Gateway Control Commands
  1632.  
  1633.    This section describes the commands of the MGCP. The service consists
  1634.    of connection handling and endpoint handling commands. There are nine
  1635.    commands in the protocol:
  1636.  
  1637.    *  The Call Agent can issue an EndpointConfiguration command to a
  1638.       gateway, instructing the gateway about the coding characteristics
  1639.       expected by the "line-side" of the endpoint.
  1640.  
  1641.    *  The Call Agent can issue a NotificationRequest command to a
  1642.       gateway, instructing the gateway to watch for specific events such
  1643.       as hook actions or DTMF tones on a specified endpoint .
  1644.  
  1645.    *  The gateway will then use the Notify command to inform the Call
  1646.       Agent when the requested events occur.
  1647.  
  1648.    *  The Call Agent can use the CreateConnection command to create a
  1649.       connection that terminates in an "endpoint" inside the gateway.
  1650.  
  1651.    *  The Call Agent can use the ModifyConnection command to change the
  1652.       parameters associated to a previously established connection.
  1653.  
  1654.    *  The Call Agent can use the DeleteConnection command to delete an
  1655.       existing connection. The DeleteConnection command may also be used
  1656.       by a gateway to indicate that a connection can no longer be
  1657.       sustained.
  1658.  
  1659.    *  The Call Agent can use the AuditEndpoint and AuditConnection
  1660.       commands to audit the status of an "endpoint" and any connections
  1661.       associated with it. Network management beyond the capabilities
  1662.       provided by these commands are generally desirable, e.g.
  1663.       information about the status of the gateway. Such capabilities are
  1664.       expected to be supported by the use of the Simple Network
  1665.       Management Protocol (SNMP) and definition of a MIB which is
  1666.       outside the scope of this specification.
  1667.  
  1668.    *  The Gateway can use the RestartInProgress command to notify the
  1669.       Call Agent that the gateway, or a group of endpoints managed by
  1670.       the gateway, is being taken out of service or is being placed back
  1671.       in service.
  1672.  
  1673.    These services allow a controller (normally, the Call Agent) to
  1674.    instruct a gateway on the creation of connections that terminate in
  1675.    an "endpoint" attached to the gateway, and to be informed about
  1676.    events occurring at the endpoint. An endpoint may be for example:
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682. Arango, et al.               Informational                     [Page 30]
  1683.  
  1684. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1685.  
  1686.  
  1687.    *  A specific trunk circuit, within a trunk group terminating in a
  1688.       gateway,
  1689.  
  1690.    *  A specific announcement handled by an announcement server.
  1691.  
  1692.    Connections are grouped into "calls". Several connections, that may
  1693.    or may not belong to the same call, can terminate in the same
  1694.    endpoint .  Each connection is qualified by a "mode" parameter, which
  1695.    can be set to "send only" (sendonly), "receive only" (recvonly),
  1696.    "send/receive" (sendrecv), "conference" (confrnce), "data",
  1697.    "inactive" (inactive), "loopback", "continuity test" (conttest),
  1698.    "network loop back" (netwloop) or "network continuity test"
  1699.    (netwtest).
  1700.  
  1701.    The handling of the audio signals received on these connections is
  1702.    determined by the mode parameters:
  1703.  
  1704.    *  Audio signals received in data packets through connections in
  1705.       "receive", "conference" or "send/receive" mode are mixed and sent
  1706.       to the endpoint.
  1707.  
  1708.    *  Audio signals originating from the endpoint are transmitted over
  1709.       all the connections whose mode is "send", "conference" or
  1710.       "send/receive."
  1711.  
  1712.    *  In addition to being sent to the endpoint, audio signals received
  1713.       in data packets through connections in "conference" mode are
  1714.       replicated to all the other connections whose mode is
  1715.       "conference."
  1716.  
  1717.    The "loopback" and "continuity test" modes are used during
  1718.    maintenance and continuity test operations. There are two flavors of
  1719.    continuity test, one specified by ITU and one used in the US. In the
  1720.    first case, the test is a loopback test. The originating switch will
  1721.    send a tone (the go tone) on the bearer circuit and expect the
  1722.    terminating switch to loopback the circuit. If the originating switch
  1723.    sees the same tone returned (the return tone), the COT has passed. If
  1724.    not, the COT has failed. In the second case, the go and return tones
  1725.    are different. The originating switch sends a certain go tone. The
  1726.    terminating switch detects the go tone, it asserts a different return
  1727.    tone in the backwards direction. When the originating switch detects
  1728.    the return tone, the COT is passed. If the originating switch never
  1729.    detects the return tone, the COT has failed.
  1730.  
  1731.    If the mode is set to "loopback", the gateway is expected to return
  1732.    the incoming signal from the endpoint back into that same endpoint.
  1733.    This procedure will be used, typically, for testing the continuity of
  1734.    trunk circuits according to the ITU specifications.
  1735.  
  1736.  
  1737.  
  1738. Arango, et al.               Informational                     [Page 31]
  1739.  
  1740. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1741.  
  1742.  
  1743.    If the mode is set to "continuity test", the gateway is informed that
  1744.    the other end of the circuit has initiated a continuity test
  1745.    procedure according to the GR specification. The gateway will place
  1746.    the circuit in the transponder mode required for dual-tone continuity
  1747.    tests.
  1748.  
  1749.    If the mode is set to "network loopback", the audio signals received
  1750.    from the connection will be echoed back on the same connection.
  1751.  
  1752.    If the mode is set to "network continuity test", the gateway will
  1753.    process the packets received from the connection according to the
  1754.    transponder mode required for dual-tone continuity test, and send the
  1755.    processed signal back on the connection.
  1756.  
  1757. 2.3.1.  EndpointConfiguration
  1758.  
  1759.    The EndpointConfiguration commands are used to specify the encoding
  1760.    of the signals that will be received by the endpoint.  For example,
  1761.    in certain international telephony configurations, some calls will
  1762.    carry mu-law encoded audio signals, while other will use A-law.  The
  1763.    Call Agent will use the EndpointConfiguration command to pass this
  1764.    information to the gateway. The configuration may vary on a call by
  1765.    call basis, but can also be used in the absence of any connection.
  1766.  
  1767.            ReturnCode
  1768.            <-- EndpointConfiguration( EndpointId,
  1769.                                       BearerInformation)
  1770.  
  1771.    EndpointId is the name for the endpoint in the gateway where
  1772.    EndpointConfiguration executes, as defined in section 2.1.1.  The
  1773.    "any of" wildcard convention shall not be used.  If the "all of"
  1774.    wildcard convention is used, the command applies to all the endpoint
  1775.    whose name matches the wildcard.
  1776.  
  1777.    BearerInformation is a parameter defining the coding of the data
  1778.    received from the line side.  These information is encoded as a list
  1779.    of sub-parameters.  The only sub-parameter defined in this version of
  1780.    the specification is the encoding method, whose values can be set to
  1781.    "A-law" and "mu-law".
  1782.  
  1783.    ReturnCode is a parameter returned by the gateway. It indicates the
  1784.    outcome of the command and consists of an integer number optionally
  1785.    followed by commentary.
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794. Arango, et al.               Informational                     [Page 32]
  1795.  
  1796. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1797.  
  1798.  
  1799. 2.3.2.  NotificationRequest
  1800.  
  1801.    The NotificationRequest commands are used to request the gateway to
  1802.    send notifications upon the occurrence of specified events in an
  1803.    endpoint.  For example, a notification may be requested for when a
  1804.    gateway detects that an endpoint is receiving tones associated with
  1805.    fax communication.  The entity receiving this notification may decide
  1806.    to use a different type of encoding method in the connections bound
  1807.    to this endpoint.
  1808.  
  1809.        ReturnCode
  1810.        <-- NotificationRequest( EndpointId,
  1811.                                 [NotifiedEntity,]
  1812.                                 [RequestedEvents,]
  1813.                                 RequestIdentifier,
  1814.                                 [DigitMap,]
  1815.                                 [SignalRequests,]
  1816.                                 [QuarantineHandling,]
  1817.                                 [DetectEvents,]
  1818.                                 [encapsulated EndpointConfiguration])
  1819.  
  1820.    EndpointId is the name for the endpoint in the gateway where
  1821.    NotificationRequest executes, as defined in section 2.1.1.
  1822.  
  1823.    NotifiedEntity is an optional parameter that specifies where the
  1824.    notifications should be sent. When this parameter is absent, the
  1825.    notifications should be sent to the originator of the
  1826.    NotificationRequest.
  1827.  
  1828.    RequestIdentifier is used to correlate this request with the
  1829.    notifications that it triggers.
  1830.  
  1831.    RequestedEvents is a list of events that the gateway is requested to
  1832.    detect and report. Such events include, for example, fax tones,
  1833.    continuity tones, or on-hook transition.  To each event is associated
  1834.    an action, which can be:
  1835.  
  1836.    *  Notify the event immediately, together with the accumulated list
  1837.       of observed events,
  1838.  
  1839.    *  Swap audio,
  1840.  
  1841.    *  Accumulate the event in an event buffer, but don't notify yet,
  1842.  
  1843.    *  Accumulate according to Digit Map,
  1844.  
  1845.    *  Keep Signal(s) active,
  1846.  
  1847.  
  1848.  
  1849.  
  1850. Arango, et al.               Informational                     [Page 33]
  1851.  
  1852. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1853.  
  1854.  
  1855.    *  process the Embedded Notification Request,
  1856.  
  1857.    *  Ignore the event.
  1858.  
  1859.    Some actions can be combined.  In particular:
  1860.  
  1861.    *  The "swap audio" action can be combined with "Notify",
  1862.       "Accumulate" and "Ignore."
  1863.  
  1864.    *  The "keep signal active" action can be combined with "Notify",
  1865.       "Accumulate", "Accumulate according to Digit Map", "Ignore" and
  1866.       "Embedded Notification Request."
  1867.  
  1868.    *  The "Embedded Notification Request" can be combined with
  1869.       "Accumulate" and with "Keep signals active." It can also be
  1870.       combined with Notify, if the gateway is allowed to issue several
  1871.       Notify commands in response to a single Notification request.
  1872.  
  1873.    In addition to the requestedEvents parameter specified in the
  1874.    command, some profiles of MGCP have introduced the concept of
  1875.    "persistent events." According to such profiles, the persistent event
  1876.    list is configured in the endpoint, by means outside the scope of
  1877.    MGCP. The basic MGCP specification does not specify any persistent
  1878.    event.
  1879.  
  1880.    If a persistent event is not included in the list of RequestedEvents,
  1881.    and the event occurs, the event will be detected anyway, and
  1882.    processed like all other events, as if the persistent event had been
  1883.    requested with a Notify action. Thus, informally, persistent events
  1884.    can be viewed as always being implicitly included in the list of
  1885.    RequestedEvents with an action to Notify, although no glare
  1886.    detection, etc., will be performed.
  1887.  
  1888.    Non-persistent events are those events explicitly included in the
  1889.    RequestedEvents list. The (possibly empty) list of requested events
  1890.    completely replaces the previous list of requested events. In
  1891.    addition to the persistent events, only the events specified in the
  1892.    requested events list will be detected by the endpoint. If a
  1893.    persistent event is included in the RequestedEvents list, the action
  1894.    specified will then replace the default action associated with the
  1895.    event for the life of the RequestedEvents list, after which the
  1896.    default action is restored. For example, if "Ignore off-hook" was
  1897.    specified, and a new request without any off-hook instructions were
  1898.    received, the default "Notify off-hook" operation then would be
  1899.    restored. A given event MUST NOT appear more than once in a
  1900.    RequestedEvents.
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906. Arango, et al.               Informational                     [Page 34]
  1907.  
  1908. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1909.  
  1910.  
  1911.    The gateway will detect the union of the persistent events and the
  1912.    requested events. If an event is not specified in either list, it
  1913.    will be ignored.
  1914.  
  1915.    The Swap Audio action can be used when a gateway handles more than
  1916.    one active connection on an endpoint. This will be the case for
  1917.    three-way calling, call waiting, and possibly other feature
  1918.    scenarios. In order to avoid the round-trip to the Call Agent when
  1919.    just changing which connection is attached to the audio functions of
  1920.    the endpoint, the NotificationRequest can map an event (usually hook
  1921.    flash, but could be some other event) to a local function swap audio,
  1922.    which selects the "next" connection in a round robin fashion. If
  1923.    there is only one connection, this action is effectively a no-op.
  1924.  
  1925.    If signal(s) are desired to start when an event being looked for
  1926.    occurs, the "Embedded NotificationRequest" action can be used. The
  1927.    embedded NotificationRequest may include a new list of
  1928.    RequestedEvents, SignalRequests and a new digit map as well. The
  1929.    semantics of the embedded NotificationRequest is as if a new
  1930.    NotificationRequest was just received with the same NotifiedEntity,
  1931.    and RequestIdentifier. When the "Embedded NotificationRequest" is
  1932.    activated, the "current dial string" will be cleared; the list of
  1933.    observed events and the quarantine buffer will be unaffected.
  1934.  
  1935.    MGCP implementations shall be able to support at least one level of
  1936.    embedding.  An embedded NotificationRequest that respects this
  1937.    limitation shall not contain another Embedded NotificationRequest.
  1938.  
  1939.    DigitMap is an optional parameter that allows the Call Agent to
  1940.    provision the gateways with a digit map according to which digits
  1941.    will be accumulated. If this optional parameter is absent, the
  1942.    previously defined value is retained. This parameter must be defined,
  1943.    either explicitly or through a previous command, if the
  1944.    RequestedEvent parameters contain an request to "accumulate according
  1945.    to the digit map." The collection of these digits will result in a
  1946.    digit string. The digit string is initialized to a null string upon
  1947.    reception of the NotificationRequest, so that a subsequent
  1948.    notification only returns the digits that were collected after this
  1949.    request. Digits that were accumulated according to the digit map are
  1950.    reported as any other accumulated event, in the order in which they
  1951.    occur. It is therefore possible that other events be accumulated may
  1952.    be found in between the list of digits.
  1953.  
  1954.    SignalRequests is a parameter that contains the set of signals that
  1955.    the gateway is asked to apply to the endpoint, such as, for example
  1956.    ringing, or continuity tones. Signals are identified by their name,
  1957.    which is an event name, and may be qualified by parameters.
  1958.  
  1959.  
  1960.  
  1961.  
  1962. Arango, et al.               Informational                     [Page 35]
  1963.  
  1964. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  1965.  
  1966.  
  1967.    The action triggered by the SignalRequests is synchronized with the
  1968.    collection of events specified in the RequestedEvents parameter. For
  1969.    example, if the NotificationRequest mandates "ringing" and the event
  1970.    request ask to look for an "off-hook" event, the ringing shall stop
  1971.    as soon as the gateway detect an off hook event. The formal
  1972.    definition is that the generation of all "Time Out" signals shall
  1973.    stop as soon as one of the requested events is detected, unless the
  1974.    "Keep signals active" action is associated to the specified event.
  1975.  
  1976.    The specific definition of actions that are requested via these
  1977.    SignalRequests, such as the duration of and frequency of a DTMF
  1978.    digit, is out side the scope of MGCP. This definition may vary from
  1979.    location to location and hence from gateway to gateway.
  1980.  
  1981.    The RequestedEvents and SignalRequests refer to the same event
  1982.    definitions. In one case, the gateway is asked to detect the
  1983.    occurrence of the event, and in the other case it is asked to
  1984.    generate it. The specific events and signals that a given endpoint
  1985.    can detect or perform are determined by the list of event packages
  1986.    that are supported by that end point.  Each package specifies a list
  1987.    of events and actions that can be detected or performed.  A gateway
  1988.    that is requested to detect or perform an event belonging to a
  1989.    package that is not supported by the specified endpoint shall return
  1990.    an error. When the event name is not qualified by a package name, the
  1991.    default package name for the end point is assumed.  If the event name
  1992.    is not registered in this default package, the gateway shall return
  1993.    an error.
  1994.  
  1995.    The Call Agent can send a NotificationRequest whose requested signal
  1996.    list is empty. It will do so for example when tone generation should
  1997.    stop.
  1998.  
  1999.    The optional QuarantineHandling parameter specifies the handling of
  2000.    "quarantine" events, i.e. events that have been detected by the
  2001.    gateway before the arrival of this NotificationRequest command, but
  2002.    have not yet been notified to the Call Agent.  The parameter provides
  2003.    a set of handling options:
  2004.  
  2005.    *  whether the quarantined events should be processed or discarded
  2006.       (the default is to process them.)
  2007.  
  2008.    *  whether the gateway is expected to generate at most one
  2009.       notification (step by step), or multiple notifications (loop), in
  2010.       response to this request (the default is exactly one.)
  2011.  
  2012.    When the parameter is absent, the default value is assumed.
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018. Arango, et al.               Informational                     [Page 36]
  2019.  
  2020. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2021.  
  2022.  
  2023.    We should note that the quarantine-handling parameter also governs
  2024.    the handling of events that were detected but not yet notified when
  2025.    the command is received.
  2026.  
  2027.    DetectEvents is an optional parameter that specifies a list of events
  2028.    that the gateway is requested to detect during the quarantine period.
  2029.    When this parameter is absent, the events that should be detected in
  2030.    the quarantine period are those listed in the last received
  2031.    DetectEvents list.  In addition, the gateway should also detect the
  2032.    events specified in the request list, including those for which the
  2033.    "ignore" action is specified.
  2034.  
  2035.    Some events and signals, such as the in-line ringback or the quality
  2036.    alert, are performed or detected on connections terminating in the
  2037.    end point rather than on the endpoint itself.  The structure of the
  2038.    event names allow the Call Agent to specify the connection (or
  2039.    connections) on which the events should be performed or detected.
  2040.  
  2041.    The command may carry an encapsulated EndpointConfiguration command,
  2042.    that will apply to the same endpoint.  When this command is present,
  2043.    the parameters of the EndpointConfiguration command are inserted
  2044.    after the normal parameters of the NotificationRequest, with the
  2045.    exception of the EndpointId, which is not replicated.
  2046.  
  2047.    The encapsulated EndpointConfiguration command shares the fate of the
  2048.    NotificationRequest command.  If the NotificationRequest is rejected,
  2049.    the EndpointConfiguration is not executed.
  2050.  
  2051.    ReturnCode is a parameter returned by the gateway. It indicates the
  2052.    outcome of the command and consists of an integer number optionally
  2053.    followed by commentary. .NH 3 Notifications
  2054.  
  2055.    Notifications are sent via the Notify command and are sent by the
  2056.    gateway when the observed events occur.
  2057.  
  2058.                ReturnCode
  2059.                <-- Notify( EndpointId,
  2060.                            [NotifiedEntity,]
  2061.                            RequestIdentifier,
  2062.                            ObservedEvents)
  2063.  
  2064.    EndpointId is the name for the endpoint in the gateway which is
  2065.    issuing the Notify command, as defined in section 2.1.1. The
  2066.    identifier should be a fully qualified endpoint identifier, including
  2067.    the domain name of the gateway.  The local part of the name shall not
  2068.    use the wildcard convention.
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074. Arango, et al.               Informational                     [Page 37]
  2075.  
  2076. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2077.  
  2078.  
  2079.    NotifiedEntity is an optional parameter that identifies the entity to
  2080.    which the notifications is sent. This parameter is equal to the last
  2081.    received value of the NotifiedEntity parameter.  The parameter is
  2082.    absent if there was no such parameter in the triggering request. The
  2083.    notification is sent to the "current notified entity" or, if no such
  2084.    entity was ever specified, to the address from which the request was
  2085.    received.
  2086.  
  2087.    RequestIdentifier is parameter that repeats the RequestIdentifier
  2088.    parameter of the NotificationRequest that triggered this
  2089.    notification.  It is used to correlate this notification with the
  2090.    request that triggered it.
  2091.  
  2092.    ObservedEvents is a list of events that the gateway detected. A
  2093.    single notification may report a list of events that will be reported
  2094.    in the order in which they were detected. The list may only contain
  2095.    the identification of events that were requested in the
  2096.    RequestedEvents parameter of the triggering NotificationRequest. It
  2097.    will contain the events that were either accumulated (but not
  2098.    notified) or treated according to digit map (but no match yet), and
  2099.    the final event that triggered the detection or provided a final
  2100.    match in the digit map.
  2101.  
  2102.    ReturnCode is a parameter returned by the call agent. It indicates
  2103.    the outcome of the command and consists of an integer number
  2104.    optionally followed by commentary.
  2105.  
  2106. 2.3.3.  CreateConnection
  2107.  
  2108.    This command is used to create a connection between two endpoints.
  2109.  
  2110.             ReturnCode,
  2111.             ConnectionId,
  2112.             [SpecificEndPointId,]
  2113.             [LocalConnectionDescriptor,]
  2114.             [SecondEndPointId,]
  2115.             [SecondConnectionId]
  2116.             <--- CreateConnection(CallId,
  2117.                                   EndpointId,
  2118.                                   [NotifiedEntity,]
  2119.                                   [LocalConnectionOptions,]
  2120.                                   Mode,
  2121.                                   [{RemoteConnectionDescriptor |
  2122.                                     SecondEndpointId}, ]
  2123.                                   [Encapsulated NotificationRequest,]
  2124.                                   [Encapsulated EndpointConfiguration])
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130. Arango, et al.               Informational                     [Page 38]
  2131.  
  2132. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2133.  
  2134.  
  2135.    A connection is defined by its endpoints. The input parameters in
  2136.    CreateConnection provide the data necessary to build a gateway's
  2137.    "view" of a connection.
  2138.  
  2139.    CallId is a globally unique parameter that identifies the call (or
  2140.    session) to which this connection belongs. Connections that belong to
  2141.    the same call share the same call-id. The call-id can be used to
  2142.    identify calls for reporting and accounting purposes. It does not
  2143.    affect the handling of connections by the gateway.
  2144.  
  2145.    EndpointId is the identifier for the connection endpoint in the
  2146.    gateway where CreateConnection executes. The EndpointId can be
  2147.    fully-specified by assigning a value to the parameter EndpointId in
  2148.    the function call or it may be under-specified by using the "anyone"
  2149.    wildcard convention. If the endpoint is underspecified, the endpoint
  2150.    identifier will be assigned by the gateway and its complete value
  2151.    returned in the SpecificEndPointId parameter of the response.
  2152.  
  2153.    The NotifiedEntity is an optional parameter that specifies where the
  2154.    Notify or DeleteConnection commands should be sent. If the parameter
  2155.    is absent, the Notify or DeleteConnection commands should be sent to
  2156.    the last received Notified Entity, or to originator of the
  2157.    CreateConnection command if no Notified Entity was ever received for
  2158.    the end point.
  2159.  
  2160.    LocalConnectionOptions is a parameter used by the Call Agent to
  2161.    direct the handling of the connection by the gateway.  The fields
  2162.    contained in LocalConnectionOptions are the following:
  2163.  
  2164.    *  Encoding Method,
  2165.  
  2166.    *  Packetization period,
  2167.  
  2168.    *  Bandwidth,
  2169.  
  2170.    *  Type of Service,
  2171.  
  2172.    *  Usage of echo cancellation,
  2173.  
  2174.    *  Usage of silence suppression or voice activity detection,
  2175.  
  2176.    *  Usage of signal level adaptation and noise level reduction, or
  2177.       "gain control."
  2178.  
  2179.    *  Usage of reservation service,
  2180.  
  2181.    *  Usage of RTP security,
  2182.  
  2183.  
  2184.  
  2185.  
  2186. Arango, et al.               Informational                     [Page 39]
  2187.  
  2188. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2189.  
  2190.  
  2191.    *  Type of network used to carry the connection.
  2192.  
  2193.    This set of field can be completed by vendor specific optional or
  2194.    mandatory extensions. The encoding of the first three fields, when
  2195.    they are present, will be compatible with the SDP and RTP profiles:
  2196.  
  2197.    *  The encoding method shall be specified by using one or several
  2198.       valid encoding names, as defined in the RTP AV Profile or
  2199.       registered with the IANA.
  2200.  
  2201.    *  The packetization period is encoded as either the length of time
  2202.       in milliseconds represented by the media in a packet, as specified
  2203.       in the "ptime" parameter of SDP, or as a range value, specifying
  2204.       both the minimum and maximum acceptable packetization periods.
  2205.  
  2206.    *  The bandwidth is encoded as either a single value or a range,
  2207.       expressed as an integer number of kilobit per seconds.
  2208.  
  2209.    For each of the first three fields, the Call Agent has three options:
  2210.  
  2211.    *  It may state exactly one value, which the gateway will then use
  2212.       for the connection,
  2213.  
  2214.    *  It may provide a loose specification, such as a list of allowed
  2215.       encoding methods or a range of packetization periods,
  2216.  
  2217.    *  It may simply provide a bandwidth indication, leaving the choice
  2218.       of encoding method and packetization period to the gateway.
  2219.  
  2220.    The bandwidth specification shall not contradict the specification of
  2221.    encoding methods and packetization period. If an encoding method is
  2222.    specified, then the gateway is authorized to use it, even if it
  2223.    results in the usage of a larger bandwidth than specified.
  2224.  
  2225.    The LocalConnectionOptions parameter may be absent in the case of a
  2226.    data call.
  2227.  
  2228.    The Type of Service specifies the class of service that will be used
  2229.    for the connection. When the connection is transmitted over an IP
  2230.    network, the parameters encodes the 8-bit type of service value
  2231.    parameter of the IP header. When the Type of Service is not
  2232.    specified, the gateway shall use a default or configured value.
  2233.  
  2234.    The gateways can be instructed to perform a reservation, for example
  2235.    using RSVP, on a given connection.  When a reservation is needed, the
  2236.    call agent will specify the reservation profile that should be used,
  2237.    which is either "controlled load" or "guaranteed service."  The
  2238.  
  2239.  
  2240.  
  2241.  
  2242. Arango, et al.               Informational                     [Page 40]
  2243.  
  2244. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2245.  
  2246.  
  2247.    absence of reservation can be indicated by asking for the "best
  2248.    effort" service, which is the default value of this parameter. When
  2249.    reservation has been asked on a connection, the gateway will:
  2250.  
  2251.    *  start emitting RSVP "PATH" messages if the connection is in
  2252.       "send-only", "send-receive", "conference", "network loop back" or
  2253.       "network continuity test" mode (if a remote connection descriptor
  2254.       has been received,)
  2255.  
  2256.    *  start emitting RSVP "RESV" messages as soon as it receives "PATH"
  2257.       messages if the connection is in "receive-only", "send-receive",
  2258.       "conference", "network loop back" or "network continuity test"
  2259.       mode.
  2260.  
  2261.    The RSVP filters will be deduced from the characteristics of the
  2262.    connection. The RSVP resource profiles will be deduced from the
  2263.    connection's bandwidth and packetization period.
  2264.  
  2265.    By default, the telephony gateways always perform echo cancellation.
  2266.    However, it is necessary, for some calls, to turn off these
  2267.    operations.  The echo cancellation parameter can have two values,
  2268.    "on" (when the echo cancellation is requested) and "off" (when it is
  2269.    turned off.)
  2270.  
  2271.    The telephony gateways may perform gain control, in order to adapt
  2272.    the level of the signal.  However, it is necessary, for example for
  2273.    modem calls, to turn off this function.  The gain control parameter
  2274.    may either be specified as "automatic", or as an explicit number of
  2275.    decibels of gain.  The default is to not perform gain control, which
  2276.    is equivalent to specifying a gain of 0 decibels.
  2277.  
  2278.    The telephony gateways may perform voice activity detection, and
  2279.    avoid sending packets during periods of silence.  However, it is
  2280.    necessary, for example for modem calls, to turn off this detection.
  2281.    The silence suppression parameter can have two values, "on" (when the
  2282.    detection is requested) and "off" (when it is turned off.) The
  2283.    default is "off."
  2284.  
  2285.    The Call agent can request the gateway to enable encryption of the
  2286.    audio Packets.  It does so by providing an key specification, as
  2287.    specified in RFC 2327. By default, encryption is not used.
  2288.  
  2289.    The Call Agent may instruct the gateway to prepare the connection on
  2290.    a specified type of network.  The type of network is encoded as in
  2291.    the "connection-field" parameter of the SDP standard.  Possible
  2292.    values are IN (Internet), ATM and LOCAL. The parameter is optional;
  2293.    if absent, the network is determined by the type of gateway.
  2294.  
  2295.  
  2296.  
  2297.  
  2298. Arango, et al.               Informational                     [Page 41]
  2299.  
  2300. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2301.  
  2302.  
  2303.    RemoteConnectionDescriptor is the connection descriptor for the
  2304.    remote side of a connection, on the other side of the IP network. It
  2305.    includes the same fields as in the LocalConnectionDescriptor, i.e.
  2306.    the fields that describe a session according to the SDP standard.
  2307.    This parameter may have a null value when the information for the
  2308.    remote end is not known yet. This occurs because the entity that
  2309.    builds a connection starts by sending a CreateConnection to one of
  2310.    the two gateways involved in it. For the first CreateConnection
  2311.    issued, there is no information available about the other side of the
  2312.    connection. This information may be provided later via a
  2313.    ModifyConnection call. In the case of data connections (mode=data),
  2314.    this parameter describes the characteristics of the data connection.
  2315.  
  2316.    The SecondEndpointId can be used instead of the
  2317.    RemoteConnectionDescriptor to establish a connection between two
  2318.    endpoints located on the same gateway.  The connection is by
  2319.    definition a local connection. The SecondEndpointId can be fully-
  2320.    specified by assigning a value to the parameter SecondEndpointId in
  2321.    the function call or it may be under-specified by using the "anyone"
  2322.    wildcard convention. If the secondendpoint is underspecified, the
  2323.    second endpoint identifier will be assigned by the gateway and its
  2324.    complete value returned in the SecondEndPointId parameter of the
  2325.    response.
  2326.  
  2327.    Mode indicates the mode of operation for this side of the connection.
  2328.    The mode are "send", "receive", "send/receive", "conference", "data",
  2329.    "inactive", "loopback", "continuity test", "network loop back" or
  2330.    "network continuity test." The expected handling of these modes is
  2331.    specified in the introduction of the "Gateway Handling Function"
  2332.    section. Some end points may not be capable of supporting all modes.
  2333.    If the command specifies a mode that the endpoint cannot support, and
  2334.    error shall be returned.
  2335.  
  2336.    The gateway returns a ConnectionId, that uniquely identifies the
  2337.    connection within one endpoint, and a LocalConnectionDescriptor,
  2338.    which is a session description that contains information about
  2339.    addresses and RTP ports, as defined in SDP. The
  2340.    LocalConnectionDescriptor is not returned in the case of data
  2341.    connections. The SpecificEndPointId is an optional parameter that
  2342.    identifies the responding endpoint. It can be used when the
  2343.    EndpointId argument referred to a "any of" wildcard name. When a
  2344.    SpecificEndPointId is returned, the Call Agent should use it as the
  2345.    EndpointId value is successive commands referring to this call.
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354. Arango, et al.               Informational                     [Page 42]
  2355.  
  2356. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2357.  
  2358.  
  2359.    When a SecondEndpointId is specified, the command really creates two
  2360.    connections that can be manipulated separately through
  2361.    ModifyConnection and DeleteConnection commands.  The response to the
  2362.    creation provides a SecondConnectionId parameter that identifies the
  2363.    second connection.
  2364.  
  2365.    After receiving a "CreateConnection" request that did not include a
  2366.    RemoteConnectionDescriptor parameter, a gateway is in an ambiguous
  2367.    situation. Because it has exported a LocalConnectionDescriptor
  2368.    parameter, it can potentially receive packets. Because it has not yet
  2369.    received the RemoteConnectionDescriptor parameter of the other
  2370.    gateway, it does not know whether the packets that it receives have
  2371.    been authorized by the Call Agent. It must thus navigate between two
  2372.    risks, i.e. clipping some important announcements or listening to
  2373.    insane data. The behavior of the gateway is determined by the value
  2374.    of the Mode parameter:
  2375.  
  2376.    *  If the mode was set to ReceiveOnly, the gateway should accept the
  2377.       voice signals and transmit them through the endpoint.
  2378.  
  2379.    *  If the mode was set to Inactive, Loopback, Continuity Test, the
  2380.       gateway should refuse the voice signals.
  2381.  
  2382.    *  If the mode was set to Network Loopback or Network Continuity
  2383.       Test, the gateway should perform the expected echo or Response.
  2384.  
  2385.    Note that the mode values SendReceive, Conference, Data and SendOnly
  2386.    don't make sense in this situation. They should be treated as errors,
  2387.    and the command should be rejected (Error code 517).
  2388.  
  2389.    The command may optionally contain an encapsulated Notification
  2390.    Request command, in which case a RequestIdentifier parameter will be
  2391.    present, as well as, optionally, the RequestedEvents DigitMap,
  2392.    SignalRequests, QuarantineHandling and DetectEvents parameters. The
  2393.    encapsulated NotificationRequest is executed simultaneously with the
  2394.    creation of the connection. For example, when the Call Agent wants to
  2395.    initiate a call to an residential gateway, it should:
  2396.  
  2397.    *  ask the residential gateway to prepare a connection, in order to
  2398.       be sure that the user can start speaking as soon as the phone goes
  2399.       off hook,
  2400.  
  2401.    *  ask the residential gateway to start ringing,
  2402.  
  2403.    *  ask the residential gateway to notify the Call Agent when the
  2404.       phone goes off-hook.
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410. Arango, et al.               Informational                     [Page 43]
  2411.  
  2412. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2413.  
  2414.  
  2415.    This can be accomplished in a single CreateConnection command, by
  2416.    also transmitting the RequestedEvent parameters for the off hook
  2417.    event, and the SignalRequest parameter for the ringing signal.
  2418.  
  2419.    When these parameters are present, the creation and the
  2420.    NotificationRequests should be synchronized, which means that
  2421.    bothshould be accepted, or both refused. In our example, the
  2422.    CreateConnection may be refused if the gateway does not have
  2423.    sufficient resources, or cannot get adequate resources from the local
  2424.    network access, and the off-hook Notification-Request can be refused
  2425.    in the glare condition, if the user is already off-hook. In this
  2426.    example, the phone should not ring if the connection cannot be
  2427.    established, and the connection should not be established if the user
  2428.    is already off hook.
  2429.  
  2430.    The NotifiedEntity parameter, if present, applies to both the
  2431.    CreateConnection and the NotificationRequest command. It defines the
  2432.    new "notified entity" for the endpoint.
  2433.  
  2434.    The command may carry an encapsulated EndpointConfiguration command,
  2435.    that will apply to the same endpoint.  When this command is present,
  2436.    the parameters of the EndpointConfiguration command are inserted
  2437.    after the normal parameters of the CreateConnection with the
  2438.    exception of the EndpointId, which is not replicated. The
  2439.    EndpointConfiguration command may be encapsulated together with an
  2440.    encapsulated NotificationRequest command.
  2441.  
  2442.    The encapsulated EndpointConfiguration command shares the fate of the
  2443.    CreateConnection command.  If the CreateConnection is rejected, the
  2444.    EndpointConfiguration is not executed.
  2445.  
  2446.    ReturnCode is a parameter returned by the gateway. It indicates the
  2447.    outcome of the command and consists of an integer number optionally
  2448.    followed by commentary.
  2449.  
  2450. 2.3.4.  ModifyConnection
  2451.  
  2452.    This command is used to modify the characteristics of a gateway's
  2453.    "view" of a connection. This "view" of the call includes both the
  2454.    local connection descriptors as well as the remote connection
  2455.    descriptor.
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466. Arango, et al.               Informational                     [Page 44]
  2467.  
  2468. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2469.  
  2470.  
  2471.       ReturnCode,
  2472.       [LocalConnectionDescriptor]
  2473.        <--- ModifyConnection(CallId,
  2474.                              EndpointId,
  2475.                              ConnectionId,
  2476.                              [NotifiedEntity,]
  2477.                              [LocalConnectionOptions,]
  2478.                              [Mode,]
  2479.                              [RemoteConnectionDescriptor,]
  2480.                              [Encapsulated NotificationRequest,]
  2481.                              [Encapsulated EndpointConfiguration])
  2482.  
  2483.    The parameters used are the same as in the CreateConnection command,
  2484.    with the addition of a ConnectionId that identifies the connection
  2485.    within the endpoint. This parameter is returned by the
  2486.    CreateConnection function, as part of the local connection
  2487.    descriptor. It uniquely identifies the connection within the context
  2488.    of the endpoint.
  2489.  
  2490.    The EndpointId should be a fully qualified endpoint identifier.  The
  2491.    local name shall not use the wildcard convention.
  2492.  
  2493.    The ModifyConnection command can be used to affect parameters of a
  2494.    connection in the following ways:
  2495.  
  2496.    *  Provide information about the other end of the connection, through
  2497.       the RemoteConnectionDescriptor.
  2498.  
  2499.    *  Activate or deactivate the connection, by changing the value of
  2500.       the Mode parameter. This can occur at any time during the
  2501.       connection, with arbitrary parameter values.
  2502.  
  2503.    *  Change the sending parameters of the connection, for example by
  2504.       switching to a different coding scheme, changing the packetization
  2505.       period, or modifying the handling of echo cancellation.
  2506.  
  2507.    Connections can only be activated if the RemoteConnectionDescriptor
  2508.    has been provided to the gateway. The receive only mode, however, can
  2509.    be activated without the provision of this descriptor.
  2510.  
  2511.    The command will only return a LocalConnectionDescriptor if the local
  2512.    connection parameters, such as RTP ports, were modified. (Usage of
  2513.    this feature is actually for further study.)
  2514.  
  2515.    The command may optionally contain an encapsulated Notification
  2516.    Request command, in which case a RequestIdentifier parameter will be
  2517.    present, as well as, optionnally, the RequestedEvents DigitMap,
  2518.    SignalRequests, QuarantineHandling and DetectEvents parameters. The
  2519.  
  2520.  
  2521.  
  2522. Arango, et al.               Informational                     [Page 45]
  2523.  
  2524. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2525.  
  2526.  
  2527.    encapsulated NotificationRequest is executed simultaneously with the
  2528.    modification of the connection. For example, when a connection is
  2529.    accepted, the calling gateway should be instructed to place the
  2530.    circuit in send-receive mode and to stop providing ringing tones.
  2531.  
  2532.    This can be accomplished in a single ModifyConnection command, by
  2533.    also transmitting the RequestedEvent parameters, for the on hook
  2534.    event, and an empty SignalRequest parameter, to stop the provision of
  2535.    ringing tones.
  2536.  
  2537.    When these parameters are present, the modification and the
  2538.    NotificationRequests should be synchronized, which means that both
  2539.    should be accepted, or both refused.  The NotifiedEntity parameter,
  2540.    if present, applies to both the ModifyConnection and the
  2541.    NotificationRequest command.
  2542.  
  2543.    The command may carry an encapsulated EndpointConfiguration command,
  2544.    that will apply to the same endpoint.  When this command is present,
  2545.    the parameters of the EndpointConfiguration command are inserted
  2546.    after the normal parameters of the ModifyConnection with the
  2547.    exception of the EndpointId, which is not replicated. The
  2548.    EndpointConfiguration command may be encapsulated together with an
  2549.    encapsulated NotificationRequest command.
  2550.  
  2551.    The encapsulated EndpointConfiguration command shares the fate of the
  2552.    ModifyConnection command.  If the ModifyConnection is rejected, the
  2553.    EndpointConfiguration is not executed.
  2554.  
  2555.    ReturnCode is a parameter returned by the gateway. It indicates the
  2556.    outcome of the command and consists of an integer number optionally
  2557.    followed by commentary.
  2558.  
  2559. 2.3.5.  DeleteConnection (from the Call Agent)
  2560.  
  2561.    This command is used to terminate a connection. As a side effect, it
  2562.    collects statistics on the execution of the connection.
  2563.  
  2564.         ReturnCode,
  2565.         Connection-parameters
  2566.         <-- DeleteConnection(CallId,
  2567.                              EndpointId,
  2568.                              ConnectionId,
  2569.                              [Encapsulated NotificationRequest,]
  2570.                              [Encapsulated EndpointConfiguration])
  2571.  
  2572.    The endpoint identifier, in this form of the DeleteConnection
  2573.    command, shall be fully qualified.  Wildcard conventions shall not be
  2574.    used.
  2575.  
  2576.  
  2577.  
  2578. Arango, et al.               Informational                     [Page 46]
  2579.  
  2580. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2581.  
  2582.  
  2583.    In the general case where a connection has two ends, this command has
  2584.    to be sent to both gateways involved in the connection. Some
  2585.    connections, however, may use IP multicast. In this case, they can be
  2586.    deleted individually.
  2587.  
  2588.    After the connection has been deleted, any loopback that has been
  2589.    requested for the connection should be cancelled. When all
  2590.    connections to an endpoint have been deleted, that endpoint should be
  2591.    placed in inactive mode.
  2592.  
  2593.    In response to the DeleteConnection command, the gateway returns a
  2594.    list of parameters that describe the status of the connection. These
  2595.    parameters are:
  2596.  
  2597.    Number of packets sent:
  2598.  
  2599.    The total number of RTP data packets transmitted by the sender since
  2600.    starting transmission on this connection. The count is not reset if
  2601.    the sender changes its synchronization source identifier (SSRC, as
  2602.    defined in RTP), for example as a result of a Modify command. The
  2603.    value is zero if the connection was set in "receive only" mode.
  2604.  
  2605.    Number of octets sent:
  2606.  
  2607.    The total number of payload octets (i.e., not including header or
  2608.    padding) transmitted in RTP data packets by the sender since starting
  2609.    transmission on this connection. The count is not reset if the sender
  2610.    changes its SSRC identifier, for example as a result of a
  2611.    ModifyConnection command. The value is zero if the connection was set
  2612.    in "receive only" mode.
  2613.  
  2614.    Number of packets received:
  2615.  
  2616.    The total number of RTP data packets received by the sender since
  2617.    starting reception on this connection. The count includes packets
  2618.    received from different SSRC, if the sender used several values. The
  2619.    value is zero if the connection was set in "send only" mode.
  2620.  
  2621.    Number of octets received:
  2622.  
  2623.    The total number of payload octets (i.e., not including header or
  2624.    padding) transmitted in RTP data packets by the sender since starting
  2625.    transmission on this connection. The count includes packets received
  2626.    from different SSRC, if the sender used several values. The value is
  2627.    zero if the connection was set in "send only" mode.
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634. Arango, et al.               Informational                     [Page 47]
  2635.  
  2636. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2637.  
  2638.  
  2639.    Number of packets lost:
  2640.  
  2641.    The total number of RTP data packets that have been lost since the
  2642.    beginning of reception. This number is defined to be the number of
  2643.    packets expected less the number of packets actually received, where
  2644.    the number of packets received includes any which are late or
  2645.    duplicates.  The count includes packets received from different SSRC,
  2646.    if the sender used several values. Thus packets that arrive late are
  2647.    not counted as lost, and the loss may be negative if there are
  2648.    duplicates. The count includes packets received from different SSRC,
  2649.    if the sender used several values. The number of packets expected is
  2650.    defined to be the extended last sequence number received, as defined
  2651.    next, less the initial sequence number received. The count includes
  2652.    packets received from different SSRC, if the sender used several
  2653.    values. The value is zero if the connection was set in "send only"
  2654.    mode. This parameter is omitted if the connection was set in "data"
  2655.    mode.
  2656.  
  2657.    Interarrival jitter:
  2658.  
  2659.    An estimate of the statistical variance of the RTP data packet
  2660.    interarrival time measured in milliseconds and expressed as an
  2661.    unsigned integer. The interarrival jitter J is defined to be the mean
  2662.    deviation (smoothed absolute value) of the difference D in packet
  2663.    spacing at the receiver compared to the sender for a pair of packets.
  2664.    Detailed computation algorithms are found in RFC 1889. The count
  2665.    includes packets received from different SSRC, if the sender used
  2666.    several values. The value is zero if the connection was set in "send
  2667.    only" mode. This parameter is omitted if the connection was set in
  2668.    "data" mode.
  2669.  
  2670.    Average transmission delay:
  2671.  
  2672.    An estimate of the network latency, expressed in milliseconds. This
  2673.    is the average value of the difference between the NTP timestamp
  2674.    indicated by the senders of the RTCP messages and the NTP timestamp
  2675.    of the receivers, measured when this messages are received. The
  2676.    average is obtained by summing all the estimates, then dividing by
  2677.    the number of RTCP messages that have been received. This parameter
  2678.    is omitted if the connection was set in "data" mode.
  2679.    When the gateway's clock is not synchronized by NTP, the latency
  2680.    value can be computed as one half of the round trip delay, as
  2681.    measured through RTCP.
  2682.    When the gateway cannot compute the one way delay or the round trip
  2683.    delay, the parameter conveys a null value.
  2684.  
  2685.    For a detailed definition of these variables, refer to RFC 1889.
  2686.  
  2687.  
  2688.  
  2689.  
  2690. Arango, et al.               Informational                     [Page 48]
  2691.  
  2692. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2693.  
  2694.  
  2695.    When the connection was set up over an ATM network, the meaning of
  2696.    these parameters may change:
  2697.  
  2698.    Number of packets sent:  The total number of ATM cells transmitted
  2699.       since starting transmission on this connection.
  2700.  
  2701.    Number of octets sent:
  2702.       The total number of payload octets transmitted in ATM cells.
  2703.  
  2704.    Number of packets received:
  2705.       The total number of ATM cells received since starting reception on
  2706.       this connection.
  2707.  
  2708.    Number of octets received:
  2709.       The total number of payload octets received in ATM cells.
  2710.  
  2711.    Number of packets lost:
  2712.       Should be determined as the number of cell losts, or set to zero
  2713.       if the adaptation layer does not enable the gateway to assess
  2714.       losses.
  2715.  
  2716.    Interarrival jitter:
  2717.       Should be understood as the interarrival jitter between ATM cells.
  2718.  
  2719.    Average transmission delay:
  2720.       The gateway may not be able to assess this parameter over an ATM
  2721.       network.  It could simply report a null value.
  2722.  
  2723.    When the connection was set up over an LOCAL interconnect, the
  2724.    meaning of these parameters is defined as follows:
  2725.  
  2726.    Number of packets sent:
  2727.      Not significant.
  2728.  
  2729.    Number of octets sent:
  2730.      The total number of payload octets transmitted over the local
  2731.      connection.
  2732.  
  2733.    Number of packets received:
  2734.      Not significant.
  2735.  
  2736.    Number of octets received:
  2737.      The total number of payload octets received over the connection.
  2738.  
  2739.    Number of packets lost:
  2740.      Not significant.  A value of zero is assumed.
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746. Arango, et al.               Informational                     [Page 49]
  2747.  
  2748. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2749.  
  2750.  
  2751.    Interarrival jitter:
  2752.      Not significant.  A value of zero is assumed.
  2753.  
  2754.    Average transmission delay:
  2755.      Not significant.  A value of zero is assumed.
  2756.  
  2757.    The standard set of connection parameters can be extended by the
  2758.    creation of extension parameters.
  2759.  
  2760.    The command may optionally contain an encapsulated Notification
  2761.    Request command, in which case a RequestIdentifier parameter will be
  2762.    present, as well as, optionnally, the RequestedEvents DigitMap,
  2763.    SignalRequests, QuarantineHandling and DetectEvents parameters. The
  2764.    encapsulated NotificationRequest is executed simultaneously with the
  2765.    deletion of the connection. For example, when a user hang-up is
  2766.    notified, the gateway should be instructed to delete the connection
  2767.    and to start looking for an off hook event.
  2768.  
  2769.    This can be accomplished in a single DeleteConnection command, by
  2770.    also transmitting the RequestedEvent parameters, for the off hook
  2771.    event, and an empty SignalRequest parameter.
  2772.  
  2773.    When these parameters are present, the DeleteConnection and the
  2774.    NotificationRequests should be synchronized, which means that both
  2775.    should be accepted, or both refused.
  2776.  
  2777.    The command may carry an encapsulated EndpointConfiguration command,
  2778.    that will apply to the same endpoint.  When this command is present,
  2779.    the parameters of the EndpointConfiguration command are inserted
  2780.    after the normal parameters of the DeleteConnection with the
  2781.    exception of the EndpointId, which is not replicated. The
  2782.    EndpointConfiguration command may be encapsulated together with an
  2783.    encapsulated NotificationRequest command.
  2784.  
  2785.    The encapsulated EndpointConfiguration command shares the fate of the
  2786.    DeleteConnection command.  If the DeleteConnection is rejected, the
  2787.    EndpointConfiguration is not executed.
  2788.  
  2789.    ReturnCode is a parameter returned by the gateway. It indicates the
  2790.    outcome of the command and consists of an integer number optionally
  2791.    followed by commentary.
  2792.  
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802. Arango, et al.               Informational                     [Page 50]
  2803.  
  2804. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2805.  
  2806.  
  2807. 2.3.6.  DeleteConnection (from the VoIP gateway)
  2808.  
  2809.    In some circumstances, a gateway may have to clear a connection, for
  2810.    example because it has lost the resource associated with the
  2811.    connection, or because it has detected that the endpoint no longer is
  2812.    capable or willing to send or receive voice. The gateway terminates
  2813.    the connection by using a variant of the DeleteConnection command:
  2814.  
  2815.             ReturnCode,
  2816.             <-- DeleteConnection( CallId,
  2817.                                   EndpointId,
  2818.                                   ConnectionId,
  2819.                                   Reason-code,
  2820.                                   Connection-parameters)
  2821.  
  2822.    In addition to the call, endpoint and connection identifiers, the
  2823.    gateway will also send the call's parameters that would have been
  2824.    returned to the Call Agent in response to a DeleteConnection command.
  2825.    The reason code indicates the cause of the disconnection.
  2826.  
  2827.    ReturnCode is a parameter returned by the call agent. It indicates
  2828.    the outcome of the command and consists of an integer number
  2829.    optionally followed by commentary.
  2830.  
  2831. 2.3.7.  DeleteConnection (multiple connections, from the Call Agent)
  2832.  
  2833.    A variation of the DeleteConnection function can be used by the Call
  2834.    Agent to delete multiple connections at the same time. The command
  2835.    can be used to delete all connections that relate to a Call for an
  2836.    endpoint:
  2837.  
  2838.             ReturnCode,
  2839.             <-- DeleteConnection( CallId,
  2840.                                   EndpointId)
  2841.  
  2842.    It can also be used to delete all connections that terminate in a
  2843.    given endpoint:
  2844.  
  2845.             ReturnCode,
  2846.             <-- DeleteConnection( EndpointId)
  2847.  
  2848.    Finally, Call Agents can take advantage of the hierarchical naming
  2849.    structure of endoints to delete all the connections that belong to a
  2850.    group of endpoints.  In this case, the "local name" component of the
  2851.    EndpointID will be specified using the "all value" wildcarding
  2852.    convention. The "any value" convention shall not be used.  For
  2853.    example, if endpoints names are structured as the combination of a
  2854.    physical interface name and a circuit number, as in "X35V3+A4/13",
  2855.  
  2856.  
  2857.  
  2858. Arango, et al.               Informational                     [Page 51]
  2859.  
  2860. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2861.  
  2862.  
  2863.    the Call Agent may replace the circuit number by a wild card
  2864.    character "*", as in "X35V3+A4/*".  This "wildcard" command instructs
  2865.    the gateway to delete all the connections that where attached to
  2866.    circuits connected to the physical interface "X35V3+A4".
  2867.  
  2868.    After the connections have been deleted, the endpoint should be
  2869.    placed in inactive mode. Any loopback that has been requested for the
  2870.    connections should be cancelled.
  2871.  
  2872.    This command does not return any individual statistics or call
  2873.    parameters.
  2874.  
  2875.    ReturnCode is a parameter returned by the gateway. It indicates the
  2876.    outcome of the command and consists of an integer number optionally
  2877.    followed by commentary.
  2878.  
  2879. 2.3.8.  Audit Endpoint
  2880.  
  2881.    The AuditEndPoint command can be used by the Call Agent to find out
  2882.    the status of a given endpoint.
  2883.  
  2884.               ReturnCode,
  2885.                 EndPointIdList|{
  2886.                 [RequestedEvents,]
  2887.                 [DigitMap,]
  2888.                 [SignalRequests,]
  2889.                 [RequestIdentifier,]
  2890.                 [NotifiedEntity,]
  2891.                 [ConnectionIdentifiers,]
  2892.                 [DetectEvents,]
  2893.                 [ObservedEvents,]
  2894.                 [EventStates,]
  2895.                 [BearerInformation,]
  2896.                 [RestartReason,]
  2897.                 [RestartDelay,]
  2898.                 [ReasonCode,]
  2899.                 [Capabilities]}
  2900.                         <--- AuditEndPoint(EndpointId,
  2901.                                                  [RequestedInfo])
  2902.  
  2903.    The EndpointId identifies the endpoint that is being audited. The
  2904.    "all of" wildcard convention can be used to start auditing of a group
  2905.    of endpoints. If this convention is used, the gateway should return
  2906.    the list of endpoint identifiers that match the wildcard in the
  2907.    EndPointIdList parameter. It shall not return any parameter specific
  2908.    to one of these endpoints.
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914. Arango, et al.               Informational                     [Page 52]
  2915.  
  2916. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2917.  
  2918.  
  2919.    When a non-wildcard EndpointId is specified, the (possibly empty)
  2920.    RequestedInfo parameter describes the information that is requested
  2921.    for the EndpointId specified. The following endpoint info can be
  2922.    audited with this command:
  2923.  
  2924.    RequestedEvents, DigitMap, SignalRequests, RequestIdentifier,
  2925.    NotifiedEntity, ConnectionIdentifiers, DetectEvents, ObservedEvents,
  2926.    EventStates, RestartReason, RestartDelay, ReasonCode, and
  2927.    Capabilities.
  2928.  
  2929.    The response will in turn include information about each of the items
  2930.    for which auditing info was requested:
  2931.  
  2932.    *  RequestedEvents: The current value of RequestedEvents the endpoint
  2933.       is using including the action associated with each event.
  2934.       Persistent events are included in the list.
  2935.  
  2936.    *  DigitMap: the digit map the endpoint is currently using.
  2937.  
  2938.    *  SignalRequests: A list of the; Time-Out signals that are currently
  2939.       active, On/Off signals that are currently "on" for the endpoint
  2940.       (with or without parameter), and any pending Brief signals. Time-
  2941.       Out signals that have timed-out, and currently playing Brief
  2942.       signals are not included.
  2943.  
  2944.    *  RequestIdentifier, the RequestIdentifier for the last Notification
  2945.       Request received by this endpoint (includes NotificationRequest
  2946.       encapsulated in Connection handling primitives). If no
  2947.       notification request has been received, the value zero will be
  2948.       returned.
  2949.  
  2950.    *  QuarantineHandling, the QuarantineHandling for the last
  2951.       NotificationRequest received by this endpoint.
  2952.  
  2953.    *  DetectEvents, the list of events that are currently detected in
  2954.       quarantine mode.
  2955.  
  2956.    *  NotifiedEntity, the current notified entity for the endpoint.
  2957.  
  2958.    * ConnectionIdentifiers, the list of ConnectionIdentifiers for all
  2959.       connections that currently exist for the specified endpoint.
  2960.  
  2961.    *  ObservedEvents: the current list of observed events for the
  2962.       endpoint.
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970. Arango, et al.               Informational                     [Page 53]
  2971.  
  2972. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  2973.  
  2974.  
  2975.    *  EventStates: For events that have auditable states associated with
  2976.       them, the event corresponding to the state the endpoint is in,
  2977.       e.g., off-hook if the endpoint is off-hook. The definition of the
  2978.       individual events will state if the event in question has an
  2979.       auditable state associated with it.
  2980.  
  2981.    *  BearerInformation: the value of the last received
  2982.       BearerInformation parameter for this endpoint.
  2983.  
  2984.    *  RestartReason: the value of the restart reason parameter in the
  2985.       last RestartInProgress command issued by the endpoint, "restart"
  2986.       indicating a fully functional endpoint.
  2987.  
  2988.    *  RestartDelay: the value of the  restart delay parameter if a
  2989.       RestartInProgress command was issued by the endpoint at the time
  2990.       of the response, or zero if the command would not include this
  2991.       parameter.
  2992.  
  2993.    *  ReasonCode:the value of the Reason-Code parameter in the last
  2994.       RestartInProgress or DeleteConnection command issued by the
  2995.       gateway for the endpoint, or the special value 000 if the
  2996.       endpoint's state is nominal.
  2997.  
  2998.    *  The capabilities for the endpoint similar to the
  2999.       LocalConnectionOptions parameter and including event packages and
  3000.       connection modes.  If there is a need to specify that some
  3001.       parameters, such as e.g., silence suppression, are only compatible
  3002.       with some
  3003.  
  3004.    *  codecs,  then the gateway will return several capability sets:
  3005.  
  3006.          Compression Algorithm: a list of supported codecs. The rest of
  3007.          the parameters will apply to all codecs specified in this list.
  3008.  
  3009.          Packetization Period: A single value or a range may be
  3010.          specified.
  3011.  
  3012.          Bandwidth: A single value or a range corresponding to the range
  3013.          for packetization periods may be specified (assuming no silence
  3014.          suppression).
  3015.  
  3016.          Echo Cancellation: Whether echo cancellation is supported or
  3017.          not.
  3018.  
  3019.          Silence Suppression: Whether silence suppression is supported
  3020.          or not.
  3021.  
  3022.          Type of Service: Whether type of service is supported or not.
  3023.  
  3024.  
  3025.  
  3026. Arango, et al.               Informational                     [Page 54]
  3027.  
  3028. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3029.  
  3030.  
  3031.          Event Packages: A list of event packages supported. The first
  3032.          event package in the list will be the default package.
  3033.  
  3034.          Modes: A list of supported connection modes.
  3035.  
  3036.    The Call Agent may then decide to use the AuditConnection command to
  3037.    obtain further information about the connections.
  3038.  
  3039.    If no info was requested and the EndpointId refers to a valid
  3040.    endpoint, the gateway simply returns a positive acknowledgement.
  3041.  
  3042.    If no NotifiedEntity has been specified in the last
  3043.    NotificationRequest, the notified entity defaults to the source
  3044.    address of the last NotificationRequest command received for this
  3045.    connection.
  3046.  
  3047.    ReturnCode is a parameter returned by the gateway. It indicates the
  3048.    outcome of the command and consists of an integer number optionally
  3049.    followed by commentary.
  3050.  
  3051. 2.3.9.  Audit Connection
  3052.  
  3053.    The AuditConnection command can be used by the Call Agent to retrieve
  3054.    the parameters attached to a connection:
  3055.  
  3056.               ReturnCode,
  3057.               [CallId,]
  3058.               [NotifiedEntity,]
  3059.               [LocalConnectionOptions,]
  3060.               [Mode,]
  3061.               [RemoteConnectionDescriptor,]
  3062.               [LocalConnectionDescriptor,]
  3063.               [ConnectionParameters]
  3064.                         <--- AuditConnection(EndpointId,
  3065.                                          ConnectionId,
  3066.                                          RequestedInfo)
  3067.  
  3068.    The EndpointId parameter specifies the endpoint that handles the
  3069.    connection. The wildcard conventions shall not be used.
  3070.  
  3071.    The ConnectionId parameter is the identifier of the audited
  3072.    connection, within the context of the specified endpoint.
  3073.  
  3074.    The (possibly empty) RequestedInfo describes the information that is
  3075.    requested for the ConnectionId within the EndpointId specified. The
  3076.    following connection info can be audited with this command:
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082. Arango, et al.               Informational                     [Page 55]
  3083.  
  3084. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3085.  
  3086.  
  3087.       CallId, NotifiedEntity, LocalConnectionOptions, Mode,
  3088.       RemoteConnectionDescriptor, LocalConnectionDescriptor,
  3089.       ConnectionParameters
  3090.  
  3091.    The AuditConnectionResponse will in turn include information about
  3092.    each of the items auditing info was requested for:
  3093.  
  3094.    *  CallId, the CallId for the call the connection belongs to.
  3095.  
  3096.    *  NotifiedEntity, the current notified entity for the Connection.
  3097.  
  3098.    *  LocalConnectionOptions, the LocalConnectionOptions that was
  3099.       supplied for the connection.
  3100.  
  3101.    *  Mode, the current mode of the connection.
  3102.  
  3103.    *  RemoteConnectionDescriptor, the RemoteConnectionDescriptor that
  3104.       was supplied to the gateway for the connection.
  3105.  
  3106.    *  LocalConnectionDescriptor, the LocalConnectionDescriptor the gate-
  3107.       way supplied for the connection.
  3108.  
  3109.    *  ConnectionParameters, the current value of the connection
  3110.       parameters for the connection.
  3111.  
  3112.    If no info was requested and the EndpointId is valid, the gateway
  3113.    simply checks that the connection exists, and if so returns a
  3114.    positive acknowledgement.
  3115.  
  3116.    If no NotifiedEntity has been specified for the connection, the
  3117.    notified entity defaults to the source address of the last connection
  3118.    handling command received for this connection.
  3119.  
  3120.    ReturnCode is a parameter returned by the gateway. It indicates the
  3121.    outcome of the command and consists of an integer number optionally
  3122.    followed by commentary.
  3123.  
  3124. 2.3.10.  Restart in progress
  3125.  
  3126.    The RestartInProgress command is used by the gateway to signal that
  3127.    An endpoint, or a group of endpoint, is taken in or out of service.
  3128.  
  3129.           ReturnCode,
  3130.           [NotifiedEntity]
  3131.                 <------- RestartInProgress ( EndPointId,
  3132.                                              RestartMethod,
  3133.                                              [RestartDelay,]
  3134.                                              [Reason-code])
  3135.  
  3136.  
  3137.  
  3138. Arango, et al.               Informational                     [Page 56]
  3139.  
  3140. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3141.  
  3142.  
  3143.    The EndPointId identifies the endpoint that are taken in or out of
  3144.    service.  The "all of" wildcard convention may be used to apply the
  3145.    command to a group of endpoint, such as for example all endpoints
  3146.    that are attached to a specified interface, or even all endpoints
  3147.    that are attached to a given gateway.  The "any of" wildcard
  3148.    convention shall not be used.
  3149.  
  3150.    The RestartMethod parameter specified the type of restart.  Three
  3151.    values have been defined:
  3152.  
  3153.    *  A "graceful" restart method indicates that the specified endpoints
  3154.       will Be taken out of service after the specified delay. The
  3155.       established connections are not yet affected, but the Call Agent
  3156.       should refrain to establish new connections, and should try to
  3157.       gracefully tear down the existing connections.
  3158.  
  3159.    *  A "forced" restart method indicates that the specified endpoints
  3160.       are taken abruptely out of service. The established connections,
  3161.       if any, are lost.
  3162.  
  3163.    *  A "restart" method indicates that service will be restored on the
  3164.       endpoints after the specified "restart delay." There are no
  3165.       connections that are currently established on the endpoints.
  3166.  
  3167.    *  A "disconnected" method indicates that the endpoint has become
  3168.       disconnected and is now trying to establish connectivity. The
  3169.       "restart delay" specifies the number of seconds the endpoint has
  3170.       been disconnected. Established connections are not affected.
  3171.  
  3172.    *  A "cancel-graceful" method indicates that a gateway is canceling a
  3173.       previously issued "graceful" restart command.
  3174.  
  3175.    The optional "restart delay" parameter is expressed as a number of
  3176.    seconds. If the number is absent, the delay value should be
  3177.    considered null.  In the case of the "graceful" method, a null delay
  3178.    indicates that the call agent should simply wait for the natural
  3179.    termination of the existing connections, without establishing new
  3180.    connections. The restart delay is always considered null in the case
  3181.    of the "forced" method.
  3182.  
  3183.    A restart delay of null for the "restart" method indicates that
  3184.    service has already been restored. This typically will occur after
  3185.    gateway startup/reboot.
  3186.  
  3187.    The optional reason code parameter the cause of the restart.
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194. Arango, et al.               Informational                     [Page 57]
  3195.  
  3196. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3197.  
  3198.  
  3199.    Gateways SHOULD send a "graceful" or "forced" RestartInProgress
  3200.    message as a courtesy to the Call Agent when they are taken out of
  3201.    service, e.g., by being shutdown, or taken out of service by a
  3202.    network management system, although the Call Agent cannot rely on
  3203.    always receiving such messages. Gateways MUST send a "restart"
  3204.    RestartInProgress message with a null delay to their Call Agent when
  3205.    they are back in service according to the restart procedure specified
  3206.    in Section 4.3.4 - Call Agents can rely on receiving this message.
  3207.    Also, gateways MUST send a "disconnected" RestartInProgress message
  3208.    to their current "notified entity" according to the "disconnected"
  3209.    procedure specified in Section 4.3.5.  The "restart delay" parameter
  3210.    MUST NOT be used with the "forced" restart method.
  3211.  
  3212.    The RestartInProgress message will be sent to the current notified
  3213.    entity for the EndpointId in question. It is expected that a default
  3214.    Call Agent, i.e., notified entity, has been provisioned for each
  3215.    endpoint so, after a reboot, the default Call Agent will be the
  3216.    notified entity for each endpoint. Gateways should take full
  3217.    advantage of wild- carding to minimize the number of
  3218.    RestartInProgress messages generated when multiple endpoints in a
  3219.    gateway restart and the endpoints are managed by the same Call Agent.
  3220.  
  3221.    ReturnCode is a parameter returned by the gateway. It indicates the
  3222.    outcome of the command and consists of an integer number optionally
  3223.    followed by commentary.
  3224.  
  3225.    A NotifiedEntity may additionally be returned with the response from
  3226.    the Call Agent:
  3227.  
  3228.    *  If the response indicated success (return code 200 - transaction
  3229.       executed), the restart procedure has  completed, and the
  3230.       NotifiedEntity returned is the new "notified entity" for the
  3231.       endpoint(s).
  3232.  
  3233.    *  If the response from the Call Agent indicated an error, the
  3234.       restart procedure is not yet complete, and must therefore be
  3235.       initiated again. If a NotifiedEntity parameter was returned, it
  3236.       then specifies the new "notified entity" for the endpoint(s),
  3237.       which must consequently be used when retrying the restart
  3238.       procedure.
  3239.  
  3240. 2.4.  Return codes and error codes.
  3241.  
  3242.    All MGCP commands are acknowledged. The acknowledgment carries a
  3243.    return code, which indicates the status of the command. The return
  3244.    code is an integer number, for which four ranges of values have been
  3245.    defined:
  3246.  
  3247.  
  3248.  
  3249.  
  3250. Arango, et al.               Informational                     [Page 58]
  3251.  
  3252. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3253.  
  3254.  
  3255.    *  values between 100 and 199 indicate a provisional response,
  3256.  
  3257.    *  values between 200 and 299 indicate a successful completion,
  3258.  
  3259.    *  values between 400 and 499 indicate a transient error,
  3260.  
  3261.    *  values between 500 and 599 indicate a permanent error.
  3262.  
  3263.    The values that have been already defined are listed in the following
  3264.    list:
  3265.  
  3266.    100  The transaction is currently being executed.  An actual
  3267.         completion message will follow on later.
  3268.  
  3269.    200  The requested transaction was executed normally.
  3270.  
  3271.    250  The connection was deleted.
  3272.  
  3273.    400  The transaction could not be executed, due to a transient error.
  3274.  
  3275.    401  The phone is already off hook
  3276.  
  3277.    402  The phone is already on hook
  3278.  
  3279.    403  The transaction could not be executed, because the endpoint does
  3280.         not have sufficient resources at this time
  3281.  
  3282.    404  Insufficient bandwidth at this time
  3283.  
  3284.    500  The transaction could not be executed, because the endpoint is
  3285.         unknown.
  3286.  
  3287.    01   The transaction could not be executed, because the endpoint is
  3288.         not ready.
  3289.  
  3290.    502  The transaction could not be executed, because the endpoint does
  3291.         not have sufficient resources
  3292.  
  3293.    510  The transaction could not be executed, because a protocol error
  3294.         was detected.
  3295.  
  3296.    11   The transaction could not be executed, because the command
  3297.         contained an unrecognized extension.
  3298.  
  3299.    512  The transaction could not be executed, because the gateway is
  3300.         not equipped to detect one of the requested events.
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306. Arango, et al.               Informational                     [Page 59]
  3307.  
  3308. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3309.  
  3310.  
  3311.    513  The transaction could not be executed, because the gateway is
  3312.         not equipped to generate one of the requested signals.
  3313.  
  3314.    514  The transaction could not be executed, because the gateway
  3315.         cannot send the specified announcement.
  3316.  
  3317.    515  The transaction refers to an incorrect connection-id (may have
  3318.         been already deleted)
  3319.  
  3320.    516  The transaction refers to an unknown call-id.
  3321.  
  3322.    517  Unsupported or invalid mode.
  3323.  
  3324.    518  Unsupported or unknown package.
  3325.  
  3326.    519  Endpoint does not have a digit map.
  3327.  
  3328.    520  The transaction could not be executed, because the endpoint is
  3329.         "restarting".
  3330.  
  3331.    521  Endpoint redirected to another Call Agent.
  3332.  
  3333.    522  No such event or signal.
  3334.  
  3335.    523  Unknown action or illegal combination of actions
  3336.  
  3337.    524  Internal inconsistency in LocalConnectionOptions
  3338.  
  3339.    525  Unknown extension in LocalConnectionOptions
  3340.  
  3341.    526  Insufficient bandwidth
  3342.  
  3343.    527  Missing RemoteConnectionDescriptor
  3344.  
  3345.    528  Incompatible protocol version
  3346.  
  3347.    529  Internal hardware failure
  3348.  
  3349.    530  CAS signaling protocol error.
  3350.  
  3351.    531  failure of a grouping of trunks (e.g. facility failure).
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362. Arango, et al.               Informational                     [Page 60]
  3363.  
  3364. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3365.  
  3366.  
  3367. 2.5.  Reason Codes
  3368.  
  3369.    Reason-codes are used by the gateway when deleting a connection to
  3370.    inform the Call Agent about the reason for deleting the connection.
  3371.    They may also be used in a RestartInProgress command, to inform the
  3372.    gateway of the Restart's reason. The reason code is an integer
  3373.    number, and the following values have been defined:
  3374.  
  3375.    000  Endpoint state is nominal. (This code is used only in response
  3376.         to audit requests.)
  3377.  
  3378.    900  Endpoint malfunctioning
  3379.  
  3380.    901  Endpoint taken out of service
  3381.  
  3382.    902  Loss of lower layer connectivity (e.g., downstream sync)
  3383.  
  3384. 3.  Media Gateway Control Protocol
  3385.  
  3386.    The MGCP implements the media gateway control interface as a set of
  3387.    transactions. The transactions are composed of a command and a
  3388.    mandatory response. There are eight types of command:
  3389.  
  3390.    *  CreateConnection
  3391.  
  3392.    *  ModifyConnection
  3393.  
  3394.    *  DeleteConnection
  3395.  
  3396.    *  NotificationRequest
  3397.  
  3398.    *  Notify
  3399.  
  3400.    *  AuditEndpoint
  3401.  
  3402.    *  AuditConnection
  3403.  
  3404.    *  RestartInProgress
  3405.  
  3406.    The first four commands are sent by the Call Agent to a gateway. The
  3407.    Notify command is sent by the gateway to the Call Agent. The gateway
  3408.    may also send a DeleteConnection as defined in 2.3.6. The Call Agent
  3409.    may send either of the Audit commands to the gateway.  The Gateway
  3410.    may send a RestartInProgress command to the Call Agent.
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418. Arango, et al.               Informational                     [Page 61]
  3419.  
  3420. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3421.  
  3422.  
  3423. 3.1.  General description
  3424.  
  3425.    All commands are composed of a Command header, optionally followed by
  3426.    a session description.
  3427.  
  3428.    All responses are composed of a Response header, optionally followed
  3429.    by a session description.
  3430.  
  3431.    Headers and session descriptions are encoded as a set of text lines,
  3432.    separated by a carriage return and line feed character (or,
  3433.    optionnally, a single line-feed character). The headers are separated
  3434.    from the session description by an empty line.
  3435.  
  3436.    MGCP uses a transaction identifier to correlate commands and
  3437.    responses.  The transaction identifier is encoded as a component of
  3438.    the command header and repeated as a component of the response header
  3439.    (see section 3.2.1, 3.2.1.2 and 3.3).
  3440.  
  3441. 3.2.  Command Header
  3442.  
  3443.    The command header is composed of:
  3444.  
  3445.    *  A command line, identifying the requested action or verb, the
  3446.       transaction identifier, the endpoint towards which the action is
  3447.       requested, and the MGCP protocol version,
  3448.  
  3449.    *  A set of parameter lines, composed of a parameter name followed by
  3450.       a parameter value.
  3451.  
  3452.    Unless otherwise noted or dictated by other referenced standards,
  3453.    each component in the command header is case insensitive. This goes
  3454.    for verbs as well as parameters and values, and all comparisons MUST
  3455.    treat upper and lower case as well as combinations of these as being
  3456.    equal.
  3457.  
  3458. 3.2.1.  Command line
  3459.  
  3460.    The command line is composed of:
  3461.  
  3462.    *  The name of the requested verb,
  3463.  
  3464.    *  The identification of the transaction,
  3465.  
  3466.    *  The name of the endpoint that should execute the command (in
  3467.       notifications or restarts, the name of the endpoint that is
  3468.       issuing the command),
  3469.  
  3470.    *  The protocol version.
  3471.  
  3472.  
  3473.  
  3474. Arango, et al.               Informational                     [Page 62]
  3475.  
  3476. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3477.  
  3478.  
  3479.    These four items are encoded as strings of printable ASCII
  3480.    characters, separated by white spaces, i.e. the ASCII space (0x20) or
  3481.    tabulation (0x09) characters. It is recommended to use exactly one
  3482.    ASCII space separator.
  3483.  
  3484. 3.2.1.1.  Coding of the requested verb
  3485.  
  3486.    The verbs that can be requested are encoded as four letter upper or
  3487.    lower case ASCII codes (comparisons should be case insensitive) as
  3488.    defined in the following table:
  3489.  
  3490.                     ______________________________
  3491.                    | Verb                 |  Code|
  3492.                    |______________________|______|
  3493.                    | EndpointConfiguration|  EPCF|
  3494.                    | CreateConnection     |  CRCX|
  3495.                    | ModifyConnection     |  MDCX|
  3496.                    | DeleteConnection     |  DLCX|
  3497.                    | NotificationRequest  |  RQNT|
  3498.                    | Notify               |  NTFY|
  3499.                    | AuditEndpoint        |  AUEP|
  3500.                    | AuditConnection      |  AUCX|
  3501.                    | RestartInProgress    |  RSIP|
  3502.                    |______________________|______|
  3503.  
  3504.    The transaction identifier is encoded as a string of up to 9 decimal
  3505.    digits. In the command lines, it immediately follows the coding of
  3506.    the verb.
  3507.  
  3508.    New verbs may be defined in further versions of the protocol. It may
  3509.    be necessary, for experimentation purposes, to use new verbs before
  3510.    they are sanctioned in a published version of this protocol.
  3511.    Experimental verbs should be identified by a four letter code
  3512.    starting with the letter X, such as for example XPER.
  3513.  
  3514. 3.2.1.2.  Transaction Identifiers
  3515.  
  3516.    MGCP uses a transaction identifier to correlate commands and
  3517.    responses.  A gateway supports two separate transaction identifier
  3518.    name spaces:
  3519.  
  3520.      a transaction identifier name space for sending transactions, and
  3521.  
  3522.      a transaction identifier name space for receiving transactions.
  3523.  
  3524.    At a minimum, transaction identifiers for commands sent to a given
  3525.    gateway MUST be unique for the maximum lifetime of the transactions
  3526.    within the collection of Call Agents that control that gateway. Thus,
  3527.  
  3528.  
  3529.  
  3530. Arango, et al.               Informational                     [Page 63]
  3531.  
  3532. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3533.  
  3534.  
  3535.    regardless of the sending Call Agent, gateways can always detect
  3536.    duplicate transactions by simply examining the transaction
  3537.    identifier. The coordination of these transaction identifiers between
  3538.    Call Agents is outside the scope of this specification though.
  3539.  
  3540.    Transaction identifiers for all commands sent from a given gateway
  3541.    MUST be unique for the maximum lifetime of the transactions
  3542.    regardless of which Call Agent the command is sent to. Thus, a Call
  3543.    Agent can always detect a duplicate transaction from a gateway by the
  3544.    combination of the domain-name of the endpoint and the transaction
  3545.    identifier.
  3546.  
  3547.    The transaction identifier is encoded as a string of up to nine
  3548.    decimal digits. In the command lines, it immediately follows the
  3549.    coding of the verb.
  3550.  
  3551.    Transaction identifiers have values between 1 and 999999999. An MGCP
  3552.    entity MUST NOT reuse a transaction identifier more quickly than
  3553.    three minutes after completion of the previous command in which the
  3554.    identifier was used.
  3555.  
  3556. 3.2.1.3.  Coding of the endpoint identifiers and entity names
  3557.  
  3558.    The endpoint identifiers and entity names are encoded as case
  3559.    insensitive e-mail addresses, as defined in RFC 821. In these
  3560.    addresses, the domain name identifies the system where the endpoint
  3561.    is attached, while the left side identifies a specific endpoint on
  3562.    that system.
  3563.  
  3564.    Examples of such addresses can be:
  3565.  
  3566.     ______________________________________________________________________
  3567.    | hrd4/56@gw23.example.net     |  Circuit number 56 in                |
  3568.    |                              |  interface "hrd4" of the Gateway 23  |
  3569.    |                              |  of the "Example" network            |
  3570.    | Call-agent@ca.example.net    |  Call Agent for the                  |
  3571.    |                              |  "example" network                   |
  3572.    | Busy-signal@ann12.example.net|  The "busy signal" virtual           |
  3573.    |                              |  endpoint in the announcement        |
  3574.    |                              |  server number 12.                   |
  3575.    |______________________________|______________________________________|
  3576.  
  3577.    The name of notified entities is expressed with the same syntax, with
  3578.    the possible addition of a port number as in:
  3579.  
  3580.      Call-agent@ca.example.net:5234
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586. Arango, et al.               Informational                     [Page 64]
  3587.  
  3588. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3589.  
  3590.  
  3591.    In case the port number is omitted, the default MGCP port (2427) will
  3592.    be used.
  3593.  
  3594. 3.2.1.4.  Coding of the protocol version
  3595.  
  3596.    The protocol version is coded as the key word MGCP followed by a
  3597.    white space and the version number, and optionally followed by a
  3598.    profile name.. The version number is composed of a major version,
  3599.    coded by a decimal number, a dot, and a minor version number, coded
  3600.    as a decimal number. The version described in this document is
  3601.    version 1.0.
  3602.  
  3603.    The profile name, if present, is represented by a white-space
  3604.    separated strings of  visible (printable) characters extending to the
  3605.    end of the line. Profile names may be defined for user communities
  3606.    who want to apply restrictions or other profiling to MGCP.
  3607.  
  3608.    In the initial messages, the version will be coded as:
  3609.  
  3610.         MGCP 1.0
  3611.  
  3612. 3.2.2.  Parameter lines
  3613.  
  3614.    Parameter lines are composed of a parameter name, which in most cases
  3615.    is composed of a single upper case character, followed by a colon, a
  3616.    white space and the parameter value. The parameter that can be
  3617.    present in commands are defined in the following table:
  3618.  
  3619.  
  3620.  
  3621.  
  3622.  
  3623.  
  3624.  
  3625.  
  3626.  
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.  
  3635.  
  3636.  
  3637.  
  3638.  
  3639.  
  3640.  
  3641.  
  3642. Arango, et al.               Informational                     [Page 65]
  3643.  
  3644. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3645.  
  3646.  
  3647.  _______________________________________________________________________
  3648.  |Parameter name        |  Code|  Parameter value                      |
  3649.  |______________________|______|_______________________________________|
  3650.  |ResponseAck           |   K  |  see description                      |
  3651.  |BearerInformation     |   B  |  see description                      |
  3652.  |CallId                |   C  |  Hexadecimal string, at most 32 chars.|
  3653.  |ConnectionId          |   I  |  Hexadecimal string, at most 32 chars.|
  3654.  |NotifiedEntity        |   N  |  An identifier, in RFC 821 format,    |
  3655.  |                      |      |  composed of an arbitrary string and  |
  3656.  |                      |      |  of the domain name of the requesting |
  3657.  |                      |      |  entity, possibly completed by a port |
  3658.  |                      |      |  number, as in:                       |
  3659.  |                      |      |   Call-agent@ca.example.net:5234      |
  3660.  |RequestIdentifier     |   X  |  Hexadecimal string, at most 32 chars.|
  3661.  |LocalConnectionOptions|   L  |  See description                      |
  3662.  |Connection Mode       |   M  |  See description                      |
  3663.  |RequestedEvents       |   R  |  See description                      |
  3664.  |SignalRequests        |   S  |  See description                      |
  3665.  |DigitMap              |   D  |  A text encoding of a digit map       |
  3666.  |ObservedEvents        |   O  |  See description                      |
  3667.  |ConnectionParameters  |   P  |  See description                      |
  3668.  |ReasonCode            |   E  |  An arbitrary character string        |
  3669.  |SpecificEndpointID    |   Z  |  An identifier, in RFC 821 format,    |
  3670.  |                      |      |  composed of an arbitrary string,     |
  3671.  |                      |      |  followed by an "@" followed by the   |
  3672.  |                      |      |  domain name of the gateway to which  |
  3673.  |                      |      |  this endpoint is attached.           |
  3674.  |Second Endpoint ID    |   Z2 |  Endpoint Id.                         |
  3675.  |SecondConnectionId    |   I2 |  Connection Id.                       |
  3676.  |RequestedInfo         |   F  |  See description                      |
  3677.  |QuarantineHandling    |   Q  |  See description                      |
  3678.  |DetectEvents          |   T  |  See Description                      |
  3679.  |RestartMethod         |   RM |  See description                      |
  3680.  |RestartDelay          |   RD |  A number of seconds, encoded as      |
  3681.  |                      |      |  a decimal number                     |
  3682.  |EventStates           |   ES |  See description                      |
  3683.  |Capabilities          |   A  |  See description                      |
  3684.  |______________________|______|_______________________________________|
  3685.  |RemoteConnection      |   RC |  Session Description                  |
  3686.  |Descriptor            |      |                                       |
  3687.  |LocalConnection       |   LC |  Session Description                  |
  3688.  |Descriptor            |      |                                       |
  3689.  |______________________|______|_______________________________________|
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698. Arango, et al.               Informational                     [Page 66]
  3699.  
  3700. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3701.  
  3702.  
  3703.    The parameters are not necessarily present in all commands. The
  3704.    following table provides the association between parameters and
  3705.    commands. The letter M stands for mandatory, O for optional and F for
  3706.    forbidden.
  3707.  
  3708.    ___________________________________________________________________
  3709.   | Parameter name      |  EP|  CR|  MD|  DL|  RQ|  NT|  AU|  AU|  RS|
  3710.   |                     |  CF|  CX|  CX|  CX|  NT|  FY|  EP|  CX|  IP|
  3711.   |_____________________|____|____|____|____|____|____|____|____|____|
  3712.   | ResponseAck         |  O |  O |  O |  O |  O |  O |  O |  O |  O |
  3713.   | BearerInformation   |  M |  O |  O |  O |  O |  F |  F |  F |  F |
  3714.   | CallId              |  F |  M |  M |  O |  F |  F |  F |  F |  F |
  3715.   | ConnectionId        |  F |  F |  M |  O |  F |  F |  F |  M |  F |
  3716.   | RequestIdentifier   |  F |  O+|  O+|  O+|  M |  M |  F |  F |  F |
  3717.   | LocalConnection     |  F |  O |  O |  F |  F |  F |  F |  F |  F |
  3718.   | Options             |    |    |    |    |    |    |    |    |    |
  3719.   | Connection Mode     |  F |  M |  M |  F |  F |  F |  F |  F |  F |
  3720.   | RequestedEvents     |  F |  O |  O |  O |  O*|  F |  F |  F |  F |
  3721.   | SignalRequests      |  F |  O |  O |  O |  O*|  F |  F |  F |  F |
  3722.   | NotifiedEntity      |  F |  O |  O |  O |  O |  O |  F |  F |  F |
  3723.   | ReasonCode          |  F |  F |  F |  O |  F |  F |  F |  F |  O |
  3724.   | ObservedEvents      |  F |  F |  F |  F |  F |  M |  F |  F |  F |
  3725.   | DigitMap            |  F |  O |  O |  O |  O |  F |  F |  F |  F |
  3726.   | Connection          |  F |  F |  F |  O |  F |  F |  F |  F |  F |
  3727.   | parameters          |    |    |    |    |    |    |    |    |    |
  3728.   | Specific Endpoint ID|  F |  F |  F |  F |  F |  F |  F |  F |  F |
  3729.   | Second Endpoint ID  |  F |  O |  F |  F |  F |  F |  F |  F |  F |
  3730.   | RequestedInfo       |  F |  F |  F |  F |  F |  F |  M |  M |  F |
  3731.   | QuarantineHandling  |  F |  O |  O |  O |  O |  F |  F |  F |  F |
  3732.   | DetectEvents        |  F |  O |  O |  O |  O |  F |  F |  F |  F |
  3733.   | EventStates         |  F |  F |  F |  F |  F |  F |  F |  F |  F |
  3734.   | RestartMethod       |  F |  F |  F |  F |  F |  F |  F |  F |  M |
  3735.   | RestartDelay        |  F |  F |  F |  F |  F |  F |  F |  F |  O |
  3736.   | SecondConnectionID  |  F |  F |  F |  F |  F |  F |  F |  F |  F |
  3737.   | Capabilities        |  F |  F |  F |  F |  F |  F |  F |  F |  F |
  3738.   |_____________________|____|____|____|____|____|____|____|____|____|
  3739.   | RemoteConnection    |  F |  O |  O |  F |  F |  F |  F |  F |  F |
  3740.   | Descriptor          |    |    |    |    |    |    |    |    |    |
  3741.   | LocalConnection     |  F |  F |  F |  F |  F |  F |  F |  F |  F |
  3742.   | Descriptor          |    |    |    |    |    |    |    |    |    |
  3743.   |_____________________|____|____|____|____|____|____|____|____|____|
  3744.  
  3745.    Note (+) that the RequestIdentifier parameter is optional in
  3746.    connection creation, modification and deletion commands, but that it
  3747.    becomes mandatory if the command contains an encapsulated
  3748.    notification request.
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754. Arango, et al.               Informational                     [Page 67]
  3755.  
  3756. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3757.  
  3758.  
  3759.    Note (*) that the RequestedEvents and SignalRequests parameters are
  3760.    optional in the NotificationRequest. If these parameters are omitted,
  3761.    the corresponding lists will be considered empty.
  3762.  
  3763.    If implementers need to experiment with new parameters, for example
  3764.    when developing a new application of MGCP, they should identify these
  3765.    parameters by names that start with the string "X-" or "X+", such as
  3766.    for example:
  3767.  
  3768.              X-FlowerOfTheDay: Daisy
  3769.  
  3770.    Parameter names that start with "X+" are critical parameter
  3771.    extensions.  An MGCP entity that receives a critical parameter
  3772.    extension that it cannot understand should refuse to execute the
  3773.    command.  It should respond with an error code 511 (Unrecognized
  3774.    extension).
  3775.  
  3776.    Parameter names that start with "X-" are non critical parameter
  3777.    extensions. An MGCP entity that receives a non critical parameter
  3778.    extension that it cannot understand can safely ignore that parameter.
  3779.  
  3780. 3.2.2.1.  Response Acknowledgement
  3781.  
  3782.    The response acknowledgement attribute is used to managed the "at-
  3783.    most-once" facility described in the "transmission over UDP" section.
  3784.    It contains a comma separated list of "confirmed transaction-id
  3785.    ranges".
  3786.  
  3787.    Each "confirmed transaction-id ranges" is composed of either one
  3788.    decimal number, when the range includes exactly one transaction, or
  3789.    two decimal numbers separated by a single hyphen, describing the
  3790.    lower and higher transaction identifiers included in the range.
  3791.  
  3792.    An example of response acknowledgement is:
  3793.  
  3794.         K: 6234-6255, 6257, 19030-19044
  3795.  
  3796. 3.2.2.2.  Local connection options
  3797.  
  3798.    The local connection options describe the operational parameters that
  3799.    the Call Agent suggests to the gateway. These parameters are:
  3800.  
  3801.    *  The packetization period in milliseconds, encoded as the keyword
  3802.       "p", followed by a colon and a decimal number. If the Call Agent
  3803.       specifies a range of values, the range will be specified as two
  3804.       decimal numbers separated by an hyphen.
  3805.  
  3806.  
  3807.  
  3808.  
  3809.  
  3810. Arango, et al.               Informational                     [Page 68]
  3811.  
  3812. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3813.  
  3814.  
  3815.    *  The preferred type of compression algorithm, encoded as the
  3816.       keyword "a", followed by a colon and a character string. If the
  3817.       Call Agent specifies a list of values, these values will be
  3818.       separated by a semicolon.
  3819.  
  3820.    *  The bandwidth in kilobits per second (1000 bits per second),
  3821.       encoded as the keyword "b", followed by a colon and a decimal
  3822.       number. If the Call Agent specifies a range of values, the range
  3823.       will be specified as two decimal numbers separated by an hyphen.
  3824.  
  3825.    *  The echo cancellation parameter, encoded as the keyword "e",
  3826.       followed by a colon and the value "on" or "off".
  3827.  
  3828.    *  The gain control parameter, encoded as the keyword "gc", followed
  3829.       by a colon a value which can be either the keyword "auto" or a
  3830.       decimal number (positive or negative) representing the number of
  3831.       decibels of gain.
  3832.  
  3833.    *  The silence suppression parameter, encoded as the keyword "s",
  3834.       followed by a colon and the value "on" or "off".
  3835.  
  3836.    *  The type of service parameter, encoded as the keyword "t",
  3837.       followed by a colon and the value encoded as two hexadecimal
  3838.       digits.
  3839.  
  3840.    *  The resource reservation parameter, encoded as the keyword "r",
  3841.       followed by a colon and the value "g" (guaranteed service), "cl"
  3842.       (controlled load) or "be" (best effort).
  3843.  
  3844.    *  The encryption key, encoded as the keyword "k" followed by a colon
  3845.       and a key specification, as defined for the parameter "K" of SDP
  3846.       (RFC 2327).
  3847.  
  3848.    *  The type of network, encoded as the keyword "nt" followed by a
  3849.       colon and the type of network encoded as the keyword "IN", "ATM"
  3850.       or "LOCAL".
  3851.  
  3852.    Each of the parameters is optional. When several parameters are
  3853.    present, the values are separated by a comma.
  3854.  
  3855.    Examples of connection descriptors are:
  3856.  
  3857.              L: p:10, a:PCMU
  3858.              L: p:10, a:G726-32
  3859.              L: p:10-20, b:64
  3860.              L: b:32-64, e:off
  3861.  
  3862.    These set of attributes may be extended by extension attributes.
  3863.  
  3864.  
  3865.  
  3866. Arango, et al.               Informational                     [Page 69]
  3867.  
  3868. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3869.  
  3870.  
  3871.    Extension attributes are composed of an attribute name, followed by a
  3872.    semi-colon and by an attribute value. The attribute name should start
  3873.    by the two characters "x+", for a mandatory extensions, or "x-", for
  3874.    a non mandatory extension.  If a gateway receives a mandatory
  3875.    extension attribute that it does not recognize, it should reject the
  3876.    command with an error code 525 (Unknown extension in
  3877.    LocalConnectionOptions).
  3878.  
  3879. 3.2.2.3.  Capabilities
  3880.  
  3881.    Capabilities inform the Call Agent about endpoints' capabilities when
  3882.    audited. The encoding of capabilities is based on the Local
  3883.    Connection Options encoding for the parameters that are common to
  3884.    both. In addition, capabilities can also contain a list of supported
  3885.    packages, and a list of supported modes.
  3886.  
  3887.    The parameters used are:
  3888.  
  3889.    *
  3890.       A list of supported codecs. The following parameters will apply to
  3891.       all codecs specified in this list.  If there is a need to specify
  3892.       that some parameters, such as e.g. silence suppression, are only
  3893.       compatible with some codecs, then the gateway will return several
  3894.       LocalConnectionOptions parameters, one for each set of codecs.
  3895.  
  3896.    Packetization Period:
  3897.       A range may be specified.
  3898.  
  3899.    Bandwidth:
  3900.       A range corresponding to the range for packetization periods may
  3901.       be specified (assuming no silence suppression). If absent, the
  3902.       values will be deduced from the codec type.
  3903.  
  3904.    Echo Cancellation:
  3905.       "on" if echo cancellation is supported for this codec, "off"
  3906.       otherwise. The default is support.
  3907.  
  3908.    Silence Suppression:
  3909.       "on" if silence suppression is supported for this codec, "off"
  3910.       otherwise. The default is support.
  3911.  
  3912.    Gain Control:
  3913.       "0" if gain control is not supported.  The default is support.
  3914.  
  3915.    Type of Service:
  3916.       The value "0" indicates no support for type of service, all other
  3917.       values indicate support for type of service. The default is
  3918.       support.
  3919.  
  3920.  
  3921.  
  3922. Arango, et al.               Informational                     [Page 70]
  3923.  
  3924. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3925.  
  3926.  
  3927.    Resource Reservation:
  3928.       The parameter indicates the reservation services that are
  3929.       supported, in addition to best effort.  The value "g" is encoded
  3930.       when the gateway supports both the guaranteed and the controlled
  3931.       load service, "cl" when only the controlled load service is
  3932.       supported.  The default is "best effort."
  3933.  
  3934.    Encryption Key:
  3935.       Encoding any value indicates support for encryption.  Default is
  3936.       no support.
  3937.  
  3938.    Type of network:
  3939.       The keyword "nt", followed by a colon and a semicolon separated
  3940.       list of supported network types.  This parameter is optional.
  3941.  
  3942.    Event Packages
  3943.       The event packages supported by this endpoint encoded as the
  3944.       keyword "v", followed by a colon and a character string. If a list
  3945.       of values is specified, these values will be separated by a
  3946.       semicolon.  The first value specified will be the default package
  3947.       for that endpoint.
  3948.  
  3949.    Modes
  3950.       The modes supported by this endpoint encoded as the keyword "m",
  3951.       followed by a colon and a semicolon-separated list of supported
  3952.       connection modes for this endpoint.
  3953.  
  3954. 3.2.2.4.  Connection parameters
  3955.  
  3956.    Connection parameters are encoded as a string of type and value
  3957.    pairs, where the type is a either letter identifier of the parameter
  3958.    or an extension type, and the value a decimal integer. Types are
  3959.    separated from value by an `=' sign. Parameters are encoded from each
  3960.    other by a comma.
  3961.  
  3962.  
  3963.  
  3964.  
  3965.  
  3966.  
  3967.  
  3968.  
  3969.  
  3970.  
  3971.  
  3972.  
  3973.  
  3974.  
  3975.  
  3976.  
  3977.  
  3978. Arango, et al.               Informational                     [Page 71]
  3979.  
  3980. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  3981.  
  3982.  
  3983.    The connection parameter types are specified in the following table:
  3984.  
  3985.     __________________________________________________________________
  3986.    | Connection parameter|  Code|  Connection parameter              |
  3987.    | name                |      |  value                             |
  3988.    |_____________________|______|____________________________________|
  3989.    | Packets sent        |   PS |  The number of packets that        |
  3990.    |                     |      |  were sent on the connection.      |
  3991.    | Octets sent         |   OS |  The number of octets that         |
  3992.    |                     |      |  were sent on the connection.      |
  3993.    | Packets received    |   PR |  The number of packets that        |
  3994.    |                     |      |  were received on the connection.  |
  3995.    | Octets received     |   OR |  The number of octets that         |
  3996.    |                     |      |  were received on the connection.  |
  3997.    | Packets lost        |   PL |  The number of packets that        |
  3998.    |                     |      |  were not received on the          |
  3999.    |                     |      |  connection, as deduced from       |
  4000.    |                     |      |  gaps in the sequence number.      |
  4001.    | Jitter              |   JI |  The average inter-packet arrival  |
  4002.    |                     |      |  jitter, in milliseconds,          |
  4003.    |                     |      |  expressed as an integer number.   |
  4004.    | Latency             |   LA |  Average latency, in milliseconds, |
  4005.    |                     |      |  expressed as an integer number.   |
  4006.    |_____________________|______|____________________________________|
  4007.  
  4008.    Extension parameters names are composed of the string "X-" followed
  4009.    by a two letters extension parameter name.  Call agents that received
  4010.    unrecognized extensions shall silently ignore these extensions.
  4011.  
  4012.    An example of connection parameter encoding is:
  4013.  
  4014.          P: PS=1245, OS=62345, PR=0, OR=0, PL=0, JI=0, LA=48
  4015.  
  4016. 3.2.2.5.  Reason Codes
  4017.  
  4018.    Reason codes are three-digit numeric values. The reason code is
  4019.    optionally followed by a white space and commentary, e.g.:
  4020.  
  4021.       900 Endpoint malfunctioning
  4022.  
  4023.    A list of reason-codes can be found in Section 2.5.
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.  
  4031.  
  4032.  
  4033.  
  4034. Arango, et al.               Informational                     [Page 72]
  4035.  
  4036. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4037.  
  4038.  
  4039. 3.2.2.6.  Connection mode
  4040.  
  4041.    The connection mode describes the mode of operation of the
  4042.    connection.  The possible values are:
  4043.  
  4044.        ________________________________________________________
  4045.       | Mode       |  Meaning                                 |
  4046.       |____________|__________________________________________|
  4047.       | M: sendonly|  The gateway should only send packets    |
  4048.       | M: recvonly|  The gateway should only receive packets |
  4049.       | M: sendrecv|  The gateway should send                 |
  4050.       |            |  and receive packets                     |
  4051.       | M: confrnce|  The gateway should place                |
  4052.       |            |  the connection in conference mode       |
  4053.       | M: inactive|  The gateway should neither              |
  4054.       |            |  send nor receive packets                |
  4055.       | M: loopback|  The gateway should place                |
  4056.       |            |  the circuit in loopback mode.           |
  4057.       | M: conttest|  The gateway should place                |
  4058.       |            |  the circuit in test mode.               |
  4059.       | M: netwloop|  The gateway should place                |
  4060.       |            |  the connection in network loopback mode.|
  4061.       | M: netwtest|  The gateway should place                |
  4062.       |            |   the connection in network              |
  4063.       |            |   continuity test mode.                  |
  4064.       | M: data    |  The gateway should use the circuit      |
  4065.       |            |  for network access for data             |
  4066.       |            |  (e.g., PPP, SLIP, etc.).                |
  4067.       |____________|__________________________________________|
  4068.  
  4069. 3.2.2.7.  Coding of event names
  4070.  
  4071.    Event names are composed of an optional package name, separated by a
  4072.    slash (/) from the name of the actual event.  The event name can
  4073.    optionally be followed by an at sign (@) and the identifier of a
  4074.    connection on which the event should be observed. Event names are
  4075.    used in the RequestedEvents, SignalRequests and ObservedEvents
  4076.    parameter.
  4077.  
  4078.    Each signal has one of the following signal-types associated with:
  4079.    On/Off (OO), Time-out (TO), Brief (BR). (These signal types are
  4080.    specified in the package definitions, and are not present in the
  4081.    messages.)  On/Off signals can be parameterized with a "+" to turn
  4082.    the signal on, or a "-" to turn the signal off. If an on/off signal
  4083.    is not parameterized, the signal is turned on. Both of the following
  4084.    will turn the vmwi signal on:
  4085.  
  4086.       vmwi(+), vmwi
  4087.  
  4088.  
  4089.  
  4090. Arango, et al.               Informational                     [Page 73]
  4091.  
  4092. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4093.  
  4094.  
  4095.    The following are valid examples of event names:
  4096.  
  4097.        ____________________________________________________________
  4098.       | L/hu        |   on-hook transition, in the line package   |
  4099.       | F/0         |   digit 0 in the MF package                 |
  4100.       | fh          |   Flash-hook, assuming that the line package|
  4101.       |             |   is a default package for the end point.   |
  4102.       | G/rt@0A3F58 |   Ring back signal on                       |
  4103.       |             |   connection "0A3F58".                      |
  4104.       |_____________|_____________________________________________|
  4105.  
  4106.    In addition, the range and wildcard notation of events can be used,
  4107.    instead of individual names, in the RequestedEvents and DetectEvents
  4108.    parameters. The star sign can be used to denote "all connections",
  4109.    and the dollar sign can be used to denote the "current" connection.
  4110.    The following are valid examples of such notations:
  4111.  
  4112.        __________________________________________________________
  4113.       | M/[0-9]   |   Digits 0 to 9 in the MF package           |
  4114.       | fh        |   Flash-hook, assuming that the line package|
  4115.       |           |   is a default package for the end point.   |
  4116.       | [0-9*#A-D]|   All digits and letters in the DTMF        |
  4117.       |           |   packages (default for endpoint).          |
  4118.       | T/$       |   All events in the trunk packages.         |
  4119.       | R/qa@*    |   The quality alert event in all            |
  4120.       |           |   connections                               |
  4121.       | R/rt@$    |   Ringback on current connection            |
  4122.       |___________|_____________________________________________|
  4123.  
  4124.  
  4125. 3.2.2.8.  RequestedEvents
  4126.  
  4127.    The RequestedEvent parameter provides the list of events that have
  4128.    been requested. The event codes are described in the previous
  4129.    section.
  4130.  
  4131.    Each event can be qualified by a requested action, or by a list of
  4132.    actions. The actions, when specified, are encoded as a list of
  4133.    keywords, enclosed in parenthesis and separated by commas. The codes
  4134.    for the various actions are:
  4135.  
  4136.  
  4137.  
  4138.  
  4139.  
  4140.  
  4141.  
  4142.  
  4143.  
  4144.  
  4145.  
  4146. Arango, et al.               Informational                     [Page 74]
  4147.  
  4148. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4149.  
  4150.  
  4151.                 ______________________________________
  4152.                | Action                       |  Code|
  4153.                |______________________________|______|
  4154.                | Notify immediately           |  N   |
  4155.                | Accumulate                   |  A   |
  4156.                | Treat according to digit map |  D   |
  4157.                | Swap                         |  S   |
  4158.                | Ignore                       |  I   |
  4159.                | Keep Signal(s) active        |  K   |
  4160.                | Embedded Notification Request|  E   |
  4161.                |______________________________|______|
  4162.  
  4163.  
  4164.    When no action is specified, the default action is to notify the
  4165.    event.  This means that, for example, ft and ft(N) are equivalent.
  4166.    Events that are not listed are ignored.
  4167.  
  4168.    The digit-map action can only be specified for the digits, letters
  4169.    and interdigit timers in the MF and DTMF packages, or in other
  4170.    packages that would define the encoding of digits and timers.
  4171.  
  4172.    The requested list is encoded on a single line, with event/action
  4173.    groups separated by commas. Examples of RequestedEvents encoding are:
  4174.  
  4175.          R: hu(N), hf(S,N)
  4176.          R: hu(N), [0-9#T](D)
  4177.  
  4178.    In the case of the "enable" action, the embedded notification request
  4179.    parameters are encoded as a list of up to three parameter groups,
  4180.    separated by commas.  Each group start by a one letter identifier,
  4181.    followed by a list of parameters enclosed between parenthesis.  The
  4182.    first optional parameter group, identified by the letter "R", is the
  4183.    enabled value of the RequestedEvents parameter.  The second optional
  4184.    group, identified by the letter "S", is the enabled value of the
  4185.    SignalRequests parameter.  The third optional group, identified by
  4186.    the letter "D", is the enabled value of the DigitMap. (Note that some
  4187.    existing implementation may encode these three components in a
  4188.    different order.)
  4189.  
  4190.    If the RequestedEvents is not present, the parameter will be set to a
  4191.    null value.  If the SignalRequest is not present, the parameter will
  4192.    be set to a null value. If the DigitMap is absent, the current value
  4193.    should be used. The following are valid examples of embedded
  4194.    requests:
  4195.  
  4196.          R: hd(E(R([0-9#T](D),hu(N)),S(dl),D([0-9].[#T])))
  4197.          R: hd(E(R([0-9#T](D),hu(N)),S(dl)))
  4198.  
  4199.  
  4200.  
  4201.  
  4202. Arango, et al.               Informational                     [Page 75]
  4203.  
  4204. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4205.  
  4206.  
  4207. 3.2.2.9.  SignalRequests
  4208.  
  4209.    The SignalRequests parameter provides the name of the signals that
  4210.    have been requested. Each signal is identified by a name, as
  4211.    indicated in the previous section.
  4212.  
  4213.    Several signals, such as for example announcement or ADSI display,
  4214.    can be qualified by additional parameters:
  4215.  
  4216.    *  the name and parameters of the announcement,
  4217.  
  4218.    *  the string that should be displayed.
  4219.  
  4220.    These parameters will be encoded as a set of UTF8 character strings,
  4221.    spearated by comams and enclosed within parenthesis, as in:
  4222.       S: adsi("123456 Francois Gerard")
  4223.       S: ann(no-such-number, 1234567)
  4224.  
  4225.    When several signals are requested, their codes are separated by a
  4226.    comma, as in:
  4227.  
  4228.          S: asdi(123456 Your friend), rg
  4229.  
  4230. 3.2.2.10.  ObservedEvent
  4231.  
  4232.    The observed event parameters provides the list of events that have
  4233.    been observed. The event codes are the same as those used in the
  4234.    NotificationRequest. Events that have been accumulated according to
  4235.    the digit map may be grouped in a single string; they should be
  4236.    reported as lists of isolated events if other events where detected
  4237.    during the digit accumulation. Examples of observed actions are:
  4238.  
  4239.         O: L/hu
  4240.         O: 8295555T
  4241.         O: 8,2,9,5,5,L/hf,5,5,T
  4242.         O: L/hf, L/hf, L/hu
  4243.  
  4244. 3.2.2.11.  RequestedInfo
  4245.  
  4246.    The RequestedInfo parameter contains a comma separated list of
  4247.    parameter codes, as defined in the "Parameter lines" section.  For
  4248.    example, if one wants to audit the value of the NotifiedEntity,
  4249.    RequestIdentifier, RequestedEvents, SignalRequests, DigitMap,
  4250.    QuarantineHandling and DetectEvents parameters, The value of the
  4251.    RequestedInfo parameter will be:
  4252.  
  4253.          F:N,X,R,S,D,Q,T
  4254.  
  4255.  
  4256.  
  4257.  
  4258. Arango, et al.               Informational                     [Page 76]
  4259.  
  4260. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4261.  
  4262.  
  4263.    The capabilities request, in the AuditEndPoint command, is encoded by
  4264.    the keyword "A", as in:
  4265.  
  4266.          F:A
  4267.  
  4268. 3.2.2.12.  QuarantineHandling
  4269.  
  4270.    The quarantine handling parameter contains a list of comma separated
  4271.    keywords:
  4272.  
  4273.    *  The keyword "process" or "discard" to indicate the treatment of
  4274.       quarantined events.  If neither process or discard is present,
  4275.       process is assumed.
  4276.  
  4277.    *  The keyword "step" or "loop" to indicate whether exactly at most
  4278.       one notification is expected, or whether multiple notifications
  4279.       are allowed. If neither step or loop is present, step is assumed.
  4280.       The following values are valid examples:
  4281.  
  4282.                Q:loop
  4283.                Q:process
  4284.                Q:discard,loop
  4285.  
  4286. 3.2.2.13.  DetectEvents
  4287.  
  4288.    The DetectEvent parameter is encoded as a comma separated list of
  4289.    events, such as for example:
  4290.  
  4291.          T: hu,hd,hf,[0-9#*]
  4292.  
  4293.    It should be noted, that no actions can be associated with the
  4294.    events.
  4295.  
  4296. 3.2.2.14.  EventStates
  4297.  
  4298.    The EventStates parameter is encoded as a comma separated list of
  4299.    events, such as for example:
  4300.  
  4301.       ES: hu
  4302.  
  4303.    It should be noted, that no actions can be associated with the
  4304.    events.
  4305.  
  4306.  
  4307.  
  4308.  
  4309.  
  4310.  
  4311.  
  4312.  
  4313.  
  4314. Arango, et al.               Informational                     [Page 77]
  4315.  
  4316. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4317.  
  4318.  
  4319. 3.2.2.15.  RestartMethod
  4320.  
  4321.    The RestartMethod parameter is encoded as one of the keywords
  4322.    "graceful", "forced", "restart", "disconnected" or "cancel-graceful"
  4323.    as for example:
  4324.  
  4325.          RM:restart
  4326.  
  4327. 3.2.2.16.  Bearer Information
  4328.  
  4329.    The values of the bearer informations are encoded as a comma
  4330.    separated list of attributes, represented by an attribute name,
  4331.    separated by a colon from an attribute value.
  4332.  
  4333.    The only attribute that is defined is the "encoding" (code "e"),
  4334.    whose defined values are "A" (A-law) and "mu" (mu-law).
  4335.  
  4336.    An example of bearer information encoding is:
  4337.  
  4338.          B: e:mu
  4339.  
  4340. 3.3.  Format of response headers
  4341.  
  4342.    The response header is composed of a response line, optionally
  4343.    followed by headers that encode the response parameters.
  4344.  
  4345.    An example of response header could be:
  4346.  
  4347.          200 1203 OK
  4348.  
  4349.    The response line starts with the response code, which is a three
  4350.    digit numeric value. The code is followed by a white space, the
  4351.    transaction identifier, and an optional commentary preceded by a
  4352.    white space.
  4353.  
  4354.    The following table describe the parameters whose presence is
  4355.    mandatory or optional in a response header, as a function of the
  4356.    command that triggered the response. The letter M stands for
  4357.    mandatory, O for optional and F for forbidden.
  4358.  
  4359.  
  4360.  
  4361.  
  4362.  
  4363.  
  4364.  
  4365.  
  4366.  
  4367.  
  4368.  
  4369.  
  4370. Arango, et al.               Informational                     [Page 78]
  4371.  
  4372. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4373.  
  4374.  
  4375.     ___________________________________________________________________
  4376.    | Parameter name      |  EP|  CR|  MD|  DL|  RQ|  NT|  AU|  AU|  RS|
  4377.    |                     |  CF|  CX|  CX|  CX|  NT|  FY|  EP|  CX|  IP|
  4378.    |_____________________|____|____|____|____|____|____|____|____|____|
  4379.    | ResponseAck         |  F |  F |  F |  F |  F |  F |  F |  F |  F |
  4380.    | BearerInformation   |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4381.    | CallId              |  F |  F |  F |  F |  F |  F |  F |  O |  F |
  4382.    | ConnectionId        |  F |  O*|  F |  F |  F |  F |  F |  F |  F |
  4383.    | RequestIdentifier   |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4384.    | LocalConnection     |  F |  F |  F |  F |  F |  F |  O |  O |  F |
  4385.    | Options             |    |    |    |    |    |    |    |    |    |
  4386.    | Connection Mode     |  F |  F |  F |  F |  F |  F |  F |  O |  F |
  4387.    | RequestedEvents     |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4388.    | SignalRequests      |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4389.    | NotifiedEntity      |  F |  F |  F |  F |  F |  F |  F |  F |  O |
  4390.    | ReasonCode          |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4391.    | ObservedEvents      |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4392.    | DigitMap            |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4393.    | Connection          |  F |  F |  F |  O |  F |  F |  F |  O |  F |
  4394.    | Parameters          |    |    |    |    |    |    |    |    |    |
  4395.    | Specific Endpoint ID|  F |  O |  F |  F |  F |  F |  F |  F |  F |
  4396.    | RequestedInfo       |  F |  F |  F |  F |  F |  F |  F |  F |  F |
  4397.    | QuarantineHandling  |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4398.    | DetectEvents        |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4399.    | EventStates         |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4400.    | RestartMethod       |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4401.    | RestartDelay        |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4402.    | Capabilities        |  F |  F |  F |  F |  F |  F |  O |  F |  F |
  4403.    | SecondConnectionId  |  F |  O |  F |  F |  F |  F |  F |  F |  F |
  4404.    | SecondEndpointID    |  F |  O |  F |  F |  F |  F |  F |  F |  F |
  4405.    |_____________________|____|____|____|____|____|____|____|____|____|
  4406.    | LocalConnection     |  F |  M |  O |  F |  F |  F |  F |  O*|  F |
  4407.    | Descriptor          |    |    |    |    |    |    |    |    |    |
  4408.    | RemoteConnection    |  F |  F |  F |  F |  F |  F |  F |  O*|  F |
  4409.    | Descriptor          |    |    |    |    |    |    |    |    |    |
  4410.    |_____________________|____|____|____|____|____|____|____|____|____|
  4411.  
  4412.    In the case of a CreateConnection message, the response line is
  4413.    followed by a Connection-Id parameter. It may also be followed a
  4414.    Specific-Endpoint-Id parameter, if the creation request was sent to a
  4415.    wildcarded Endpoint-Id. The connection-Id parameter is marked as
  4416.    optional in the Table.  In fact, it is mandatory with all positive
  4417.    responses, when a connection was created, and forbidden when the
  4418.    response is negative, when no connection as created.
  4419.  
  4420.    In the case of a DeleteConnection message, the response line is
  4421.    followed by a Connection Parameters parameter, as defined in section
  4422.    3.2.2.2.
  4423.  
  4424.  
  4425.  
  4426. Arango, et al.               Informational                     [Page 79]
  4427.  
  4428. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4429.  
  4430.  
  4431.    A LocalConnectionDescriptor should be transmitted with a positive
  4432.    response (code 200) to a CreateConnection. It may be transmitted in
  4433.    response to a ModifyConnection command, if the modification resulted
  4434.    in a modification of the session parameters. The
  4435.    LocalConnectionDescriptor is encoded as a "session description," as
  4436.    defined in section 3.4. It is separated from the response header by
  4437.    an empty line.
  4438.  
  4439.    When several session descriptors are encoded in the same response,
  4440.    they are encoded one after each other, separated by an empty line.
  4441.    This is the case for example when the response to an audit connection
  4442.    request carries both a local session description and a remote session
  4443.    description, as in:
  4444.  
  4445.          200 1203 OK
  4446.          C: A3C47F21456789F0
  4447.          N: [128.96.41.12]
  4448.          L: p:10, a:PCMU;G726-32
  4449.          M: sendrecv
  4450.          P: PS=1245, OS=62345, PR=780, OR=45123, PL=10, JI=27,LA=48
  4451.  
  4452.          v=0
  4453.          c=IN IP4 128.96.41.1
  4454.          m=audio 1296 RTP/AVP 0
  4455.  
  4456.          v=0
  4457.          c=IN IP4 128.96.63.25
  4458.          m=audio 1296 RTP/AVP 0 96
  4459.          a=rtpmap:96 G726-32/8000
  4460.  
  4461.    In this example, according to the SDP syntax, each description starts
  4462.    with a "version" line, (v=...).  The local description is always
  4463.    transmitted before the remote description. If a connection descriptor
  4464.    is requested, but it does not exist for the connection audited, that
  4465.    connection descriptor will appear with the SDP protocol version field
  4466.    only.
  4467.  
  4468.  
  4469.  
  4470.  
  4471.  
  4472.  
  4473.  
  4474.  
  4475.  
  4476.  
  4477.  
  4478.  
  4479.  
  4480.  
  4481.  
  4482. Arango, et al.               Informational                     [Page 80]
  4483.  
  4484. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4485.  
  4486.  
  4487. 3.4.  Formal syntax description of the protocol
  4488.  
  4489.    In this section, we provided a formal description of the protocol
  4490.    syntax, following the "Augmented BNF for Syntax Specifications"
  4491.    defined in RFC 2234.
  4492.  
  4493. MGCPMessage = MGCPCommand / MGCPResponse
  4494.  
  4495. MGCPCommand = MGCPCommandLine 0*(MGCPParameter) [EOL *SDPinformation]
  4496.  
  4497. MGCPCommandLine = MGCPVerb 1*(WSP) <transaction-id> 1*(WSP)
  4498.                         <endpointName> 1*(WSP) MGCPversion EOL
  4499.  
  4500. MGCPVerb = "EPCF" / "CRCX" / "MDCX" / "DLCX" / "RQNT"
  4501.          / "NTFY" / "AUEP" / "AUCX" / "RSIP" / extensionVerb
  4502.  
  4503. extensionVerb = "X" 3(ALPHA / DIGIT)
  4504.  
  4505. transaction-id = 1*9(DIGIT)
  4506.  
  4507. endpointName =  localEndpointName "@" DomainName
  4508. LocalEndpointName = LocalNamePart 0*("/" LocalNamePart)
  4509. LocalNamePart = AnyName / AllName / NameString
  4510. AnyName = "$"
  4511. AllNames = "*"
  4512. NameString = 1*(range-of-allowed-characters)
  4513. DomainName = 1*256(ALPHA / DIGIT / "." / "-") ; as defined in RFC 821
  4514.  
  4515. MGCPversion = "MGCP" 1*(WSP) 1*(DIGIT) "." 1*(DIGIT)
  4516.               [1*(WSP) ProfileName]
  4517. ProfileName = 1*(range-of-allowed-characters)
  4518.  
  4519. MGCPParameter = ParameterValue EOL
  4520.  
  4521. ParameterValue = ("K" ":" 0*WSP <ResponseAck>) /
  4522.                  ("B" ":" 0*WSP <BearerInformation>) /
  4523.                  ("C" ":" 0*WSP <CallId>) /
  4524.                  ("I" ":" 0*WSP <ConnectionId>) /
  4525.                  ("N" ":" 0*WSP <NotifiedEntity>) /
  4526.                  ("X" ":" 0*WSP <RequestIdentifier>) /
  4527.                  ("L" ":" 0*WSP <LocalConnectionOptions>) /
  4528.                  ("M" ":" 0*WSP <ConnectionMode>) /
  4529.                  ("R" ":" 0*WSP <RequestedEvents>) /
  4530.                  ("S" ":" 0*WSP <SignalRequests>) /
  4531.                  ("D" ":" 0*WSP <DigitMap>) /
  4532.                  ("O" ":" 0*WSP <ObservedEvents>) /
  4533.                  ("P" ":" 0*WSP <ConnectionParameters>) /
  4534.                  ("E" ":" 0*WSP <ReasonCode>) /
  4535.  
  4536.  
  4537.  
  4538. Arango, et al.               Informational                     [Page 81]
  4539.  
  4540. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4541.  
  4542.  
  4543.                  ("Z" ":" 0*WSP <SpecificEndpointID>) /
  4544.                  ("Z2" ":" 0*WSP <SecondEndpointID>) /
  4545.                  ("I2" ":" 0*WSP <SecondConnectionID>) /
  4546.                  ("F" ":" 0*WSP <RequestedInfo>) /
  4547.                  ("Q" ":" 0*WSP <QuarantineHandling>) /
  4548.                  ("T" ":" 0*WSP <DetectEvents>) /
  4549.                  ("RM" ":" 0*WSP <RestartMethod>) /
  4550.                  ("RD" ":" 0*WSP <RestartDelay>) /
  4551.                  ("A" ":" 0*WSP <Capabilities>) /
  4552.                  ("ES" ":" 0*WSP <EventStates>) /
  4553.                      (extensionParameter ":" 0*WSP <parameterString>)
  4554.  
  4555. ResponseAck =  confirmedTransactionIdRange
  4556.                *[ ","  confirmedTransactionIdRange ]
  4557.  
  4558. confirmedTransactionIdRange = 1*9DIGIT [ "-" 1*9DIGIT ]
  4559.  
  4560. BearerInformation = BearerAttribute 0*("," 0*WSP BearerAttribute)
  4561. BearerAttribute = ("e" ":" <BearerEncoding>)
  4562. BearerEncoding = "A" / "mu"
  4563.  
  4564. CallId = 1*32(HEXDIG)
  4565.  
  4566. // The audit request response may include a list of identifiers
  4567. ConnectionId = 1*32(HEXDIG) 0*("," 1*32(HEXDIG))
  4568. SecondConnectionID = ConnectionId
  4569.  
  4570. NotifiedEntity = [LocalName "@"] DomainName [":" portNumber]
  4571. LocalName = 1*32(suitableCharacter)
  4572. portNumber = 1*5(DIGIT)
  4573.  
  4574. RequestIdentifier = 1*32(HEXDIG)
  4575.  
  4576. LocalConnectionOptions = [ LocalOptionValue 0*(WSP)
  4577.                  0*("," 0*(WSP) LocalOptionValue 0*(WSP)) ]
  4578. LocalOptionValue = ("p" ":" <packetizationPeriod> )
  4579.                  / ("a" ":" <compressionAlgorithm> )
  4580.                  / ("b" ":" <bandwidth> )
  4581.                  / ("e" ":" <echoCancellation> )
  4582.                  / ("gc" ":" <gainControl> )
  4583.                  / ("s" ":" <silenceSuppression> )
  4584.                  / ("t" ":" <typeOfService> )
  4585.                  / ("r" ":" <resourceReservation> )
  4586.                  / ("k" ":" <encryptionmethod>[":"<encryptionKey>])
  4587.                  / ("nt" ":" <typeOfNetwork> )
  4588.                  / (localOptionExtensionName ":"
  4589.                  / localOptionExtensionValue)
  4590.  
  4591.  
  4592.  
  4593.  
  4594. Arango, et al.               Informational                     [Page 82]
  4595.  
  4596. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4597.  
  4598.  
  4599. Capabilities = [ CapabilityValue 0*(WSP)
  4600.                  0*("," 0*(WSP) CapabilityValue 0*(WSP)) ]
  4601.  
  4602.  
  4603. CapabilityValue = LocalOptionValue
  4604.                 / ("v" ":" <supportedPackages>)
  4605.                 / ("m" ":" <supportedModes> )
  4606.  
  4607.  
  4608. packetizationPeriod = 1*4(DIGIT)["-" 1*4(DIGIT)]
  4609. compressionAlgorithm = algorithmName 0*(";" algorithmName)
  4610. algorithmName = 1*32(SuitableCharacter)
  4611. bandwidth = 1*4(DIGIT)["-" 1*4(DIGIT)]
  4612. echoCancellation = "on" / "off"
  4613. gainControl = "auto" / ["-"]1*4(DIGIT)
  4614. silenceSuppression = "on" / "off"
  4615. typeOfService = 2HEXDIG
  4616. resourceReservation = "g" / "cl" / "be"
  4617.  
  4618. ;encryption parameters are coded as in SDP (RFC 2327)
  4619. encryptiondata = ( "clear" ":" <encryptionKey> )
  4620.                / ( "base64" ":" <encodedEncryptionKey> )
  4621.                / ( "uri" ":" <URItoObtainKey> )
  4622.                / ( "prompt" ) ; defined in SDP, not usable in MGCP!
  4623. encryptionKey = 1*(SuitableCharacter / SP)
  4624. encodedEncryptionKey = 1*(ALPHA / DIGIT / "+" / "/" / "=")
  4625. URItoObtainKey = 1*(SuitableCharacter) / quotedString
  4626.  
  4627. typeOfNetwork = "IN" / "ATM" / "LOCAL"
  4628. supportedModes= ConnectionMode 0*(";" ConnectionMode)
  4629. supportedPackages = packageName 0*(";" packageName)
  4630.  
  4631. localOptionExtensionName = "x" ("+"/"-") 1*32(SuitableCharacter)
  4632. localOptionExtensionValue = 1*32(SuitableCharacter) / quotedString
  4633.  
  4634.  
  4635. ConnectionMode = "sendonly" / "recvonly" / "sendrecv" /
  4636.                  "confrnce" / "inactive" / "loopback" /
  4637.                  "conttest" / "netwloop" / "netwtest" / "data"
  4638.  
  4639. RequestedEvents = [requestedEvent 0*("," 0*(WSP) requestedEvent)]
  4640. requestedEvent = eventName [ "(" requestedActions ")" ]
  4641.  
  4642. eventName = [ (packageName / "*") "/" ] (eventId / "all" / eventRange)
  4643.             [ "@" (ConnectionId / "$" / "*") ]
  4644. packageName = 1*(ALPHA / DIGIT / HYPHEN)
  4645. eventId = 1*(SuitableCharacter)
  4646. eventRange = "[" 1*(DIGIT / DTMFLetter / "*" / "#" /
  4647.  
  4648.  
  4649.  
  4650. Arango, et al.               Informational                     [Page 83]
  4651.  
  4652. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4653.  
  4654.  
  4655.                         (DIGIT "-" DIGIT)/(DTMFLetter "-"
  4656.                          DTMFLetter)) "]"
  4657.  
  4658. requestedActions = requestedAction 0*("," 0*(WSP) requestedAction)
  4659. requestedAction = "N" / "A" / "D" / "S" / "I" / "K" /
  4660.                   "E" "(" EmbeddedRequest ")"
  4661.  
  4662. EmbeddedRequest =   (      "R" "(" EmbeddedRequestList ")"
  4663.                       ["," "S" "(" EmbeddedSignalRequest ")" ]
  4664.                       ["," "D" "(" EmbeddedDigitMap ")" ] )
  4665.                 /   (      "S" "(" EmbeddedSignalRequest ")"
  4666.                       ["," "D" "(" EmbeddedDigitMap ")" ] )
  4667.                 /   (      "D" "(" EmbeddedDigitMap ")" )
  4668.  
  4669. EmbeddedRequestList = RequestedEvents
  4670. EmbeddedSignalRequest = SignalRequests
  4671. EmbeddedDigitMap = DigitMap
  4672.  
  4673. SignalRequests = [ SignalRequest 0*("," 0*(WSP) SignalRequest ) ]
  4674. SignalRequest = eventName [ "(" eventParameters ")" ]
  4675. eventParameters = eventParameter 0*("," 0*(WSP) eventParameter)
  4676. eventParameter = eventParameterString / quotedString
  4677. eventParameterString = 1*(SuitableCharacter)
  4678.  
  4679. DigitMap = DigitString  / "(" DigitStringList ")"
  4680. DigitStringList = DigitString 0*( "|" DigitString )
  4681. DigitString = 1*(DigitStringElement)
  4682. DigitStringElement = DigitPosition ["."]
  4683. DigitPosition = DigitMapLetter / DigitMapRange
  4684. DigitMapLetter = DIGIT / "#" / "*" / "A" / "B" / "C" / "D" / "T"
  4685. DigitMapRange =  "x" / "[" 1*DigitLetter "]"
  4686. DigitLetter ::= *((DIGIT "-" DIGIT ) / DigitMapLetter)
  4687.  
  4688. ObservedEvents = SignalRequests
  4689. EventStates = SignalRequests
  4690.  
  4691. ConnectionParameters = [ConnectionParameter
  4692.                         0*( "," 0*(WSP) ConnectionParameter )
  4693. ConnectionParameter = ( "PS" "=" packetsSent )
  4694.                     / ( "OS" "=" octetsSent )
  4695.                     / ( "PR" "=" packetsReceived )
  4696.                     / ( "OR" "=" octetsReceived )
  4697.                     / ( "PL" "=" packetsLost )
  4698.                     / ( "JI" "=" jitter )
  4699.                     / ( "LA" "=" averageLatency )
  4700.                     / ( ConnectionParameterExtensionName "="
  4701.                         ConnectionParameterExtensionValue )
  4702. packetsSent = 1*9(DIGIT)
  4703.  
  4704.  
  4705.  
  4706. Arango, et al.               Informational                     [Page 84]
  4707.  
  4708. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4709.  
  4710.  
  4711. octetsSent = 1*9(DIGIT)
  4712. packetsReceived = 1*9(DIGIT)
  4713. octetsReceived = 1*9(DIGIT)
  4714. packetsLost = 1*9(DIGIT)
  4715. jitter = 1*9(DIGIT)
  4716. averageLatency = 1*9(DIGIT)
  4717. ConnectionParameterExtensionName = "X" "-" 2*ALPHA
  4718. ConnectionParameterExtensionValue = 1*9(DIGIT)
  4719.  
  4720. ReasonCode = 3DIGIT [SPACE 1*(%x20-7E)]
  4721.  
  4722. SpecificEndpointID = endpointName
  4723. SecondEndpointID = endpointName
  4724.  
  4725. RequestedInfo = [infoCode 0*("," infoCode)]
  4726.  
  4727. infoCode = "B" / "C" / "I" / "N" / "X" / "L" / "M" /
  4728.            "R" / "S" / "D" / "O" / "P" / "E" / "Z" /
  4729.            "Q" / "T" / "RC" / "LC" / "A" / "ES" / "RM" / "RD"
  4730.  
  4731. QuarantineHandling = loopControl / processControl /
  4732.               (loopControl "," processControl )
  4733. loopControl = "step" / "loop"
  4734. processControl = "process" / "discard"
  4735.  
  4736. DetectEvents = [eventName 0*("," eventName)]
  4737.  
  4738. RestartMethod = "graceful" / "forced" / "restart" / "disconnected"
  4739.  
  4740. RestartDelay = 1*6(DIGIT)
  4741.  
  4742. extensionParameter = "X" ("-"/"+") 1*6(ALPHA / DIGIT)
  4743. parameterString = 1*(%x20-7F)
  4744.  
  4745. MGCPResponse = MGCPResponseLine 0*(MGCPParameter)
  4746.                 [EOL *SDPinformation]
  4747.  
  4748. MGCPResponseLine = (<responseCode> 1*(WSP) <transaction-id>
  4749.                           [1*(WSP) <responseString>] EOL)
  4750. responseCode = 3DIGIT
  4751. responseString = *(%x20-7E)
  4752.  
  4753. SuitableCharacter= DIGIT / ALPHA / "+" / "-" / "_" / "&" /
  4754.                    "!" / "'" / "|" / "=" / "#" / "?" / "/" /
  4755.                    "." / "$" / "*" / ";" / "@" / "[" / "]" /
  4756.                    "^" / "`" / "{" / "}" / "~"
  4757.  
  4758. quotedString = DQUOTE visibleString
  4759.  
  4760.  
  4761.  
  4762. Arango, et al.               Informational                     [Page 85]
  4763.  
  4764. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4765.  
  4766.  
  4767.                  0*(quoteEscape visibleString) DQUOTE
  4768. quoteEscape = DQUOTE DQUOTE
  4769. visibleString = (%x00-21 / %x23-FF)
  4770. EOL = CRLF / LF
  4771.  
  4772. SDPinformation = ;See RFC 2327
  4773.  
  4774. 3.5.  Encoding of the session description
  4775.  
  4776.    The session description is encoded in conformance with the session
  4777.    description protocol, SDP. MGCP implementations are expected to be
  4778.    fully capable of parsing any conformant SDP message, and should send
  4779.    session descriptions that strictly conform to the SDP standard. The
  4780.    usage of SDP actually depends on the type of session that is being,
  4781.    as specified in the "mode" parameter:
  4782.  
  4783.    *  if the mode is set to "data", the session description describes
  4784.       the configuration of a data access service.
  4785.  
  4786.    *  if the mode is set to any other value, the session description is
  4787.       for an audio service.
  4788.  
  4789.    For an audio service, the gateway will consider the information
  4790.    provided in SDP for the "audio" media. For a data service, the
  4791.    gateway will consider the information provided for the "network-
  4792.    access" media.
  4793.  
  4794. 3.5.1.  Usage of SDP for an audio service
  4795.  
  4796.    In a telephony gateway, we only have to describe sessions that use
  4797.    exactly one media, audio. The parameters of SDP that are relevant for
  4798.    the telephony application are:
  4799.  
  4800.       At the session description level:
  4801.  
  4802.       *  The IP address of the remote gateway (in commands) or of the
  4803.          local gateway (in responses), or multicast address of the audio
  4804.          conference, encoded as an SDP "connection data" parameter. This
  4805.          parameter specifies the IP address that will be used to
  4806.          exchange RTP packets.
  4807.  
  4808.       For the audio media:
  4809.  
  4810.       *  Media description field (m) specifying the audio media, the
  4811.          transport port used for receiving RTP packets by the remote
  4812.          gateway (commands) or by the local gateway (responses), the
  4813.  
  4814.  
  4815.  
  4816.  
  4817.  
  4818. Arango, et al.               Informational                     [Page 86]
  4819.  
  4820. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4821.  
  4822.  
  4823.          RTP/AVP transport, and the list of formats that the gateway
  4824.          will accept. This list should normally always include the code
  4825.          0 (reserved for PCMU).
  4826.  
  4827.       *  Optionally, RTPMAP attributes that define the encoding of
  4828.          dynamic audio formats,
  4829.  
  4830.       *  Optionally, a packetization period (packet time) attribute
  4831.          (Ptime) defining the duration of the packet,
  4832.  
  4833.       *  Optionally, an attribute defining the type of connection
  4834.          (sendonly, recvonly, sendrecv, inactive). Note that this
  4835.          attribute does not have a direct relation with the "Mode"
  4836.          parameter of MGCP.  In fact, the SDP type of connection will
  4837.          most of the time be set to "sendrecv", regardless of the value
  4838.          used by MGCP.  Other values will only be used rarely, for
  4839.          example in the case of information or announcement servers that
  4840.          need to establish one way connections.
  4841.  
  4842.       *  The IP address of the remote gateway (in commands) or of the
  4843.          local gateway (in responses), if it is not present at the
  4844.          session level.
  4845.  
  4846.       An example of SDP specification for an audio connection could be:
  4847.  
  4848.             v=0
  4849.             c=IN IP4 128.96.41.1
  4850.             m=audio 3456 RTP/AVP 0 96
  4851.             a=rtpmap:96 G726-32/8000
  4852.  
  4853.    There is a request, in some environments, to use the MGCP to
  4854.    negotiate connections that will use other transmission channels than
  4855.    RTP over UDP and IP. This will be detailed in an extension to this
  4856.    document.
  4857.  
  4858. 3.5.2.  Usage of SDP in a network access service
  4859.  
  4860.    The parameters of SDP that are relevant for a data network access
  4861.    application are:
  4862.  
  4863.       For the data media:
  4864.  
  4865.       *  Media description field (m) specifying the network access
  4866.          media, identified by the code "m=nas/xxxx", where "xxxx"
  4867.          describes the access control method that should be used for
  4868.          parametrizing the network access, as specified below. The field
  4869.          may also specify the port that should be used for contacting
  4870.          the server, as specified in the SDP syntax.
  4871.  
  4872.  
  4873.  
  4874. Arango, et al.               Informational                     [Page 87]
  4875.  
  4876. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4877.  
  4878.  
  4879.       *  Connection address parameter (c=) specifying the address, or
  4880.          the domain name, of the server that implement the access
  4881.          control method. This parameter may also be specified at the
  4882.          session level.
  4883.  
  4884.       *  Optionally, a bearer type attribute (a=bearer:) describing the
  4885.          type of data connection to be used, including the modem type.
  4886.  
  4887.       *  Optionally, a framing type attribue (a=framing:) describing the
  4888.          type of framing that will be used on the channel.
  4889.  
  4890.       *  Optionally, attributes describing the called number
  4891.          (a=dialed:), the number to which the call was delivered
  4892.          (a=called:) and the calling number (a=dialing:).
  4893.  
  4894.       *  Optionally, attributes describing the range of addresses that
  4895.          could be used by the dialup client on its LAN (a=subnet:).
  4896.  
  4897.       *  Optionally, an encryption key, encoded as specified in the SDP
  4898.          protocol(k=).
  4899.  
  4900.    The connection address shall be encoded as specified in the SDP
  4901.    standard. It will be used in conjunction with the port specified in
  4902.    the media line to access a server, whose type will one of:
  4903.  
  4904.        __________________________________________________________
  4905.       | Method name|  Method description                        |
  4906.       |____________|____________________________________________|
  4907.       | radius     |  Authentication according                  |
  4908.       |            |  to the Radius protocol.                   |
  4909.       | tacacs     |  Authentication according                  |
  4910.       |            |  to the TACACS+ protocol.                  |
  4911.       | diameter   |  Authentication according                  |
  4912.       |            |  to the Diameter protocol.                 |
  4913.       | l2tp       |  Level 2 tunneling protocol.               |
  4914.       |            |  The address and port are those of the LNS.|
  4915.       | login      |  Local login. (There is normally           |
  4916.       |            |  no server for that method.)               |
  4917.       | none       |  No authentication required.               |
  4918.       |            |  (The call was probably vetted             |
  4919.       |            |  by the Call Agent.)                       |
  4920.       |____________|____________________________________________|
  4921.  
  4922.    If needed, the gateway may use the key specified in the announcement
  4923.    to access the service. That key, in particular, may be used for the
  4924.    establishment of an L2TP tunnel.
  4925.  
  4926.  
  4927.  
  4928.  
  4929.  
  4930. Arango, et al.               Informational                     [Page 88]
  4931.  
  4932. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4933.  
  4934.  
  4935.    The bearer attribute is composed of a bearer name and an optional
  4936.    extension.  The bearer type specifies the type of modulation (modem
  4937.    name) or, in the case of digital connections, the type of ISDN
  4938.    service (8 bits, 7 bits).  When an extension is present, it is
  4939.    separated from the bearer name by a single slash (/).  The valid
  4940.    values of the bearer attribute are defined in the following table:
  4941.  
  4942.     ____________________________________________________________________
  4943.    | Type of bearer description      |  Example of values              |
  4944.    |_________________________________|_________________________________|
  4945.    | ITU modem standard              |  V.32, V.34, V.90.              |
  4946.    | ITU modem standard qualified    |  v.90/3com,                     |
  4947.    | by a manufacturer name          |  v.90/rockwell,                 |
  4948.    |                                 |  v.90/xxx                       |
  4949.    | Well known modem types          |  X2, K56flex                    |
  4950.    | ISDN transparent access, 64 kbps|  ISDN64                         |
  4951.    | ISDN64 + V.110                  |  ISDN64/V.110                   |
  4952.    | ISDN64 + V.120                  |  ISDN64/V.120                   |
  4953.    | ISDN transparent access, 56 kbps|  ISDN56                         |
  4954.    | Informal identification         |  (Requires coordination between |
  4955.    |                                 |  the Call Agent and the gateway)|
  4956.    |_________________________________|_________________________________|
  4957.  
  4958.    The valid values of the framing attribute are defined in the
  4959.    following table:
  4960.  
  4961.              _________________________________________________
  4962.             | Type of framing description|  Example of values|
  4963.             |____________________________|___________________|
  4964.             | PPP, asynchronous framing  |  ppp-asynch       |
  4965.             | PPP, HDLC framing          |  ppp-hdlc         |
  4966.             | SLIP, asynchronous         |  slip             |
  4967.             | Asynchronous, no framing   |  asynch           |
  4968.             |____________________________|___________________|
  4969.  
  4970.    The network access authentication parameter provides instructions on
  4971.    the access control that should be exercized for the data call. This
  4972.    optional attribute is encoded as:
  4973.  
  4974.         "a=subnet:" <network type> <address type>
  4975.            <connection address> "/" <prefix length>
  4976.  
  4977.  
  4978.    Where the parameters "network type", "address type", and "connection
  4979.    address" are formatted as defined for the connection address
  4980.    parameter (c=) in SDP, and where the "prefix length" is a decimal
  4981.    representation of the number of bits in the prefix.
  4982.  
  4983.  
  4984.  
  4985.  
  4986. Arango, et al.               Informational                     [Page 89]
  4987.  
  4988. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  4989.  
  4990.  
  4991.    Examples of SDP announcement for the network access service could be:
  4992.  
  4993.          v=0
  4994.          m=nas/radius
  4995.          c=IN IP4 radius.example.net
  4996.          a=bearer:v.34
  4997.          a=framing:ppp-asynch
  4998.          a=dialed:18001234567
  4999.          a=called:12345678901
  5000.          a=dialing:12340567890
  5001.  
  5002.          v=0
  5003.          m=nas/none
  5004.          c=IN IP4 128.96.41.1
  5005.          a=subnet:IN IP4 123.45.67.64/26
  5006.          a=bearer:isdn64
  5007.          a=framing:ppp-sync
  5008.          a=dialed:18001234567
  5009.          a=dialing:2345678901
  5010.  
  5011.          v=0
  5012.          c=IN IP4 access.example.net
  5013.          m=nas/l2tp
  5014.          k=clear:some-shared-secret
  5015.          a=bearer:v.32
  5016.          a=framing:ppp-asynch
  5017.          a=dialed:18001234567
  5018.          a=dialing:2345678901
  5019.  
  5020. 3.5.3.  Usage of SDP for ATM connections
  5021.  
  5022.    The specification of the SDP payload for ATM connections will be
  5023.    described in a companion document, "Usage of MGCP to control Voice
  5024.    over ATM gateways." The following text is indicative.
  5025.  
  5026.    The SDP payload will specify:
  5027.  
  5028.    *  That the connection is to be established over an ATM interface,
  5029.       using the "c=" parameter of SDP to specify an address in the ATM
  5030.       family, the ATM addressing variant (NSAP, UNI, E.164) and the ATM
  5031.       address.
  5032.  
  5033.    *  The "m=audio" parameter will specify the audio encoding and, if
  5034.       needed, the VPI and VCI.
  5035.  
  5036.    *  Additional attributes parameters (a=) will be used to specify the
  5037.       ATM coding variants, such as the type of adaptation layer and the
  5038.       error correction or loss compenmsation algorithms.
  5039.  
  5040.  
  5041.  
  5042. Arango, et al.               Informational                     [Page 90]
  5043.  
  5044. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5045.  
  5046.  
  5047.    An example of SDP payload for an ATM connection could be:
  5048.  
  5049.          v=0 c=ATM NSAP
  5050.          47.0091.8100.0000.0060.3e64.fd01.0060.3e64.fd01.fe m=audio
  5051.          5/1002 ATM/AVP PCMU a=connection_type:AAL2
  5052.  
  5053. 3.5.4.  Usage of SDP for local connections
  5054.  
  5055.    When MGCP is used to set up internal connections within a single
  5056.    gateway, the SDP format is used to encode the parameters of that
  5057.    connection.  The following parameters will be used:
  5058.  
  5059.    *  The connection parameter (C=) will specify that the connection is
  5060.       local, using the keyword "LOCAL" as network type space, the
  5061.       keyword "EPN" (endpoint name) as  address type, and the name of
  5062.       the endpoint as the connection-address.
  5063.  
  5064.    *  The "m=audio" parameter will specify a port number, which will
  5065.       always be set to 0, the type of protocol, always set to the
  5066.       keyword LOCAL, and the type of encoding, using the same
  5067.       conventions used for RTP (RTP payload numbers.) The type of
  5068.       encoding should normally be set to 0 (PCMU).
  5069.  
  5070.    An example of local SDP payload could be:
  5071.  
  5072.          v=0
  5073.          c=LOCAL EPN X35V3+A4/13
  5074.          m=audio 0 LOCAL 0
  5075.  
  5076. 3.6.  Transmission over UDP
  5077.  
  5078.    MGCP messages are transmitted over UDP. Commands are sent to one of
  5079.    the IP addresses defined in the DNS for the specified endpoint . The
  5080.    responses are sent back to the source address of the commands.
  5081.  
  5082.    When no port is specified for the endpoint, the commands should be
  5083.    sent:
  5084.  
  5085.    *  by the Call Agents, to the default MGCP port for gateways, 2427.
  5086.  
  5087.    *  by the Gateways, to the default MGCP port for Call Agents, 2727.
  5088.  
  5089. 3.6.1.  Providing the At-Most-Once functionality
  5090.  
  5091.    MGCP messages, being carried over UDP, may be subject to losses. In
  5092.    the absence of a timely response, commands are repeated. Most MGCP
  5093.    commands are not idempotent.  The state of the gateway would become
  5094.  
  5095.  
  5096.  
  5097.  
  5098. Arango, et al.               Informational                     [Page 91]
  5099.  
  5100. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5101.  
  5102.  
  5103.    unpredictable if, for example, CreateConnection commands were
  5104.    executed several times.  The transmission procedures must thus
  5105.    provide an "At-Most-Once" functionality.
  5106.  
  5107.    MGCP entities are expected to keep in memory a list of the responses
  5108.    that they sent to recent transactions and a list of the transactions
  5109.    that are currently being executed. The transaction identifiers of
  5110.    incoming commands are compared to the transaction identifiers of the
  5111.    recent responses. If a match is found, the MGCP entity does not
  5112.    execute the transaction, but simply repeats the response. The
  5113.    remaining commands will be compared to the list of current
  5114.    transaction. If a match is found, the MGCP entity does not execute
  5115.    the transaction, which is simply ignored.
  5116.  
  5117.    The procedure use a long timer value, noted LONG-TIMER in the
  5118.    following.  The timer should be set larger than the maximum duration
  5119.    of a transaction, which should take into account the maximum number
  5120.    of repetitions, the maximum value of the repetition timer and the
  5121.    maximum propagation delay of a packet in the network.  A suggested
  5122.    value is 30 seconds.
  5123.  
  5124.    The copy of the responses can be destroyed either LONG-TIMER seconds
  5125.    after the response is issued, or when the gateway (or the call agent)
  5126.    receives a confirmation that the response has been received, through
  5127.    the "Response Acknowledgement attribute". For transactions that are
  5128.    acknowledged through this attribute, the gateway shall keep a copy of
  5129.    the transaction-id for LONG-TIMER seconds after the response is
  5130.    issued, in order to detect and ignore duplicate copies of the
  5131.    transaction request that could be produced by the network.
  5132.  
  5133. 3.6.2.  Transaction identifiers and three ways handshake
  5134.  
  5135.    Transaction identifiers are integer numbers in the range from 0 to
  5136.    999,999,999.  Call-agents may decide to use a specific number space
  5137.    for each of the gateways that they manage, or to use the same number
  5138.    space for all gateways that belong to some arbitrary group.  Call
  5139.    agents may decide to share the load of managing a large gateway
  5140.    between several independent processes.  These processes will share
  5141.    the same transaction number space.  There are multiple possible
  5142.    implementations of this sharing, such as having a centralized
  5143.    allocation of transaction identifiers, or pre-allocating non-
  5144.    overlapping ranges of identifiers to different processes.  The
  5145.    implementations must guarantee that unique transaction identifiers
  5146.    are allocated to all transactions that originate from a logical call
  5147.    agent, as defined in the "states, failover and race conditions"
  5148.    section. Gateways can simply detect duplicate transactions by looking
  5149.    at the transaction identifier only.
  5150.  
  5151.  
  5152.  
  5153.  
  5154. Arango, et al.               Informational                     [Page 92]
  5155.  
  5156. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5157.  
  5158.  
  5159.    The Response Acknowledgement Attribute can be found in any command.
  5160.    It carries a set of "confirmed transaction-id ranges."
  5161.  
  5162.    MGCP gateways may choose to delete the copies of the responses to
  5163.    transactions whose id is included in "confirmed transaction-id
  5164.    ranges" received in the Response Confirmation messages. They should
  5165.    silently discard further commands from that Call Agent when the
  5166.    transaction-id falls within these ranges.
  5167.  
  5168.    The "confirmed transaction-id ranges" values shall not be used if
  5169.    more than LONG-TIMER seconds have elapsed since the gateway issued
  5170.    its last response to that call agent, or when a gateway resumes
  5171.    operation.  In this situation, commands should be accepted and
  5172.    processed, without any test on the transaction-id.
  5173.  
  5174.    Commands that carry the "Response Acknowledgement attribute" may be
  5175.    transmitted in disorder.  The gateway shall retain the union of the
  5176.    "confirmed transaction-id ranges" received in recent commands.
  5177.  
  5178. 3.6.3.  Computing retransmission timers
  5179.  
  5180.    It is the responsibility of the requesting entity to provide suitable
  5181.    time outs for all outstanding commands, and to retry commands when
  5182.    time outs have been exceeded. Furthermore, when repeated commands
  5183.    fail to be acknowledged, it is the responsibility of the requesting
  5184.    entity to seek redundant services and/or clear existing or pending
  5185.    connections.
  5186.  
  5187.    The specification purposely avoids specifying any value for the
  5188.    retransmission timers. These values are typically network dependent.
  5189.    The retransmission timers should normally estimate the timer by
  5190.    measuring the time spent between the sending of a command and the
  5191.    return of a response. One possibility is to use the algorithm
  5192.    implemented in TCP-IP, which uses two variables:
  5193.  
  5194.    *  the average acknowledgement delay, AAD, estimated through an
  5195.       exponentially smoothed average of the observed delays,
  5196.  
  5197.    *  the average deviation, ADEV, estimated through an exponentially
  5198.       smoothed average of the absolute value of the difference between
  5199.       the observed delay and the current average
  5200.  
  5201.    The retransmission timer, in TCP, is set to the sum of the average
  5202.    delay plus N times the average deviation. In MGCP, the maximum value
  5203.    of the timer should however be bounded, in order to guarantee that no
  5204.    repeated packet will be received by the gateways after LONG-TIMER
  5205.    seconds.  A suggested maximum value is 4 seconds.
  5206.  
  5207.  
  5208.  
  5209.  
  5210. Arango, et al.               Informational                     [Page 93]
  5211.  
  5212. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5213.  
  5214.  
  5215.    After any retransmission, the MGCP entity should do the following:
  5216.  
  5217.    *  It should double the estimated value of the average delay, AAD
  5218.  
  5219.    *  It should compute a random value, uniformly distributed between
  5220.       0.5 AAD and AAD
  5221.  
  5222.    *  It should set the retransmission timer to the sum of that random
  5223.       value and N times the average deviation.
  5224.  
  5225.    This procedure has two effects. Because it includes an exponentially
  5226.    increasing component, it will automatically slow down the stream of
  5227.    messages in case of congestion. Because it includes a random
  5228.    component, it will break the potential synchronization between
  5229.    notifications triggered by the same external event.
  5230.  
  5231. 3.6.4.  Piggy backing
  5232.  
  5233.    There are cases when a Call Agent will want to send several messages
  5234.    at the same time to the same gateways.  When several MGCP messages
  5235.    have to be sent in the same UDP packets, they should be separated by
  5236.    a line of text that contain a single dot, as in for example:
  5237.  
  5238.          200 2005 OK
  5239.          DLCX 1244 card23/21@trgw-7.example.net MGCP 1.0
  5240.          C: A3C47F21456789F0
  5241.          I: FDE234C8
  5242.  
  5243.    The piggy-backed messages should be processed exactly has if they had
  5244.    been received in several simultaneous messages.
  5245.  
  5246. 3.6.5.  Provisional responses
  5247.  
  5248.    Executing some transactions may require a long time. Long execution
  5249.    times may interact with the timer based retransmission procedure.
  5250.    This may result either in an inordinate number of retransmissions, or
  5251.    in timer values that become too long to be efficient.
  5252.  
  5253.    Gateways that can predict that a transaction will require a long
  5254.    execution time may send a provisional response, with response code
  5255.    100.  They should send this response if they receive a repetition of
  5256.    a transaction that is still being executed.
  5257.  
  5258.    MGCP entities that receive a provisional response shall switch to a
  5259.    longer repetition timer for that transaction.
  5260.  
  5261.  
  5262.  
  5263.  
  5264.  
  5265.  
  5266. Arango, et al.               Informational                     [Page 94]
  5267.  
  5268. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5269.  
  5270.  
  5271. 4.  States, failover and race conditions.
  5272.  
  5273.    In order to implement proper call signalling, the Call Agent must
  5274.    keep track of the state of the endpoint, and the gateway must make
  5275.    sure that events are properly notified to the call agent.  Special
  5276.    conditions exist when the gateway or the call agent are restarted:
  5277.    the gateway must be redirected to a new call agent during "failover"
  5278.    procedures, the call agent must take special action when the gateway
  5279.    is taken offline, or restarted.
  5280.  
  5281. 4.1.  Basic Asumptions
  5282.  
  5283.    The support of "failover" is based on the following assumptions:
  5284.  
  5285.    *  Call Agents are identified by their domain name, not their network
  5286.       addresses, and several addresses can be associated with a domain
  5287.       name.
  5288.  
  5289.    *  An endpoint has one NotifiedEntity associated with it any given
  5290.       point in time.
  5291.  
  5292.    *  The NotifiedEntity is the last value of the "NotifiedEntity"
  5293.       parameter received for this endpoint (including wild-carded end-
  5294.       point-names). If no explicit "NotifiedEntity" parameter has been
  5295.       received, the "NotifiedEntity" defaults to the provisioned
  5296.       NotifiedEntity value, or if no value was provisioned to the source
  5297.       address of the last command received for the endpoint,
  5298.  
  5299.    *  Responses to commands are always sent to the source address of the
  5300.       command, regardless of the NotifiedEntity.
  5301.  
  5302.    *  When the "notified entity" refers to a domain name that resolves
  5303.       to multiple IP- address, endpoints are capable of switching
  5304.       between different interfaces on the same  logical call agent,
  5305.       however they cannot switch to other (backup) call agent(s) on
  5306.       their own. A backup call agent can however instruct them to
  5307.       switch, either directly or indirectly.
  5308.  
  5309.    *  If an entire call agent becomes unavailable, the endpoints managed
  5310.       by that call agent will eventually become "disconnected". The only
  5311.       way for these endpoints to become connected again is either for
  5312.       the failed call agent to become available, or for a backup call
  5313.       agent to contact the affected endpoints.
  5314.  
  5315.    *  When a backup call agent has taken over control of a group of
  5316.       endpoints, it is assumed that the failed call agent will
  5317.       communicate and synchronize with the backup call agent in order to
  5318.  
  5319.  
  5320.  
  5321.  
  5322. Arango, et al.               Informational                     [Page 95]
  5323.  
  5324. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5325.  
  5326.  
  5327.       transfer control of the affected endpoints back to the original
  5328.       call agent (if that's even desired - maybe the failed call agent
  5329.       should simply become the backup call agent now).
  5330.  
  5331.    We should note that handover conflict resolution between separate
  5332.    CA's is not in place - we are relying strictly on the CA's knowing
  5333.    what they are doing and communicating with each other (although
  5334.    AuditEndpoint can be used to learn about the current NotifiedEntity).
  5335.  
  5336. 4.2.  Security, Retransmission, and Detection of Lost Associations:
  5337.  
  5338.    The media gateway control protocol is organized as a set of
  5339.    transactions, each of which is composed of a command and a response,
  5340.    commonly referred to as an acknowledgement.  The MGCP messages, being
  5341.    carried over UDP, may be subject to losses. In the absence of a
  5342.    timely response, commands are repeated. MGCP entities are expected to
  5343.    keep in memory a list of the responses that they sent to recent
  5344.    transactions, i.e. a list of all the responses they sent over the
  5345.    last LONG-TIMER seconds, and a list of the transactions that are
  5346.    currently being executed.
  5347.  
  5348.    The transaction identifiers of incoming commands are compared to the
  5349.    transaction identifiers of the recent responses. If a match is found,
  5350.    the MGCP entity does not execute the transaction, but simply repeats
  5351.    the response. The remaining commands will be compared to the list of
  5352.    current transaction. If a match is found, the MGCP entity does not
  5353.    execute the transaction, which is simply ignored - a response will be
  5354.    provided when the execution of the command is complete.
  5355.  
  5356.    The repetition mechanism is used to guard against four types of
  5357.    possible errors:
  5358.  
  5359.    *  transmission errors, when for example a packet is lost due to
  5360.       noise on a line or congestion in a queue,
  5361.  
  5362.    *  component failure, when for example an interface to a call agent
  5363.       becomes unavailable,
  5364.  
  5365.    *  call agent failure, when for example an entire call agent becomes
  5366.       unavailable,
  5367.  
  5368.    *  failover, when a new call agent is "taking over" transparently.
  5369.  
  5370.    The elements should be able to derive from the past history an
  5371.    estimate of the packet loss rate due to transmission errors.  In a
  5372.    properly configured system, this loss rate should be kept very low,
  5373.    typically less than 1%.  If a call agent or a gateway has to repeat a
  5374.    message more than a few times, it is very legitimate to assume that
  5375.  
  5376.  
  5377.  
  5378. Arango, et al.               Informational                     [Page 96]
  5379.  
  5380. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5381.  
  5382.  
  5383.    something else than a transmission error is occurring.  For example,
  5384.    given a loss rate of 1%, the probability that 5 consecutive
  5385.    transmission attempts fail is 1 in 100 billion, an event that should
  5386.    occur less than once every 10 days for a call agent that processes
  5387.    1,000 transactions per second. (Indeed, the number of repetition that
  5388.    is considered excessive should be a function of the prevailing packet
  5389.    loss rate.) We should note that the "suspicion threshold", which we
  5390.    will call "Max1", is normally lower than the "disconnection
  5391.    threshold", which should be set to a larger value.
  5392.  
  5393.       Command issued: N=0
  5394.               |
  5395.        transmission: N++
  5396.               |  +------------ retransmission: N++ -----------+
  5397.               |  |                                            |
  5398.               |  |       transmission                         |
  5399.               |  |  +---to new address -+<--------------------|--+
  5400.               |  |  |        N=0        |                     |  |
  5401.               V  V  V                   |                     |  |
  5402.         +-----------+                   |                     |  |
  5403.         | awaiting  |- new call agent ->+  +------------+     |  |
  5404.         |  response |--- timer elapsed --->| N > Max1 ? |-(no)+  |
  5405.         +-----------+ <----------+         +------------+     ^  |
  5406.               |   |              |               |            |  |
  5407.               |   +- wrong key? -+             (yes)          |  |
  5408.               |                                  |            |  |
  5409.       response received                    (if N=Max1,        |  |
  5410.               |                             or N=Max2         |  |
  5411.               |                             check DNS)        |  |
  5412.               v                                  |            |  |
  5413.             (end)                       +---------------+     |  |
  5414.                                         |more addresses?|(yes)|--+
  5415.                                         +---------------+     |
  5416.                                                  |            |
  5417.                                                (no)           |
  5418.                                                  |            |
  5419.                                            +------------+     |
  5420.                                            | N > Max2 ? |(no)-+
  5421.                                            +------------+
  5422.                                                  |
  5423.                                                (yes)
  5424.                                                  |
  5425.                                                  v
  5426.                                           (disconnected)
  5427.  
  5428.    A classic retransmission algorithm would simply count the number of
  5429.    successive repetitions, and conclude that the association is broken
  5430.    after re-transmitting the packet an excessive number of times
  5431.  
  5432.  
  5433.  
  5434. Arango, et al.               Informational                     [Page 97]
  5435.  
  5436. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5437.  
  5438.  
  5439.    (typically between 7 and 11 times.) In order to account for the
  5440.    possibility of an undetected or in-progress "failover", we modify the
  5441.    classic algorithm as follows:
  5442.  
  5443.    *  We request that the gateway always checks for the presence of a
  5444.       new call agent. It can be noticed either by
  5445.  
  5446.       -  receiving a valid multicast message announcing a failover, or
  5447.  
  5448.       -  receiving a command where the NotifiedEntity points to the new
  5449.          call agent, or
  5450.  
  5451.       -  receiving a redirection response pointing to a new Call Agent.
  5452.  
  5453.       If a new call agent is detected, the gateway starts transmitting
  5454.       outstanding commands to that new agent.  Responses to commands are
  5455.       still transmitted to the source address of the command.
  5456.  
  5457.    *  we request that if the number of repetitions for this Call Agent
  5458.       is larger than "Max1", that the gateway actively queries the name
  5459.       server in order to detect the possible change of the call agent
  5460.       interfaces.
  5461.  
  5462.    *  The gateway may have learned several IP addresses for the call
  5463.       agent. If the number of repetitions is larger than "Max1" and
  5464.       lower than "Max2", and there are more interfaces that have not
  5465.       been tried, then the gateway should direct the retransmissions to
  5466.       alternate addresses.
  5467.  
  5468.    *  If there are no more interfaces to try, and the number of
  5469.       repetitions is Max2, then the gateway contacts the DNS one more
  5470.       time to see if any other interface should have become available.
  5471.       If not, the gateway is now disconnected.
  5472.  
  5473.    The procedure will maximize the chances of detecting an ongoing
  5474.    failover. It poses indeed two very specific problems, the potentially
  5475.    long delays of a timer based procedure and the risk of confusion
  5476.    caused by the use of cryptographic protections.
  5477.  
  5478.    In order to automatically adapt to network load, MGCP specifies
  5479.    exponentially increasing timers.  If the initial timer is set to 200
  5480.    milliseconds, the loss of a fifth retransmission will be detected
  5481.    after about 6 seconds.  This is probably an acceptable waiting delay
  5482.    to detect a failover.   The repetitions should continue after that
  5483.    delay not only in order to perhaps overcome a transient connectivity
  5484.    problem, but also in order to allow some more time for the execution
  5485.    of a failover - waiting a total delay of 30 seconds is probably
  5486.    acceptable.
  5487.  
  5488.  
  5489.  
  5490. Arango, et al.               Informational                     [Page 98]
  5491.  
  5492. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5493.  
  5494.  
  5495.    It is however important that the maximum delay of retransmissions be
  5496.    bounded.  Prior to any retransmission, it is checked that the time
  5497.    elapsed since the sending of the initial datagram is no greater than
  5498.    T- MAX. If more than T-MAX time has elapsed, the endpoint becomes
  5499.    disconnected. The value T-MAX is related to the LONG-TIMER value: the
  5500.    LONG-TIMER value is obtained by adding to T-MAX the maximum
  5501.    propagation delay in the network.
  5502.  
  5503.    Another potential cause of connection failure would be the reception
  5504.    of a "wrong key" message, sent by a call agent that could not
  5505.    authenticate the command, presumably because it had lost the security
  5506.    parameters of the association.  Such messages are actually not
  5507.    authorized in IPSEC, and they should in fact not be taken at face
  5508.    value: an attacker could easily forge "wrong key" messages in order
  5509.    to precipitate the loss of a control connection.  The current
  5510.    algorithm ignores these messages, which translates into a strict
  5511.    reliance on timers.  The algorithm could in fact be improved, maybe
  5512.    by executing a check with the key server of the call agent after
  5513.    "Max1" repetitions.
  5514.  
  5515. 4.3.  Race conditions
  5516.  
  5517.    MGCP deals with race conditions through the notion of a "quarantine
  5518.    list" and through explicit detection of desynchronization.
  5519.  
  5520.    MGCP does not assume that the transport mechanism will maintain the
  5521.    order of command and responses.  This may cause race conditions, that
  5522.    may be obviated through a proper behavior of the call agent. (Note
  5523.    that some race conditions are inherent to distributed systems; they
  5524.    would still occur, even if the commands were transmitted in strict
  5525.    order.)
  5526.  
  5527.    In some cases, many gateways may decide to restart operation at the
  5528.    same time.  This may occur, for example, if an area loses power or
  5529.    transmission capability during an earthquake or an ice storm.  When
  5530.    power and transmission are reestablished, many gateways may decide to
  5531.    send "RestartInProgress" commands simultaneously, leading to very
  5532.    unstable operation.
  5533.  
  5534. 4.3.1.  Quarantine list
  5535.  
  5536.    MGCP controlled gateways will receive "notification requests" that
  5537.    ask them to watch for a list of "events."  The protocol elements that
  5538.    determine the handling of these events are the "Requested Events"
  5539.    list, the "Digit Map" and the "Detect Events" list.
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546. Arango, et al.               Informational                     [Page 99]
  5547.  
  5548. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5549.  
  5550.  
  5551.    When the endpoint is initialized, the requested events list and the
  5552.    digit map are empty.  After reception of a command, the gateway
  5553.    starts observing the endpoint for occurrences of the events mentioned
  5554.    in the list.
  5555.  
  5556.    The events are examined as they occur. The action that follows is
  5557.    determined by the "action" parameter associated to the event in the
  5558.    list of requested events, and also by the digit map.  The events that
  5559.    are defined as "accumulate" or "treat according to digit map" are
  5560.    accumulated in a list of events, the events that are marked as
  5561.    "treated according to the digit map" will additionally be accumulated
  5562.    in the dialed string. This will go on until one event is encountered
  5563.    that triggers a Notification to the "notified entity."
  5564.  
  5565.    The gateway, at this point, will transmit the notification command
  5566.    and will place the endpoint in a "notification" state. As long as the
  5567.    endpoint is in this notification state, the events that are to be
  5568.    detected on the endpoint are stored in a "quarantine" buffer for
  5569.    later processing.  The events are, in a sense, "quarantined." All
  5570.    events that are specified by the union of the RequestedEvents
  5571.    parameter and the most recently received DetectEvent parameter or, in
  5572.    the absence of the latter, all events that are referred to in the
  5573.    RequestedEvents, should be detected and quarantined, regardless of
  5574.    the action associated to the event.
  5575.  
  5576.    The endpoint exits the "notification state" when the acknowledgement
  5577.    of the Notify  command is received. The Notify command may be
  5578.    retransmitted in the "notification state", as specified in section
  5579.    3.5. When the endpoint exits the "notification state" it resets the
  5580.    list of observed events and the "current dial string" of the endpoint
  5581.    to a null value.
  5582.  
  5583.    Following that point, the behavior of the gateway depends on the
  5584.    value of The QuarantineHandling parameter in the notification
  5585.    request.  If the Call Agent specified that it expected at most one
  5586.    notification in response to the notification request command, then
  5587.    the gateway should simply keep on accumulating events in the
  5588.    quarantine list until it receives the next notification request
  5589.    command.
  5590.  
  5591.    If the gateway is authorized to send multiple successive Notify
  5592.    commands, it will proceed as follows.  When the gateway exits the
  5593.    "notification state", it resets the list of observed events and the
  5594.    "current dial string" of the endpoint to a null value and starts
  5595.    processing the list of quarantined events, using the already received
  5596.    list of requested events and digit map. When processing these events,
  5597.  
  5598.  
  5599.  
  5600.  
  5601.  
  5602. Arango, et al.               Informational                    [Page 100]
  5603.  
  5604. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5605.  
  5606.  
  5607.    the gateway may encounter an event which requires a Notify command to
  5608.    be sent. If that is the case, the gateway can adopt one of the two
  5609.    following behaviors:
  5610.  
  5611.    *  it can immediately transmit a Notify command that will report all
  5612.       events that were accumulated in the list of observed events until
  5613.       the triggering event, included, leaving the unprocessed events in
  5614.       the quarantine list,
  5615.  
  5616.    *  or it can attempt to empty the quarantined list and transmit a
  5617.       single Notify command reporting several sets of events and
  5618.       possibly several dial strings. The dial string is reset to a null
  5619.       value after each triggering event. The events that follow the last
  5620.       triggering event are left in the quarantine list.
  5621.  
  5622.    If the gateway transmits a Notify command, the end point will remain
  5623.    in the "notification state" until the acknowledgement is received. If
  5624.    the gateway does not find a quarantined event that requests a Notify
  5625.    command, it places the end point in a normal state.  Events are then
  5626.    processed as they come, in exactly the same way as if a Notification
  5627.    Request command had just been received.
  5628.  
  5629.    A gateway may receive at any time a new Notification Request command
  5630.    for the end point. When a new notification request is received in the
  5631.    notification state, the gateway shall ensure that the pending
  5632.    notification is received by the Call Agent prior to a successful
  5633.    response to the new NotificationRequest. It does so by using the
  5634.    "piggy-backing" functionality of the protocol. The messages will then
  5635.    be sent in a single packetto the source of the new
  5636.    NotificationRequest, regardless of respectively the source and
  5637.    "notified entity" for the old and new command. The steps involved are
  5638.    the following:
  5639.  
  5640.    a) the gateway builds a message that carries in a single packet a
  5641.       repetition of the old pending Notify command and the
  5642.       acknowledgement of the new notification request.
  5643.  
  5644.    b) the endpoint is then taken out of the "notification state" without
  5645.       waiting for the acknowledgement of the notification command.
  5646.  
  5647.    c) a copy of the unacknowledged Notify command command is kept until
  5648.       an acknowledgement is received.  If a timer elapses, the
  5649.       notification will be repeated, in a packet that will also carry a
  5650.       repetition of the acknowledgement of the notification request.
  5651.  
  5652.  
  5653.  
  5654.  
  5655.  
  5656.  
  5657.  
  5658. Arango, et al.               Informational                    [Page 101]
  5659.  
  5660. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5661.  
  5662.  
  5663.    d) if the acknowledgement is lost, the Call Agent will retransmit the
  5664.       Notification Request.  The gateway will reply to this repetition
  5665.       by retransmitting in a single packet the unacknowledged Notify and
  5666.       the acknowledgement of the notification request.
  5667.  
  5668.    e) if the gateway has to transmit a Notify before the previous Notify
  5669.       is acknowledged, it should construct a packet that piggybacks a
  5670.       repetition of the old Notify, a repetition of the acknowledgement
  5671.       of the last notification request and the new Notify.
  5672.  
  5673.    f) Gateways that cannot piggyback several packets in the same message
  5674.       should elect to leave the endpoint in the "notification" state as
  5675.       long as the last notification is not acknowledged.
  5676.  
  5677.    After receiving the Notification Request command, the requested
  5678.    events list and digit map (if a new one was provided) are replaced by
  5679.    the newly received parameters, and the list of observed events and
  5680.    accumulated dial string are reset to a null value.  The behavior is
  5681.    conditioned by the value of the QuarantineHandling parameter. The
  5682.    parameter may specify that quarantined events, or previously observed
  5683.    events, should be discarded, in which case they will be. If the
  5684.    parameter specifies that the quarantined events should be processed,
  5685.    the gateway will start processing the list of quarantined events or
  5686.    previously observed events, using the newly received list of
  5687.    requested events and digit map. When processing these events, the
  5688.    gateway may encounter an event which requires a Notify command to be
  5689.    sent. If that is the case, the gateway will immediately transmit a
  5690.    Notify command that will report all events that were accumulated in
  5691.    the list of observed events until the triggering event, included,
  5692.    leaving the unprocessed events in the quarantine buffer, and will
  5693.    enter the "notification state".
  5694.  
  5695.    A new notification request may be received while the gateway has
  5696.    accumulated events according to the previous notification requests,
  5697.    but has not yet detected a notification-triggering events.  The
  5698.    handling of not-yet-notified events is determined, as with the
  5699.    quarantined events, by the quarantine handling parameters:
  5700.  
  5701.    *  If the quarantine-handling parameter specifies that quarantined
  5702.       events shall be ignored, the observed event list is simply reset.
  5703.  
  5704.    *  If the quarantine-handling parameter specifies that quarantined
  5705.       events shall be processed, the observed event list is transferred
  5706.       to the quarantined event list.  The observed event list is then
  5707.       reset, and the quarantined event list is processed.
  5708.  
  5709.  
  5710.  
  5711.  
  5712.  
  5713.  
  5714. Arango, et al.               Informational                    [Page 102]
  5715.  
  5716. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5717.  
  5718.  
  5719.    Call Agents SHOULD provide the response to a successful Notify
  5720.    message and the new NotificationRequest in the same datagram using
  5721.    the piggy-backing mechanism.
  5722.  
  5723. 4.3.2.  Explicit detection
  5724.  
  5725.    A key element of the state of several endpoints is the position of
  5726.    the hook. A race condition may occur when the user decides to go
  5727.    off-hook before the Call Agent has the time to ask the gateway to
  5728.    notify an off hook event (the "glare" condition well known in
  5729.    telephony), or if the user goes on-hook before the Call Agent has the
  5730.    time to request the event's notification.
  5731.  
  5732.    To avoid this race condition, the gateway should check the condition
  5733.    of the endpoint before acknowledging a NotificationRequest. It should
  5734.    return an error:
  5735.  
  5736.    1- If the gateway is requested to notify an "off hook" transition
  5737.       while the phone is already off hook,
  5738.  
  5739.    2- If the gateway is requested to notify an "on hook" or "flash hook"
  5740.       condition while the phone is already on hook.
  5741.  
  5742.    It should be noted, that the condition check is performed at the time
  5743.    the notification request is received, where as the actual event that
  5744.    caused the current condition may have either been reported, or
  5745.    ignored earlier, or it may currently be quarantined.
  5746.  
  5747.    The other state variables of the gateway, such as the list of
  5748.    RequestedEvent or list of requested signals, are entirely replaced
  5749.    after each successful NotificationRequest, which prevents any long
  5750.    term discrepancy between the Call Agent and the gateway.
  5751.  
  5752.    When a NotificationRequest is unsuccessful, whether it is included in
  5753.    a connection-handling command or not, the gateway will simply
  5754.    continue as if the command had never been received. As all other
  5755.    transactions, the NotificationRequest should operate as an atomic
  5756.    transaction, thus any changes initiated as a result of the command
  5757.    should be reverted.
  5758.  
  5759.    Another race condition may occur when a Notify is issued shortly
  5760.    before the reception by the gateway of a NotificationRequest. The
  5761.    RequestIdentifier is used to correlate Notify commands with
  5762.    NotificationRequest commands.
  5763.  
  5764.  
  5765.  
  5766.  
  5767.  
  5768.  
  5769.  
  5770. Arango, et al.               Informational                    [Page 103]
  5771.  
  5772. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5773.  
  5774.  
  5775. 4.3.3.  Ordering of commands, and treatment of disorder
  5776.  
  5777.    MGCP does not mandate that the underlying transport protocol
  5778.    guarantees the sequencing of commands sent to a gateway or an
  5779.    endpoint.  This property tends to maximize the timeliness of actions,
  5780.    but it has a few draw backs.  For example:
  5781.  
  5782.    *  Notify commands may be delayed and arrive to the call agent after
  5783.       the transmission of a new Notification Request command,
  5784.  
  5785.    *  If a new NotificationRequest is transmitted before a previous one
  5786.       is acknowledged, there is no guarantee that the previous one will
  5787.       not be received in second position.
  5788.  
  5789.    Call Agents that want to guarantee consistent operation of the end
  5790.    points can use the following rules:
  5791.  
  5792.    1) When a gateway handles several endpoints, commands pertaining to
  5793.       the different endpoints can be sent in parallel, for example
  5794.       following a model where each endpoint is controlled by its own
  5795.       process or its own thread.
  5796.  
  5797.    2) When several connections are created on the same endpoint,
  5798.       commands pertaining to different connections can be sent in
  5799.       parallel.
  5800.  
  5801.    3) On a given connection, there should normally be only one
  5802.       outstanding command (create or modify).  However, a
  5803.       DeleteConnection command can be issued at any time.  In
  5804.       consequence, a gateway may sometimes receive a ModifyConnection
  5805.       command that applies to a previously deleted connection.  Such
  5806.       commands should be ignored, and an error code should be returned.
  5807.  
  5808.    4) On a given endpoint, there should normally be only one outstanding
  5809.       NotificationRequest command at any time.  The RequestId parameter
  5810.       should be used to correlate Notify commands with the triggering
  5811.       notification request.
  5812.  
  5813.    5) In some cases, an implicitly or explicitly wildcarded
  5814.       DeleteConnection command that applies to a group of endpoints can
  5815.       step in front of a pending CreateConnection command.  The Call
  5816.       Agent should individually delete all connections whose completion
  5817.       was pending at the time of the global DeleteConnection command.
  5818.       Also, new CreateConnection commands for endpoints named by the
  5819.       wild-carding cannot be sent until the wild-carded DeleteConnection
  5820.       command is acknowledged.
  5821.  
  5822.  
  5823.  
  5824.  
  5825.  
  5826. Arango, et al.               Informational                    [Page 104]
  5827.  
  5828. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5829.  
  5830.  
  5831.    6) When commands are embedded within each other, sequencing
  5832.       requirements for all commands must be adhered to. For example a
  5833.       Create Connection command with a Notification Request in it must
  5834.       adhere to the sequencing for CreateConnection and
  5835.       NotificationRequest at the same time.
  5836.  
  5837.    7) AuditEndpoint and AuditConnection is not subject to any
  5838.       sequencing.
  5839.  
  5840.    8) RestartInProgress must always be the first command sent by an
  5841.       endpoint as defined by the restart procedure. Any other command or
  5842.       response must be delivered after this RestartInProgress command
  5843.       (piggy-backing allowed).
  5844.  
  5845.    9) When multiple messages are piggy-backed in a single packet, the
  5846.       messages are always processed in order.
  5847.  
  5848.    These rules do not affect the gateway, which should always respond to
  5849.    commands.
  5850.  
  5851. 4.3.4.  Fighting the restart avalanche
  5852.  
  5853.    Let's suppose that a large number of gateways are powered on
  5854.    simultaneously.  If they were to all initiate a RestartInProgress
  5855.    transaction, the call agent would very likely be swamped, leading to
  5856.    message losses and network congestion during the critical period of
  5857.    service restoration. In order to prevent such avalanches, the
  5858.    following behavior is suggested:
  5859.  
  5860.    1) When a gateway is powered on, it should initiate a restart timer
  5861.       to a random value, uniformly distributed between 0 and a maximum
  5862.       waiting delay (MWD). Care should be taken to avoid synchronicity
  5863.       of the random number generation between multiple gateways that
  5864.       would use the same algorithm.
  5865.  
  5866.    2) The gateway should then wait for either the end of this timer, the
  5867.       reception of a command from the call agent, or the detection of a
  5868.       local user activity, such as for example an off-hook transition on
  5869.       a residential gateway.
  5870.  
  5871.    3) When the timer elapses, when a command is received, or when an
  5872.       activity is detected, the gateway should initiate the restart
  5873.       procedure.
  5874.  
  5875.  
  5876.  
  5877.  
  5878.  
  5879.  
  5880.  
  5881.  
  5882. Arango, et al.               Informational                    [Page 105]
  5883.  
  5884. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5885.  
  5886.  
  5887.    The restart procedure simply requires the endpoint to guarantee that
  5888.    the first message (command or response) that the Call Agent sees from
  5889.    this endpoint is a RestartInProgress message informing the Call Agent
  5890.    about the restart. The endpoint is free to take full advantage of
  5891.    piggy-backing to achieve this.
  5892.  
  5893.    It is expected that each endpoint in a gateway will have a
  5894.    provisionable Call Agent, i.e., "notified entity", to direct the
  5895.    initial restart message towards. When the collection of endpoints in
  5896.    a gateway is managed by more than one Call Agent, the above procedure
  5897.    must be performed for each collection of endpoints managed by a given
  5898.    Call Agent. The gateway MUST take full advantage of wild-carding to
  5899.    minimize the number of RestartInProgress messages generated when
  5900.    multiple endpoints in a gateway restart and the endpoints are managed
  5901.    by the same Call Agent.
  5902.  
  5903.    The value of MWD is a configuration parameter that depends on the
  5904.    type of the gateway. The following ]reasoning can be used to
  5905.    determine the value of this delay on residential gateways.
  5906.  
  5907.    Call agents are typically dimensioned to handle the peak hour traffic
  5908.    load, during which, in average, 10% of the lines will be busy,
  5909.    placing calls whose average duration is typically 3 minutes.  The
  5910.    processing of a call typically involves 5 to 6 MGCP transactions
  5911.    between each end point and the call agent.  This simple calculation
  5912.    shows that the call agent is expected to handle 5 to 6 transactions
  5913.    for each end point, every 30 minutes on average, or, to put it
  5914.    otherwise, about one transaction per end point every 5 to 6 minutes
  5915.    on average.  This suggest that a reasonable value of MWD for a
  5916.    residential gateway would be 10 to 12 minutes.  In the absence of
  5917.    explicit configuration, residential gateways should adopt a value of
  5918.    600 seconds for MWD.
  5919.  
  5920.    The same reasoning suggests that the value of MWD should be much
  5921.    shorter for trunking gateways or for business gateways, because they
  5922.    handle a large number of endpoints, and also because the usage rate
  5923.    of these endpoints is much higher than 10% during the peak busy hour,
  5924.    a typical value being 60%.  These endpoints, during the peak hour,
  5925.    are this expected to contribute about one transaction per minute to
  5926.    the call agent load. A reasonable algorithm is to make the value of
  5927.    MWD per "trunk" endpoint six times shorter than the MWD per
  5928.    residential gateway, and also inversely proportional to the number of
  5929.    endpoints that are being restarted. for example MWD should be set to
  5930.    2.5 seconds for a gateway that handles a T1 line, or to 60
  5931.    milliseconds for a gateway that handles a T3 line.
  5932.  
  5933.  
  5934.  
  5935.  
  5936.  
  5937.  
  5938. Arango, et al.               Informational                    [Page 106]
  5939.  
  5940. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5941.  
  5942.  
  5943. 4.3.5.  Disconnected Endpoints
  5944.  
  5945.    In addition to the restart procedure, gateways also have a
  5946.    "disconnected" procedure, which is initiated when an endpoint becomes
  5947.    "disconnected" as described in Section 3.4.2. It should here be
  5948.    noted, that endpoints can only become disconnected when they attempt
  5949.    to communicate with the Call Agent. The following steps are followed
  5950.    by an endpoint that becomes "disconnected":
  5951.  
  5952.    1. A "disconnected" timer is initialized to a random value, uniformly
  5953.       distributed between 0 and a provisionable "disconnected" initial
  5954.       waiting delay (Tdinit), e.g., 15 seconds.  Care MUST be taken to
  5955.       avoid synchronicity of the random number generation between
  5956.       multiple gateways and endpoints that would use the same algorithm.
  5957.  
  5958.    2. The gateway then waits for either the end of this timer, the
  5959.       reception of a command from the call agent, or the detection of a
  5960.       local user activity for the endpoint, such as for example an off-
  5961.       hook transition.
  5962.  
  5963.    3. When the "disconnected" timer elapses, when a command is received,
  5964.       or when a local user activity is detected, the gateway initiates
  5965.       the "disconnected" procedure for the endpoint. In the case of
  5966.       local user activity, a provisionable "disconnected" minimum
  5967.       waiting delay (Tdmin) must furthermore have elapsed since the
  5968.       gateway became disconnected or the last time it initiated the
  5969.       "disconnected" procedure in order to limit the rate at which the
  5970.       procedure is performed.
  5971.  
  5972.    4. If the "disconnected" procedure still left the endpoint
  5973.       disconnected, the "disconnected" timer is then doubled, subject to
  5974.       a provisionable "disconnected" maximum waiting delay (Tdmax),
  5975.       e.g., 600 seconds, and the gateway proceeds with step 2 again.
  5976.  
  5977.    The "disconnected" procedure is similar to the restart procedure in
  5978.    that it now simply states that the endpoint MUST send a
  5979.    RestartInProgress command to the Call Agent informing it that the
  5980.    endpoint was disconnected and furthermore guarantee that the first
  5981.    message (command or response) that the Call Agent now sees from this
  5982.    endpoint MUST be this RestartInProgress command. The endpoint MUST
  5983.    take full advantage of piggy-backing in achieving this. The Call
  5984.    Agent may then for instance decide to audit the endpoint, or simply
  5985.    clear all connections for the endpoint.
  5986.  
  5987.    This specification purposely does not specify any additional behavior
  5988.    for a disconnected endpoint. Vendors MAY for instance choose to
  5989.    provide silence, play reorder tone, or even enable a downloaded wav
  5990.    file to be played.
  5991.  
  5992.  
  5993.  
  5994. Arango, et al.               Informational                    [Page 107]
  5995.  
  5996. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  5997.  
  5998.  
  5999.    The default value for Tdinit is 15 seconds, the default value for
  6000.    Tdmin, is 15 seconds, and the default value for Tdmax is 600 seconds.
  6001.  
  6002. 5.  Security requirements
  6003.  
  6004.    If unauthorized entities could use the MGCP, they would be able to
  6005.    set-up unauthorized calls, or to interfere with authorized calls. We
  6006.    expect that MGCP messages will always be carried over secure Internet
  6007.    connections, as defined in the IP security architecture as defined in
  6008.    RFC 2401, using either the IP Authentication Header, defined in RFC
  6009.    2402, or the IP Encapsulating Security Payload, defined in RFC 2406.
  6010.    The complete MGCP protocol stack would thus include the following
  6011.    layers:
  6012.  
  6013.                 ________________________________
  6014.                |              MGCP             |
  6015.                |_______________________________|
  6016.                |              UDP              |
  6017.                |_______________________________|
  6018.                |          IP security          |
  6019.                | (authentication or encryption)|
  6020.                |_______________________________|
  6021.                |              IP               |
  6022.                |_______________________________|
  6023.                |       transmission media      |
  6024.                |_______________________________|
  6025.  
  6026.    Adequate protection of the connections will be achieved if the
  6027.    gateways and the Call Agents only accept messages for which IP
  6028.    security provided an authentication service. An encryption service
  6029.    will provide additional protection against eavesdropping, thus
  6030.    forbidding third parties from monitoring the connections set up by a
  6031.    given endpoint
  6032.  
  6033.    The encryption service will also be requested if the session
  6034.    descriptions are used to carry session keys, as defined in SDP.
  6035.  
  6036.    These procedures do not necessarily protect against denial of service
  6037.    attacks by misbehaving gateways or misbehaving call agents. However,
  6038.    they will provide an identification of these misbehaving entities,
  6039.    which should then be deprived of their authorization through
  6040.    maintenance procedures.
  6041.  
  6042.  
  6043.  
  6044.  
  6045.  
  6046.  
  6047.  
  6048.  
  6049.  
  6050. Arango, et al.               Informational                    [Page 108]
  6051.  
  6052. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6053.  
  6054.  
  6055. 5.1.  Protection of media connections
  6056.  
  6057.    MGCP allows call agent to provide gateways with "session keys" that
  6058.    can be used to encrypt the audio messages, protecting against
  6059.    eavesdropping.
  6060.  
  6061.    A specific problem of packet networks is "uncontrolled barge-in."
  6062.    This attack can be performed by directing media packets to the IP
  6063.    address and UDP port used by a connection. If no protection is
  6064.    implemented, the packets will be decompressed and the signals will be
  6065.    played on the "line side".
  6066.  
  6067.    A basic protection against this attack is to only accept packets from
  6068.    known sources, checking for example that the IP source address and
  6069.    UDP source port match the values announced in the "remote session
  6070.    description."  But this has two inconveniences: it slows down
  6071.    connection establishment and it can be fooled by source spoofing:
  6072.  
  6073.    *  To enable the address-based protection, the call agent must obtain
  6074.       the remote session description of the e-gress gateway and pass it
  6075.       to the in-gress gateway.  This requires at least one network round
  6076.       trip, and leaves us with a dilemma: either allow the call to
  6077.       proceed without waiting for the round trip to complete, and risk
  6078.       for example "clipping" a remote announcement, or wait for the full
  6079.       round trip and settle for slower call-set-up procedures.
  6080.  
  6081.    *  Source spoofing is only effective if the attacker can obtain valid
  6082.       pairs of source destination addresses and ports, for example by
  6083.       listening to a fraction of the traffic. To fight source spoofing,
  6084.       one could try to control all access points to the network.  But
  6085.       this is in practice very hard to achieve.
  6086.  
  6087.    An alternative to checking the source address is to encrypt and
  6088.    authenticate the packets, using a secret key that is conveyed during
  6089.    the call set-up procedure. This will no slow down the call set-up,
  6090.    and provides strong protection against address spoofing.
  6091.  
  6092. 6.  Event packages and end point types
  6093.  
  6094.    This section provides an initial definition of packages and event
  6095.    names.  More packages can be defined in additional documents.
  6096.  
  6097.  
  6098.  
  6099.  
  6100.  
  6101.  
  6102.  
  6103.  
  6104.  
  6105.  
  6106. Arango, et al.               Informational                    [Page 109]
  6107.  
  6108. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6109.  
  6110.  
  6111. 6.1.  Basic packages
  6112.  
  6113.    The list of basic packages includes the following:
  6114.  
  6115.                 _________________________________________
  6116.                | Package                      |   name  |
  6117.                |______________________________|_________|
  6118.                | Generic Media Package        |   G     |
  6119.                | DTMF package                 |   D     |
  6120.                | MF Package                   |   M     |
  6121.                | Trunk Package                |   T     |
  6122.                | Line Package                 |   L     |
  6123.                | Handset Package              |   H     |
  6124.                | RTP Package                  |   R     |
  6125.                | Network Access Server Package|   N     |
  6126.                | Announcement Server Package  |   A     |
  6127.                | Script Package               |   Script|
  6128.                |______________________________|_________|
  6129.  
  6130.  
  6131.    In the tables of events for each package, there are five columns:
  6132.  
  6133.       Symbol: the unique symbol used for the event
  6134.       Definition: a short description of the event
  6135.  
  6136.       R: an x appears in this column is the event can be Requested by
  6137.          the call agent.
  6138.  
  6139.       S: if nothing appears in this column for an event, then the event
  6140.          cannot be signaled on command by the call agent. Otherwise, the
  6141.          following symbols identify the type of event:
  6142.  
  6143.       OO On/Off signal.  The signal is turned on until commanded by the
  6144.          call agent to turn it off, and vice versa.
  6145.  
  6146.       TO Timeout signal.  The signal lasts for a given duration unless
  6147.          it is superseded by a new signal.
  6148.  
  6149.       BR Brief signal.  The event has a short, known duration.
  6150.  
  6151.       Duration: specifies the duration of TO signals.
  6152.  
  6153.  
  6154.  
  6155.  
  6156.  
  6157.  
  6158.  
  6159.  
  6160.  
  6161.  
  6162. Arango, et al.               Informational                    [Page 110]
  6163.  
  6164. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6165.  
  6166.  
  6167. 6.1.1.  Generic Media Package
  6168.  
  6169.    Package Name: G
  6170.  
  6171.    The generic media package group the events and signals that can be
  6172.    observed on several types of endpoints, such as trunking gateways,
  6173.    access gateways or residential gateways.
  6174.  
  6175.   _____________________________________________________________________
  6176.  | Symbol   |   Definition               |   R |   S      Duration    |
  6177.  |__________|____________________________|_____|______________________|
  6178.  | mt       |   Modem detected           |   x |                      |
  6179.  | ft       |   Fax tone detected        |   x |                      |
  6180.  | ld       |   Long duration connection |   x |                      |
  6181.  | pat(###) |   Pattern ### detected     |   x |   OO                 |
  6182.  | rt       |   Ringback tone            |     |   TO                 |
  6183.  | rbk(###) |   ring back on connection  |     |   TO     180 seconds |
  6184.  | cf       |   Confirm tone             |     |   BR                 |
  6185.  | cg       |   Network Congestion tone  |     |   TO                 |
  6186.  | it       |   Intercept tone           |     |   OO                 |
  6187.  | pt       |   Preemption tone          |     |   OO                 |
  6188.  | of       |   report failure           |   x |                      |
  6189.  |__________|____________________________|_____|______________________|
  6190.  
  6191.    The signals are defined as follows:
  6192.  
  6193.       The pattern definition can be used for specific algorithms such as
  6194.       answering machine detection, tone detection, and the like.
  6195.  
  6196.    Ring back tone (rt)
  6197.       an Audible Ring Tone, a combination of two AC tones with
  6198.       frequencies of 440 and 480 Hertz and levels of -19 dBm each, to
  6199.       give a combined level of -16 dBm.  The cadence for Audible Ring
  6200.       Tone is 2 seconds on followed by 4 seconds off. See GR- 506-CORE -
  6201.       LSSGR:  SIGNALING, Section 17.2.5.
  6202.  
  6203.    Ring back on connection
  6204.       A ring back tone, applied to the connection whose identifier is
  6205.       passed as a parameter.
  6206.  
  6207.    The "long duration connection" is detected when a connection has been
  6208.    established for more than 1 hour.
  6209.  
  6210.  
  6211.  
  6212.  
  6213.  
  6214.  
  6215.  
  6216.  
  6217.  
  6218. Arango, et al.               Informational                    [Page 111]
  6219.  
  6220. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6221.  
  6222.  
  6223. 6.1.2.  DTMF package
  6224.  
  6225.    Package name: D
  6226.  
  6227.     _______________________________________________________________
  6228.    | Symbol |   Definition              |   R |   S      Duration |
  6229.    |________|___________________________|_____|___________________|
  6230.    | 0      |   DTMF 0                  |   x |   BR              |
  6231.    | 1      |   DTMF 1                  |   x |   BR              |
  6232.    | 2      |   DTMF 2                  |   x |   BR              |
  6233.    | 3      |   DTMF 3                  |   x |   BR              |
  6234.    | 4      |   DTMF 4                  |   x |   BR              |
  6235.    | 5      |   DTMF 5                  |   x |   BR              |
  6236.    | 6      |   DTMF 6                  |   x |   BR              |
  6237.    | 7      |   DTMF 7                  |   x |   BR              |
  6238.    | 8      |   DTMF 8                  |   x |   BR              |
  6239.    | 9      |   DTMF 9                  |   x |   BR              |
  6240.    | #      |   DTMF #                  |   x |   BR              |
  6241.    | *      |   DTMF *                  |   x |   BR              |
  6242.    | A      |   DTMF A                  |   x |   BR              |
  6243.    | B      |   DTMF B                  |   x |   BR              |
  6244.    | C      |   DTMF C                  |   x |   BR              |
  6245.    | D      |   DTMF D                  |   x |   BR              |
  6246.    | L      |   long duration indicator |   x |          2 seconds|
  6247.    | X      |   Wildcard, match         |   x |                   |
  6248.    |        |   any digit 0-9           |     |                   |
  6249.    | T      |   Interdigit timer        |   x |          4 seconds|
  6250.    | of     |   report failure          |   x |                   |
  6251.    |________|___________________________|_____|___________________|
  6252.  
  6253.    The "interdigit timer" T is a digit input timer that can be used in
  6254.    two ways:
  6255.  
  6256.    *  When timer T is used with a digit map, the timer is not started
  6257.       until the first digit is entered, and the timer is restarted after
  6258.       each new digit is entered until either a digit map match or
  6259.       mismatch occurs. In this case, timer T functions as an inter-digit
  6260.       timer.
  6261.  
  6262.    *  When timer T is used without a digit map, the timer is started
  6263.       immediately and simply cancelled (but not restarted) as soon as a
  6264.       digit is entered. In this case, timer T can be used as an
  6265.       interdigit timer when overlap sending is used.
  6266.  
  6267.       When used with a digit map, timer T takes on one of two values,
  6268.       T(partial) or T(critical). When at least one more digit is
  6269.       required for the digit string to match any of the patterns in the
  6270.       digit map, timer T takes on the value T(partial), corresponding to
  6271.  
  6272.  
  6273.  
  6274. Arango, et al.               Informational                    [Page 112]
  6275.  
  6276. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6277.  
  6278.  
  6279.       partial dial timing. If a timer is all that is required to produce
  6280.       a match, timer T takes on the value T(critical) corresponding to
  6281.       critical timing. When timer T is used without a digit map, timer T
  6282.       takes on the value T(critical).  The default value for T(partial)
  6283.       is 16 seconds and the default value for T(critical) is 4 seconds.
  6284.       The provisioning process may alter both of these.
  6285.  
  6286.       The "long duration indicator" is observed when a DTMF signal is
  6287.       produced for a duration larger than two seconds.  In this case,
  6288.       the gateway will detect two successive events: first, when the
  6289.       signal has been recognized, the DTMF signal, and then, 2 seconds
  6290.       later, the long duration signal.
  6291.  
  6292. 6.1.3.  MF Package
  6293.  
  6294.       Package Name: M
  6295.  
  6296.        ________________________________________________________
  6297.       | Symbol |   Definition       |   R |   S      Duration |
  6298.       |________|____________________|_____|___________________|
  6299.       | 0      |   MF 0             |   x |   BR              |
  6300.       | 1      |   MF 1             |   x |   BR              |
  6301.       | 2      |   MF 2             |   x |   BR              |
  6302.       | 3      |   MF 3             |   x |   BR              |
  6303.       | 4      |   MF 4             |   x |   BR              |
  6304.       | 5      |   MF 5             |   x |   BR              |
  6305.       | 6      |   MF 6             |   x |   BR              |
  6306.       | 7      |   MF 7             |   x |   BR              |
  6307.       | 8      |   MF 8             |   x |   BR              |
  6308.       | 9      |   MF 9             |   x |   BR              |
  6309.       | X      |   Wildcard, match  |   x |                   |
  6310.       |        |   any digit 0-9    |     |                   |
  6311.       | T      |   Interdigit timer |   x |          4 seconds|
  6312.       | K0     |   MF K0 or KP      |   x |   BR              |
  6313.       | K1     |   MF K1            |   x |   BR              |
  6314.       | K2     |   MF K2            |   x |   BR              |
  6315.       | S0     |   MF S0 or ST      |   x |   BR              |
  6316.       | S1     |   MF S1            |   x |   BR              |
  6317.       | S2     |   MF S2            |   x |   BR              |
  6318.       | S3     |   MF S3            |   x |   BR              |
  6319.       | wk     |   Wink             |   x |   BR              |
  6320.       | wko    |   Wink off         |   x |   BR              |
  6321.       | is     |   Incoming seizure |   x |   OO              |
  6322.       | rs     |   Return seizure   |   x |   OO              |
  6323.       | us     |   Unseize circuit  |   x |   OO              |
  6324.       | of     |   report failure   |   x |                   |
  6325.       |________|____________________|_____|___________________|
  6326.  
  6327.  
  6328.  
  6329.  
  6330. Arango, et al.               Informational                    [Page 113]
  6331.  
  6332. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6333.  
  6334.  
  6335.    The definition of the MF package events is as follows:
  6336.  
  6337.    Wink
  6338.       A transition from unseized to seized to unseized trunk states
  6339.       within a specified period.  Typical seizure period is 100-350
  6340.       msec.)
  6341.  
  6342.    Incoming seizure
  6343.       Incoming indication of call attempt.
  6344.  
  6345.    Return seizure:
  6346.       Seizure in response to outgoing seizure.
  6347.  
  6348.    Unseize circuit:
  6349.       Unseizure of a circuit at the end of a call.
  6350.  
  6351.    Wink off:
  6352.       A signal used in operator services trunks.  A transition from
  6353.       seized to unseized to seized trunk states within a specified
  6354.       period of 100-350 ms. (To be checked)
  6355.  
  6356. 6.1.4.  Trunk Package
  6357.  
  6358.    Package Name: T
  6359.  
  6360.    _____________________________________________________________________
  6361.   | Symbol |   Definition                   |   R |   S      Duration  |
  6362.   |________|________________________________|_____|____________________|
  6363.   | co1    |   Continuity tone (single tone,|   x |   OO               |
  6364.   |        |   or return tone)              |     |                    |
  6365.   | co2    |   Continuity test (go tone,    |   x |   OO               |
  6366.   |        |   in dual tone procedures)     |     |                    |
  6367.   | lb     |   Loopback                     |     |   OO               |
  6368.   | om     |   Old Milliwatt Tone (1000 Hz) |   x |   OO               |
  6369.   | nm     |   New Milliwatt Tone (1004 Hz) |   x |   OO               |
  6370.   | tl     |   Test Line                    |   x |   OO               |
  6371.   | zz     |   No circuit                   |   x |   OO               |
  6372.   | as     |   Answer Supervision           |   x |   OO               |
  6373.   | ro     |   Reorder Tone                 |   x |   TO     30 seconds|
  6374.   | of     |   report failure               |   x |                    |
  6375.   | bl     |   Blocking                     |     |   OO               |
  6376.   |________|________________________________|_____|____________________|
  6377.  
  6378.    The definition of the trunk package signal events is as follows:
  6379.  
  6380.    Continuity Tone (co1):
  6381.       A tone at 2010 + or - 30 Hz.
  6382.  
  6383.  
  6384.  
  6385.  
  6386. Arango, et al.               Informational                    [Page 114]
  6387.  
  6388. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6389.  
  6390.  
  6391.    Continuity Test (co2):
  6392.       A tone at the 1780 + or - 30 Hz.
  6393.  
  6394.    Milliwatt Tones:
  6395.       Old Milliwatt Tone (1000 Hz), New Milliwatt Tone (1004 Hz)
  6396.  
  6397.    Line Test:
  6398.       105 Test Line test progress tone (2225 Hz + or - 25 Hz at -10 dBm0
  6399.       + or -- 0.5dB).
  6400.  
  6401.    No circuit:
  6402.       (that annoying tri-tone, low to high)
  6403.  
  6404.    Answer Supervision:
  6405.  
  6406.    Reorder Tone:
  6407.       Reorder tone is a combination of two AC tones with frequencies of
  6408.       480 and 620 Hertz and levels of -24 dBm each, to give a combined
  6409.       level of -21 dBm.  The cadence for Station Busy Tone is 0.25
  6410.       seconds on followed by 0.25 seconds off, repeating continuously.
  6411.       See GR-506-CORE - LSSGR: SIGNALING, Section 17.2.7.
  6412.  
  6413.    Blocking:
  6414.       The call agent can place the circuit in a blocked state by
  6415.       applying the "bl(+)" signal to the endpoint.  It can unblock it by
  6416.       applying the "bl(-)" signal.
  6417.  
  6418.    The continuity tones are used when the call agent wants to initiate a
  6419.    continuity test. There are two types of tests, single tone and dual
  6420.    tone. The Call agent is expected to know, through provisioning
  6421.    information, which test should be applied to a given endpoint. For
  6422.    example, the call agent that wants to initiate a single frequency
  6423.    test will send to the gateway a command of the form:
  6424.  
  6425.          RQNT 1234 epx-t1/17@tgw2.example.net
  6426.          X: AB123FE0
  6427.          S: co1
  6428.          R: co1
  6429.  
  6430.    If it wanted instead to initiate a dual-tone test, it would send the
  6431.    command:
  6432.  
  6433.          RQNT 1234 epx-t1/17@tgw2.example.net
  6434.          X: AB123FE0
  6435.          S: co2
  6436.          R: co1
  6437.  
  6438.  
  6439.  
  6440.  
  6441.  
  6442. Arango, et al.               Informational                    [Page 115]
  6443.  
  6444. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6445.  
  6446.  
  6447.    The gateway would send the requested signal, and in both cases would
  6448.    look for the return of the 2010 Hz tone (co1).  When it detects that
  6449.    tone, it will send the corresponding  notification.
  6450.  
  6451.    The tones are of type OO: the gateway will keep sending them until it
  6452.    receives a new notification request.
  6453.  
  6454. 6.1.5.  Line Package
  6455.  
  6456.    Package Name: L
  6457.  
  6458. ________________________________________________________________________
  6459. |Symbol       |   Definition                 |   R |   S    Duration   |
  6460. |_____________|______________________________|_____|___________________|
  6461. |adsi(string) |   adsi display               |     |   BR              |
  6462. |vmwi         |   visual message             |     |   OO              |
  6463. |             |   waiting indicator          |     |                   |
  6464. |hd           |   Off hook transition        |   x |                   |
  6465. |hu           |   On hook transition         |   x |                   |
  6466. |hf           |   Flash hook                 |   x |                   |
  6467. |aw           |   Answer tone                |   x |   OO              |
  6468. |bz           |   Busy tone                  |     |   TO   30 seconds |
  6469. |ci(ti,nu,na) |   Caller-id                  |     |   BR              |
  6470. |wt           |   Call Waiting tone          |     |   TO   30 seconds |
  6471. |wt1, wt2,    |   Alternative call           |     |                   |
  6472. |wt3, wt4     |   waiting tones              |     |                   |
  6473. |dl           |   Dial tone                  |     |   TO   16 seconds |
  6474. |mwi          |   Message waiting ind.       |     |   TO   16 seconds |
  6475. |nbz          |   Network busy               |   x |   OO              |
  6476. |             |   (fast cycle busy)          |     |                   |
  6477. |ro           |   Reorder tone               |     |   TO   30 seconds |
  6478. |rg           |   Ringing                    |     |   TO   180 seconds|
  6479. |r0, r1, r2,  |   Distinctive ringing        |     |   TO   180 seconds|
  6480. |r3, r4, r5,  |                              |     |                   |
  6481. |r6 or r7     |                              |     |                   |
  6482. |rs           |   Ringsplash                 |     |   BR              |
  6483. |p            |   Prompt tone                |   x |   BR              |
  6484. |e            |   Error tone                 |   x |   BR              |
  6485. |sl           |   Stutter dialtone           |     |   TO   16 seconds |
  6486. |v            |   Alerting Tone              |     |   OO              |
  6487. |y            |   Recorder Warning Tone      |     |   OO              |
  6488. |sit          |   SIT tone                   |     |                   |
  6489. |z            |   Calling Card Service Tone  |     |   OO              |
  6490. |oc           |   Report on completion       |   x |                   |
  6491. |ot           |   Off hook warning tone      |     |   TO   indefinite |
  6492. |s(###)       |   Distinctive tone pattern   |   x |   BR              |
  6493. |of           |   report failure             |   x |                   |
  6494. |_____________|______________________________|_____|___________________|
  6495.  
  6496.  
  6497.  
  6498. Arango, et al.               Informational                    [Page 116]
  6499.  
  6500. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6501.  
  6502.  
  6503.    The definition of the tones is as follows:
  6504.  
  6505.    Dial tone:
  6506.       A combined 350 + 440 Hz tone.
  6507.  
  6508.    Visual Message Waiting Indicator
  6509.       The transmission of the VMWI messages will conform to the
  6510.       requirements in Section 2.3.2, "On-hook Data Transmission Not
  6511.       Associated with Ringing" in TR-H-000030 and the CPE guidelines in
  6512.       SR-TSV-002476. VMWI messages will only be sent from the SPCS when
  6513.       the line is idle. If new messages arrive while the line is busy,
  6514.       the VMWI indicator message will be delayed until the line goes
  6515.       back to the idle state. The CA should periodically refresh the
  6516.       CPE's visual indicator. See TR-NWT-001401 - Visual Message Waiting
  6517.       Indicator Generic Requirements; and GR- 30-CORE - Voiceband Data
  6518.       Transmission Interface.
  6519.  
  6520.    Message waiting Indicator
  6521.       See GR-506-CORE, 17.2.3.
  6522.  
  6523.    Alerting Tone:
  6524.       a 440 Hz Tone of 2 second duration followed by 1/2 second of tone
  6525.       every 10 seconds.
  6526.  
  6527.    Ring splash
  6528.       Ringsplash, also known as "Reminder ring" is a burst of ringing
  6529.       that may be applied to the physical forwarding line (when idle) to
  6530.       indicate that a call has been forwarded and to remind the user
  6531.       that a CF subfeature is active.  In the US, it is defined to be a
  6532.       0.5(-0,+0.1) second burst of power ringing. See TR-TSY-000586 -
  6533.       Call Forwarding Subfeatures.
  6534.  
  6535.    Call waiting tone
  6536.       Call Waiting tone is defined in GR-506-CORE, 14.2. Call Waiting
  6537.       feature is defined in TR-TSY-000571. By defining "wt" as a TO
  6538.       signal you are really defining the feature which seems wrong to me
  6539.       (given the spirit of MGCP), hence the definition of "wt" as a BR
  6540.       signal in ECS, per GR-506-CORE. Also, it turns out that there is
  6541.       actually four different call waiting tone patterns (see GR-506-
  6542.       CORE, 14.2) so we have wt1, wt2, wt3, wt4.
  6543.  
  6544.    Caller Id (ci(time, number, name)):
  6545.       The caller-id event carries three parameters, the time of the
  6546.       call, the calling number and the calling name. Each of the three
  6547.       fields are optional, however each of the commas will always be
  6548.       included.  See TR-NWT-001188, GR-30-CORE, and TR-NWT-000031.
  6549.  
  6550.  
  6551.  
  6552.  
  6553.  
  6554. Arango, et al.               Informational                    [Page 117]
  6555.  
  6556. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6557.  
  6558.  
  6559.    Recorder Warning Tone:
  6560.       1400 Hz of Tone of 0.5 second duration every 15 seconds.
  6561.  
  6562.    SIT tone:
  6563.       used for indicating a line is out of service.
  6564.  
  6565.    Calling Card Service Tone:
  6566.       60 ms of 941 + 1477 Hz and 940 ms of 350 + 440 Hz (dial tone),
  6567.       decaying exponentially with a time constant of 200 ms.
  6568.  
  6569.    Distinctive tone pattern:
  6570.       where ### is any number between 000 and 999, inclusive.  Can be
  6571.       used for distinctive ringing, customized dial tone, etc.
  6572.  
  6573.    Report on completion
  6574.       The report on completion event is detected when the gateway was
  6575.       asked to perform one or several signals of type TO on the
  6576.       endpoint, and when these signals were completed without being
  6577.       stopped by the detection of a requested event such as off-hook
  6578.       transition or dialed digit.  The completion report may carry as
  6579.       parameter the name of the signal that came to the end of its live
  6580.       time, as in:
  6581.  
  6582.             O: L/oc(L/dl)
  6583.  
  6584.    Ring back on connection
  6585.       A ring back tone, applied to the connection wghose identifier is
  6586.       passed as a parameter.
  6587.  
  6588.    We should note that many of these definitions vary from country to
  6589.    country.  The frequencies listed above are the one in use in North
  6590.    America.  There is a need to accommodate different tone sets in
  6591.    different countries, and there is still an ongoing debate on the best
  6592.    way to meet that requirement:
  6593.  
  6594.    *  One solution is to define different event packages specifying for
  6595.       example the German dialtone as "L-DE/DL".
  6596.  
  6597.    *  Another solution is to use a management interface to specify on an
  6598.       endpoint basis which frequency shall be associated to what tone.
  6599.  
  6600.  
  6601.  
  6602.  
  6603.  
  6604.  
  6605.  
  6606.  
  6607.  
  6608.  
  6609.  
  6610. Arango, et al.               Informational                    [Page 118]
  6611.  
  6612. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6613.  
  6614.  
  6615. 6.1.6.  Handset emulation package
  6616.  
  6617.    Package Name: H
  6618.  
  6619. ________________________________________________________________________
  6620. |Symbol       |   Definition                 |   R |   S    Duration   |
  6621. |_____________|______________________________|_____|___________________|
  6622. |adsi(string) |   adsi display               |   x |   BR              |
  6623. |tdd          |                              |     |                   |
  6624. |vmwi         |                              |     |                   |
  6625. |hd           |   Off hook transition        |   x |   OO              |
  6626. |hu           |   On hook transition         |   x |   OO              |
  6627. |hf           |   Flash hook                 |   x |   BR              |
  6628. |aw           |   Answer tone                |   x |   OO              |
  6629. |bz           |   Busy tone                  |   x |   OO              |
  6630. |wt           |   Call Waiting tone          |   x |   TO   30 seconds |
  6631. |dl           |   Dial tone (350 + 440 Hz)   |   x |   TO   120 seconds|
  6632. |nbz          |   Network busy               |   x |   OO              |
  6633. |             |   (fast cycle busy)          |     |                   |
  6634. |rg           |   Ringing                    |   x |   TO   30 seconds |
  6635. |r0, r1, r2,  |   Distinctive ringing        |   x |   TO   30 seconds |
  6636. |r3, r4, r5,  |                              |     |                   |
  6637. |r6 or r7     |                              |     |                   |
  6638. |p            |   Prompt tone                |   x |   BR              |
  6639. |e            |   Error tone                 |   x |   BR              |
  6640. |sdl          |   Stutter dialtone           |   x |   TO   16 seconds |
  6641. |v            |   Alerting Tone              |   x |   OO              |
  6642. |y            |   Recorder Warning Tone      |   x |   OO              |
  6643. |t            |   SIT tone                   |   x |                   |
  6644. |z            |   Calling Card Service Tone  |   x |   OO              |
  6645. |oc           |   Report on completion       |   x |                   |
  6646. |ot           |   Off hook warning tone      |   x |   OO              |
  6647. |s(###)       |   Distinctive tone pattern   |   x |   BR              |
  6648. |of           |   report failure             |   x |                   |
  6649. |_____________|______________________________|_____|___________________|
  6650.  
  6651.  
  6652.    The handset emulation package is an extension of the line package, to
  6653.    be used when the gateway is capable of emulating a handset.  The
  6654.    difference with the line package is that events such as "off hook"
  6655.    can be signalled as well as detected.
  6656.  
  6657.  
  6658.  
  6659.  
  6660.  
  6661.  
  6662.  
  6663.  
  6664.  
  6665.  
  6666. Arango, et al.               Informational                    [Page 119]
  6667.  
  6668. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6669.  
  6670.  
  6671. 6.1.7.  RTP Package
  6672.  
  6673.    Package Name: R
  6674.  
  6675.     ____________________________________________________________________
  6676.    | Symbol  |   Definition                   |   R |   S      Duration|
  6677.    |_________|________________________________|_____|__________________|
  6678.    | UC      |   Used codec changed           |   x |                  |
  6679.    | SR(###) |   Sampling rate changed        |   x |                  |
  6680.    | JI(###) |   Jitter buffer size changed   |   x |                  |
  6681.    | PL(###) |   Packet loss exceeded         |   x |                  |
  6682.    | qa      |   Quality alert                |   x |                  |
  6683.    | co1     |   Continuity tone (single tone,|   x |   OO             |
  6684.    |         |   or return tone)              |     |                  |
  6685.    | co2     |   Continuity test (go tone,    |   x |   OO             |
  6686.    |         |  in dual tone procedures)      |     |                  |
  6687.    | of      |   report failure               |   x |                  |
  6688.    |_________|________________________________|_____|__________________|
  6689.  
  6690.    Codec Changed:
  6691.       Codec changed to hexadecimal codec number enclosed in parenthesis,
  6692.       as in UC(15), to indicate the codec was changed to PCM mu-law.
  6693.       Codec Numbers are specified in RFC 1890, or in a new definition of
  6694.       the audio profiles for RTP that replaces this RFC.  Some
  6695.       implementations of media gateways may not allow the codec to be
  6696.       changed upon command from the call agent.  codec changed to codec
  6697.       hexadecimal ##.
  6698.  
  6699.    Sampling Rate Changed:
  6700.       Sampling rate changed to decimal number in milliseconds enclosed
  6701.       in parenthesis, as in SR(20), to indicate the sampling rate was
  6702.       changed to 20 milliseconds.  Some implementations of media
  6703.       gateways may not allow the sampling rate to be changed upon
  6704.       command from a call agent.
  6705.  
  6706.    Jitter Buffer Size Changed:
  6707.       When the media gateway has the ability to automatically adjust the
  6708.       depth of the jitter buffer for received RTP streams, it is useful
  6709.       for the media gateway controller to receive notification that the
  6710.       media gateway has automatically increased its jitter buffer size
  6711.       to accomodate increased or decreased variability in network
  6712.       latency.  The syntax for requesting notification is "JI", which
  6713.       tells the media gateway that the controller wants notification of
  6714.       any jitter buffer size changes.  The syntax for notification from
  6715.       the media gateway to the controller is "JI(####)", where the ####
  6716.       is the new size of the jitter buffer, in milliseconds.
  6717.  
  6718.  
  6719.  
  6720.  
  6721.  
  6722. Arango, et al.               Informational                    [Page 120]
  6723.  
  6724. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6725.  
  6726.  
  6727.    Packet Loss Exceeded:
  6728.       Packet loss rate exceed the threshold of the specified decimal
  6729.       number of packets per 100,000 packets, where the packet loss
  6730.       number is contained in parenthesis.  For example, PL(10) indicates
  6731.       packets are being dropped at a rate of 1 in 10,000 packets.
  6732.  
  6733.    Quality alert
  6734.       The packet loss rate or the combination of delay and jitter exceed
  6735.       a specified quality threshold.
  6736.  
  6737.    The continuity tones are the same as those defined in the Trunk
  6738.    package.  They can be use in conjunction with the Network LoopBack or
  6739.    Network Continuity Test modes to test the continuity of an RTP
  6740.    circuit.
  6741.  
  6742.    The "operation failure" code can be used to report problems such as
  6743.    the loss of underlying connectivity.  The observed event can include
  6744.    as parameter the reason code of the failure.
  6745.  
  6746. 6.1.8.  Network Access Server Package
  6747.  
  6748.    Package Name: N
  6749.  
  6750.        ____________________________________________________________
  6751.       | Symbol |   Definition             |   R |   S     Duration|
  6752.       |________|__________________________|_____|_________________|
  6753.       | pa     |  Packet arrival          |  x  |                 |
  6754.       | cbk    |  Call back request       |  x  |                 |
  6755.       | cl     |  Carrier lost            |  x  |                 |
  6756.       | au     |   Authorization succeeded|  x  |                 |
  6757.       | ax     |   Authorization denied   |  x  |                 |
  6758.       | of     |   Report failure         |  x  |                 |
  6759.       |________|__________________________|_____|_________________|
  6760.  
  6761.  
  6762.    The packet arrival event is used to notify that at least one packet
  6763.    was recently sent to an Internet address that is observed by an
  6764.    endpoint.  The event report includes the Internet address, in
  6765.    standard ASCII encoding, between parenthesis:
  6766.  
  6767.          O: pa(192.96.41.1)
  6768.  
  6769.    The call back event is used to notify that a call back has been
  6770.    requested during the initial phase of a data connection. The event
  6771.    report includes the identification of the user that should be called
  6772.    back, between parenthesis:
  6773.  
  6774.          O: cbk(user25)
  6775.  
  6776.  
  6777.  
  6778. Arango, et al.               Informational                    [Page 121]
  6779.  
  6780. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6781.  
  6782.  
  6783. 6.1.9.  Announcement Server Package
  6784.  
  6785.    Package Name: A
  6786.  
  6787.     ___________________________________________________________________
  6788.    | Symbol         |   Definition           |   R |   S      Duration|
  6789.    |________________|________________________|_____|__________________|
  6790.    | ann(url,parms) |   Play an announcement |     |   TO     variable|
  6791.    | oc             |   Report on completion |   x |                  |
  6792.    | of             |   Report failure       |   x |                  |
  6793.    |________________|________________________|_____|__________________|
  6794.  
  6795.    The announcement action is qualified by an URL name and by a set of
  6796.    initial parameters as in for example:
  6797.  
  6798.          S: ann(http://scripts.example.net/all-lines-busy.au)
  6799.  
  6800.    The "operation complete" event will be detected when the announcement
  6801.    is played out. If the announcement cannot be played out, an operation
  6802.    failure event can be returned.  The failure may be explained by a
  6803.    commentary, as in:
  6804.  
  6805.          O: A/of(file not found)
  6806.  
  6807. 6.1.10.  Script Package
  6808.  
  6809.    Package Name: Script
  6810.  
  6811.     ______________________________________________________________
  6812.    | Symbol    |   Definition           |   R |   S  |   Duration|
  6813.    |___________|________________________|_____|______|___________|
  6814.    | java(url) |   Load a java script   |     |   TO |   variable|
  6815.    | perl(url) |   Load a perl script   |     |   TO |   variable|
  6816.    | tcl(url)  |   Load a TCL script    |     |   TO |   variable|
  6817.    | xml(url)  |   Load an XML script   |     |   TO |   variable|
  6818.    | oc        |   Report on completion |   x |      |           |
  6819.    | of        |   Report failure       |   x |      |           |
  6820.    |___________|________________________|_____|______|___________|
  6821.  
  6822.    The "language" action define is qualified by an URL name and by a set
  6823.    of initial parameters as in for example:
  6824.  
  6825.          S: script/java(http://scripts.example.net/credit-
  6826.             card.java,long,1234)
  6827.  
  6828.  
  6829.  
  6830.  
  6831.  
  6832.  
  6833.  
  6834. Arango, et al.               Informational                    [Page 122]
  6835.  
  6836. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6837.  
  6838.  
  6839.    The current definition defines keywords for the most common
  6840.    languages.  More languages may be defined in further version of this
  6841.    documents.  For each language, an API specification will describe how
  6842.    the scripts can issue local "notificationRequest" commands, and
  6843.    receive the corresponding notifications.
  6844.  
  6845.    The script produces an output which consists of one or several text
  6846.    string, separated by commas.  The text string are reported as a
  6847.    commentary in the report on completion, as in for example:
  6848.  
  6849.          O: script/oc(21223456794567,9738234567)
  6850.  
  6851.    The failure report may also return a string, as in:
  6852.  
  6853.          O: script/oc(21223456794567,9738234567)
  6854.  
  6855.    The definition of the script environment and the specific actions in
  6856.    that environment are for further study.
  6857.  
  6858. 6.2.  Basic endpoint types and profiles
  6859.  
  6860.    We define the following basic endpoint types and profiles:
  6861.  
  6862.    *  Trunk gateway (ISUP)
  6863.  
  6864.    *  Trunk gateway (MF)
  6865.  
  6866.    *  Network Access Server (NAS)
  6867.  
  6868.    *  Combined NAS/VOIP gateway
  6869.  
  6870.    *  Access Gateway
  6871.  
  6872.    *  Residential Gateway
  6873.  
  6874.    *  Announcement servers
  6875.  
  6876.  
  6877.  
  6878.  
  6879.  
  6880.  
  6881.  
  6882.  
  6883.  
  6884.  
  6885.  
  6886.  
  6887.  
  6888.  
  6889.  
  6890. Arango, et al.               Informational                    [Page 123]
  6891.  
  6892. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6893.  
  6894.  
  6895.    These gateways are supposed to implement the following packages
  6896.  
  6897.        ___________________________________________________________
  6898.       | Gateway                    |   Supported packages        |
  6899.       |____________________________|_____________________________|
  6900.       | Trunk gateway (ISUP)       |   GM, DTMF, TK, RTP         |
  6901.       | Trunk gateway (MF)         |   GM, MF, DTMF, TK, RTP     |
  6902.       | Network Access Server (NAS)|   GM, MF, TK, NAS           |
  6903.       | Combined NAS/VOIP gateway  |   GM, MF, DTMF, TK, NAS, RTP|
  6904.       | Access Gateway (VOIP)      |   GM, DTMF, MF, RTP         |
  6905.       | Access Gateway (VOIP+NAS)  |   GM, DTMF, MF, NAS, RTP    |
  6906.       | Residential Gateway        |   GM, DTMF, Line, RTP       |
  6907.       | Announcement Server        |   ANN, RTP                  |
  6908.       |____________________________|_____________________________|
  6909.  
  6910.  
  6911.    Advanced announcement servers may also support the Script package.
  6912.  
  6913.    Advanced trunking servers may support the ANN package, the Script
  6914.    package, and in some cases the Line and Handset package as well.
  6915.  
  6916. 7.  Versions and compatibility
  6917.  
  6918. 7.1.  Differences between version 1.0 and draft 0.5
  6919.  
  6920.    Draft 0-5 was issued in February 1999, as the last update of draft
  6921.    version 0.1. Version 1.0 benefits from implementation experience, and
  6922.    also aligns as much as possible with the CableLabs' NCS project. The
  6923.    main differences between the February draft and version 1.0 are:
  6924.  
  6925.    *  Specified more clearly that the encoding of three
  6926.       LocalConnectionOptions parameters, Encoding Method, Packetization
  6927.       Period and Bandwidth, shall follow the conventions laid out in
  6928.       SDP.
  6929.  
  6930.    *  Specified how the quarantine handling parameter governs the
  6931.       handling of detected but not yet specified events.
  6932.  
  6933.    *  Specified that unexpected timers or digits should trigger
  6934.       transmission of the dialed string.
  6935.  
  6936.    *  Removed the digit map syntax description from section 2.1.5 (it
  6937.       was redundant with section 3.4.)
  6938.  
  6939.    *  Corrected miscellaneous bugs in the formal syntax description.
  6940.  
  6941.    *  Aligned specification of commands with the CableLabs NCS
  6942.       specification.  This mostly affects the AuditEndpoint and
  6943.  
  6944.  
  6945.  
  6946. Arango, et al.               Informational                    [Page 124]
  6947.  
  6948. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  6949.  
  6950.  
  6951.       RestartInProgress commands.
  6952.  
  6953.    *  Aligned the handling of retransmission with the CableLabs NCS
  6954.       specification.
  6955.  
  6956.    *  Added the provisional response return code and corresponding
  6957.       behavior description.
  6958.  
  6959.    *  Added an optional reason code parameter to restart in progress.
  6960.  
  6961.    *  Added the possibility to audit the restart method, restart delay
  6962.       and reason code.
  6963.  
  6964. 7.2.  Differences between draft-04 and draft-05
  6965.  
  6966.    Differences are minor: corrected the copyright statement, and
  6967.    corrected a bug in the formal description.
  6968.  
  6969. 7.3.  Differences between draft-03 and draft-04
  6970.  
  6971.    Draft 04 corrects a number of minor editing mistakes that were
  6972.    pointed out during the review of draft 03, issued on February 1.
  6973.  
  6974. 7.4.  Differences between draft-02 and draft-03
  6975.  
  6976.    The main differences between draft-02, issued in January 22 1998, and
  6977.    draft 03 are:
  6978.  
  6979.    *  Introduced a discussion on endpoint types,
  6980.  
  6981.    * Introduced a discussion of the connection set-up procedure, and of
  6982.       the role of connection parameters,
  6983.  
  6984.    *  Introduced a notation of the connection identifier within event
  6985.       names,
  6986.  
  6987.    *  Documented the extension procedure for the LocalConnectionOptions
  6988.       parameter and for the ConnectionParameters parameter,
  6989.  
  6990.    *  Introduced a three-way handshake procedure, using a ResponseAck
  6991.       parameter, in order to allow gateways to delete copies of old
  6992.       responses without waiting for a 30 seconds timer,
  6993.  
  6994.    *  Expanded the security section to include a discussion of
  6995.       "uncontrolled barge-in."
  6996.  
  6997.    *  Propsed a "create two connections" command, as an appendix.
  6998.  
  6999.  
  7000.  
  7001.  
  7002. Arango, et al.               Informational                    [Page 125]
  7003.  
  7004. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7005.  
  7006.  
  7007. 7.5.  Differences between draft-01 and draft-02
  7008.  
  7009.    The main differences between draft-01, issued in November 1998, and
  7010.    draft 02 are:
  7011.  
  7012.    *  Added an ABNF description of the protocol.
  7013.  
  7014.    *  Specification of an EndpointConfiguration command,
  7015.  
  7016.    *  Addition of a "two endpoints" mode in the create connection
  7017.       command,
  7018.  
  7019.    *  Modification of the package wildcards from "$/$" to "*/all" at the
  7020.       Request of early implementors,
  7021.  
  7022.    *  Revision of some package definitions to better align with external
  7023.       specifications.
  7024.  
  7025.    *  Addition of a specification for the handling of "failover."
  7026.  
  7027.    *  Revision of the section on race conditions.
  7028.  
  7029. 7.6.  The making of MGCP from IPDC and SGCP
  7030.  
  7031.    MGCP version 0.1 results from the fusion of the SGCP and IPDC
  7032.    proposals.
  7033.  
  7034. 7.7.  Changes between MGCP and initial versions of SGCP
  7035.  
  7036.    MGCP version 0.1 (which subsumes SGCP version 1.2) introduces the
  7037.    following changes from SGCP version 1.1:
  7038.  
  7039.    *  Protocol name changed to MGCP.
  7040.  
  7041.    *  Introduce a formal wildcarding structure in the name of endpoints,
  7042.       inspired from IPDC, and detailed the usage of wildcard names in
  7043.       each operation.
  7044.  
  7045.    *  Naming scheme for events, introducing a package structure inspired
  7046.       from IPDC.
  7047.  
  7048.    *  New operations for audit endpoint, audit connection (requested by
  7049.       the Cablelabs) and restart (inspired from IPDC).
  7050.  
  7051.    *  New parameter to control the behavior of the notification request.
  7052.  
  7053.    *  Improved text on the detection and handling of race conditions.
  7054.  
  7055.  
  7056.  
  7057.  
  7058. Arango, et al.               Informational                    [Page 126]
  7059.  
  7060. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7061.  
  7062.  
  7063.    *  Syntax modification for event reporting, to incorporate package
  7064.       names.
  7065.  
  7066.    *  Definition of basic event packages (inspired from IPDC).
  7067.  
  7068.    *  Incorporation of mandatory and optional extension parameters,
  7069.       inspired by IPDC.
  7070.  
  7071.    SGCP version 1.1 introduces the following changes from version SGCP
  7072.       1.0:
  7073.  
  7074.    *  Extension parameters (X-??:)
  7075.  
  7076.    *  Error Code 511 (Unrecognized extension).
  7077.  
  7078.    *  All event codes can be used in RequestEvent, SignalRequest and
  7079.       ObservedEvent parameters.
  7080.  
  7081.    *  Error Code 512 (Not equipped to detect requested event).
  7082.  
  7083.    *  Error Code 513 (Not equipped to generate requested signal).
  7084.  
  7085.    *  Error Code 514 (Unrecognized announcement).
  7086.  
  7087.    *  Specific Endpoint-ID can be returned in creation commands.
  7088.  
  7089.    *  Changed the code for the ASDI display from "ad" to "asdi" to avoid
  7090.       conflict with the digits A and D.
  7091.  
  7092.    *  Changed the code for the answer tone from "at" to "aw" to avoid
  7093.       conflict with the digit A and the timer mark T
  7094.  
  7095.    *  Changed the code for the busy tone from "bt" to "bz" to avoid
  7096.       conflict with the digit B and the timer mark T
  7097.  
  7098.    *  Specified that the continuity tone value is "co" (CT was
  7099.       incorrectly used in several instances; CT conflicts with .)
  7100.  
  7101.    *  Changed the code for the dial tone from "dt" to "dl" to avoid
  7102.       conflict with the digit D and the timer mark T
  7103.  
  7104.    *  Added a code point for announcement requests.
  7105.  
  7106.    *  Added a code point for the "wink" event.
  7107.  
  7108.    *  Set the "octet received" code in the "Connection Parameters" to
  7109.       "OR" (was set to RO, but then "OR" was used throughout all
  7110.       examples.)
  7111.  
  7112.  
  7113.  
  7114. Arango, et al.               Informational                    [Page 127]
  7115.  
  7116. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7117.  
  7118.  
  7119.    *  Added a "data" mode.
  7120.  
  7121.    *  Added a description of SDP parameters for the network access mode
  7122.       (NAS).
  7123.  
  7124.    *  Added four flow diagrams for the network access mode.
  7125.  
  7126.    *  Incorporated numerous editing suggestions to make the description
  7127.       easier to understand. In particular, cleared the confusion between
  7128.       requests, queries, functions and commands.
  7129.  
  7130.    *  Defined the continuity test mode as specifying a dual-tone
  7131.       transponder, while the loopback mode can be used for a single tone
  7132.       test.
  7133.  
  7134.    *  Added event code "OC", operation completed.
  7135.  
  7136.    *  Added the specification of the "quarantine list", which clarifies
  7137.       the expected handling of events and notifications.
  7138.  
  7139.    *  Added the specification of a "wildcard delete" operation.
  7140.  
  7141. 8.  Security Considerations
  7142.  
  7143.    Security issues are discussed in section 5.
  7144.  
  7145. 9.  Acknowledgements
  7146.  
  7147.    We want to thank here the many reviewers who provided us with advice
  7148.    on the design of SGCP and then MGCP, notably Flemming Andreasen,
  7149.    Sankar Ardhanari, Francois Berard, David Auerbach, Bob Biskner, David
  7150.    Bukovinsky, Jerry Kamitses, Oren Kudevitzki, Barry Hoffner, Troy
  7151.    Morley, Dave Oran, Jeff Orwick, John Pickens, Lou Rubin, Chip Sharp,
  7152.    Paul Sijben, Kurt Steinbrenner, Joe Stone and Stuart Wray.
  7153.  
  7154.    The version 0.1 of MGCP is heavily inspired by the "Internet Protocol
  7155.    Device Control" (IPDC) designed by the Technical Advisory Committee
  7156.    set up by Level 3 Communications.  Whole sets of text have been
  7157.    retrieved from the IP Connection Control protocol, IP Media Control
  7158.    protocol, and IP Device Management.  The authors wish to acknowledge
  7159.    the contribution to these protocols made by Ilya Akramovich, Bob
  7160.    Bell, Dan Brendes, Peter Chung, John Clark, Russ Dehlinger, Andrew
  7161.    Dugan, Isaac Elliott, Cary FitzGerald, Jan Gronski, Tom Hess, Geoff
  7162.    Jordan, Tony Lam, Shawn Lewis, Dave Mazik, Alan Mikhak, Pete
  7163.    O'Connell, Scott Pickett, Shyamal Prasad, Eric Presworsky, Paul
  7164.    Richards, Dale Skran, Louise Spergel, David Sprague, Raj Srinivasan,
  7165.    Tom Taylor and Michael Thomas.
  7166.  
  7167.  
  7168.  
  7169.  
  7170. Arango, et al.               Informational                    [Page 128]
  7171.  
  7172. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7173.  
  7174.  
  7175. 10.  References
  7176.  
  7177.    *  Schulzrinne, H., Casner, S., Frederick, R. and V. Jacobson, "RTP:
  7178.       A Transport Protocol for Real-Time Applications", RFC 1889,
  7179.       January 1996.
  7180.  
  7181.    *  Schulzrinne, H., "RTP Profile for Audio and Video Conferences with
  7182.       Minimal Control", RFC 1890, January 1996.
  7183.  
  7184.    *  Handley, M and V. Jacobson, "SDP: Session Description Protocol",
  7185.       RFC 2327, April 1998.
  7186.  
  7187.    *  Handley, M., "SAP - Session Announcement Protocol", Work in
  7188.       Progress.
  7189.  
  7190.    *  Handley, M., Schulzrinne, H. and E. Schooler, "Session Initiation
  7191.       Protocol (SIP)", RFC 2543, March 1999.
  7192.  
  7193.    *  Schulzrinne, H., Rao, A. and R. Lanphier, "Real Time Streaming
  7194.       Protocol (RTSP)", RFC 2326, April 1998.
  7195.  
  7196.    *  ITU-T, Recommendation Q.761, "FUNCTIONAL DESCRIPTION OF THE ISDN
  7197.       USER PART OF SIGNALLING SYSTEM No. 7", (Malaga-Torremolinos, 1984;
  7198.       modified at Helsinki, 1993)
  7199.  
  7200.    *  ITU-T, Recommendation Q.762, "GENERAL FUNCTION OF MESSAGES AND
  7201.       SIGNALS OF THE ISDN USER PART OF SIGNALLING SYSTEM No. 7",
  7202.       (MalagaTorremolinos, 1984; modified at Helsinki, 1993)
  7203.  
  7204.    *  ITU-T, Recommendation H.323 (02/98), "PACKET-BASED MULTIMEDIA
  7205.       COMMUNICATIONS SYSTEMS."
  7206.  
  7207.    *  ITU-T, Recommendation H.225, "Call Signaling Protocols and Media
  7208.       Stream Packetization for Packet Based Multimedia Communications
  7209.       Systems."
  7210.  
  7211.    *  ITU-T, Recommendation H.245 (02/98), "CONTROL PROTOCOL FOR
  7212.       MULTIMEDIA COMMUNICATION."
  7213.  
  7214.    *  Kent, S. and  R. Atkinson, "Security Architecture for the Internet
  7215.       Protocol", RFC 2401, November 1998.
  7216.  
  7217.    *  Kent, S. and  R. Atkinson, "IP Authentication Header", RFC 2402,
  7218.       November 1998.
  7219.  
  7220.    *  Kent, S. and  R. Atkinson, "IP Encapsulating Security Payload
  7221.       (ESP)", RFC 2406, November 1998.
  7222.  
  7223.  
  7224.  
  7225.  
  7226. Arango, et al.               Informational                    [Page 129]
  7227.  
  7228. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7229.  
  7230.  
  7231.    *  Crocker, D. and  P. Overell, "Augmented BNF for Syntax
  7232.       Specifications:  ABNF", RFC 2234, November 1997.
  7233.  
  7234. 11.  Authors' Addresses
  7235.  
  7236.    Mauricio Arango
  7237.    RSL COM Latin America
  7238.    6300 N.W. 5th Way, Suite 100
  7239.    Ft. Lauderdale, FL 33309
  7240.  
  7241.    Phone: (954) 492-0913
  7242.    EMail: marango@rslcom.com
  7243.  
  7244.  
  7245.    Andrew Dugan
  7246.    Level3 Communications
  7247.    1450 Infinite Drive
  7248.    Louisville, CO 80027
  7249.  
  7250.    Phone: (303)926 3123
  7251.    EMail: andrew.dugan@l3.com
  7252.  
  7253.  
  7254.    Isaac Elliott
  7255.    Level3 Communications
  7256.    1450 Infinite Drive
  7257.    Louisville, CO 80027
  7258.  
  7259.    Phone: (303)926 3123
  7260.    EMail: ike.elliott@l3.com
  7261.  
  7262.  
  7263.  
  7264.  
  7265.  
  7266.  
  7267.  
  7268.  
  7269.  
  7270.  
  7271.  
  7272.  
  7273.  
  7274.  
  7275.  
  7276.  
  7277.  
  7278.  
  7279.  
  7280.  
  7281.  
  7282. Arango, et al.               Informational                    [Page 130]
  7283.  
  7284. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7285.  
  7286.  
  7287.    Christian Huitema
  7288.    Telcordia Technologies
  7289.    MCC 1J236B
  7290.    445 South Street
  7291.    Morristown, NJ 07960
  7292.    U.S.A.
  7293.  
  7294.    Phone: +1 973-829-4266
  7295.    EMail: huitema@research.telcordia.com
  7296.  
  7297.  
  7298.    Scott Pickett
  7299.    Vertical Networks
  7300.    1148 East Arques Ave
  7301.    Sunnyvale, CA 94086
  7302.  
  7303.    Phone: (408) 523-9700 extension 200
  7304.    EMail: ScottP@vertical.com
  7305.  
  7306.  
  7307.    Further information is available on the SGCP web site:
  7308.  
  7309.            http://www.argreenhouse.com/SGCP/
  7310.  
  7311.  
  7312.  
  7313.  
  7314.  
  7315.  
  7316.  
  7317.  
  7318.  
  7319.  
  7320.  
  7321.  
  7322.  
  7323.  
  7324.  
  7325.  
  7326.  
  7327.  
  7328.  
  7329.  
  7330.  
  7331.  
  7332.  
  7333.  
  7334.  
  7335.  
  7336.  
  7337.  
  7338. Arango, et al.               Informational                    [Page 131]
  7339.  
  7340. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7341.  
  7342.  
  7343. 12.  Appendix A: Proposed "MoveConnection" command
  7344.  
  7345.    It has been proposed to create a new command, that would move an
  7346.    existing connection from one endpoint to another, on the same
  7347.    gateway.  This command would be specially useful for handling certain
  7348.    call services, such as call forwarding between endpoints served by
  7349.    the same gateway.
  7350.  
  7351.          [SecondEndPointId,]
  7352.          [ConnectionId,]
  7353.          [LocalConnectionDescriptor]
  7354.           <--- ModifyConnection(CallId,
  7355.                                 EndpointId,
  7356.                                 ConnectionId,
  7357.                                 SecondEndPointId,
  7358.                                 [NotifiedEntity,]
  7359.                                 [LocalConnectionOptions,]
  7360.                                 [Mode,]
  7361.                                 [RemoteConnectionDescriptor,]
  7362.                                 [Encapsulated NotificationRequest,]
  7363.                                 [Encapsulated EndpointConfiguration])
  7364.  
  7365.  
  7366.    The parameters used are the same as in the ModifyConnection command,
  7367.    with the addition of a SecondEndpointId that identifies the endpoint
  7368.    towards which the connection is moved.
  7369.  
  7370.    The EndpointId should be the fully qualified endpoint identifier of
  7371.    the endpoint on which the connection has been created. The local name
  7372.    shall not use the wildcard convention.
  7373.  
  7374.    The SecondEndpointId shall be the endpoint identifier of the endpoint
  7375.    towards which the connection has been created. The "any of" wildcard
  7376.    convention can be used, but not the "all of" convention.  If the
  7377.    SecondEndpointId parameter is unqualified, the gateway will choose a
  7378.    value, that will be returned to the call agent as a response
  7379.    parameter.
  7380.  
  7381.    The command will result in the "move" of the existing connection to
  7382.    the second endpoint.  Depending on gateway implementations, the
  7383.    connection identifier of the connection after the move may or may not
  7384.    be the same as the connection identifier before the move.  If it is
  7385.    not the same, the new value is returned as a response parameter.
  7386.  
  7387.    The intent of the command is to effect a local relocation of the
  7388.    connection, without having to modify such transmission parameters as
  7389.    IP addresses and port, and thus without forcing the call agent to
  7390.    signal the change of parameters to the remote gateway, at the other
  7391.  
  7392.  
  7393.  
  7394. Arango, et al.               Informational                    [Page 132]
  7395.  
  7396. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7397.  
  7398.  
  7399.    end of the connection.  However, gateway architectures may not always
  7400.    allow such transparent moves.  For example, some architectures could
  7401.    allow specific IP addresses to different boards that handles specific
  7402.    group of endpoints.  If for any reason the transmission parameters
  7403.    have to be changed as a result of the move, the new
  7404.    LocalConnectionDescriptor is returned as a response parameter.
  7405.  
  7406.    The LocalConnectionOptions, Mode, and RemoteConnectionDescriptor,
  7407.    when present, are applied after the move.
  7408.  
  7409.    The RequestedEvents, RequestIdentifier, DigitMap, SignalRequests,
  7410.    QuarantineHandling and DetectEvents parameters are optional.  They
  7411.    can be used by the Call Agent to transmit a NotificationRequest that
  7412.    is executed simultaneously with the move of the connection. When
  7413.    these parameters are present, the NotificationRequest applies to the
  7414.    second endpoint.
  7415.  
  7416.    When these parameters are present, the move and the
  7417.    NotificationRequests should be synchronized, which means that both
  7418.    should be accepted, or both refused.  The NotifiedEntity parameter,
  7419.    if present, applies to both the ModifyConnection and the
  7420.    NotificationRequest command.
  7421.  
  7422.    The command may carry an encapsulated EndpointConfiguration command,
  7423.    that will also apply to the second endpoint.  When this command is
  7424.    present, the parameters of the EndpointConfiguration command are
  7425.    inserted after the normal parameters of the MoveConnection with the
  7426.    exception of the SecondEndpointId, which is not replicated. The End-
  7427.    pointConfiguration command may be encapsulated together with an
  7428.    encapsulated NotificationRequest command.
  7429.  
  7430.    The encapsulated EndpointConfiguration command shares the fate of the
  7431.    MoveConnection command.  If the MoveConnection is rejected, the End-
  7432.    pointConfiguration is not executed.
  7433.  
  7434. 12.1.  Proposed syntax modification
  7435.  
  7436.    The only syntax modification necessary for the addition of the
  7437.    moveConnection command is the addition of the keyword MOVE to the
  7438.    authorized values in the MGCPVerb clause of the formal syntax.
  7439.  
  7440.  
  7441.  
  7442.  
  7443.  
  7444.  
  7445.  
  7446.  
  7447.  
  7448.  
  7449.  
  7450. Arango, et al.               Informational                    [Page 133]
  7451.  
  7452. RFC 2705         Media Gateway Control Protocol (MGCP)      October 1999
  7453.  
  7454.  
  7455. 13.  Full Copyright Statement
  7456.  
  7457.    Copyright (C) The Internet Society (1999).  All Rights Reserved.
  7458.  
  7459.    This document and translations of it may be copied and furnished to
  7460.    others, and derivative works that comment on or otherwise explain it
  7461.    or assist in its implementation may be prepared, copied, published
  7462.    and distributed, in whole or in part, without restriction of any
  7463.    kind, provided that the above copyright notice and this paragraph are
  7464.    included on all such copies and derivative works.  However, this
  7465.    document itself may not be modified in any way, such as by removing
  7466.    the copyright notice or references to the Internet Society or other
  7467.    Internet organizations, except as needed for the purpose of
  7468.    developing Internet standards in which case the procedures for
  7469.    copyrights defined in the Internet Standards process must be
  7470.    followed, or as required to translate it into languages other than
  7471.    English.
  7472.  
  7473.    The limited permissions granted above are perpetual and will not be
  7474.    revoked by the Internet Society or its successors or assigns.
  7475.  
  7476.    This document and the information contained herein is provided on an
  7477.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  7478.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  7479.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  7480.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  7481.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  7482.  
  7483. Acknowledgement
  7484.  
  7485.    Funding for the RFC Editor function is currently provided by the
  7486.    Internet Society.
  7487.  
  7488.  
  7489.  
  7490.  
  7491.  
  7492.  
  7493.  
  7494.  
  7495.  
  7496.  
  7497.  
  7498.  
  7499.  
  7500.  
  7501.  
  7502.  
  7503.  
  7504.  
  7505.  
  7506. Arango, et al.               Informational                    [Page 134]
  7507.  
  7508.