diff --git a/marked/H/T-REC-H.100-198811-I_PDF-E/2dfa6ac3edfe874f68aa0cbccaa42322_img.jpg b/marked/H/T-REC-H.100-198811-I_PDF-E/2dfa6ac3edfe874f68aa0cbccaa42322_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..64672153e39c851d9e16fdbc702e526c7ba7e8a7
--- /dev/null
+++ b/marked/H/T-REC-H.100-198811-I_PDF-E/2dfa6ac3edfe874f68aa0cbccaa42322_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:454a9958ffe168868cb7d38a0eb24418dafe31a7a4245c992089b2316ac37d3e
+size 7392
diff --git a/marked/H/T-REC-H.100-198811-I_PDF-E/547f726730e589392f239257a833ede3_img.jpg b/marked/H/T-REC-H.100-198811-I_PDF-E/547f726730e589392f239257a833ede3_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..69fad3ac71201ac6bea51a43abb1e4fe0aee4a06
--- /dev/null
+++ b/marked/H/T-REC-H.100-198811-I_PDF-E/547f726730e589392f239257a833ede3_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df8219974b8a84147118f45987edb6ae88b29432509baf13f1f3d33d91dd9340
+size 46134
diff --git a/marked/H/T-REC-H.100-198811-I_PDF-E/562f471e8153729557e6a4ee6343c32c_img.jpg b/marked/H/T-REC-H.100-198811-I_PDF-E/562f471e8153729557e6a4ee6343c32c_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..d58d184fcb4ca96c47405eee36d01cb7a0ca861f
--- /dev/null
+++ b/marked/H/T-REC-H.100-198811-I_PDF-E/562f471e8153729557e6a4ee6343c32c_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a5a9649e5c594f4dd55c55e695fd6cfa078956d77635669f4a01a2b7f07e8416
+size 30336
diff --git a/marked/H/T-REC-H.100-198811-I_PDF-E/7a0db9703b68b3d06cdaeefc084c0006_img.jpg b/marked/H/T-REC-H.100-198811-I_PDF-E/7a0db9703b68b3d06cdaeefc084c0006_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..bf1c24b86d5fd197077079c2ef07a1bfd82266ea
--- /dev/null
+++ b/marked/H/T-REC-H.100-198811-I_PDF-E/7a0db9703b68b3d06cdaeefc084c0006_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2903ca09732428000b0a929f178b350b7ab314133f953194af1f1d3e25d78459
+size 36532
diff --git a/marked/H/T-REC-H.100-198811-I_PDF-E/9791722d75115ddcc599b07d7bc35d73_img.jpg b/marked/H/T-REC-H.100-198811-I_PDF-E/9791722d75115ddcc599b07d7bc35d73_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..aef92a722b7ca67f5f787bc8242bfde6c3835744
--- /dev/null
+++ b/marked/H/T-REC-H.100-198811-I_PDF-E/9791722d75115ddcc599b07d7bc35d73_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a0ba617a5f338bca0edb11b7a126be0fb30f2497b2ba26f08dbec7c37803b6b
+size 78806
diff --git a/marked/H/T-REC-H.100-198811-I_PDF-E/ebff22fb5dd6f50a90e44dca0f82f285_img.jpg b/marked/H/T-REC-H.100-198811-I_PDF-E/ebff22fb5dd6f50a90e44dca0f82f285_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..e343a55d5afef87186fbf87c03b79c8ee63acf78
--- /dev/null
+++ b/marked/H/T-REC-H.100-198811-I_PDF-E/ebff22fb5dd6f50a90e44dca0f82f285_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d80c4ef582ff915819438f0eb5d73376cb7d1d44beba04538662c6b68f4a5073
+size 34164
diff --git a/marked/H/T-REC-H.100-198811-I_PDF-E/f6d72d7c790e7f585532140f3971639a_img.jpg b/marked/H/T-REC-H.100-198811-I_PDF-E/f6d72d7c790e7f585532140f3971639a_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..afa9ee6a9a5aa4404b4ed329306232959183af4a
--- /dev/null
+++ b/marked/H/T-REC-H.100-198811-I_PDF-E/f6d72d7c790e7f585532140f3971639a_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:05056f2ed9f65789410e2431ee7016c95b5822b1896d5abb180a011ae9c9fc5a
+size 46333
diff --git a/marked/H/T-REC-H.100-198811-I_PDF-E/raw.md b/marked/H/T-REC-H.100-198811-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..ec134aaa6100ef08f7976a2416acaaf7c5ba31ae
--- /dev/null
+++ b/marked/H/T-REC-H.100-198811-I_PDF-E/raw.md
@@ -0,0 +1,236 @@
+
+
+
+
+The logo of the International Telecommunication Union (ITU) features the letters 'ITU' in a bold, sans-serif font, superimposed on a stylized globe with latitude and longitude lines.
+
+ITU logo
+
+INTERNATIONAL TELECOMMUNICATION UNION
+
+**ITU-T**
+
+**H.100**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**LINE TRANSMISSION
+OF NON-TELEPHONE SIGNALS**
+
+---
+
+**VISUAL TELEPHONE SYSTEMS**
+
+**ITU-T Recommendation H.100**
+
+(Extract from the *Blue Book*)
+
+---
+
+# NOTES
+
+1 ITU-T Recommendation H.100 was published in Fascicle III.6 of the *Blue Book*. This file is an extract from the *Blue Book*. While the presentation and layout of the text might be slightly different from the *Blue Book* version, the contents of the file are identical to the *Blue Book* version and copyright conditions remain unchanged (see below).
+
+2 In this Recommendation, the expression “Administration” is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+# **VISUAL TELEPHONE SYSTEMS**
+
+*(former Recommendation H.61, Geneva, 1980;
+amended at Malaga- Torremolinos, 1984
+and at Melbourne, 1988)*
+
+## **1 Definition**
+
+The **visual telephone service** is generally a two-way telecommunication service which uses a switched network of broadband analogue and/or digital circuits to establish connections among subscriber terminals, primarily for the purpose of transmitting live or static pictures.
+
+Special application one-way systems, e.g. surveillance and some information retrieval systems, or a non-switched videoconference service, can be regarded as degenerate cases of the visual telephone service.
+
+The visual telephone service also includes the associated speech.
+
+## **2 Facilities to be offered**
+
+The design of the visual telephone service shall be such as to offer at least the following basic facilities:
+
+- a) Transmission of live pictures such as head and shoulders of one person or a small group of persons, with moderate definition.
+- b) Transmission of the associated speech.
+- c) Transmission of graphics information such as drawings and documents with high definition (e.g. 625 lines or 525 lines).
+- d) Video conference service, with or without the use of split-screen techniques.
+
+The above-mentioned services shall, in general, be bi-directional, although uni-directional operation should be possible. Also, some of the facilities can be omitted, if not required, in order to minimize costs.
+
+*Note* – At the subscriber terminal, the use of ancillary equipments, e.g. for document reproduction, video tape recordings, etc., shall be possible.
+
+## **3 System parameters**
+
+### **3.1 Picture standards**
+
+3.1.1 The video standards of the subscriber sets shall be compatible with, readily convertible to, or identical to, the local broadcast television standards.
+
+3.1.2 Two classes of picture standards are recommended for the visual telephone system. They are given in Table 1/H.100.
+
+TABLE 1/H.100
+
+#### **Picture standards**
+
+| Class | Items | The region to which the figures should be applied | |
+|----------|-----------------------------------------------|-----------------------------------------------------------|-----------------------------------------------------------|
+| | | Regions where TV broadcasting uses 25 pictures per second | Regions where TV broadcasting uses 30 pictures per second |
+| a | Number of horizontal scanning lines . . . . . | 625 | 525 |
+| | Pictures per second . . . . . | 25
(2:1 interleaved) | 30
(2:1 interleaved) |
+| | Aspect ratio . . . . . | 4:3 | 4:3 |
+| | Video bandwidth. . . . . | 5 MHz | 4 MHz |
+| b | Number of horizontal scanning lines . . . . . | 313 | 263 |
+| | Pictures per second . . . . . | 25
(2:1 interleaved) | 30
(2:1 interleaved) |
+| | Aspect ratio . . . . . | 4:3 | 4:3 |
+| | Video bandwidth . . . . . | 1 MHz | 1 MHz |
+
+Class *a* standards are identical to the local broadcast video standards and will, in most cases, give sufficient definition for real-time picture transmission of a group of people (e.g. for conferencing) and of graphics material.
+
+Class *b* standards give sufficient definition for real-time transmission of a head and shoulder picture of one person or a small group. For the transmission of graphics information or other still pictures with high definition, a slow-scan technique has to be applied. For instance, a system using 625 or 525 horizontal scanning lines and 5, or less, pictures per second which gives a Class *a* definition in the 1 MHz bandwidth.
+
+Further study is required to define slow scanning parameters.
+
+## 4 Characteristics relating to split-screen techniques for Class *a* television conference systems1)
+
+In television conference systems which use split-screen techniques to make more effective use of the picture area, the following features for the terminals and transmitted signals are recommended. Preferred seating arrangement for such systems are given in Annex A.
+
+### 4.1 *Picture format*
+
+The transmitted picture should be 4 : 3 aspect ratio, split into upper and lower halves corresponding to the groups of seats. Viewed from the camera system, the left-hand group should be in the upper half and the right-hand group in the lower half.
+
+The split should occur at the end of lines 166 and 479 for 625-line television systems and at the end of line 142 in Field 1 and line 141 in Field 2 for 525-line television systems, as shown in Figure 1/H.100.
+
+Before display, the receive equipment may discard half lines and first and last lines which are liable to be averaged during standards conversion or vertical aperture correction of mixed signals.
+
+### 4.2 *Identification signal for split-screen system*
+
+#### 4.2.1 *Analogue video signals*
+
+The identification signal for split-screen system should be inserted in the vertical blanking period, because the control is required for each television frame or field.
+
+1) Split-screen techniques for systems using Class *b* standards require future study.
+
+The line where the identification signal is inserted and its signal format are under study.
+
+#### 4.2.2 *Digital video signals*
+
+An identification signal for split-screen system should be provided. In the case of codecs in Recommendations H.120 and H.130 the format shall be that specified in Recommendation H.130.
+
+### 4.3 *Compatibility with non-split-screen systems*
+
+The simplest kind of a video telephone terminal is composed of a single camera and other equipments. These terminals may be interconnected with split-screen system terminals. In that case, mechanical masks (if used) for the two split-screen displays (aspect ratio = 4 : 1.5) need to be removed, or if a display with 4 : 3 aspect ratio needs to be installed additionally.
+
+### 4.4 *Cameras and displays arrangement*
+
+The entrance pupils of the TV camera optical system should be as near as possible to the centre of the TV display showing remote conferees, in order to minimize errors in eye contact angle.
+
+Unless means are employed to place these pupils in line with the display, e.g. by use of half-silvered mirrors, the camera system should be sited above the display and central to it.
+
+In order to keep the maximum horizontal errors as small as possible, the cameras used had better be in a cross-fire system, as for example in Figure A-1/H.100, and the camera/display assembly should be sited on the central axis of the terminal. However, in some cases, adoption of parallel-fire system as shown also in Figure A-1/H.100 is necessary due to a restriction in equipment arrangement.
+
+Whether the two cameras are arranged in cross-fire or parallel-fire is left open to each Administration since the selection does not affect the interconnection of different systems.
+
+### 4.5 *Picture processing methods at transmitting terminals*
+
+In order to obtain the correct relationship between the signals from the two cameras for split-screen working, the cameras should be synchronized but the vertical drive pulses should be rephased. The drive to one should be advanced by one quarter of the vertical period while the drive to the other should be retarded by the same amount. This causes a central strip of the target of each camera tube to be used and so minimizes the effects of distortions in the corners of the targets. Figure B-1a)/H.100 illustrates the preferred method.
+
+Alternative methods which are not recommended although they do not give rise to problems of end-to-end compatibility are compared in Annex B.
+
+### 4.6 *Receiving equipment*
+
+The receiving equipment should be capable of working with discontinuities in the received signal that may be caused by switching between non-synchronous video sources.
+
+*Note* – A split-screen device should be capable of working with a codec with the input and output frequency tolerances as specified in Recommendation H.120.
+
+
+
+Diagram of the 625-line television system vertical format. It shows two fields, Field 1 and Field 2, each divided into 'Left hand Group' and 'Right hand Group'. Line numbers are marked at the top: 23 1/2, 166, 167, 310, 336, 479, 480, 623 1/2. The number of lines for each segment is marked at the bottom: 25, 143 1/2, 144, 25, 144, 143 1/2. The total number of lines for each field is 312 1/2.
+
+Left hand group: first complete lines 24 and 336
+last complete lines 166 and 479
+Right hand group: first complete lines 167 and 480
+last complete lines 310 and 622
+
+Lines 16-20 inclusive and 329-333 inclusive may contain identification, control or test signals.
+
+#### *a) 625-line television system*
+
+
+
+Diagram of the 525-line television system vertical format. It shows two fields, Field 1 and Field 2, each divided into 'Left hand Group' and 'Right hand Group'. Line numbers are marked at the top: 22, 142, 143, 263 1/2, 21 1/2, 141, 142, 262. The number of lines for each segment is marked at the bottom: 21, 121, 120 1/2, 21, 120 1/2, 121. The total number of lines for each field is 262 1/2. A small code 'CCITT-32372' is visible at the bottom right.
+
+Left hand group: first complete lines 22 (Field 1, 2)
+last complete lines 142 (Field 1), 141 (Field 2)
+Right hand group: first complete lines 143 (Field 1), 142 (Field 2)
+last complete lines 262 (Field 1, 2)
+
+Lines 10-21 inclusive in Field 1 and 9 1/2-21 1/2 inclusive in Field 2 may contain identification, control or test signals.
+
+#### *b) 525-line television system*
+
+*Note 1* — The method of defining the line number is following Fig. 2-1 of CCIR Report 624 for 625 system, and Fig. 2-3 for 525 system.
+
+*Note 2* — The notation which is used for line numbers is as follows. Line 23 1/2 means that the picture starts (or finishes) half-way along line number 23. When totalling lines, a half-line is shown separately, e.g. 143 + 1/2.
+
+FIGURE 1/H.100
+Vertical format of split-screen video signal
+
+## ANNEX A (to Recommendation H.100)
+
+### **Seating arrangements when applying split-screen techniques for class a system**
+
+Preferred arrangements for video conferences using split-screen techniques are:
+
+A.1 The conference terminal accommodation should be for 6 primary seats in two adjacent groups of 3 as shown in Figure A.1/H.100.
+
+Provision for additional seating behind may be made, so long as allowance is made for the central gap between the two halves. For example, 4 additional persons may be seated on a second row as in the Figure.
+
+A.2 The chairman's position should be in the centre of the left-hand group of seats (viewed from the camera) with user controls accessible from both this position and the one of the chairman's left.
+
+Consequently, when split-screen pictures are displayed, stacked as received (i.e. shown as 3 over 3), the chairman's position is standardized as top centre.
+
+The suite of 3 chairs containing the chairman's position should also be regarded as the primary position for occasions when only half of a studio is in use. Such standardization is necessary for connection of 3 studios in conference using time-division multiplex of pairs of TV signals to share a common trunk between two studios.
+
+
+
+The diagram illustrates a studio plan view for video conferencing. It shows a semi-circular arrangement of seats divided into two main groups: 'Primary seating (2 groups of 3)' and 'Secondary seating (2 groups of 2)'. The 'Preferred position for chairman' is marked in the center of the left-hand primary seating group. A 'Desk' is positioned in front of the seating area. Two 'Cameras' are shown on the right, with 'Optical axes' indicated by dashed lines. The cameras are labeled 'CCITT - 32351'. The diagram is divided into 'Top half scene' and 'Bottom half scene' by a horizontal line. A note indicates that solid line cameras are for cross-fire and dashed line cameras are for parallel-fire. The total seating in camera is 6 primary and 4 secondary.
+
+Studio plan view diagram showing seating arrangements and camera positions.
+
+*Note* – Solid line cameras are for cross-fire. Dashed line cameras are for parallel-fire.
+
+FIGURE A-1/H.100
+Studio plan view
+
+## ANNEX B
+
+(to Recommendation H.100)
+
+### **Picture processing methods in transmitting terminals**
+
+Alternative methods of obtaining the split-screen signal which are compatible with the recommended method and which might be useful for experiments and demonstrations are shown in *b)* and *c)* of Figure B-1/H.100. In method *b)*, the two cameras are directed upward and downward to pick up right and left halves of the conferencing room, respectively. Since circumferences of target and scanning areas are used, geometric and brightness distortions tend to occur. In method *c)*, vertical deflection currents are biased by the quantity corresponding to $\pm 1/4$ of target height. Vertical deflection bias adjustment is needed every time cameras are exchanged. In method *a)*, the vertical driving pulses are phase-shifted by $\pm 1/4$ V. The recommended method, *a)*, avoids the problems of methods *b)* and *c)*.
+
+
+
+Diagram (a) showing vertical driving pulses being phase shifted. A camera on the left points to two processing blocks labeled 'Shifted VD1' and 'Shifted VD2'. These blocks output to two intermediate frames showing people. The top frame has regions labeled B' and B, with a dashed line between them. The bottom frame has regions labeled A' and A, also with a dashed line. Both intermediate frames then point to a final frame on the right, which is divided into regions A and B by a dashed line.
+
+a) Vertical driving pulses are phase shifted
+
+
+
+Diagram (b) showing cameras directed upward and downward. A camera on the left has two output paths labeled 'Up' and 'Down'. The 'Up' path goes to a processing block and then to a frame with regions B' and B. The 'Down' path goes to a block labeled 'VD' and then to a frame with regions A' and A. Both frames point to a final frame on the right divided into regions A and B.
+
+b) Cameras are directed upward and downward
+
+
+
+Diagram (c) showing vertical deflection currents being biased. A camera on the left points to two processing blocks. The top block outputs to a frame with a 'Scan area' (top part) and a 'Target area' (bottom part), labeled with B' and B. The bottom block, labeled 'VD', outputs to a frame with regions A' and A. Both frames point to a final frame on the right divided into regions A and B. The text 'CCITT-49981' is in the bottom right corner.
+
+c) Vertical deflection currents are biased
+
+VD = vertical deflection
+
+FIGURE B-1/H.100
+Picture processing method at transmitting terminals
\ No newline at end of file
diff --git a/marked/H/T-REC-H.120-199303-I_PDF-E/raw.md b/marked/H/T-REC-H.120-199303-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..835acd68e5c2cdad2b6fb22883065b74cad27ebc
--- /dev/null
+++ b/marked/H/T-REC-H.120-199303-I_PDF-E/raw.md
@@ -0,0 +1,2494 @@
+
+
+
+
+ITU logo: A globe with a lightning bolt and the letters ITU.
+
+INTERNATIONAL TELECOMMUNICATION UNION
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.120**
+
+(03/93)
+
+**LINE TRANSMISSION
+OF NON-TELEPHONE SIGNALS**
+
+---
+
+**CODECS FOR VIDEOCONFERENCING
+USING PRIMARY DIGITAL GROUP
+TRANSMISSION**
+
+**ITU-T Recommendation H.120**
+
+(Previously "CCITT Recommendation")
+
+---
+
+# FOREWORD
+
+The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of the International Telecommunication Union. The ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Conference (WTSC), which meets every four years, established the topics for study by the ITU-T Study Groups which, in their turn, produce Recommendations on these topics.
+
+ITU-T Recommendation H.120 was revised by the ITU-T Study Group XV (1988-1993) and was approved by the WTSC (Helsinki, March 1-12, 1993).
+
+# --- NOTES
+
+1 As a consequence of a reform process within the International Telecommunication Union (ITU), the CCITT ceased to exist as of 28 February 1993. In its place, the ITU Telecommunication Standardization Sector (ITU-T) was created as of 1 March 1993. Similarly, in this reform process, the CCIR and the IFRB have been replaced by the Radiocommunication Sector.
+
+In order not to delay publication of this Recommendation, no change has been made in the text to references containing the acronyms "CCITT, CCIR or IFRB" or their associated entities such as Plenary Assembly, Secretariat, etc. Future editions of this Recommendation will contain the proper terminology related to the new ITU structure.
+
+2 In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+# CONTENTS
+
+*Page*
+
+| | | |
+|-----|----------------------------------------------------------------------------------------------------------------------------------------------------|----|
+| 1 | A codec for 625-lines, 50 fields/s and 2048 kbit/s transmission for intra-regional use and capable of interworking with the codec of 2..... | 1 |
+| 1.1 | Scope ..... | 1 |
+| 1.2 | Brief specification..... | 2 |
+| 1.3 | Video interface..... | 3 |
+| 1.4 | Source coder ..... | 3 |
+| 1.5 | Video multiplex coding ..... | 8 |
+| 1.6 | Transmission coding..... | 11 |
+| 1.7 | Error correction..... | 12 |
+| 2 | Codecs not requiring separate television standards conversion when used on interregional connections .... | 13 |
+| | A codec for 525-line, 60 fields/s and 1544 kbit/s transmission for intra-regional use and capable of interworking with the codec of clause 1 ..... | 13 |
+| 2.1 | Introduction ..... | 13 |
+| 2.2 | Brief specification..... | 13 |
+| 2.3 | Video interface..... | 14 |
+| 2.4 | Source coder ..... | 14 |
+| 2.5 | Video multiplex coding ..... | 15 |
+| 2.6 | Transmission coding..... | 15 |
+| 3 | A codec for 525-lines, 60 fields/s and 1544 kbit/s transmission for intra-regional use ..... | 16 |
+| 3.1 | Introduction ..... | 16 |
+| 3.2 | Outline of codec..... | 16 |
+| 3.3 | Brief specification..... | 16 |
+| 3.4 | Video interface..... | 18 |
+| 3.5 | Pre- and post-processing..... | 19 |
+| 3.6 | Source coding ..... | 21 |
+| 3.7 | Audio coding ..... | 44 |
+| 3.8 | Transmission coding..... | 44 |
+| | Annex A – Graphics option – 625 line ..... | 46 |
+| A.1 | Introduction ..... | 46 |
+| A.2 | Graphics codec for videoconferencing graphics – Mode 1 ..... | 46 |
+| A.3 | Graphics codec for videoconferencing-graphics – Mode 2 ..... | 48 |
+| | Annex B – Encryption option – 625 line ..... | 50 |
+| | Annex C – Graphics option – 525 line ..... | 50 |
+| C.1 | Introduction ..... | 50 |
+| C.2 | Facilities..... | 50 |
+| C.3 | Coding ..... | 50 |
+| C.4 | Transmission and synchronization..... | 51 |
+| C.5 | Decoder..... | 51 |
+| | Annex D – Encryption option – 525 line..... | 52 |
+| | Annex E – Colour decoding and coding filters ..... | 52 |
+| E.1 | Configuration..... | 52 |
+| E.2 | Basic filter characteristics..... | 54 |
+| E.3 | Advanced filter characteristics..... | 54 |
+| | Annex F – An example of coding control sequence..... | 55 |
+| | Annex G – Examples of entropy coding ..... | 56 |
+
+| | Page |
+|----------------------------------------------------------------------------------|-------------|
+| Appendix I – Outline description of operation of codecs in clauses 1 and 2 ..... | 58 |
+| Appendix II..... | 59 |
+| II.1 Cursor data..... | 59 |
+| II.2 Frame structure ..... | 60 |
+| II.3 Transmission of cursor data ..... | 60 |
+| References ..... | 60 |
+
+# INTRODUCTION
+
+Clause 1 specifies the codec, developed for operation with the 625-line, 50 field/s television standard and the 2048 kbit/s primary digital group. Its architecture has been chosen to permit variations in the detailed design of certain of the functional elements having the greatest influence on the picture quality. This enables future developments, aimed at improving the performance, to be incorporated without affecting the ability of different coders and decoders to interwork. For this reason, no details are given of such items as motion detectors or spatial and temporal filters. The Recommendation confines itself to the details necessary to enable a decoder correctly to interpret and decode the received signals.
+
+The annexes to clause 1 which can be found at the end of this Recommendation give details of some additional optional features which may be provided to supplement the basic design.
+
+Under the general heading of codecs not requiring separate television standards conversion when used on interregional connections, clause 2 describes a version of the codec for 525-line, 60 field/s and 1544 kbit/s operation which also provides automatic television standards conversion when connected to the version of the codec described in 1 via a re-multiplexing unit (to convert between frame structures defined in 2.1 and 2.3/G.704) at the junction of the 2048 and 1544 kbit/s digital paths. This codec is also suitable for use within regions using the 525-line, 60 field/s television standard and 1544 kbit/s transmission.
+
+Other implementations of 2 are to be studied, for example:
+
+- a version of the codec for 625-line, 50 field/s and 2048 kbit/s operation capable of interworking with the codec described in 3;
+- a version of the codec for 525-line, 60 field/s and 2048 kbit/s operation capable of interworking with the codec described in 1.
+
+Clause 3 describes a codec for intra-regional use in 525-line, 60 field/s and 1544 kbit/s regions.
+
+The frame structures associated with the codecs described in this Recommendation are to be found in Recommendation H.130.
+
+As the codecs are complex items using combined intraframe and interframe picture-coding techniques which tend to be known only to specialists, Appendix I is provided giving a brief outline of the principles involved in the codecs of 1 and 2.
+
+
+
+# CODECS FOR VIDEOCONFERENCING USING PRIMARY DIGITAL GROUP TRANSMISSION
+
+*(Malaga-Torremolinos, 1984; amended at Melbourne, 1988
+and at Helsinki, 1993)*
+
+The CCITT,
+
+*considering*
+
+- (a) that there is growing evidence of a customer demand for a videoconference service;
+- (b) that circuits to meet this demand can, at present, be provided effectively by digital transmission using the primary digital group;
+- (c) that the existence of different digital hierarchies and different television standards in different parts of the world complicates the problems of specifying coding and transmission standards for international connections;
+- (d) that the eventual use of switched digital transmission networks should be taken into account,
+
+*appreciating*
+
+that rapid advances are being made in research and development of video coding and bit-rate reduction techniques which may lead to further Recommendations being proposed for videoconferencing at bit rates which are multiples or submultiples of 384 kbit/s during subsequent study periods so that this Recommendation may be considered as the first of an evolving series of Recommendations,
+
+*and noting*
+
+that it is a basic objective of the CCITT to recommend a unique solution for international connections as far as possible,
+
+*recommends*
+
+that the codecs having signal processing and interface characteristics described in clauses 1, 2 and 3, should be used for international videoconference connections.
+
+NOTE – Codecs of types other than those described in this Recommendation are not precluded.
+
+# 1 A codec for 625-lines, 50 fields/s and 2048 kbit/s transmission for intra-regional1) use and capable of interworking with the codec of clause 2
+
+## 1.1 Scope
+
+Clause 1 defines the essential features of a codec for the digital transmission, at 2048 kbit/s, of signals for videoconference or visual telephone service in accordance with Recommendation H.100. The video input to the coder and output from the decoder in a 625-line, 50 fields/s signal, according to the “Class *a*” standard of Recommendation H.100, or alternatively, the 313-line, 50 fields/s signal of the “Class *b*” standard. Provision is also made for a sound channel and optional data channels. A brief description of the operation of the codec is given in Appendix I.
+
+---
+
+1) The term “intra-regional” is used here to describe connections within a group of countries which share a common television scanning standard and a common digital hierarchy, and may or may not be in geographical proximity. The term “inter-regional” is used here to describe connections between groups of countries which have different television scanning standards and/or different digital hierarchies.
+
+The Recommendation starts with a brief specification of the codec (see 1.2) and a description of the video interface. This is followed by details of the source coder (see 1.4) which provides analogue-to-digital conversion followed by recoding with substantial redundancy reduction in the face-to-face mode. Subclause 1.5 deals with the video multiplex coder which inserts instructions and addresses into the digitized video signal to control the decoder so that it correctly interprets the signals received. Subclause 1.6 describes the transmission coder which arranges the various digital signals (video, sound, data, signalling) into a form compatible with Recommendation G.732 for transmission over 2048 kbit/s digital paths. Subclause 1.7 describes optional forward error correction facilities. Provision is made in the digital frame structure for the inclusion of other optional facilities such as a graphics mode, encryption and multipoint conferencing. Details of such facilities as are at present available are given in the annexes to this Recommendation.
+
+## **1.2 Brief specification**
+
+### **1.2.1 Video input/output**
+
+The video input and output are standard 625-line, 50 field/s colour or monochrome television signals. The colour signals are in, or converted to, component form. Colour and monochrome operation are fully compatible.
+
+### **1.2.2 Digital output/input**
+
+The digital output and input are at 2048 kbit/s, compatible with the frame structure of Recommendation G.704.
+
+### **1.2.3 Sampling frequency**
+
+The video sampling frequency and the 2048 kHz network clock are asynchronous.
+
+### **1.2.4 Coding techniques**
+
+Conditional replenishment coding supplemented by adaptive digital filtering, differential PCM and variable-length coding are used to achieve low bit-rate transmission.
+
+### **1.2.5 Audio channel**
+
+An audio channel using 64 kbit/s is included. At present, coding is A-law according to Recommendation G.711, but provision is made for future use of more efficient coding.
+
+### **1.2.6 Mode of operation**
+
+The normal mode of operation is full duplex.
+
+### **1.2.7 Codec-to-network signalling**
+
+An optional channel for codec-to-network signalling is included. This conforms to emerging ideas in CCITT for switching 2-Mbit/s paths in the ISDN.
+
+### **1.2.8 Data channels**
+
+Optional $2 \times 64$ kbit/s and $1 \times 32$ kbit/s data channels are available. These are used for video if not required for data.
+
+### **1.2.9 Forward error correction**
+
+Optional forward error correction is available. This is required only if the long-term error rate of the channel is worse than 1 in $10^6$ .
+
+### **1.2.10 Additional facilities**
+
+Provision is made in the digital frame structure for the future introduction of encryption, a graphic mode and multipoint facilities.
+
+### 1.2.11 Propagation delay
+
+When the coder buffer is empty and the decoder buffer full, the coder delay is less than 5 ms and the decoder delay is $130 \pm 30$ ms at 2 Mbit/s or $160 \pm 36$ ms when only 1.5 Mbit/s are in use2).
+
+## 1.3 Video interface
+
+The normal video input is a 625-line, 50 field/s signal in accordance with CCIR Recommendation 472. When colour is being transmitted, the input (and output) video signals presented to the analogue/digital convertors (and from the digital/analogue convertors) are in colour-difference component form. The luminance and colour-difference components, $E'_Y$ , $(E'_R - E'_Y)$ and $(E'_B - E'_Y)$ are as defined in CCIR Report 624. The analogue video input (and output) interface with the codec may be in the form of colour-difference components, colour components (R, G, B) or as a composite colour signal. The video interface is as recommended in CCIR Recommendation 656.
+
+Optionally, any other video standard which can be converted to give 143 active lines per field may be used.
+
+## 1.4 Source coder
+
+### 1.4.1 Luminance component or monochrome
+
+#### 1.4.1.1 Analogue-to-digital conversion
+
+The signal is sampled to produce 256 picture samples per active line (320 samples per complete line). The sampling pattern is orthogonal and line, field and picture repetitive. For the 625-line input, the sampling frequency is 5.0 MHz, locked to the video waveform.
+
+Uniformly quantized PCM with 8 bits/sample is used.
+
+Black level corresponds to level 16 (00010000).
+
+White level corresponds to level 239 (11101111).
+
+PCM code words outside this range are forbidden (the codes being used for other purposes). For the purposes of prediction and interpolation, the final picture element in each active line (i.e. picture element 255) is set to level 128 in both encoder and decoder.
+
+In all arithmetic operations, 8-bit arithmetic is used and the bits below the binary point are truncated at each stage of division.
+
+#### 1.4.1.2 Pre- and post-filtering
+
+In addition to conventional anti-aliasing filtering prior to analogue-to-digital conversion, a digital transversal filtering operation is carried out on the 625-line signal to reduce the vertical definition of the picture prior to conditional replenishment coding. As a result of this process, 143 active lines per field are used instead of the $287\frac{1}{2}$ active lines of the 625-line signal, although the effective vertical definition is greater than one-half of that of a normal 625-line display. An interpolation process in the decoder restores the 625-line signal waveform.
+
+#### 1.4.1.3 Conditional replenishment coding
+
+A movement detector identifies clusters of picture elements which are deemed to be moving. The basic feature is a frame memory which stores 2 fields of 143 lines, each line containing 256 addressable points. The memory is updated at the picture rate and differences between the incoming signal and the corresponding stored values are used to determine the moving area in the coder. A similar frame memory must exist at the decoder and be similarly updated under the control of addressing information received from the coder. It is not necessary to specify the techniques used for movement detection because they do not affect interworking, although they do affect the resultant picture quality.
+
+Detected moving areas are transmitted by differential PCM with a maximum of 16 quantization levels. The first picture element in each moving area is transmitted by PCM. Variable-length coding is used on the DPCM code words.
+
+---
+
+2) These are typical figures. The delays depend on the detailed implementation used.
+
+The first picture element of each cluster and the complete PCM lines, when they are transmitted to provide systematic or forced updating, are coded in accordance with 1.4.1.1.
+
+##### 1.4.1.3.1 DPCM prediction algorithm
+
+The algorithm used for DPCM prediction is:
+
+$$X = \frac{A + D}{2}, \text{ where } X \text{ is the sample being predicted.}$$
+
+See Figure 1.
+
+For the purpose of prediction, line and field blanking are assumed to be at level 128 (out of 256).
+
+
+
+The diagram shows two horizontal lines representing video fields. The top line is labeled 'Previous line' and contains three points marked with black dots, labeled B, C, and D from left to right. The bottom line is labeled 'Previous field' and contains four points marked with black dots, labeled AS, A, X, and T1513820-93d01 from left to right. Vertical alignment is indicated by the labels: B is above A, C is above X, and D is above T1513820-93d01. This illustrates that the sample X is predicted from the sample A on the previous field and the sample D on the previous line.
+
+Diagram illustrating the DPCM prediction algorithm. It shows two horizontal lines: 'Previous line' and 'Previous field'. The 'Previous line' has three points labeled B, C, and D. The 'Previous field' has four points labeled A\_S, A, X, and T1513820-93d01. The points A, C, and D are vertically aligned, indicating that X is the sample being predicted from A and D.
+
+FIGURE 1/H.120
+Identification of samples
+
+##### 1.4.1.3.2 Quantization law and variable-length coding
+
+511 input levels are quantized to a maximum of 16 output levels. The quantizer does not assume the use of modulo 256 arithmetic.
+
+The quantization law and associated variable-length codes which are used for both luminance and colour-difference picture elements in moving areas which are not horizontally subsampled are given in Table 1.
+
+**Error! Cannot open file.**
+
+The end-of-cluster code is 1 0 0 1 and is designated as code number 11. The end-of-cluster code is omitted at the end of the last cluster in a line irrespective of whether it is a luminance cluster or a colour-difference cluster.
+
+#### 1.4.1.4 Subsampling
+
+As the buffer fills, horizontal subsampling and field/field subsampling are introduced.
+
+##### 1.4.1.4.1 Horizontal subsampling
+
+Horizontal subsampling is carried out only in moving areas. Normally, in this mode, only even elements are transmitted on even numbered lines and odd elements on odd numbered lines. This gives rise to a line quincunx pattern in moving areas.
+
+Omitted elements are interpolated in the decoder by averaging the two horizontally adjacent elements.
+
+Interpolated picture elements are placed in the frame stores. A moving area cluster will always start with a PCM value and finish with a transmitted DPCM picture element, even during subsampling. This means that in some instances, the transmitted cluster needs to be extended by one element in comparison with the moving area declared by the movement detector. At the end of the active line, however, this cannot occur as clusters must not extend into blanking, so cluster shortening by one element can be necessary.
+
+TABLE 1/H.120
+
+###### **Code table for non-horizontally-subsampled moving areas**
+
+| Input levels | Output levels | Variable-length code | Code No. |
+|--------------|---------------|----------------------|----------|
+| -255 to -125 | -141 | 1 0 0 0 0 0 0 0 0 1 | 17 |
+| -124 to -95 | -108 | 1 0 0 0 0 0 0 0 1 | 16 |
+| -94 to -70 | -81 | 1 0 0 0 0 0 0 1 | 15 |
+| -69 to -49 | -58 | 1 0 0 0 0 0 1 | 14 |
+| -48 to -32 | -39 | 1 0 0 0 0 1 | 13 |
+| -31 to -19 | -24 | 1 0 0 0 1 | 12 |
+| -18 to -9 | -13 | 1 0 1 | 10 |
+| -8 to -1 | -4 | 1 1 | 9 |
+| 0 to 7 | +3 | 0 1 | 1 |
+| 8 to 17 | +12 | 0 0 1 | 2 |
+| 18 to 30 | +23 | 0 0 0 1 | 3 |
+| 31 to 47 | +38 | 0 0 0 0 1 | 4 |
+| 48 to 68 | +57 | 0 0 0 0 0 1 | 5 |
+| 69 to 93 | +80 | 0 0 0 0 0 0 1 | 6 |
+| 94 to 123 | +107 | 0 0 0 0 0 0 0 1 | 7 |
+| 124 to 255 | +140 | 0 0 0 0 0 0 0 0 1 | 8 |
+
+Adaptive element subsampling allows the transmission of normally omitted elements, either to remove interpolation errors or, to provide a softer switch to subsampling and thus improve the picture quality. The signalling of the extra elements is achieved by using, on horizontally subsampled lines only, 8 quantizing levels for normally transmitted elements and the remaining 8 levels for the extra elements. Also, a cluster can finish either on a normally transmitted element or an “extra” element.
+
+During horizontally subsampled lines, the quantization law and variable-length code shown in Table 2 will be used for both luminance and colour-difference samples in moving areas.
+
+With regard to prediction, if element A is a non-transmitted element in a moving area, it is replaced by $A_s$ (see Figure 1); if element D is part of a subsampled moving area, and not transmitted in the current frame, it is replaced by C.
+
+##### 1.4.1.4.2 Field/field subsampling
+
+Either field can be omitted. In the omitted field, interpolation takes place only in those parts of the picture which are estimated to be moving. “Stationary” areas remain unchanged.
+
+The estimated moving areas are formed from an OR function on the moving areas in the past and future fields, as shown in Figure 2. In the figure, x is a moving element if a OR b OR c OR d are moving.
+
+For the purpose of field interpolation, PCM lines are considered as non-moving and field blanking is assumed to be at a level of 128 out of 256.
+
+TABLE 2/H.120
+
+###### **Quantization law and variable-length code table**
+
+| Quantization | | Variable-length codes | | | |
+|--------------|---------------|-----------------------|----------|---------------------|----------|
+| Input range | Output levels | Normal elements | Code No. | Extra elements | Code No. |
+| -255 to -41 | -50 | 1 0 0 0 0 0 0 1 | 15 | 1 0 0 0 0 0 0 0 0 1 | 17 |
+| -40 to -24 | -31 | 1 0 0 0 0 1 | 13 | 1 0 0 0 0 0 0 1 | 16 |
+| -23 to -11 | -16 | 1 0 1 | 10 | 1 0 0 0 0 0 1 | 14 |
+| -10 to -1 | -5 | 1 1 | 9 | 1 0 0 0 1 | 12 |
+| 0 to +9 | +4 | 0 1 | 1 | 0 0 0 1 | 3 |
+| 0 to 22 | +15 | 0 0 1 | 2 | 0 0 0 0 0 1 | 5 |
+| 23 to 39 | +30 | 0 0 0 0 1 | 4 | 0 0 0 0 0 0 0 1 | 7 |
+| 40 to 255 | +49 | 0 0 0 0 0 0 1 | 6 | 0 0 0 0 0 0 0 0 0 1 | 8 |
+
+
+
+The diagram shows three horizontal lines representing video fields. The left field is labeled 'Field B1 (transmitted)' and contains two samples, 'a' and 'b', marked with dots. The middle field is labeled 'Field B2 (omitted)' and contains one sample, 'x', marked with a dot. The right field is labeled 'Field A1 (transmitted)' and contains two samples, 'c' and 'd', marked with dots. The samples are aligned vertically across the fields, indicating they are from the same spatial location at different times.
+
+Diagram illustrating the interpolation process for luminance signals. It shows three fields: Field B1 (transmitted), Field B2 (omitted), and Field A1 (transmitted). Field B1 contains two samples, 'a' and 'b'. Field B2 contains one sample, 'x'. Field A1 contains two samples, 'c' and 'd'. The diagram shows the interpolation of 'x' from 'a', 'b', 'c', and 'd'.
+
+T1513830-93/d02
+
+FIGURE 2/H.120
+
+In the interpolator for monochrome or luminance signals, the operations $\frac{a + b}{2}$ and $\frac{c + d}{2}$ are carried out before the combined average is taken. Thus
+
+$$x = \frac{\left[ \frac{a + b}{2} \right] + \left[ \frac{c + d}{2} \right]}{2}$$
+
+The interpolated values are placed in the frame store.
+
+### 1.4.2 Colour-difference components
+
+#### 1.4.2.1 Analogue-to-digital conversion
+
+The signal is sampled to produce 52 samples per active line (64 samples per complete line). The sampling pattern is orthogonal and line-, field- and picture-repetitive. For the 625-line input, the sampling frequency is 1.0 MHz, locked to the video waveform.
+
+The $(E'_R - E'_Y)$ and $(E'_B - E'_Y)$ samples are sited so that the centre of the first colour-difference sample on any line is co-sited with the centre of the third luminance sample (addressed as number 2). The $(E'_R - E'_Y)$ and $(E'_B - E'_Y)$ signals are stored and transmitted on alternate lines of the coded picture. The first active line of Field No. 1 contains $(E'_B - E'_Y)$ and the first active line of Field No. 2 contains $(E'_R - E'_Y)$ . The colour difference signal not being transmitted during any line is obtained at the decoder by interpolation.
+
+The vertical filtering (see 1.4.2.2) is arranged so that the effective vertical positions of the colour-difference samples in each of the 286 active lines coincide with those of the corresponding luminance samples.
+
+Uniformly quantized PCM with 8 bits/sample is used.
+
+The $(E'_R - E'_Y)$ and $(E'_B - E'_Y)$ signals are quantized using $\pm 111$ steps with zero signal corresponding to level 128. The analogue video signals are amplitude-limited so that the digitized signals do not go outside that range (corresponding to levels 16 to 239). The video levels are set so that a 100/0/75/0 colour bar signal (see CCIR Recommendation 471 for explanation of nomenclature) will occupy levels 17 to 239.
+
+As for the luminance signal, forbidden PCM code words are available for purposes other than transmitting video sample amplitudes.
+
+#### 1.4.2.2 Pre- and post-filtering
+
+In addition to conventional anti-aliasing filtering prior to analogue-digital conversion, a digital transversal filtering operation is carried out on the 625-line signal to reduce the vertical definition of the picture prior to conditional-replenishment coding. As a result of this process, 72 active lines of $(E'_R - E'_Y)$ and 71 active lines of $(E'_B - E'_Y)$ are used in Field No. 2 instead of $287\frac{1}{2}$ active lines per field of a 625-line signal. Similarly, Field No. 1 contains 72 active lines of $(E'_B - E'_Y)$ and 71 lines of $(E'_R - E'_Y)$ . An interpolation process in the decoder restores the 625-line signal waveforms.
+
+#### 1.4.2.3 Conditional replenishment coding
+
+Coloured moving areas are detected, coded and addressed separately from the luminance moving areas, but the same principles are employed.
+
+Detected moving areas are transmitted by differential PCM with a maximum of 16 quantization levels. The first picture element in each moving area is transmitted by PCM. Variable-length coding is used on the DPCM code words.
+
+Complete PCM lines are transmitted to provide systematic and forced updating coincident with luminance PCM lines.
+
+##### 1.4.2.3.1 DPCM prediction algorithm
+
+The algorithm used for colour-difference signals is:
+
+$$x = A$$
+
+See Figure 1.
+
+##### 1.4.2.3.2 Quantization law and variable-length coding
+
+As for luminance component (see 1.4.1.3.2 and 1.4.1.4.1).
+
+#### 1.4.2.4 Subsampling
+
+Horizontal subsampling is carried out in exactly the same way as for the luminance signal, including adaptive element subsampling.
+
+Field/field subsampling of the colour-difference signals is also similar to that of the luminance signal. Either field can be omitted and, in the omitted field, interpolation takes place only in those parts of the picture which are estimated to be moving. Stationary areas remain unchanged.
+
+The estimated moving areas are formed by an OR function on moving areas in past and future fields in the same manner as for luminance (see 1.4.1.4.2).
+
+For colour-difference signals, the interpolated value of $x$ is $\left(\frac{a + c}{2}\right)$ or $\left(\frac{b + d}{2}\right)$ when $x$ is in Field 1 or Field 2, respectively.
+
+Both field and horizontal subsampling take place simultaneously with subsampling of the luminance signal and they are signalled to the decoder in the same way.
+
+## 1.5 Video multiplex coding
+
+### 1.5.1 Buffer store
+
+The size of the buffer store is defined at the transmitting end only and is 96 kbit/s. Its delay is approximately equal to the duration of one picture (40 ms).
+
+At the receiving end, the buffer must be of at least this length, but in some implementations of the decoder it may be longer.
+
+### 1.5.2 Video synchronization
+
+The method used for video synchronization permits the retention of the picture structure. The required information is transmitted in the form of line start and field start codes (LST and FST).
+
+#### 1.5.2.1 Line start code
+
+The line start code includes a synchronization word, a line number code and a digit to signal the presence of element subsampling.
+
+It has the format:
+
+0 0 0 0 0 0 0 0 | 0 0 0 0 1 0 0 0 | "S" | 3-bit line No. code |
+
+"S" is a 1 if horizontal subsampling occurs on the TV line following the line start code. "S" is a "don't care" condition on empty or PCM lines.
+
+The line number code comprises the least three significant digits of the line number, where Line 0 = first active line of Field 1 and Line 144 = first active line of Field 2.
+
+Lines numbered 143 and 287 are non-coded lines, used for field synchronization and line number continuity.
+
+#### 1.5.2.2 Field start code
+
+There are two field start codes, FST-1 and FST-2, where the first line of the field following FST-2 is interlaced between the first two lines of the field following FST-1. FST-1 indicates the start of the first field, starting with line number 0. FST-2 indicates the start of the second field, starting with line number 144, as shown in Figure 3.
+
+Each field start code comprises a line start code, followed by an 8-bit word, followed by the line start code of the first line of the next field.
+
+The field start code is given in Figure 4.
+
+For FST-1, F = 1 and for FST-2, F = 0. A = 0 for normal operation. If required, A = 1 is used to signal that the buffer state is less than 6 kbits (used in switched multipoint applications). S is the subsampling digit as defined in 1.5.2.1.
+
+Field subsampling is signalled by two consecutive field start codes of the same number. For example:
+
+| | | | |
+|-------|---------------|-------|---------------|
+| FST-1 | field of data | FST-1 | field of data |
+|-------|---------------|-------|---------------|
+
+signifies that field 2 has been omitted and that its moving areas must be interpolated as described in 1.4.1.4.2 and 1.4.2.4.
+
+
+
+Line No. Line No.
+
+Field 1 0 \_\_\_\_\_ 144 \_\_\_\_\_ Field 2
+
+1 \_\_\_\_\_ 145 \_\_\_\_\_
+
+2 \_\_\_\_\_ 146 \_\_\_\_\_
+
+\_\_\_\_\_ 284 \_\_\_\_\_
+
+141 \_\_\_\_\_ 285 \_\_\_\_\_
+
+142 \_\_\_\_\_ 286 \_\_\_\_\_
+
+T1513840-93/d03
+
+Diagram showing Field 1 and Field 2 line numbers. Field 1 starts at 0, then 1, then 2, then 141, then 142. Field 2 starts at 144, then 145, then 146, then 284, then 285, then 286. A label T1513840-93/d03 is at the bottom right.
+
+FIGURE 3/H.120
+
+| LST | | | | | LST | | | |
+|----------|----------|---|-----|----------|----------|----------|---|-----|
+| 00000000 | 00001AAA | F | 111 | 0000F11F | 00000000 | 00001000 | S | 000 |
+
+FIGURE 4/H.120
+
+### 1.5.3 Addressing of moving areas
+
+The positions of the clusters of picture elements along each line which are deemed to form parts of moving areas are addressed by means of an address of the start of the cluster and an “end-of-cluster” code (EOC).
+
+The form of coding is:
+
+| LST | PCM value | 8-bit address of the PCM picture element | Variable-length DPCM coded moving area | EOC | PCM value | 8-bit address | etc. |
+|-----|-----------|------------------------------------------|----------------------------------------|-----|-----------|---------------|------|
+|-----|-----------|------------------------------------------|----------------------------------------|-----|-----------|---------------|------|
+
+The PCM value is the amplitude of the first picture element of the cluster. When there is no colour-difference data, the EOC is omitted in the last luminance cluster of every line, i.e. both the LST and FST codes also signify end of cluster.
+
+The EOC is 1001.
+
+The address indicates the sample number along the line belonging to the first picture element of the cluster.
+
+A cluster cannot start at the last element of the line, i.e. (11111111) is a forbidden cluster address, nor can it extend into line blanking even during subsampling.
+
+The minimum gap between the end of one cluster and the start of the next is four picture elements, and the minimum length of a cluster is one picture element.
+
+### 1.5.4 Addressing of colour-difference data
+
+To permit the insertion of colour-difference data in a line containing moving picture elements, a colour escape code is inserted after the final luminance cluster in the line. This permits addresses to be re-used for colour clusters.
+
+The escape code is 00001001 (an invalid PCM value) and follows the end of cluster code of the last luminance cluster (if any), otherwise it follows the line start code. This is followed by the addresses, variable-length codes and EOC codes of the subsequent coloured clusters, the sequence being terminated by the line start code of the next line.
+
+The form of addressing of colour-difference moving areas is shown in Figure 5.
+
+
+
+Diagram showing the sequence of codes for colour-difference data. The top row shows: ... | VLC luminance picture element | EOC | 00001001 | PCM value of first colour-difference picture element | Address of first colour-difference cluster | VLC codes | ... The bottom row shows: ... | EOC | PCM | Address | ..... | Line start code | .....
+
+FIGURE 5/H.120
+
+There are 52 colour-difference picture elements per line, the first of which is given an address with numerical value 4. The address range is therefore:
+
+00000100 to 00110111.
+
+A cluster cannot start at address (00110111) nor can it extend beyond this point, even during subsampling. The minimum gap between the end of one colour-difference cluster and the start of the next is 4 picture elements. The minimum cluster length is one picture element. Cluster bridging is not allowed between luminance and colour-difference clusters.
+
+A monochrome decoder will discard the information between the colour escape code and the next line start code.
+
+### 1.5.5 PCM lines
+
+PCM lines are used for systematic or forced updating and are signalled as shown in Figure 6.
+
+| | Invalid PCM code | Invalid cluster address | PCM value of first picture element of line | 254 × 8 bit PCM values | |
+|-----|------------------|-------------------------|--------------------------------------------|------------------------|-----------------|
+| LST | 1 1 1 1 1 1 1 1 | 1 1 1 1 1 1 1 1 | X X X X X X X X | X X . . . | 1 0 0 0 0 0 0 0 |
+
+FIGURE 6/H.120
+
+With monochrome, all 256 elements in the line are transmitted using 8-bit PCM.
+
+With PCM lines, the subsampling digit "S" is ignored at the receiver. PCM lines cannot be horizontally subsampled.
+
+For the purpose of field interpolation, PCM lines are considered to be non-moving.
+
+With colour signals, the colour-difference data will comprise $52 \times 8$ -bit PCM values following the $256 \times 8$ -bit luminance elements. The colour escape code is not transmitted. A monochrome decoder will discard the colour-difference picture elements.
+
+## **1.6 Transmission coding**
+
+The transmission coder assembles the video, audio, signalling and optional data channels into a 2048-kbit/s frame structure which is in accordance with Recommendation G.704. It also provides justification facilities to enable the video sampling frequency to be independent of the network clock.
+
+### **1.6.1 Serial data**
+
+With all serialized data (video, audio and addressing), the most significant digit is in the leading position. Positive logic is used throughout.
+
+### **1.6.2 Audio**
+
+The audio is coded into 64 kbit/s using A-law PCM, as specified in Recommendation G.711.
+
+In the coder, the delay difference between the coded audio and video when the buffer is empty should be within $\pm 5$ ms. In the decoder, the delays must also be equalized, and the tolerance is under study.
+
+The audio output should be muted in the event of loss of frame alignment.
+
+### **1.6.3 Transmission framing**
+
+#### **1.6.3.1 General**
+
+The frame structure is defined in Recommendation H.130 which specifies how the frame is structured and for what purposes the time slots are used. This information need not be repeated here.
+
+Time slot 2 (odd) is allocated to codec-to-codec signalling and the functions of the various bits are specified in Recommendation H.130. In most cases, the action to be taken by the encoder and/or decoder according to whether each of these bits is 0 or 1 is evident from the specified purpose of the bit. In the few cases where this is not so, additional information is given below.
+
+#### **1.6.3.2 Use of certain bits in each octet in the odd frames of time slot 2**
+
+Studies to determine the most suitable methods for multipoint conferencing are still in progress, but from the preliminary results, a number of special features and facilities have been identified as being necessary and have therefore been included in the codec and frame structure. In "continuous presence" multipoint conferencing, a transmission channel may, at times, be shared by two codecs in different locations. This requires a reduction of the bit rate of each source so that the total bit rate is within the capacity of the channel. The "facilities bits", i.e. bits (see Recommendation H.130) 3.1.2 and 3.1.7, are used to signal the availability of this facility and the bits 4.9 and 4.15, signal the mode of operation and the active time slots in use at the output of the transmission coder. The details of how the foregoing bits are interpreted are given in Recommendation H.130.
+
+Bits 3.7 to 3.15 also provide facilities whose principal usefulness is likely to be multipoint conferencing. Information on the use of these bits together with details of the use of bits 1 and 2, which are essential to the basic requirements of keeping the encoder and decoder in step, are given below:
+
+##### **Bit 1 – For clock justification**
+
+The frequency control arrangements are as follows:
+
+The video sampling clock is locked to the line-scanning frequency of the incoming video signal, which has a permitted tolerance of $\pm 2$ parts in $10^4$ .
+
+The justification is controlled by a comparison frequency of (22 500/11) kHz, which is locked to the video clock.
+
+The clock for the digital channel has a frequency of $2048 \text{ kHz} \pm 50 \text{ parts in } 10^6$ .
+
+The phase of the channel clock is compared with that of the comparison frequency and when the channel-clock phase exceeds that of the comparison frequency by $2\pi$ radians, a 1 is transmitted. If the phase difference is less than $2\pi$ radians, a 0 is transmitted.
+
+##### **Bit 2 – To signal buffer state**
+
+The degree to which the encoder buffer is filled, measured in increments of 1 K ( $1 \text{ K} = 1024 \text{ bits}$ ), is signalled using an 8-bit binary code. The most significant bit (MSB) is in frame 1 of the multiframe, the second MSB in frame 2, etc. The buffer state is sampled at the start of the multiframe in which its state is transmitted.
+
+##### **Bit 3.7 – Fast update request**
+
+On receipt of this bit set to 1, the transmitter buffer is forced to decrease its fill and stabilize to a state of less than 6 K by preventing coded picture elements from entering the buffer. Bit A is set to 1 in the next FST. The two following fields are treated as complete moving areas and the encoder uses an arrangement for control of the subsampling modes to make the buffer overflow condition unlikely.
+
+##### **Bit 3.9 – Advance warning of interruption**
+
+This bit (set to 1) is used to warn a decoder that its received signal may be interrupted after the start of the next supermultiframe for a period of not more than two seconds. On receipt of bit 3.9 set to 1, a decoder will display a still picture for a period of not more than 2 s, or until an FST code is received with bit A set to 1.
+
+##### **Bit 3.11 – Sound power signal**
+
+This bit is used to signal the sound power in the audio channel. The power is integrated over a period of 16 ms (period of the supermultiframe), uniformly quantized to 8 bits and transmitted at supermultiframe rate. It is used during encrypted multipoint operations. In other cases, bit 3.11 is set to zero.
+
+##### **Bit 3.13 – Data distribution**
+
+This bit is set permanently to 0 in all encoders. When a 1 is received from the network (introduced, for example, by a multipoint control unit), the encoder will vacate the same time slots in its outgoing signal as signalled on the incoming stream by the settings of the relevant bits 4 (which identify the use of the time slots, see Recommendation H.130). It will confirm the action by transmitting the same bit 4 settings as received. This function should be carried out within 10 supermultiframe periods.
+
+##### **Bit 3.15 – Detection of looped ports**
+
+This bit is set to 1 in all codecs. It may be used by a multipoint control unit to detect whether one of its bidirectional 2 Mbit/s ports has been externally looped.
+
+## **1.7 Error correction**
+
+Provision is made for the optional use of forward error correction. This is required if the channel error rate is worse than 1 in $10^6$ for significant periods of time. The error corrector used is a (4095, 4035) five-error correcting BCH code (*Bose, Chaudhuri and Hocquengham*). The error-correcting decoder has the ability to correct up to 5 isolated errors and one burst of up to 16 errors in each block. At a channel error probability of $1 \times 10^{-4}$ , the corrected error rate is $1.25 \times 10^{-8}$ . The 60 parity bits which are required are obtained by removing the video from time slots 24 to 31 of frame number 15 of each multiframe.
+
+NOTE – The question of whether error correction should be provided on the signal, on the link, or both, should be studied. Also under study is the question of whether the audio should be corrected by the same error corrector or whether a separate error-correcting codec should be used.
+
+# **2 Codecs not requiring separate television standards conversion when used on interregional connections**
+
+## **A codec for 525-line, 60 fields/s and 1544 kbit/s transmission for intra-regional use and capable of interworking with the codec of clause 1**
+
+## **2.1 Introduction**
+
+Clause 2 indicates the changes and additions which must be made to the text of 1 in order to define the version of the codec for use with 525-line, 60 fields/s television standards and transmission at 1544 kbit/s. The two versions are capable of interworking via a re-multiplexing unit which can convert the 2.1/G.704 compatible frame structure on one side to the 2.3/G.704 compatible frame structure (with 6 time slots empty) on the other side.
+
+The two versions of the codec are identical in most respects, the important differences (apart from the obvious ones arising from different input and output signals) being confined to the digital pre- and post-filters and the signals for the control of the buffers. Moreover, the detailed algorithms of the pre- and post-filters do not need to be specified to permit interworking. Only an outline of their mode of operation together with the few necessary specifications are therefore provided.
+
+## **2.2 Brief specification**
+
+### **2.2.1 Video input/output**
+
+The video input and output are standard 525-line, 60 fields/s colour or monochrome television signals. The colour signals are in component form. Colour and monochrome operation are fully compatible.
+
+### **2.2.2 Digital output/input**
+
+The digital output and input are at 1544 kbit/s, compatible with the frame structure of Recommendation G.704.
+
+### **2.2.3 Sampling frequency**
+
+The video sampling frequency and 1544 kbit/s network clock are asynchronous.
+
+### **2.2.4 Coding techniques**
+
+Conditional replenishment coding supplemented by adaptive digital filtering, differential PCM and variable-length coding are used to achieve low bit-rate transmission.
+
+### **2.2.5 Audio channel**
+
+An audio channel using 64 kbit/s is included. At present, coding is A-law according to Recommendation G.711, but provision is made for future use of more efficient coding.
+
+### **2.2.6 Mode of operation**
+
+The normal mode of operation is full duplex.
+
+### **2.2.7 Codec-to-network signalling**
+
+An optional channel for codec-to-network signalling is included.
+
+### **2.2.8 Data channels**
+
+Optional $2 \times 64$ kbit/s and $1 \times 32$ kbit/s data channels are available. These are used for video if not required for data.
+
+### **2.2.9 Forward error correction**
+
+Optional forward error correction is available. This is required only if the long-term error rate of the channel is worse than $1$ in $10^6$ .
+
+### **2.2.10 Additional facilities**
+
+Provision is made in the digital frame structure for the future introduction of encryption, a graphic mode and multipoint facilities.
+
+**2.2.11** When the coder buffer is empty and the decoder buffer full, the coder delay is $31 \pm 5$ ms and the decoder delay is $176 \pm 31$ ms3).
+
+## **2.3 Video interface**
+
+The normal video input is a 525-line, 60 fields/s signal in accordance with CCIR Report 624. When colour is being transmitted, the input (and output) video signals are in component form. The luminance and colour-difference components, $E'_Y$ , $(E'_R - E'_Y)$ and $(E'_B - E'_Y)$ are as defined in CCIR Report 624. The video interface is as recommended in CCIR Recommendation 567.
+
+## **2.4 Source coder**
+
+### **2.4.1 Luminance component or monochrome**
+
+#### **2.4.1.1 Analogue-to-digital conversion**
+
+The signal is sampled to produce 256 picture samples per active line (320 samples per complete line). The sampling pattern is orthogonal and line, field and picture repetitive. For the 525-line input, the sampling frequency is 5.0 MHz, locked to the video waveform.
+
+Uniformly quantized PCM with 8 bits/sample is used.
+
+Black level corresponds to level 16 (00010000).
+
+White level corresponds to level 239 (11101111).
+
+PCM code words outside this range are forbidden (the codes being used for other purposes). For the purposes of prediction and interpolation, the final picture element in each active line (i.e. picture element 255) is set to level 128 in both encoder and decoder.
+
+In all arithmetic operations, 8-bit arithmetic is used and the bits below the binary point are truncated at each stage of division.
+
+#### **2.4.1.2 Pre- and post-filtering**
+
+##### **2.4.1.2.1 Spatial filtering**
+
+A digital filter reduces the $242\frac{1}{2}$ active lines-per-field of the 525-line signal to 143 lines-per-field, the same number as in the 625-line version of the codec. In the decoder, the digital post-filter uses interpolation to restore the signal to 525-lines per picture.
+
+##### **2.4.1.2.2 Temporal filtering**
+
+A recursive temporal pre-filter with non-linear transfer characteristics is used in the coder to reduce noise in the signal and increase coding efficiency. The frame store used in this filter can also be used as the storage element of a frame interpolator with variable coefficients which is used to reduce the transmitted frame rate to a value less than that of the input video signal. In 525-line to 525-line transmission, the transmitted frame frequency is locked to the video clock and is approximately 29.67 Hz (29.97 Hz times $3057/3088$ ) instead of the nominal video rate of 29.97 Hz. In 525-line to 625-line transmission, the transmitted frame frequency is nominally 25 Hz and is locked to the channel clock.
+
+Because the (television) frames are leaving the coder more slowly than they are entering, the coding process is suspended for one frame every $N$ th input frame. $N$ is approximately 100 for 525-line to 525-line operation and approximately 6 for 525-line to 625-line operation.
+
+In the decoder, the digital post-filter incorporates a frame store in some versions of the 625-line codec where it is used in the line interpolation process. In the 525-line version, in addition to its use for line interpolation, it is used as a temporal interpolator with variable coefficients to provide an extra output frame during those periods when the decoding is temporarily suspended.
+
+---
+
+3) These are typical figures. The delays depend upon the detailed implementation used.
+
+## 2.5 Video multiplex coding
+
+### 2.5.1 Buffer store
+
+The size of the buffer store is defined at the transmitting end only and is 160 kbits. Of this, 96 kbits is used for smoothing the video data in the face-to-face mode and the remainder is used to accommodate the action of the frame interpolator (see 2.5.1.1) and the requirements of the graphics mode.
+
+At the receiving end, the buffer must be at least this length but in some implementations of the decoder, it may be longer.
+
+#### 2.5.1.1 Buffer control
+
+The amount to which the transmitting buffer is filled is used to control various coding algorithms (subsampling, etc.) and is signalled to the decoder to enable it correctly to interpret the received signals. In the 525-line codec, the transmission rate is less than the video input rate and hence the buffer tends to fill more rapidly than would be determined by the movement in the picture, only to empty again when the interpolator suspends the coding process.
+
+To avoid incorrect changes in coding algorithms, the buffer-state signal is modified to take account of the progressively changing coefficients of the interpolator in the pre-filter. The buffer then operates as though the data is coming from a video source whose frame rate is uniform and the same as the transmitted frame rate.
+
+## 2.6 Transmission coding
+
+The transmission coder assembles the video, audio, signalling and optional data channels into a 1544 kbit/s frame structure which is compatible with Recommendation G.704.
+
+### 2.6.1 Serial data
+
+See 1.6.1.
+
+### 2.6.2 Audio
+
+See 1.6.2.
+
+### 2.6.3 Transmission framing
+
+The frame structure, compatible with Recommendation G.704 and also compatible with that of the 625-line version in clause 1, is given in 2/H.130.
+
+#### 2.6.3.1 General
+
+See 1.6.3.1.
+
+#### 2.6.3.2 Use of certain bits in each octet in the odd frames of time slot 2
+
+The use of certain of the bits in time slot 2 (odd) differs slightly from that given for the codec in clause 1. The differences are as follows:
+
+##### Bit 1 – For clock justification
+
+This bit is disregarded in 525-line decoders.
+
+To permit interworking with the 625-line codecs of clause 1, the 525-line coders must transmit a fixed bit-pattern which is used to control the frequency of the video clock in 625-line decoders. The exact form of the repetitive pattern need not be specified but it must contain seven “ones” and four “zeros” in 11 bits, e.g.:
+
+1 0 1 1 0 1 0 1 1 0 1
+
+##### Bit 2 – To signal buffer state
+
+The degree to which the encoder buffer is filled, after correction for the interpolator (see 2.5.1.1), is measured in increments of 1 K (1 K = 1024 bits), and signalled using an 8-bit binary code. When working to a 525-line decoder, the buffer state is sampled every 3057 channel-clock periods. When working to a 625-line decoder, the buffer state is sampled 10 times during every 525-line field period. When the buffer input is suspended for a frame period, the buffer
+
+sampling is stopped. The sampled values of the buffer state are stored prior to transmission. The store may hold between zero and 23 values which have been modified to take account of the interpolator coefficients at the times of sampling. The modified sample values are read out [as bit 2 of TS2 (odd)] at a uniform rate; the most significant bit (MSB) in frame 1 of the multiframe, the second MSB in frame 2, etc.
+
+##### **Bit 3.7 – Fast update request**
+
+On receipt of this bit set to 1, the transmitter buffer is forced to decrease its full and stabilise to a modified state of less than 6 K by preventing coded picture elements from entering the buffer. Bit A is set to 1 in the next FST. The two following fields are treated as complete moving areas and the encoder uses an arrangement for control of the sub-sampling modes to make the buffer overflow condition unlikely.
+
+# **3 A codec for 525-lines, 60 fields/s and 1544 kbit/s transmission for intra-regional use**
+
+## **3.1 Introduction**
+
+A 1.5 Mbit/s interframe codec described under 3, is capable of transmitting and receiving a single NTSC video signal and audio signal using an adaptive predictive coding technique with motion-compensated prediction, background prediction and intraframe prediction.
+
+The aim of this codec is to effectively transmit video telephone and video conferencing signals which have relatively small movements. The video interface of the codec is a 525-line, 60 fields/s standard analogue television signal corresponding to the “Class *a*” standard of Recommendation H.100.
+
+## **3.2 Outline of codec**
+
+The essential parts of the codec block diagram are shown in Figure 7. The coder consists of three basic functional blocks, that is, pre-processing, video source coding and transmission coding.
+
+In the pre-processor, the input analogue NTSC video signal is digitized and colour decoded into one luminance component and two chrominance components. These three components are time division multiplexed into a digital video form, whose noise and unnecessary signal components are removed by the pre-filter.
+
+In the video source coder, the digital video signal is fed to the predictive coder where interframe and intraframe predictive coding techniques are fully utilized for minimizing prediction errors to be transmitted. The prediction error signal is next entropy-coded using its statistical properties to reduce redundancies. Since the coded error information is generated in irregularly spaced bursts, a buffer is used. If the buffer becomes full, the number of prediction error quantizing levels and/or picture elements to be coded is reduced to prevent any overflow.
+
+In the transmission coder, coded video and audio signals are first encrypted on an optional basis. The coded video signal is then forward error correction coded and scrambled. The three signals, coded video, coded audio and optional data signals are multiplexed into a 1544 kbit/s digital format with a frame structure as defined in Recommendation H.130.
+
+The decoder carries out a reverse operation.
+
+## **3.3 Brief specification**
+
+### **3.3.1 Video input/output**
+
+NTSC signals are used for the video input/output signal, with monochrome signals being additionally applicable.
+
+### **3.3.2 Digital output/input**
+
+The interface conditions for the digital output/input signal satisfy Recommendation G.703 specifications. The signal transmission rate is 1544 kbit/s.
+
+#### a) Coder
+
+
+
+Block diagram of the Coder part of the H.120 codec. It shows three input streams: Video input, Audio input, and Data input. The Video input is processed through Pre-processing (A/D, Colour decoding and TDM, Prefilter), Video source coding (Predictive coding, Entropy coding, Transmission buffer), and Transmission coding (Encrypt, Error correct, Scramble) before entering the MUX and framing block. The Audio input is processed through an Audio coder and Delay, then encrypted and sent to the MUX. The Data input is sent directly to the MUX. The MUX and framing block also receives input from a Stuffing block and produces a Digital output. A line for 'Codec-to-codec information' is shown between the Video source coding and Transmission coding stages.
+
+#### b) Decoder
+
+
+
+Block diagram of the Decoder part of the H.120 codec. It shows three output streams: Video output, Audio output, and Data output. The Digital input is processed through Framing and DMUX, which also interacts with a Destuffing block. The output of the Framing and DMUX is sent through Transmission decoding (Descramble, Error correct, Decrypt), then to Video source decoding (Receiving buffer, Entropy decoding, Predictive decoding), and finally to Post-processing (Postfilter, TDDM and colour encoding, D/A) to produce the Video output. The output of the Framing and DMUX is also sent through Decrypt and then through an Audio decoder and Delay to produce the Audio output. The output of the Framing and DMUX is also sent directly to produce the Data output. A line for 'Codec-to-codec information' is shown between the Transmission decoding and Video source decoding stages.
+
+TDM Time division multiplexing
+ TDDM Time division demultiplexing
+ MUX Multiplexing
+ DMUX Demultiplexing
+
+T1513850-93/d04
+
+FIGURE 7/H.120
+ Codec blockdiagram
+
+### **3.3.3 Sampling frequency**
+
+The video sampling frequency is four times the colour sub-carrier frequency ( $f_{SC}$ ) and asynchronous with the 1544 kHz network clock.
+
+### **3.3.4 Time division multiplexed (TDM) digital video format**
+
+An NTSC signal is separated into a luminance component (Y) and two chrominance components ( $C_1$ and $C_2$ ). A time division multiplexed signal composed of Y and time-compressed $C_1$ and $C_2$ is employed in the source coding as the standard digital video format.
+
+### **3.3.5 Coding algorithm**
+
+Adaptive predictive coding supplemented by variable word-length coding is used to achieve low bit rate transmission. The following three predictions are carried out adaptively on a pel-by-pel basis:
+
+- a) motion-compensated interframe prediction for a still or slowly moving area;
+- b) background prediction for an uncovered background area; and
+- c) intraframe prediction for a rapidly moving area.
+
+Prediction errors for video signals and motion vectors are both entropy-coded using the following two techniques:
+
+- i) variable word-length coding for non-zero errors; and
+- ii) run-length coding for zero errors.
+
+### **3.3.6 Audio channel**
+
+An audio channel using 64 kbit/s is included. The audio coding algorithm complies with Recommendation G.722.
+
+### **3.3.7 Data channel**
+
+An optional 64 kbit/s data channel is available, which is used for video if not required for data.
+
+### **3.3.8 Mode of operation**
+
+The normal mode of operation is full duplex, with other modes, e.g. the one-way broadcasting operation mode, also taken into account.
+
+### **3.3.9 Transmission error protection**
+
+A BCH error correcting code is used along with a demand refreshing method to prevent uncorrected errors from degrading the picture quality.
+
+### **3.3.10 Additional facilities**
+
+Provision is made in the digital frame structure for the future introduction of such facilities as encryption, graphics transmission and multipoint communication.
+
+### **3.3.11 Processing delay**
+
+The coder plus decoder delay is about 165 ms without that of a pre-filter and a post-filter.
+
+## **3.4 Video interface**
+
+The video input/output signal of the codec is an analogue NTSC signal (System M) in accordance with CCIR Report 624.
+
+## 3.5 Pre- and post-processing
+
+### 3.5.1 Analogue-to-digital and digital-to-analogue conversion
+
+An NTSC signal band-limited to 4.5 MHz is sampled at a rate of 14.3 MHz, four times the colour sub-carrier frequency ( $f_{SC}$ ), and converted to an 8-bit linear PCM signal. The sampling clock is locked to the horizontal synchronization of the NTSC signal. Since the sampling frequency is asynchronous with the network clock, the justification information is coded and transmitted from the coder to the decoder.
+
+The digital video data is expressed in two's complement form. The input level to the A/D converter is defined as follows:
+
+- sinc tip level (-40 IRE) corresponds to -124 (10000100);
+- white level (100 IRE) corresponds to 72 (01001000).
+
+(IRE: Institute of Radio Engineers)
+
+As a national option, a pad can be inserted before the A/D converter if a level fluctuation should be taken into account at analogue transmission lines connecting terminal equipment and codec.
+
+At the decoder, the NTSC signal is reproduced by converting the 8-bit PCM signal to an analogue signal.
+
+### 3.5.2 Colour decoding and encoding
+
+The digitized NTSC signal is separated into the luminance component (Y) and the carrier band chrominance component (C) by digital filtering. The two baseband chrominance signals ( $C_1$ and $C_2$ ) are obtained by digitally demodulating the separated carrier band chrominance component. The effective sampling frequency after colour decoding is converted to 7.2 MHz ( $2 f_{SC}$ ) and 1.2 MHz ( $1/3 f_{SC}$ ) for the luminance signal and chrominance signals, respectively.
+
+The replica of the NTSC signal is obtained by digitally modulating the $C_1$ and $C_2$ signals and adding to the Y signal at the decoder.
+
+Filter characteristics for colour decoding and encoding are left to each hardware implementation since they do not affect interworking between different design codecs. Examples of recommended characteristics are described in Annex E.
+
+### 3.5.3 TDM signal
+
+A time division multiplexing (TDM) signal is constructed from the separated component signals.
+
+First, the $C_1$ and $C_2$ signals are time-compressed to 1/6. Next, each of the time compressed $C_1$ and $C_2$ signals, with their horizontal blanking parts removed, is inserted into the Y signal horizontal blanking interval on alternate lines. $C_1$ is inserted on the first line of the first field and on every other line following throughout the frame, while $C_2$ is inserted on the second line of the first field and on every other line following throughout the frame.
+
+Active samples for the Y signal are 384 samples/line and 64 samples/line for the $C_1$ and $C_2$ signals. The TDM signal is constructed with these active samples and 7 colour burst samples (B), which are inserted into the top of the TDM signal.
+
+As shown in Figure 8, the $C_1$ and $C_2$ signal sampling points coincide with that of the Y signal on every sixth sample. The $C_1$ and $C_2$ signals of only the odd lines are transmitted to the decoder.
+
+At the decoder, each component signal is again demultiplexed from the TDM signal, and time-expansion processing of 6 times is carried out for the $C_1$ and $C_2$ signals.
+
+NOTE – When a pad is inserted before the A/D converter as described in 3.5.1, pre-emphasis (de-emphasis) with a compensating gain for the $C_1$ , $C_2$ and colour burst signals is recommended at the source coder input (decoder output) to obtain better picture reproduction in coloured parts.
+
+
+
+NTSC signal (1 line: 63.6 μs)
+
+(68) (8) (36) (8)
+(Number of samples)
+
+Colour Burst samples
+93 94
+
+$[(887 - 121)/2] + 1 = 384$ samples
+Active samples for Y signal
+
+$[(882 - 126)/12] + 1 = 64$ samples
+Active samples for $C_1$ or $C_2$ signal
+
+Pel number (4 $f_{sc}$ sampling)
+
+1 69 77 113 121 125 882 887 1 910
+
+Reference timing point (Half-amplitude point of horizontal sync falling edge.
+Synchronous with rising edges of frame pulse, line pulse and sampling pulse.)
+
+TDM signal format
+
+Odd line $(2n - 1)$ : $C^1_{93}$ $C^1_{125}$ $C^1_{137}$ (Note 2) $C^1_{881}$ $Y^1_{121}$ $Y^1_{123}$ $Y^1_{125}$ (Note 3) $Y^1_{885}$ $Y^1_{887}$
+
+(Note 1)
+
+Even line $(2n)$ : $C^2_{94}$ $C^2_{126}$ $C^2_{138}$ (Note 2) $C^2_{882}$ $Y^2_{121}$ $Y^2_{123}$ $Y^2_{125}$ (Note 4) $Y^2_{885}$ $Y^2_{887}$
+
+TDM signal (Number of samples)
+
+B (7) C (64) Y (384)
+
+Number of TDM signal
+
+1 8 9 71 72 73 74 454 455
+
+T15 13860-93/d05
+
+Diagram showing the conversion of an NTSC signal into a TDM signal format. The top part illustrates an NTSC signal line (63.6 μs) with pel numbers from 1 to 910. It highlights the horizontal sync, color burst samples (93, 94), and active samples for Y and C signals. The bottom part shows the TDM signal format for odd and even lines, divided into B (7 samples), C (64 samples), and Y (384 samples) segments, totaling 455 samples per TDM line.
+
+###### NOTES
+
+- 1 Odd line samples. A colour burst sample is repeated seven times.
+- 2 Odd line samples.
+- 3 Odd line samples.
+- 4 Even line samples.
+
+FIGURE 8/H.120
+**TDM signal format**
+
+### 3.5.4 Pre- and post-filtering
+
+In addition to conventional anti-aliasing filtering prior to analogue-to-digital conversion, the following two filtering processes should be used as pre-filtering for source coding:
+
+- a) temporal filtering to reduce random noise included in the input video signal;
+- b) spatial filtering to reduce aliasing distortion in subsampling.
+
+At the decoder, the following three filtering processes should be used as post-filtering in addition to conventional low pass filtering after digital-to-analogue conversion:
+
+- i) spatial filtering to interpolate the omitted picture elements in subsampling;
+- ii) spatio-temporal filtering to interpolate the omitted fields in field repetition;
+- iii) temporal filtering to reduce noise generated in the course of source coding.
+
+Although these filtering processes are important for improving reproduced picture quality, their characteristics are independent of interworking between different design codecs. Hence, pre- and post-filtering is left to each hardware implementation.
+
+## 3.6 Source coding
+
+### 3.6.1 Configuration of source coder and decoder
+
+The video source coder and decoder configuration of this codec is outlined in Figure 9.
+
+The predictive encoder converts the input video signal $x$ into the prediction error signal $e$ , using the motion vector $v$ . This conversion is controlled by the coding mode $m$ .
+
+The variable word-length (VWL) coder codes $e$ and $v$ into the compressed data $C$ using the variable length coding method. The transmission buffer memory (BM) smoothes out the irregularly spaced data $C$ . The coding mode $m$ is also coded.
+
+The frame memory parity information $p$ is used to check the identity of coder and decoder frame memory contents. If any parity error is detected, frame memories of both coder and decoder are reset by the demand refresh information (DR) and the demand refresh confirmation information (DDR).
+
+At the decoder, the variable word-length (VWL) decoder decodes $e$ , $v$ , $m$ and $p$ , and the predictive decoder reproduces the video signal $x'$ .
+
+### 3.6.2 Predictive coding
+
+#### 3.6.2.1 Coding modes
+
+Five coding modes as summarized in Table 3 are provided. All of the samples are coded and transmitted in normal mode, while half of the samples are omitted in subsampling mode. In field repetition mode, one or more consecutive fields are omitted (called multi-field repetition, see Note 1). If field repetition mode and subsampling mode are used in combination, only a quarter or less of the original picture elements are coded and transmitted.
+
+Subsampling is carried out in a quincunx way, namely by transmitting only odd-numbered pels on odd-numbered lines and even-numbered pels on even-numbered lines in each block-line (see Note 2).
+
+In field repetition mode, either the odd or even fields are omitted. For the omitted fields, both the prediction error $e$ and the motion vector $v$ are set to 0.
+
+###### NOTES
+
+1 If odd fields and even fields are mixed after field omission, a severe picture degradation takes place. Hence, 1 out of 2, 3 out of 4 or 5 out of 6 field omission is recommended.
+
+2 Each block-line consists of 8 lines as defined in 3.6.2.5.
+
+
+
+Block diagram of source coder and decoder configuration. The top part shows the encoder: Input video signal x enters a Predictive encoder. A Motion vector detector sends motion vector v to the Predictive encoder. The Predictive encoder outputs prediction error e and parity check information p to a VWL coder. The VWL coder outputs compressed data C to a Buffer memory (BM). The BM outputs Compressed video output. The BM also sends Buffer memory occupancy information b to a Coding parameter control block. The Coding parameter control block sends Coding mode m to the Predictive encoder and the VWL coder. The Coding parameter control block is connected to DDR. The bottom part shows the decoder: Compressed video input enters a Buffer memory (BM). The BM outputs compressed data C to a VWL decoder. The VWL decoder outputs prediction error e and parity check information p to a Predictive decoder. The Predictive decoder outputs Output video signal x'. The Predictive decoder sends motion vector v to the VWL decoder. The Predictive decoder is connected to DR.
+
+T1513870-93/d06
+
+| | |
+|------|-----------------------------------------|
+| $x$ | Input video signal |
+| $x'$ | Output video signal |
+| $m$ | Coding mode |
+| $e$ | Prediction error |
+| $v$ | Motion vector |
+| $p$ | Parity check information |
+| $C$ | Compressed data |
+| $b$ | Buffer memory occupancy information |
+| VWL | Variable word length |
+| BM | Buffer memory |
+| DR | Demand refresh request information |
+| DDR | Demand refresh confirmation information |
+
+FIGURE 9/H.120
+Source coder and decoder configuration
+
+#### 3.6.2.2 Adaptive prediction
+
+Prediction functions are adaptively selected on a pel-by-pel basis as shown in Figure 10. The selection is carried out so as to minimize probable prediction errors. This is accomplished using the two prediction status signals, which are determined by prediction reference signals, for the preceding pels located on the previous and the present lines.
+
+When subsampling and/or field repetition are operated, omitted pels are interpolated in the prediction loop.
+
+TABLE 3/H.120
+
+##### **Coding modes**
+
+| Coding modes | | Abbreviation | Operation |
+|--------------|------------------|--------------|-----------------------------|
+| 1 | Normal | NRM | Full sampling |
+| 2 | Field repetition | FRP | One or more fields omission |
+| 3 | Subsampling | SBS | 2:1 per omission |
+| 4 | Stop | STP | Suspension of coding |
+| 5 | Refresh | RFS | Renewal of frame memory |
+
+The notations defined for the i-numbered pel are as follows:
+
+- $X_i$ local decoder output;
+- $Y_i$ interpolator output;
+- $M_i$ motion compensated interframe prediction value;
+- $B_i$ background prediction value;
+- $I_i$ intraframe prediction value;
+- \*
+ logical product; and
+- +
+ logical sum.
+
+##### **3.6.2.2.1 Motion-compensated interframe prediction/background prediction**
+
+Prediction status signal $S_{1i}$ for pel $i$ is determined as
+
+$$S_{1i} = R_1(i - 455) * R_1(i - 456) + R_1(i - 456) * R_1(i - 454) + R_1(i - 454) * R_1(i - 455) \quad (3-1)$$
+
+where prediction reference signal $R_1(i)$ is
+
+$$R_1(i) = \begin{cases} 0 \text{ if } |Y_i - B_i| \geq |Y_i - M_i|, \\ 1 \text{ if otherwise.} \end{cases} \quad (3-2)$$
+
+Based on $S_{1i}$ , prediction signal $X_{1i}$ is given as
+
+$$X_{1i} = \begin{cases} M_i, \text{ if } S_{1i} = 0, \\ B_i, \text{ if } S_{1i} = 1. \end{cases} \quad (3-3)$$
+
+If pel $i$ is either omitted due to subsampling and/or field repetition or forced intraframe coded or in burst $B$ , its corresponding $R_i(i)$ is set to 0 regardless of equation (3-2).
+
+
+
+Block diagram of Adaptive prediction (FIGURE 10/H.120). The diagram shows an input signal passing through a Limiter to produce 'x'. This 'x' is subtracted from a 'Predicted value X2' at a summing node. The result is sent to a Quantizer, which outputs the 'Prediction error, e'. This error is added to a 'Local decoder output, X' at another summing node. The 'Local decoder output, X' is also fed into an Interpolator, which produces an 'Interpolator output, Y'. This 'Y' is fed into a Predictor block. The Predictor block contains three sub-prediction units: 'Intraframe prediction' (input 'I'), 'Motion compensated interframe prediction' (input 'M'), and 'Background prediction' (input 'B'). These units are controlled by switches labeled '1', '0', and '0' respectively, which are in turn controlled by prediction status signals 'S2' and 'S1'. The output of the selected prediction unit is the 'Predicted value X1'. The 'Predicted value X1' is also fed into the subtraction node. To the left of the Predictor block, there are two grid diagrams showing reference signals. The top grid shows 'R2' signals at positions (i-456), (i-455), (i-454) in the top row, and (i-2), (i-1), and 'S2i' in the middle row. The bottom grid shows 'R1' signals at positions (i-456), (i-455), (i-454) in the top row, and 'S1i' in the bottom row. A code 'T1513880-93/d07' is at the bottom right of the diagram.
+
+S Prediction status signal
+R Prediction reference signal
+
+FIGURE 10/H.120
+Adaptive prediction
+
+##### 3.6.2.2.2 Interframe prediction/intraframe prediction
+
+Prediction status signal $S_{2i}$ for pel $i$ is determined as
+
+$$S_{2i} = R_2(i - 1) * R_2(i - 455) \quad (3-4)$$
+
+where prediction reference signal $R_2(i)$ is
+
+$$R_2(i) = \begin{cases} 0 & \text{if } |Y_i - I_i| \geq |Y_i - X_{1i}|, \\ 1 & \text{if otherwise.} \end{cases} \quad (3-5)$$
+
+Based on $S_{2i}$ prediction signal $X_{2i}$ is given as
+
+$$X_{2i} = \begin{cases} X_{1i} & \text{if } S_{2i} = 0, \\ I_i & \text{if } S_{2i} = 1. \end{cases} \quad (3-6)$$
+
+If pel $(i - 1)$ is omitted due to subsampling, $R_2(i - 2)$ is used instead of $R_2(i - 1)$ . On the other hand, if pel $(i - 455)$ is omitted, $R_2(i - 454) * R_2(i - 456)$ is used instead of $R_2(i - 455)$ . If pel $i$ is forced intraframe-coded, its corresponding $R_2(i)$ is set to 1 regardless of equation (3-5).
+
+If pel $i$ is omitted due to field repetition, its corresponding $R_2(i)$ is set to 0 regardless of equation (3-5). When pel $i$ is not forced-intraframe coded, $R_2(i)$ in burst $B$ is set to 0.
+
+#### 3.6.2.3 Background generation
+
+The background prediction value is generated scene adaptively as
+
+$$b_i = b_i^{-f} + v(k) \operatorname{sgn} \left( Y_i - b_i^{-f} \right) u \left( Y_i - Y_i^{-f} \right) \quad (3-7)$$
+
+where
+
+$$u \left( Y_i - Y_i^{-f} \right) = \begin{cases} 1 \text{ if } |Y_i - Y_i^{-f}| \leq L, \\ 0 \text{ if otherwise.} \end{cases} \quad (3-8)$$
+
+$$v(k) = \begin{cases} 1, \text{ for one frame period in every block of } k \text{ frames} \\ 0, \text{ for consecutive } (k - 1) \text{ frames following the frame of } v(k) = 1 \end{cases}$$
+
+and
+
+$b_i$ is the background prediction value for the present frame;
+
+$b_i^{-f}$ is the background prediction value for the previous frame;
+
+$Y_i$ is the interpolator output for the present frame;
+
+$Y_i^{-f}$ is the interpolator output for the previous frame;
+
+$u$ is the still area detection function;
+
+$k$ is the background update control parameter; and
+
+$L$ is the threshold value.
+
+Parameters $k$ and $L$ are set as $k = 8$ and $L = 1$ . It is noted that for hardware simplification, $b_i^{-f}$ , instead of $b_i$ , is used as background prediction value $B_i$ (see Figure 11).
+
+#### 3.6.2.4 Forced intraframe prediction
+
+This codec usually used the demand refresh mode to prevent the defected picture due to transmission errors from being left in the decoder frame memory. The demand refresh mode is carried out if BWP (bit 3.15.4 in codec-to-codec information) = 0, which indicates that backward path from decoder to coder is available. However, the cyclic refresh mode is also provided, considering such applications as broadcasting communication where no backward path (from decoder to coder) is available. This mode is carried out when BWP = 1.
+
+For either of the two refresh modes, the prediction function is forcibly set to intraframe prediction.
+
+In the demand refresh mode, the motion frame memory and the background frame memory are updated block-line by block-line within a frame time by writing the interpolator output simultaneously. Once demand refresh starts by receiving DRR in the coder, the following DRR (demand refresh request command) received is disregarded for one second (see Note).
+
+
+
+Block diagram of background generation circuit. Inputs include 'Revision control signal BUC', 'Interpolator output Y', and 'Background prediction signal B'. The 'Still area detection circuit' receives 'Y' and 'BUC'. Its output goes to an AND gate along with 'BUC'. The AND gate output is labeled v(k) · u and goes to the 'Controller'. 'Y' also goes to a summing junction (+/-) whose output goes to the 'Controller'. The 'Controller' output goes to another summing junction (+/-) along with 'b-f' (from 'Background frame memory'). The output of this second summing junction is labeled 'b' and goes to the 'Background frame memory'. The 'Background frame memory' output is also labeled 'b-f' and goes to the 'Background prediction signal B' output. Reference code T1513890-93/d08 is shown at the bottom right.
+
+FIGURE 11/H.120
+Background generation
+
+In the cyclic refresh mode, the two memories are simultaneously updated two lines at a time by writing the interpolator output. When a field is omitted due to field repetition, the background frame memory is updated by the signal which updates the motion frame memory. It should be noted that the command for the cyclic refresh mode is ignored in block-lines where updating based on the demand refresh mode is carried out.
+
+NOTE – If a transmission error happens on the line from the codec A to the codec B, the decoder of the codec B detects the error occurrence and generates a demand refresh request information (DR). This DR is passed to the coder of the codec B and transmitted as a demand refresh request command (DRR) to the codec A. When the decoder of the codec A receives DRR, a demand refresh confirmation information DDR is passed to the coder of the codec A. Finally, demand refresh mode is operated along with transmission of a demand refresh mode command (DRM) from the codec A to the codec B.
+
+#### 3.6.2.5 Definition of blanking and block-line and edge pels treatment
+
+**3.6.2.5.1** The kinds of pels arranged on a horizontal scanning line (see Figure 8), for which prediction functions are defined, are as follows:
+
+| | |
+|-------------|-----------|
+| Burst B | 7 pels; |
+| Colour C | 64 pels; |
+| Luminance Y | 384 pels. |
+
+The vertical blanking periods are treated in the same way as active lines.
+
+##### 3.6.2.5.2 Block-line
+
+See Figure 12.
+
+In the first field, 8 lines consisting of the 8th to the 15th lines form the first block-line, with every 8 lines following this forming each a block-line. In the second field, 8 lines consisting of the 7th to the 14th lines form the 33rd block-line. Each field has 32 block-lines.
+
+The last block-line in a frame is defined as the 8 lines which include the last line of the frame, or the line closest to the head line of the frame. The position of the video last line in the last block-line is coded as frame position.
+
+
+
+Diagram of a video frame structure showing fields, block-lines, and reset lines. The top part shows a grid of lines numbered 1 to 256 for the first field and 1 to 256 for the second field. The first field has 7 lines in the first block-line, followed by 256 lines in the first block-line, and 6 lines in the reset lines. The second field has 256 lines in the first block-line, followed by 6 lines in the reset lines, and 256 lines in the first block-line. The diagram also shows the 'Last line in a frame', 'First line in a frame', 'First field', 'Second field', 'FP = 0', 'Last block-line', 'First block-line', 'Reset lines', and 'T1513900-93/d09'.
+
+FP Frame position
+X Reset line
+
+NOTE – When the last line in a frame falls on the $n$ th line of the last block-line, $FP = \text{mod}(n,8)$ .
+
+FIGURE 12/H.120
+**Definition of block-line and reset line**
+
+##### 3.6.2.5.3 Reset lines
+
+The lines which are excluded from block-lines are defined as reset lines. These reset lines are clamped to 0 in the predictive coding and decoding loops, or the corresponding prediction values $X_2$ and prediction errors $e$ in Figure 10 are set to 0. The reset lines are prediction-coded in normal mode with adaptive prediction and by setting $v = 0$ .
+
+**3.6.2.5.4** Edge pels suffer from crosstalk due to interpolation between B and C, C and Y, and Y and B. In order to prevent such crosstalk, the first 3 pels in B, the last pel in B and the first pel in Y are clamped to 0 at the source coder input IDM signal as in Figure 13.
+
+
+
+Diagram showing pel insertion for preventing crosstalk. It shows a sequence of pels: 0, C93, 0, C125, followed by a break, then C881, 0, Y123, followed by a break, and finally Y887. Below this, the diagram shows the lengths of the segments: 3 pels for the first segment (0, C93, 0), 3 pels for the second segment (C125), 1 pel for the third segment (C881), 64 pels for the fourth segment (Y123), and 384 pels for the fifth segment (Y887). The segments are labeled B, C, and Y. The diagram also shows 'T1513900-93/d10'.
+
+NOTE – This figure shows an odd line in the first field. See Figure 8 as for pel numbers.
+
+FIGURE 13/H.120
+**Zero insertion for preventing crosstalks due to interpolation**
+
+**3.6.2.5.5** Edge pels are not treated specifically in the source coder and decoder. That is, video signals including reset lines and the 3 clamped pels in B are processed as if they were existing continuously (see Note). Consequently, even if a motion vector points to pels outside the active picture area, it functions as a delay control for the input time serial video signal.
+
+NOTE – The right end of each line in the picture is assumed to be connected to the left end of the next line, and the lower end of each frame is assumed to be connected to the upper end of the next frame.
+
+In the forced intraframe prediction mode, the prediction value for the first pel of each line is set to 0.
+
+For the burst signal, no adaptive prediction nor subsampling is applied and no motion vectors are transmitted.
+
+#### **3.6.2.6 Prediction and interpolation functions**
+
+Prediction functions and interpolation functions are shown in Table 4 for all of the coding modes. It should be noted that motion vectors for the colour signal can be set to 0 without much loss of coding efficiency.
+
+#### **3.6.2.7 Quantization**
+
+Prediction errors for video signals are quantized using one of the four quantizing characteristics indicated in Table 5, that is, $Q_0$ (57 levels), $Q_1$ (57 levels), $Q_2$ (51 levels) and $Q_3$ (37 levels). The same set of quantizing characteristics are applied regardless of prediction functions.
+
+#### **3.6.2.8 Limiter in prediction loop**
+
+No limiter is allocated in the prediction loop. Accordingly, the input signal $x$ for the prediction loop is limited to $-124 \leq x \leq 123$ so that the local decoder output $X$ is maintained in the $-128 \leq X \leq 127$ range.
+
+#### **3.6.2.9 Frame memory parity check**
+
+Parity is counted for each bit plane of the interpolator output during a video frame period from the 1st to the 64th block-line as defined in Figure 12. If block-lines are omitted in field repetition mode, parity is not counted during these omitted block-lines.
+
+Eight odd parity bits are sent to the decoder, where they are compared with the parity bits of the decoder interpolator output to detect uncorrected errors. If any difference between received and counted parity bits is found, a demand refresh is requested from the decoder to the coder.
+
+#### **3.6.2.10 Suspension of coding operation**
+
+When the information is generated to the degree that the transmission buffer memory overflows, coding operation is suspended by setting $e = 0$ and $v = 0$ . This stop mode is defined only in the coder. Interpolation and prediction functions for this mode are defined as either of NRM, SBS, FRP or RFS modes according to the control of the coding parameter controller.
+
+### **3.6.3 Motion vector transmission**
+
+#### **3.6.3.1 Block size**
+
+A block for motion compensation consists of 8 lines (vertical) by 16 pels (horizontal).
+
+#### **3.6.3.2 Maximum tracking range**
+
+Motion vectors are tracked in the range of +7 to -7 lines (vertical) and +15 pels (horizontal) at its maximum. The decoder should be able to reproduce any vector in this maximum range.
+
+TABLE 4/H.120
+
+#### **Prediction and interpolation functions**
+
+| Coding mode | Kind of pel | Prediction functions P(Z) (Note 1) | | | Interpolation functions I(Z) (Note 2) | | |
+|------------------|-------------------------------------|--------------------------------------------------------------------------------------------------|----------|----------|----------------------------------------------------------------------------------------------|---------------------------------------------------------------------|----------|
+| | | $P_Y(Z)$ | $P_C(Z)$ | $P_B(Z)$ | $I_Y(Z)$ | $I_C(Z)$ | $I_B(Z)$ |
+| Normal | Coded | $Z^{-1}; S_2 = 1$
$Z^{-F+V}; S_2 = 0, S_1 = 0$
$P_b(Z) \text{ (Note 3)}; S_2 = 0, S_1 = 1$ | | $Z^{-F}$ | 1 | | |
+| Subsampling | Coded | $Z^{-2} \text{ (Note 4)}; S_2 = 0$
$Z^{-F+V}; S_2 = 0, S_1 = 0$
$P_b(Z); S_2 = 0, S_1 = 1$ | | | 1 | | |
+| | Omitted | (Not defined) | | | $\frac{1}{2} \left\{ \frac{1}{2} (Z^{-1} + Z^{+1}) + \frac{1}{2} (Z^{-H} + Z^{+H}) \right\}$ | $\frac{1}{2} (Z^{-1} + Z^{+1})$ | |
+| Field repetition | Omitted | (Not defined) | | | $\frac{1}{2} (Z^{-262H} + Z^{-263H})$ | $Z^{-263H}; \text{first field}$
$Z^{-262H}; \text{second field}$ | |
+| Refresh | N
R
M
Coded | $Z^{-1}$ | | | 1 | | |
+| | S
B
S
Coded
Omitted | $Z^{-2} \text{ (Note 4)}$ | | | 1 | | |
+| | | (Not defined) | | | $\frac{1}{2} (Z^{-1} + Z^{+1})$ | | |
+
+NOTES
+
+1 $S_1$ and $S_2$ are prediction status signals defined in 3.6.2.2.
+
+2 To deal with fractions generated by operation of $(A + B)/2$ , $(A + B + 1)/2$ is executed and the 8 MSBS are used.
+
+3 Background is generated as described in 3.6.2.3.
+
+4 $Z^{-1}$ , if the previous pel is coded.
+
+TABLE 5/H.120
+
+##### **Quantizing characteristics**
+
+| $Q_0$ | | $Q_1$ | | $Q_2$ | | $Q_3$ | |
+|-------------|--------------|-------------|--------------|-------------|--------------|-------------|--------------|
+| Input range | Output level | Input range | Output level | Input range | Output level | Input range | Output level |
+| 0 to 1 | 0 | 0 to 3 | 0 | 0 to 4 | 0 | 0 to 6 | 0 |
+| 2 | 1 | 4 to 6 | 3 | 5 to 8 | 5 | 7 to 11 | 7 |
+| 3 | 2 | 7 to 8 | 6 | 9 to 12 | 10 | 12 to 17 | 14 |
+| 4 to 5 | 3 | 9 to 10 | 9 | 13 to 17 | 15 | 18 to 24 | 21 |
+| 6 to 7 | 5 | 11 to 13 | 12 | 18 to 22 | 20 | 25 to 31 | 28 |
+| 8 to 9 | 7 | 14 to 16 | 15 | 23 to 27 | 25 | 32 to 38 | 35 |
+| 10 to 11 | 10 | 17 to 19 | 18 | 28 to 32 | 30 | 39 to 45 | 42 |
+| 12 to 14 | 13 | 20 to 22 | 21 | 33 to 37 | 35 | 46 to 52 | 49 |
+| 15 to 17 | 16 | 23 to 26 | 24 | 38 to 42 | 40 | 53 to 59 | 56 |
+| 18 to 20 | 19 | 27 to 30 | 28 | 43 to 47 | 45 | 60 to 66 | 63 |
+| 21 to 23 | 22 | 31 to 34 | 32 | 48 to 52 | 50 | 67 to 73 | 70 |
+| 24 to 26 | 25 | 35 to 39 | 37 | 53 to 57 | 55 | 74 to 80 | 77 |
+| 27 to 29 | 28 | 40 to 44 | 42 | 58 to 62 | 60 | 81 to 87 | 84 |
+| 30 to 32 | 31 | 45 to 49 | 47 | 63 to 67 | 65 | 88 to 94 | 91 |
+| 33 to 37 | 35 | 50 to 54 | 52 | 68 to 72 | 70 | 95 to 101 | 98 |
+| 38 to 42 | 40 | 55 to 59 | 57 | 73 to 77 | 75 | 102 to 108 | 105 |
+| 43 to 48 | 45 | 60 to 64 | 62 | 78 to 82 | 80 | 109 to 115 | 112 |
+| 49 to 54 | 51 | 65 to 69 | 67 | 83 to 87 | 85 | 116 to 123 | 119 |
+| 55 to 60 | 57 | 70 to 74 | 72 | 88 to 92 | 90 | 124 to 255 | 127 |
+| 61 to 67 | 64 | 75 to 79 | 77 | 93 to 97 | 95 | | |
+| 68 to 74 | 71 | 80 to 84 | 82 | 98 to 102 | 100 | | |
+| 75 to 81 | 78 | 85 to 89 | 87 | 103 to 107 | 105 | | |
+| 82 to 88 | 85 | 90 to 94 | 92 | 108 to 112 | 110 | | |
+| 89 to 95 | 92 | 95 to 99 | 97 | 113 to 118 | 115 | | |
+| 96 to 102 | 99 | 100 to 104 | 102 | 119 to 124 | 121 | | |
+| 103 to 109 | 106 | 105 to 109 | 107 | 125 to 255 | 127 | | |
+| 110 to 116 | 113 | 110 to 116 | 113 | | | | |
+| 117 to 123 | 120 | 117 to 123 | 120 | | | | |
+| 124 to 255 | 127 | 124 to 255 | 127 | | | | |
+
+NOTE – Characteristics are symmetrical with respect to zero.
+
+#### 3.6.3.3 Definition of vector direction
+
+The motion vector $v (v_x, v_y)$ is defined as
+
+$$v_x = x_a - x_b \tag{3-9}$$
+
+and
+
+$$v_y = y_a - y_b$$
+
+where the block positions in the present frame and in the corresponding previous frame are $(x_a, y_a)$ and $(x_b, y_b)$ , respectively. The $x$ and $y$ directions are identical to those of the horizontal and vertical scanning. This definition means that delay in the interframe prediction loop increases for $v_x, v_y$ greater than 0.
+
+#### 3.6.3.4 Motion detection method
+
+A motion vector is detected for each block by the interframe block matching method. Detailed detection methods are left to each hardware implementation (see Note).
+
+NOTE – When multi-field repetition is employed, the detected vector for the previous transmitted frame can be utilized as the initial value for vector detection in the present frame to be omitted, and the detected vector for the present frame can be utilized as the initial value for vector detection in the next frame, and so on.
+
+### 3.6.4 Coding parameter control
+
+#### 3.6.4.1 Control method
+
+Coding control is carried out by selecting quantizing characteristics described in 3.6.2.7 and coding modes described in 3.6.2.1.
+
+#### 3.6.4.2 Control timing
+
+Coding parameters are controlled according to the timing and commands as shown in Table 6.
+
+TABLE 6/H.120
+
+#### Coding parameter, control unit and commands
+
+| Coding parameter | Control unit | Commands |
+|------------------|------------------------------------------------------|---------------------------------------------------|
+| Normal | Frame
Block-line (8 lines)
Block (8 × 16 pels) | SBC = 1, IFM = 1, FRP = 1 and
TRANS (SBS: off) |
+| Quantization | Block-line | QC1 and QC2 |
+| Field repetition | Block-line (Note) | FRP = 0 |
+| Subsampling | Frame | SBC = 0 and FRP = 1 |
+| | Block | TRANS (SBS: on) and FRP = 1 |
+| Stop | Arbitrary | Prediction error $e = 0$
Motion vector $v = 0$ |
+| Demand refresh | Block-lines | DRM = 0 and IFM = 0 |
+| Cyclic refresh | Two lines | DRM = 1, IFM = 0 and CRM 1, 2 |
+
+NOTE – Consecutive 32 block-lines from the first through the 32nd block-lines or from the 33rd through the 64th block-lines are omitted for ordinary field repetition. Other methods are also possible using the FRP command controlled in the unit of block-line.
+
+#### 3.6.4.3 Control sequence
+
+The control sequence is determined based on buffer memory occupancy and other control information. Since this sequence does not affect interworking between different design codecs, it is left to each hardware implementation. However, the codec operating principle is that the coder determines all operating modes, which are transmitted with the coded video data to the decoder as a combination of commands. The decoder reproduces the video signal according to the received commands and data. A control sequence example is shown in Annex F.
+
+### 3.6.5 Entropy coding
+
+#### 3.6.5.1 Configuration of entropy coding
+
+The configuration of entropy coding is shown in Figure 14. The entropy coder compresses the data of the prediction error $e$ and motion vector $v$ , which are provided by the source coder, using variable length coding. These compressed data are multiplexed with coding mode data $m$ and fed into the transmission buffer memory. The multiplexed data format is outlined in Figure 15.
+
+
+
+Parity coding mode: p, m, SBS
+
+Prediction error: e
+
+Motion vector: v
+
+Mode coding
+
+VLC 1
+
+VLC 2
+
+MUX
+
+Multiplexed data
+
+T1513920-93/d11
+
+SBS Subsampling
+VLC Variable word length coder
+
+Figure 14: Configuration of entropy coding. A block diagram showing inputs (Parity coding mode p, m, SBS; Prediction error e; Motion vector v) entering blocks (Mode coding, VLC 1, VLC 2). The outputs of these blocks are combined in a MUX to produce Multiplexed data. A legend defines SBS as Subsampling and VLC as Variable word length coder.
+
+FIGURE 14/H.120
+Configuration of entropy coding
+
+
+
+1 TV frame
+
+First block-line: FS, FMD, LMD, MVD, PED
+
+Second block-line: LS, LMD, MVD, PED
+
+n-th block line: LS, LMD, MVD, PED
+
+T1513930-93/d12
+
+FS Frame sync
+FMD Frame mode data
+LS Line sync
+LMD Line mode data
+MVD Motion vector data
+PED Prediction error data
+
+Figure 15: Multiplexed data format. A diagram showing a sequence of blocks representing a TV frame, divided into block-lines. Each block-line contains fields: FS, FMD, LMD, MVD, PED. The diagram shows the first, second, and n-th block-lines. A legend defines the fields: FS (Frame sync), FMD (Frame mode data), LS (Line sync), LMD (Line mode data), MVD (Motion vector data), PED (Prediction error data).
+
+FIGURE 15/H.120
+Multiplexed data format
+
+#### 3.6.5.2 Commands for coding modes and data structure
+
+The commands for coding modes and data structure are defined as follows:
+
+##### 3.6.5.2.1 Frame sync (FS)
+
+The frame sync is a unique word to designate the start of a video frame and its value is: 0000000000000010.
+
+##### 3.6.5.2.2 Frame mode data (FMD)
+
+The format of the frame mode data is given in Figure 16.
+
+
+
+| | | | | | | |
+|------|----------|-----|----|-----|-----|-----|
+| Head | PT | FM1 | BC | FM2 | FM3 | FM4 |
+| | 10 | 10 | 10 | 10 | 10 | 30 |
+| | byte (Ø) | | | | | |
+
+T1513940-93/d13
+
+Figure 16/H.120: Diagram of the frame mode data (FMD) structure. It shows a 'Head' section followed by fields PT, FM1, BC, FM2, FM3, and FM4. Below the fields are brackets indicating bit widths: 10 for PT, 10 for FM1, 10 for BC, 10 for FM2, 10 for FM3, and 30 for FM4. The text 'byte (Ø)' is below the brackets. The identifier 'T1513940-93/d13' is in the top right.
+
+FIGURE 16/H.120
+
+###### a) *Parity data (PT)*
+
+Odd parity for each of the 8-bit planes of the interpolator output during the previous frame period (MSB first).
+
+###### b) *Frame mode 1 (FM1)*
+
+The format of the frame mode 1 is given in Figure 17.
+
+
+
+| | | | | | | | |
+|-----|-----|-----|-----|---|-----|-----|-----|
+| SBC | BRC | BUC | DRM | 1 | FP2 | FP1 | FP0 |
+|-----|-----|-----|-----|---|-----|-----|-----|
+
+Figure 17/H.120: Diagram of the frame mode 1 (FM1) structure. It is a single row of 8-bit bytes: SBC, BRC, BUC, DRM, 1, FP2, FP1, FP0.
+
+FIGURE 17/H.120
+
+###### i) *Subsample control (SBC)*
+
+When SBC = 0, subsampling is carried out throughout the frame excluding burst signals, reset lines and block-lines with FRP = 0. See 3.6.2.1.
+
+###### ii) *Background revision control (BRC)*
+
+When BRC = 0, the contents of the motion frame memory are transferred to the background frame memory during this frame period. See 3.6.2.4.
+
+###### iii) *Background update control (BUC)*
+
+When BUC = 0, the background frame memory is updated. If BRC is operating, it has priority. See 3.6.2.3.
+
+###### iv) *Demand refresh mode (DRM)*
+
+When DRM = 0, coding is carried out with demand refresh mode. See 3.6.2.4.
+
+###### v) *Frame position, FP2-FP0 (see Note)*
+
+This 3-bit word designates the position of the head line of the video frame or the first line in the first field (MSB first). See Figure 12.
+
+NOTE – FP bits are employed for preventing degradation in the case where the input signals are asynchronously switched to another signal where those signals have different sync phase or different sync frequency. For this purpose, the horizontal sync pulse interval in the codec, namely the picture element numbers per line should be kept as 455 samples, even in the transition period. Furthermore, input signal switching which takes place during the reset line periods should be ignored.
+
+###### c) *Buffer control (BC)*
+
+The staying time of FS in the transmission buffer memory is coded into an 8 bit word (MSB first). See 3.6.6.1.
+
+###### d) *Frame mode 2 (FM2)*
+
+The format of frame mode 2 is given in Figure 18.
+
+| | | | | | | | |
+|---|-----|-----|------|------|-----|-----|---|
+| 1 | DRR | CMS | CRM1 | CRM2 | SF1 | MAF | 1 |
+|---|-----|-----|------|------|-----|-----|---|
+
+FIGURE 18/H.120
+
+###### i) *Demand refresh request (DRR)*
+
+When DRR = 0, the decoder requests a demand refresh to the coder. See 3.6.2.9.
+
+###### ii) *Colour/monochrome state (CMS)*
+
+Colour (bit = 1) / monochrome (bit = 0) where monochrome is optional and the default mode is colour.
+
+###### iii) *CRM1, CRM2: cyclic refresh mode*
+
+This 2-bit word designates the position of the two lines in a block-line which is cyclic refreshed. See Figure 19. See also 3.6.2.4.
+
+###### iv) *Spare frame mode (SF1)*
+
+###### v) *Mode addition flag (MAF)*
+
+When MAF = 0, FM4 is added.
+
+
+
+| | | | | |
+|------|------|---------|------|------------|
+| CRM1 | CRM2 | | Line | |
+| 0 | 0 | { ————— | 1 | Block-line |
+| | | ————— | 2 | |
+| 0 | 1 | { ————— | 3 | |
+| | | ————— | 4 | |
+| 1 | 0 | { ————— | 5 | |
+| | | ————— | 6 | |
+| 1 | 1 | { ————— | 7 | |
+| | | ————— | 8 | |
+
+T1513950-93/d14
+
+Diagram showing the mapping of CRM1 and CRM2 bits to specific lines within a block-line. CRM1=0, CRM2=0 maps to lines 1 and 2. CRM1=0, CRM2=1 maps to lines 3 and 4. CRM1=1, CRM2=0 maps to lines 5 and 6. CRM1=1, CRM2=1 maps to lines 7 and 8. A bracket on the right groups all 8 lines as a 'Block-line'. Source: T1513950-93/d14
+
+FIGURE 19/H.120
+
+e) *Frame mode 3 (FM3)*
+
+National option 8-bit data. If not used, a code consisting of all ones (11111111) is inserted.
+
+f) *Frame mode 4 (FM4)*
+
+| | | | | | | | | |
+|--------|------|------|------|---|------|------|------|------|
+| Byte 1 | SF2 | SF3 | SF4 | 1 | SF5 | SF6 | SF7 | SF8 |
+| Byte 2 | SF9 | SF10 | SF11 | 1 | SF12 | SF13 | SF14 | SF15 |
+| Byte 3 | SF16 | SF17 | SF18 | 1 | SF19 | SF20 | SF21 | SF22 |
+
+SF2-SF22 Spare frame mode.
+
+##### 3.6.5.2.3 Line sync (LS)
+
+The line sync is a unique word to designate the start of a block-line and its value is: 0000000000000011.
+
+##### 3.6.5.2.4 Line mode data (LMD)
+
+The format of the line mode data is given in Figure 20.
+
+
+
+```
+
++------+-----+-----+-----+---+-----+-----+-----+-----+ +-------+
+| Head | QC1 | QC2 | IFM | 1 | LSK | FRP | SL1 | SL2 | | LDN |
++------+-----+-----+-----+---+-----+-----+-----+-----+ +-------+
+ \_________________ 1 byte __________________/ \_ 1 byte _/
+ T1513960-93/d15
+
+```
+
+The diagram illustrates the structure of the Line mode data (LMD). It begins with a 'Head' section consisting of eight bits: QC1, QC2, IFM, 1, LSK, FRP, SL1, and SL2. These eight bits are grouped by a bracket labeled '1 byte'. Following the head is the LDN (Line Data Number) byte, which is also grouped by a bracket labeled '1 byte'. The text 'T1513960-93/d15' is located at the bottom right of the diagram.
+
+Diagram of Line mode data (LMD) format showing a Head byte and an LDN byte.
+
+FIGURE 20/H.120
+
+a) QC1, QC2: *Quantizing characteristics*
+
+| QC1 | QC2 | Characteristics (Table 5) |
+|-----|-----|---------------------------|
+| 0 | 0 | Q 0 |
+| 0 | 1 | Q 1 |
+| 1 | 0 | Q 2 |
+| 1 | 1 | Q 3 |
+
+b) *Forced intraframe prediction mode (IFM)*
+
+When IFM = 0, the prediction function is fixed to intraframe prediction, throughout this block-line if DRM = 0, and at the two lines designated by CRM1 and CRM2 if DRM = 1. See 3.6.2.4.
+
+c) *Line skip (LSK)*
+
+When LSK = 0, the following byte (LDN, line data number) designates the number of block-lines which are skipped. See 3.6.5.5. LDN is coded similarly as the number of vector data, VDN. When LDN = *n*, consecutive (*n* + 1) block-lines are the same. Therefore $0 \leq n \leq 63$ .
+
+###### d) *Field repetition (FRP)*
+
+When FRP = 0, this block-line is omitted because of field repetition. This is valid even if IFM = 0. See 3.6.2.1.
+
+###### e) *SL1, SL2: Spare line mode*
+
+##### **3.6.5.2.5 Motion vector data (MVD)**
+
+The format of the motion vector data is given in Figure 21.
+
+###### a) *Vector data number (VDN)*
+
+Designates the byte number of the following vector data (VD) (in natural binary code, MSB first).
+
+###### b) *Vector data (VD)*
+
+Variable length coded motion vector data.
+
+
+
+Diagram of Motion Vector Data (MVD) format. It shows a row of bytes: n7, n6, n5, 1, n4, n3, n2, n1, followed by a variable-length VD field, and a (Note) field. A bracket labeled 'VDN' covers the first eight bytes (n7 to n1). Another bracket labeled 'n byte' covers the VD field. The text 'T1513970-93/d16' is at the bottom right.
+
+NOTE – Dummy, see 3.6.5.4.6.
+
+FIGURE 21/H.120
+
+##### **3.6.5.2.6 Prediction error data (PED) (variable word length coded)**
+
+The format of the prediction error data is given in Figure 22.
+
+
+
+Diagram of Prediction Error Data (PED) format. It shows a row of bytes: PED, followed by a Dummy field containing '0'. A bracket labeled '(Integer) byte' covers the PED field. A bracket labeled 'Dummy' covers the second field. The text 'T1513980-93/d17' is at the bottom right.
+
+FIGURE 22/H.120
+
+#### **3.6.5.3 Prediction error coding (VLC 1)**
+
+See Figure 14.
+
+##### 3.6.5.3.1 Coding method
+
+The quantizing level number corresponding to prediction error $e$ is coded based on its statistical characteristics. For $e \neq 0$ , variable word length coding is carried out using code V or F stating the quantizing level number (see Table 7). For $e = 0$ , run length code R is used to state a run (RL) of ineffective pels. Note that if RL = 1, a variable word length code $V_0$ or $F_0$ to state $e = 0$ is used (see Table 8).
+
+TABLE 7/H.120
+
+###### Variable length code for non-zero amplitude prediction errors
+
+| Level number | Code length | V code | | Level number | Code length | F code | |
+|--------------|-------------|---------|-------------|--------------|-------------|-------------|--|
+| $V_0$ | 4 | 0 1 1 1 | | $F_0$ | 4 | 0 0 0 1 | |
+| 1 | 2 | 1 S | | 1 | 6 | 1 1 1 1 1 S | |
+| 2 | 5 | 0 1 1 0 | S | 2 | 6 | 1 1 1 1 0 S | |
+| 3 | 7 | 0 1 0 1 | 1 1 S | 3 | 6 | 1 1 1 0 1 S | |
+| 4 | 7 | 0 1 0 1 | 1 0 S | 4 | 6 | 1 1 1 0 0 S | |
+| 5 | 8 | 0 1 0 1 | 0 1 1 S | 5 | 6 | 1 1 0 1 1 S | |
+| 6 | 8 | 0 1 0 1 | 0 1 0 S | 6 | 6 | 1 1 0 1 0 S | |
+| 7 | 8 | 0 1 0 1 | 0 0 1 S | 7 | 6 | 1 1 0 0 1 S | |
+| 8 | 8 | 0 1 0 1 | 0 0 0 S | 8 | 6 | 1 1 0 0 0 S | |
+| 9 | 9 | 0 1 0 0 | 1 1 1 1 S | 9 | 6 | 1 0 1 1 1 S | |
+| 10 | 9 | 0 1 0 0 | 1 1 1 0 S | 10 | 6 | 1 0 1 1 0 S | |
+| 11 | 9 | 0 1 0 0 | 1 1 0 1 S | 11 | 6 | 1 0 1 0 1 S | |
+| 12 | 9 | 0 1 0 0 | 1 1 0 0 S | 12 | 6 | 1 0 1 0 0 S | |
+| 13 | 9 | 0 1 0 0 | 1 0 1 1 S | 13 | 6 | 1 0 0 1 1 S | |
+| 14 | 9 | 0 1 0 0 | 1 0 1 0 S | 14 | 6 | 1 0 0 1 0 S | |
+| 15 | 9 | 0 1 0 0 | 1 0 0 1 S | 15 | 6 | 1 0 0 0 1 S | |
+| 16 | 9 | 0 1 0 0 | 1 0 0 0 S | 16 | 6 | 1 0 0 0 0 S | |
+| 17 | 10 | 0 1 0 0 | 0 1 1 1 1 S | 17 | 6 | 0 1 1 1 1 S | |
+| 18 | 10 | 0 1 0 0 | 0 1 1 1 0 S | 18 | 6 | 0 1 1 1 0 S | |
+| 19 | 10 | 0 1 0 0 | 0 1 1 0 1 S | 19 | 6 | 0 1 1 0 1 S | |
+| 20 | 10 | 0 1 0 0 | 0 1 1 0 0 S | 20 | 6 | 0 1 1 0 0 S | |
+| 21 | 10 | 0 1 0 0 | 0 1 0 1 1 S | 21 | 6 | 0 1 0 1 1 S | |
+| 22 | 10 | 0 1 0 0 | 0 1 1 1 0 S | 22 | 6 | 0 1 0 1 0 S | |
+| 23 | 10 | 0 1 0 0 | 0 1 0 0 1 S | 23 | 6 | 0 1 0 0 1 S | |
+| 24 | 10 | 0 1 0 0 | 0 1 0 0 0 S | 24 | 6 | 0 1 0 0 0 S | |
+| 25 | 10 | 0 1 0 0 | 0 0 1 1 1 S | 25 | 6 | 0 0 1 1 1 S | |
+| 26 | 10 | 0 1 0 0 | 0 0 1 1 0 S | 26 | 6 | 0 0 1 1 0 S | |
+| 27 | 10 | 0 1 0 0 | 0 0 1 0 1 S | 27 | 6 | 0 0 1 0 1 S | |
+| 28 | 10 | 0 1 0 0 | 0 0 1 0 0 S | 28 | 6 | 0 0 1 0 0 S | |
+
+NOTE – S denotes sign. S = 0 for positive, S = 1 for negative.
+
+TABLE 8/H.120
+
+###### **Run length code R for zero amplitude prediction errors**
+
+| RL
(Note 1) | Code length | Code word R | | | | Remark |
+|----------------|-------------|-------------|-------------|-----------------------------|-------|-------------|
+| 2 | 5 | 0 0 | 0 0 1 | | | |
+| 3 | 5 | 0 0 | 0 0 0 | | | |
+| 4 | 6 | 0 0 | 1 0 1 0 | | | |
+| 5 | 6 | 0 0 | 1 0 0 1 | | | |
+| 6 | 6 | 0 0 | 1 0 0 0 | | | |
+| 7 | 7 | 0 0 | 1 0 1 1 1 | | | |
+| 8 to 11 | 7 | 0 0 | 1 1 0 X X | | | X = 11 – RL |
+| 12 | 8 | 0 0 | 1 1 1 1 0 1 | | | |
+| 13 | 8 | 0 0 | 1 1 1 1 0 0 | | | |
+| 14 to 17 | 8 | 0 0 | 1 1 1 0 X X | | | X = 17 – RL |
+| 18 to 25 | 9 | 0 0 | 0 1 1 1 X X | X | | X = 25 – RL |
+| 26 to 33 | 10 | 0 0 | 0 1 1 0 0 X | X X | | X = 33 – RL |
+| 34 to 37 | 10 | 0 0 | 0 1 0 1 0 0 | X X | | X = 37 – RL |
+| 38 to 64 | 12 | 0 0 | 0 1 0 0 1 X | X X X X | | X = 69 – RL |
+| MK1 | 13 | 0 0 | 1 0 1 1 0 Y | Y Y Y Y Y Y | | |
+| MK2 | 14 | 0 0 | 1 1 1 1 1 1 | Y Y Y Y Y Y | | Y = 0 to 63 |
+| MK3 | 14 | 0 0 | 1 1 1 1 1 0 | Y Y Y Y Y Y | | |
+| MK4 to 7 | 15 | 0 0 | 0 1 1 0 1 X | X Y Y Y Y Y Y | | X = 7 – MK |
+| MK8 to 15 | 16 | 0 0 | 0 1 0 1 1 X | X X Y Y Y Y Y Y | | X = 15 – MK |
+| MK16 to 19 | 16 | 0 0 | 0 1 0 1 0 1 | X X Y Y Y Y Y Y | | X = 19 – MK |
+| MK20 to 34 | 18 | 0 0 | 0 1 0 0 0 1 | X X X X X Y Y Y | Y Y | X = 35 – MK |
+| MK35 to 49 | 19 | 0 0 | 0 1 0 0 0 0 | 1 X X X X Y Y Y | Y Y Y | X = 50 – MK |
+| MK50 to 56 | 19 | 0 0 | 0 1 0 0 0 0 | 0 1 X X X Y Y Y
(Note 2) | Y Y Y | X = 57 – MK |
+
+###### NOTES
+
+1 RL = $64 \times (\text{MK number}) + 1 + Y$ , $0 \leq Y \leq 63$ .
+
+2 The maximum run length is $(455 - 3) \times 8 = 3616$ . Corresponding MK and Y turn out to be 56 and 31, respectively. Hence, $0 \leq Y \leq 31$ for MK = 56.
+
+##### **3.6.5.3.2 Scanning sequence**
+
+Entropy coding for a video frame is carried out from the first to the last block lines, excluding reset lines. The frame sync (FS) and frame mode data (FMD) are codes in the first block-line. When the last line falls on the $n$ th line of the last block-line, the frame position is set to $FP = \text{md}(n, 8)$ . FP is transmitted to the decoder as a part of the frame mode data (see Note 1).
+
+Since the first three pels of each line are clamped to 0 in the predictive source coder, and the reset lines are so defined as described in 3.6.2.5.3, the pels to be entropy coded can be indicated as in Figure 23 (see Note 2).
+
+The scanning sequence is a block scan as shown in Figure 24. The first block after scan conversion consists of 4 pels $\times$ 8 lines = 32 pels.
+
+###### NOTE
+
+1 Without asynchronous switching of input video signals, the last block-line coincides with the 64th block-line and $FP = 0$ .
+
+2 Entropy coding is not carried out for the reset lines defined in Figure 12. The number of reset lines in the first field varies according to the FP value.
+
+
+
+Diagram of two 452 x 256 blocks with padding. The top block has a 7-pixel high padding at the top and a 6-pixel high padding at the bottom. The bottom block has a 3-pixel wide padding on the left. The width of each block is 452 pixels, and the height of each block is 256 pixels.
+
+T1513990-93/d18
+
+FIGURE 23/H.120
+Entropy-coded pels
+
+
+
+Diagram showing the scanning sequence for entropy-coded pixels. It is divided into three parts: 'Omitted' (3 columns), 'First block' (4 columns), and 'Second block' (16 columns). The 'Omitted' part shows 3 columns of circles. The 'First block' part shows 4 columns of circles with arrows indicating a zigzag scanning pattern. The 'Second block' part shows 16 columns of circles with horizontal arrows indicating a row-by-row scanning pattern. The labels 'Omitted', 'First block', and 'Second block' are at the bottom. The label 'T1514000-93/d19' is at the bottom right.
+
+FIGURE 24/H.120
+Scanning sequence
+
+##### 3.6.5.3.3 Group of codes
+
+See Table 9.
+
+TABLE 9/H.120
+
+| | Symbol | Number of codes | Length of codes |
+|----------------------|--------|-----------------|-----------------|
+| Amplitude code No. 1 | F | 57 | 4, 6 |
+| Amplitude code No. 2 | V | 57 | 2-10 |
+| Run length code | R | 3615 | 5-19 |
+
+F Pseudo fixed length code for stating quantizing level number. This code is introduced to shorten the maximum code length.
+V Variable length code for stating quantizing number.
+R Variable length code for stating run length of ineffective pels for $RL \geq 2$ .
+
+##### 3.6.5.3.4 Code transition rule
+
+The rule is shown in Figure 25 and a prediction error coding example is given in Annex F.
+
+The following points should be noted:
+
+- the starting code is either the V or R code;
+- the last run in a block-line may not be transmitted since the LS or FS command can be utilized as a termination of the last run;
+- coding is carried out assuming that omitted pels due to subsampling do not exist;
+- some 0s are filled at the tail tail-end of the PED as dummies to make the total number of bits for the block-line data a multiple of 8.
+
+
+
+```
+
+graph TD
+ Start[Block-line start] --> V((V))
+ V --> V0["V0 (rl = 1)"]
+ V --> V14["V1 - V4"]
+ V --> F((F))
+ F --> V
+ V --> R((R))
+ R --> V
+ F --> F528["F5 - F28"]
+ V --> V528["V5 - V28"]
+ V --> F04["F0 - F4"]
+
+```
+
+Diagram illustrating the code transition rule for prediction error data. It shows three states: F (Pseudo fixed length code), V (Variable length code), and R (Run length code). Transitions are as follows: F to V (labeled V5-V28 and F0-F4), V to F (labeled F5-F28), V to V (self-loops labeled V0 (rl=1) and V1-V4), V to R (labeled RL\_i (rl>=2)), and R to V (labeled RL\_i (rl>=2)). A 'Block-line start' arrow points to the V state.
+
+T1514010-93/d20
+
+###### NOTES
+
+- RL is a length of the run to be coded, while rl is a number of continued pels whose $e = 0$ .
+- Prediction error data start with an R or V code. R code is used if $rl \geq 2$ . Otherwise V code is used.
+- The code can shift to V even if $RL \geq 2$ to prevent a buffer memory underflow.
+
+FIGURE 25/H.120
+
+###### Code transition rule for prediction error data
+
+##### 3.6.5.3.5 Code assignments for F and V
+
+See Table 7.
+
+Code assignments are common to the four quantizing characteristics $Q_0, Q_1, Q_2$ and $Q_3$ .
+
+##### 3.6.5.3.6 Code assignments for R
+
+See Table 8.
+
+#### 3.6.5.4 Motion vector coding (VLC 2)
+
+##### 3.6.5.4.1 Coding method
+
+A motion vector $v$ , is first coded with predictive coding whose output $\Delta v$ , is variable length coded throughout a block-line.
+
+##### 3.6.5.4.2 Predictive coding
+
+The prediction algorithm is the previous block prediction which is
+
+$$\Delta v = v - v_1 \quad (3-10)$$
+
+where $v$ and $v_1$ represent the present and the previous block vectors. The operation is carried out for each $x$ and $y$ component in two's complement form. The operated results are expressed with 5 bits for the $x$ component and 4 bits for the $y$ component neglecting carries (MSB first). Note that the decoder carries out the inverse operation $v = v_1 + \Delta v$ in two's complement from neglecting carries.
+
+The motion vector for the first block (horizontal blanking) is set to (0,0).
+
+##### 3.6.5.4.3 Variable length coding
+
+For $\Delta v = (0,0)$ , a run length of zero is coded. For $\Delta v \neq (0,0)$ , variable length coding is applied with their code lengths shown in Figure 26.
+
+The coding of $\Delta v$ is carried out for the 28 vectors of the 2nd to the 29th blocks.
+
+The last run of $\Delta v = (0,0)$ may not be transmitted since VDN states the total bits of VD.
+
+
+
+A grid diagram showing word lengths for motion vector prediction errors. The horizontal axis is labeled ΔVx and ranges from -16 to 15. The vertical axis is labeled ΔVy and ranges from -8 to 7. The grid contains numbers representing bit lengths. Most cells contain '13', with some containing '11', '9', '7', '6', '5', '4', '3', '15', or '1'. The '15' values are in the outer corners, and the '1' value is at the origin (0,0).
+
+T1514020-93/d21
+
+FIGURE 26/H.120
+Word length for motion vector prediction errors
+
+##### 3.6.5.4.4 Code assignments
+
+The codes are assigned as shown in Table 10, where the maximum code length is 15. The variable length codes consist of 541 codes, or 512 codes for $\Delta v$ , 28 codes for run length and one TRANS code for transition of subsampling ON/OFF.
+
+TABLE 10/H.120
+
+###### Variable length code and run length code for motion vector data
+
+| $\Delta Vx$ | $\Delta Vy$ | Code length | Code word | | | Number of codes |
+|-------------|--------------------------|-------------|---------------|-------------------|----------------------------------------|-----------------|
+| $\pm 1$ | 0 | 4 | 0 0 1 | Sx | | 2 |
+| $\pm 1$ | $\pm 1$ | 5 | 1 1 | 1 SxSy | | 8 |
+| 0 | $\pm 1$ | 5 | 1 1 | 0 1 Sy | | |
+| $\pm 2$ | 0 | 5 | 1 1 | 0 0 Sx | | |
+| 0 | $\pm 2$ | 6 | 1 0 1 1 | 1 Sy | | 4 |
+| $\pm 3$ | 0 | 6 | 1 0 1 1 | 0 Sx | | |
+| $\pm 1$ | $\pm 2$ | 7 | 1 0 0 | 1 1 SxSy | | 12 |
+| $\pm 2$ | $\pm 1$ | 7 | 1 0 0 | 1 0 SxSy | | |
+| 0 | $\pm 3$ | 7 | 1 0 0 | 0 1 1 Sy | | |
+| $\pm 4$ | 0 | 7 | 1 0 0 | 0 1 0 Sx | | |
+| $\pm 3$ | $\pm 1$ | 9 | 1 0 1 0 | 1 1 1 SxSy | | 30 |
+| $\pm 1$ | $\pm 3$ | 9 | 1 0 1 0 | 1 1 0 SxSy | | |
+| $\pm 2$ | $\pm 2$ | 9 | 1 0 1 0 | 1 0 1 SxSy | | |
+| $\pm 3$ | $\pm 2$ | 9 | 1 0 1 0 | 1 0 0 SxSy | | |
+| $\pm 4$ | $\pm 1$ | 9 | 1 0 1 0 | 0 1 1 SxSy | | |
+| $\pm 4$ | $\pm 2$ | 9 | 1 0 1 0 | 0 1 0 SxSy | | |
+| $\pm 5$ | 0 | 9 | 1 0 1 0 | 0 0 1 1 Sx | | |
+| $\pm 6$ | 0 | 9 | 1 0 1 0 | 0 0 1 0 Sx | | |
+| 0 | $\pm 4$ | 9 | 1 0 1 0 | 0 0 0 1 Sy | | |
+| -8 to 7 | -5 to +5 (see Figure 26) | 11 | 1 0 0 0 0 1 | X X X X Sy | [X] = $\Delta Vx$ | 32 |
+| -16 to 15 | -6 to +6 (see Figure 26) | 13 | 0 1 0 0 0 0 1 | X X X X X Sy | [X] = $\Delta Vx$ | 64 |
+| -16 to 15 | -8 to +7 (see Figure 26) | 15 | 1 0 0 0 0 0 | X X X X X Y Y Y Y | [X] = $\Delta Vx$
[Y] = $\Delta Vy$ | 359 |
+
+| RL | Code length | Code word | | Number of codes |
+|----------|-------------|-------------------|-----------------|-----------------|
+| 1 | 3 | 0 0 0 | | 1 |
+| 2 | 4 | 0 1 1 1 | | 1 |
+| 3 to 6 | 6 | 0 1 1 0 X X | X X = 6 - RL | 4 |
+| 7 to 12 | 7 | 0 1 0 1 X X X | X X X = 12 - RL | 6 |
+| 13 to 20 | 8 | 0 1 0 0 1 X X X | X X X = 20 - RL | 8 |
+| 21 to 28 | 9 | 0 1 0 0 0 1 X X X | X X X = 28 - RL | 8 |
+| TRANS | 6 | 0 1 0 1 1 1 | | 1 |
+
+###### NOTES
+
+- Sx and Sy denote signs: $S_i = 0$ for positive, $S_i = 1$ for negative.
+- XX..X and YY..Y are expressed in two's complement form (MSB first).
+
+##### 3.6.5.4.5 Transition code for subsampling (TRANS)
+
+The code TRANS indicates transition between ON and OFF for subsampling (SBS). For the first block in a block-line, SBS is set to OFF. Subsampling is then set to ON at the block just after the first TRANS code is inserted, and returned to OFF at the block just after the second TRANS code is inserted. The same sequence follows on. The TRANS code is expressed as a 6-bit word. When SBS = 0, transition code is disregarded in the decoder.
+
+##### 3.6.5.4.6 Dummy code insertion
+
+When a vector data (VD) for a block-line does not have exactly 8 multiple bits, a dummy code consisting of 1 to 7 bits is inserted at the tail of the vector data.
+
+The dummy code has 1 as the head, 0s as the body and 1 as the tail (see Table 11).
+
+TABLE 11/H.120
+
+| Number of dummy bits | Dummy code |
+|----------------------|------------|
+| 1 | 1 |
+| 2 | 11 |
+| 3 | 101 |
+| 4 | 1001 |
+| 5 | 10001 |
+| 6 | 100001 |
+| 7 | 1000001 |
+
+##### 3.6.5.4.7 Code transition rule
+
+The rule is indicated in Figure 27 with a motion vector coding example given in Annex F.
+
+![Diagram illustrating the code transition rule for motion vector data and normal/subsampling mode change. It shows two states, NRM and SBS, connected by TRANS [010111] codes. The diagram includes a 'Block-line start' arrow pointing to the NRM state, and self-loops for each state labeled '[V] or [RL]'. The text 'T1514030-93/d22' is present in the bottom right.](b4f6d3668f7e851eaff07ccf26001623_img.jpg)
+
+```
+
+graph LR
+ Start(( )) -- "Block-line start" --> NRM
+ NRM -- "TRANS [010111]" --> SBS
+ SBS -- "TRANS [010111]" --> NRM
+ NRM -- "[V] or [RL]" --> NRM
+ SBS -- "[V] or [RL]" --> SBS
+ style Start fill:none,stroke:none
+
+```
+
+Diagram illustrating the code transition rule for motion vector data and normal/subsampling mode change. It shows two states, NRM and SBS, connected by TRANS [010111] codes. The diagram includes a 'Block-line start' arrow pointing to the NRM state, and self-loops for each state labeled '[V] or [RL]'. The text 'T1514030-93/d22' is present in the bottom right.
+
+NOTE – The same motion vector coding method is applied for both NRM and SBS modes.
+
+FIGURE 27/H.120
+Code transition rule for motion vector data
+and normal/subsampling mode change
+
+#### 3.6.5.5 Block-line skipping
+
+If block-lines continue, in which all the prediction error $e$ , data and motion vector $v$ data are 0, and whose line mode data (QC1, QC2, IFM, FRP, SL1, SL2) are identical, their number is run-length coded with natural binary code as skipped block-lines. A run ends when it encounters FS or a block-line with new line mode data or some $e \neq 0$ or some $v \neq 0$ . A run also ends when variable length code $V_0$ appears due to underflow prevention.
+
+### 3.6.6 Buffer memory
+
+#### 3.6.6.1 Receiving buffer control
+
+The staying period of FS in the transmission buffer is counted with a 1/16 input video line frequency clock and transmitted to the decoder as BC command. The staying period is represented in eight bit binary code. Similarly, the staying period in the receiving buffer is counted and the operation of the receiving buffer is so controlled as to make the total delay time caused by the two buffer memories constant.
+
+NOTE – This control method is applicable even when the read out speed for the transmission buffer varies.
+
+#### 3.6.6.2 Memory size
+
+Transmission buffer memory size $B_S$ is defined as 180 kbits, while receiving buffer memory size $B_R$ should be more than 220 kbits considering the variation of the transmission buffer read out speed.
+
+NOTE – The delay time due to the transmission and receiving buffer memories becomes about 165 ms for $B_S = 180$ kbits and $B_R = 220$ kbits.
+
+#### 3.6.6.3 Underflow prevention
+
+If the occupancy of the transmission buffer decreases to a threshold, the run length coding for the prediction error is prohibited and variable length code $V_0$ is used.
+
+#### 3.6.6.4 Overflow prevention
+
+If the occupancy of the transmission buffer increases to another threshold, stop mode for setting forcibly all the prediction error and motion vector data to 0 is applied.
+
+## 3.7 Audio coding
+
+An audio channel using 64 kbit/s is included. The audio coding algorithm complies with Recommendation G.722.
+
+Since video coding and decoding introduces a significant delay as described in 3.3.11, the encoded audio signal should be delayed by the corresponding time in the coder and decoder to obtain the proper synchronization between video and audio at the decoder. The delay inserted in the audio coder should be the sum of a half of the buffer memory delay and other video coding process delay, while the delay inserted in the audio decoder should be the sum of a half of the buffer delay and other video decoding process delay.
+
+## 3.8 Transmission coding
+
+### 3.8.1 General
+
+The transmission coder assembles the video, audio, optional data and codec-to-codec information channels into a 1544 kbit/s digital stream. With all serialized data, the most significant digit leads.
+
+### 3.8.2 Encryption
+
+Video and audio signals can be independently encrypted on an optional basis. Their algorithms are under study. Keys and other control information can be transmitted through the message channel provided in the codec-to-codec information channel.
+
+### 3.8.3 Error correction
+
+An encoded (and encrypted) video signal is forward error corrected by a (255, 239) two-error correcting BCH code with the following polynomial generator:
+
+$$g(x) = (1 + x^2 + x^3 + x^4 + x^8) (1 + x + x^2 + x^4 + x^5 + x^6 + x^8)$$
+
+One framing bit is added to each 255 bit error correction frame, and 16 such frames are assembled into one large frame as shown in Figure 28. The frame alignment pattern is 0001101y (y: for future multiframe alignment signal use). The other 8 bits are used for controlling purposes, whose protocol is under study.
+
+To correct a burst error of up to 32 bits, 16 phase interleaving is employed. The bit allocation rule is also indicated in Figure 28. Note that framing bits are excluded from interleaving.
+
+
+
+Frame No. 1 2 3 4 14 15 16
+
+S1 S2 S3 255 S4 S15 S16
+
+S1 S2 S3 S4 S15 S16
+
+T1514040-93/d23
+
+S1 S3 S5 S7 S9 S11 S13 = 0001101
+ S15 Multiframe alignment signal
+ S2 S4 S6 ... S16 Control information
+
+Diagram illustrating error correction frames and interleaving. It shows 16 frames (Frame No. 1, 2, 3, 4, 14, 15, 16) with 255 bits each. The first frame has a framing bit S1. The second frame has a framing bit S2. The third frame has a framing bit S3. The fourth frame has a framing bit S4. The fourteenth frame has a framing bit S15. The fifteenth frame has a framing bit S16. The sixteenth frame has a framing bit S16. The diagram shows the interleaving of bits from these frames. The legend indicates: S1 S3 S5 S7 S9 S11 S13 = 0001101 (Multiframe alignment signal), S15 (Multiframe alignment signal), and S2 S4 S6 ... S16 (Control information).
+
+FIGURE 28/H.120
+**Error correction frames and interleaving**
+
+### 3.8.4 Scrambling
+
+An error corrected video signal is scrambled with an 8-stage pseudo-random pulse generator to reduce stuffing required by the network restrictions. At each error correction frame bit, the scrambler is reset. The polynomial generator and the scrambled output pattern following the reset pulse for the input of all zeros are as follows:
+
+$$1 + x^4 + x^5 + x^6 + x^8,$$
+
+$$1111010011 \dots 1001111011.$$
+
+### 3.8.5 Frame structure and stuffing
+
+Clause 3/H.130 is applied.
+
+# **Annex A** (referring to clause 1 of Recommendation H.120)
+
+## **Graphics option – 625 line**
+
+(This annex forms an integral part of this Recommendation)
+
+## **A.1 Introduction**
+
+In order to comply with the requirements of Recommendation H.100, an optional graphics mode may be provided giving improved definition at the expense of ability to convey movement. Two suitable arrangements are as follows:
+
+## **A.2 Graphics codec for videoconferencing graphics – Mode 1**
+
+### **A.2.1 Facilities**
+
+The graphics mode provides, for still pictures, a capability of full 625-line luminance definition and colour definition which is better than that of the PAL and SECAM systems. It provides a limited capability for conveying movement, sufficient to permit pointing at items under discussion on the display. When the codec is in or adjacent to, the conference room, an alternative frozen-frame mode enables the face-to-face picture frozen for about 1.5 s while the graphics picture is being transmitted, to restart while the frozen graphics picture was displayed on another monitor.
+
+The definition in the graphics mode is sufficient to permit good reproduction of one-half an A4 page of typescript.
+
+### **A.2.2 Coding**
+
+The luminance and colour-difference signals are sampled at 12.5 MHz and 12.5/3 MHz respectively, the sampling frequency being locked to the television line-scanning frequency.
+
+The samples are converted to PCM with 6 bits/sample. The luminance signal has a two-level half-sampling-frequency dither signal added to it which reduces the quantization distortion to approximately that of 7-bit coding.
+
+Only the active picture area is sampled. Thus, there are 639 luminance samples along the line and two fields of 288 lines.
+
+One colour-difference sample occurs every three luminance samples. Two of the 6 bits from a colour-difference sample are added to each of the three associated luminance samples, giving three 8-bit words for three luminance samples plus one colour-difference sample.
+
+The $(E'_R - E'_Y)$ component is associated with the first, third, fifth, etc., active lines of Field No. 1, with the $(E'_B - E'_Y)$ component on the intervening lines, the pattern being reversed in Field No. 2.
+
+The colour-difference samples are delayed with respect to the luminance samples to which they are attached, so that when decoded, they are coincident with the luminance output. The centre of the first colour-difference element on a line is co-sited with the second luminance element. Similarly, the centre of the 213th colour-difference element is co-sited with the 638th luminance element.
+
+The luminance signal is amplitude-limited so that its PCM values are confined to the range:
+
+| | |
+|----------------------------------------------------|-------------------|
+| Black level..... | 000000 |
+| White level (700 mV):
transmission between..... | 100111 and 111000 |
+| Maximum level (750 mV)..... | 111011 |
+
+The colour-difference signals are limited to the range: 000000 to 111111 (0 to 63) with black level at 100000 (32). The 100/0/75/0 colour bar signal (see CCIR Recommendation 471 for explanation of nomenclature) fills the range: 000100 to 111100 (4 to 60). Prior to transmission, the colour difference codes are converted to the two's complement form by inversion of the most significant bit. This gives the range: 100000 to 011111 (-32 to 31) with the black level at 000000. The colour bar signal then occupies the range: 100100 to 011100 (-28 to 28).
+
+### A.2.3 Transmission and synchronization
+
+#### A.2.3.1 General
+
+The PCM words, formed as above, are transmitted to give a continuous update of the picture store in the receiver. The update pattern, which has been chosen to give smooth transitions on a changing picture, transmits every 19th luminance sample (with associated colour-difference data). The sequence of every 19th sample continues from one line to the next, as if the 639 elements in one active line are followed immediately (that is, without a gap for line blanking) by the 639 active elements in the next line. The use of this continuous sequence of samples makes line addressing unnecessary. A field synchronization code, followed by the address (in the range of 0 to 18) of the first luminance sample of the first active line, provides all the necessary synchronizing information.
+
+The field synchronization code comprises 8 bytes of the form 11110011 or 11111100, which are invalid PCM values. The order of the last two pairs of bits, 0011 or 1100, in each of the first seven bytes, representing 0 and 1 respectively, signals the address of the first element of the field. In the 8th byte, 1100 signals a first field (starting line 23) and 0011 a second field (starting line 336).
+
+The sequence in which the fields are transmitted by the address of the first luminance sample of the first line need not be specified because the decoder reconstructs the picture from the received addresses. A sequence which has been found satisfactory, giving no patterns with moving objects (e.g. a pointing finger), is as follows with the number in parentheses indicating a first or second field:
+
+1 (2), 13 (1), 6 (2), 18 (1), 3 (2), 10 (1), 15 (2), 4 (1), 0 (2), 8 (1), 12 (2), 5 (1), 14 (2), 9 (1), 17 (2), 2 (1), 11 (2), 7 (1), 16 (2),
+
+followed by:
+
+1 (1), 13 (2), 6 (1), . . . in the same sequence as above, but with the field number interchanged.
+
+After 38 fields, the complete picture has been replenished and the sequence repeats itself from the beginning.
+
+#### A.2.3.2 Data structure
+
+In each transmitted field, the data comprises 8 field synchronization bytes followed by 9685 or 9686 bytes of picture data (the total number of picture elements per field, $639 \times 288$ , is not divisible by 19). Fields where the address of the first element is in the range 0 to 16 have 9686 transmitted bytes, while those with the first element address 17 or 18, have 9685 transmitted bytes.
+
+Each byte of picture data comprises 6 bits of luminance data plus 2 bits of colour-difference data. The most significant bits of the colour-difference sample are transmitted first and the pairs of bits of the colour-difference data are placed in the least significant positions of the picture data byte. The data is arranged so that the luminance sample for the first picture element of a line carries with it the two most significant bits of the 19th colour-difference element belonging to the following line. The centre bits and the least significant bits of this colour-difference element are attached to the 20th and 39th along-the-line addresses respectively, these being the next two transmitted samples.
+
+There are no colour-difference data transmitted for the first line of the picture and, on the second line, the first 18 colour-difference elements of the second line cannot be reconstructed at the decoder.
+
+#### A.2.3.3 Data output
+
+The graphics data are generated at a nominal rate of 3.74 Mbit/s and are transmitted via a buffer store whose capacity is in excess of 160 kbits. The output to the transmission channel is at less than 2 Mbit/s, the actual value depending on the number of time slots allocated to video. When the buffer level at the end of a field exceeds 160 kbits, the sampling is suspended for two complete fields to allow the buffer to empty.
+
+If the level is then still in excess of 160 kbits, sampling is suspended for a further two fields.
+
+The octet structure of the output data must be aligned with the time slot structure of the primary rate interface.
+
+The approximate transmission time for a complete picture is therefore in the range of 1.6 to 4.6 s.
+
+### A.2.4 Decoder
+
+The received data are associated with addresses derived from the field synchronization code and assembled in a picture store having $639 \times 576$ addressable positions with 8-bit capacity. The data are stored in the multiplexed form (luminance and colour-difference) used for transmission. The contents of this store are read out sequentially, the luminance and colour-difference components demultiplexed, and the colour-difference components line-interpolated to give the $(E'_R - E'_Y)$ and $(E'_B - E'_Y)$ components simultaneously and coincident with their associated luminance.
+
+## A.3 Graphics codec for videoconferencing-graphics – Mode 2
+
+### A.3.1 Facilities
+
+The graphics mode provides, for still pictures, the capability of full 625-line luminance and colour definition. It allows transmission for still pictures with studio quality, defined in CCIR Recommendation 601. The graphics codec can be operated in two modes. In the single shot mode, the face-to-face picture is frozen for about 4 s, while the graphics picture is being transmitted, to restart while the graphics picture is displayed on another monitor. In the continuous mode, the face-to-face picture is frozen during the graphics presentation. The graphics picture is continuously transmitted in order to reproduce slow movement, e.g. for blackboard presentations. When the graphics picture has stabilized or when the presentation is finished, the graphics picture is frozen and the face-to-face picture is restarted.
+
+The definition of the graphics mode 2 is better than that of the PAL, SECAM and NTSC systems and is sufficient to permit good reproduction of one-half of an A4 page typescript.
+
+### A.3.2 Coding
+
+The luminance signal ( $E'_Y$ ) and colour-difference signals ( $E'_R - E'_Y$ , $E'_B - E'_Y$ ) are sampled at 13.5 MHz and 6.75 MHz respectively, according to the encoding parameters of digital television for studios given in CCIR Recommendation 601. The sampling frequencies are related in the ratio 4 : 2 : 2. The sampling structure is orthogonal, line, field and picture repetitive. The samples of the colour-difference signals are co-sited with the first, third, fifth, etc. luminance sample in each line. All samples are uniformly quantized PCM-values with 8 bits/sample.
+
+Only the active picture area is sampled. There are 720 luminance samples along the line and two fields of 288 lines.
+
+The luminance signal is amplitude-limited so that its PCM values are confined to the range:
+
+Black level: 16;
+
+Peak level: 235.
+
+Each colour-difference signal exhibits 225 quantization levels in the centre part of the quantization scale with zero signal corresponding to level 128.
+
+Further details are given in CCIR Recommendation 601.
+
+### A.3.3 Transmission and synchronization
+
+#### A.3.3.1 General
+
+Luminance and colour-difference samples of each line are arranged as sets for four samples:
+
+$$\left[ (E'_B - E'_Y)_n, (E'_Y)_n, (E'_R - E'_Y)_n, (E'_Y)_{n+1} \right]$$
+
+where
+
+$n = 0, 2, 4, 6, \dots, 718$ . Each set consists of four words with 8 bit word length. There are 360 sets in each line of the picture.
+
+The PCM sets are transmitted to give a continuous update of the picture store in the receiver. The update pattern which has been chosen transmits every 19th set. The sequence of every 19th set continues from one line to the next, as if the 360 sets in one active line are followed immediately (that is, without a gap for line blanking) by the 360 sets of the next line. The use of this continuous sequence of samples makes line addressing unnecessary. A field synchronization code, followed by the address of the first set of the first active line, provides all the necessary synchronizing information. The address is in the range 0 to 18.
+
+The field synchronization code comprises eight bytes of the form 11110011 or 11111100. These two codewords are not allowed for the coded video signal. The order of the last two pairs of bits, 0011 or 1100, in each of the first seven bytes, representing 0 and 1 respectively, signals the address of the first set of the field. In the 8th byte, 1100 signals a first field (starting line 23) and 0011 a second field (starting line 336).
+
+The sequence in which the fields are transmitted is defined by the address of the first set of the first line and need not be specified, because the decoder reconstructs the picture from received addresses.
+
+#### A.3.3.2 Data structure
+
+In each transmitted field, the data comprises 8 field synchronization bytes followed by the sets of picture data. In each set, $(E'_B - E'_Y)_n$ is transmitted first, followed by $(E'_Y)_n$ , $(E'_R - E'_Y)_n$ and $(E'_Y)_{n+1}$ . For transmission, a parallel-to-serial conversion takes place at the encoder. The most significant bits in the transmitted bit stream are leading.
+
+#### A.3.3.3 Data output
+
+The output bit-rate to the transmission channel is at less than 2 Mbit/s, the actual value depending on the number of time slots allocated to video.
+
+The octet structure of the output data must be aligned with the time slot structure of the primary rate interface.
+
+The approximate transmission time for a complete picture is 4 s.
+
+### A.3.4 Decoder
+
+The received data are associated with addresses derived from the field synchronization code and assembled in a picture store having a capacity of 6.6355 Mbits. The contents of this store are read out sequentially.
+
+### A.3.5 Interface
+
+#### A.3.5.1 Video interface
+
+- i) *Analogue interface* – An RGB-interface rather than a composite signal interface (PAL, SECAM) is recommended to maintain a high quality video signal.
+- ii) *Digital interface* – The structure of sets defined in A.3.3.2 allows for definition of a digital interface according to CCIR Recommendation 656 for $E'_Y$ , $E'_R - E'_Y$ and $E'_B - E'_Y$ .
+
+#### A.3.5.2 Digital interface for transmission signal
+
+The graphics mode may be internal or external to the face-to-face codec. An external device may have a digital interface according to Recommendations X.21 and V.11 (leased circuits). The picture data must be delayed at least 40 ms with respect to the control signal C specified in Recommendation X.21.
+
+### A.3.6 Signalling of graphics mode 2
+
+The graphics mode 2 is signalled in the codec-to-codec information with bit 3.1.5 set to 1. For nomenclature of the bits, see Recommendation H.130.
+
+### A.3.7 Compatibility with graphics mode 1
+
+In the graphics encoder and decoder, additional means are incorporated to make graphics mode 2 compatible with mode 1. They are signalled by setting bit 3.1.0 to 1 in the codec-to-codec information. If bit 3.1.5 of the codec-to-codec information is received set to 0 and bit 3.1.0 is received set to 1, then the graphics codec automatically switches into mode 1.
+
+# **Annex B** (referring to clause 1 of Recommendation H.120)
+
+## **Encryption option – 625 line**
+
+Under study.
+
+# **Annex C** (referring to clause 2 of Recommendation H.120)
+
+## **Graphics option – 525 line**
+
+(This annex forms an integral part of this Recommendation)
+
+## **C.1 Introduction**
+
+The 525-line version of this graphics mode is very similar to the 625-line version for mode 1 specified in Annex A. It uses the same systematic replenishment technique and since the receiver is totally asynchronous from the transmitter, no adjustment for the differing picture rates is necessary. Instead of any form of standards conversion, the interworking between the 525-line and 625-line versions is provided by creating a small change in picture size. In 525 to 525-line transmission, the displayed picture size is the same as produced by the transmitting camera. In 525 to 625-line transmission, the displayed picture is reduced in size and is surrounded by a small black border (about 8%). In 625 to 525-line transmission, the displayed picture is expanded (equivalent to an overscan of about 8.5% in each border) so that a small amount of the transmitted picture area is not displayed.
+
+Most of the details of this graphics mode are identical to those of the 625-line version for mode 1 in Annex A, so that only the difference need be specified in this Annex.
+
+## **C.2 Facilities**
+
+The facilities are essentially the same as for the 625-line version.
+
+## **C.3 Coding**
+
+The luminance and colour-difference sampling frequencies are 10.08 and 10.08/3 MHz respectively, the sampling frequency being locked to the television line-scanning frequency.
+
+The arrangements for PCM coding are identical with the 625-line version but an area greater than the active picture area is sampled. There are 639 samples per line, the same number as for the 625-line version; 494 or 516 lines per picture are sampled. When a 525-line signal is being sampled at 10.08 MHz, only about 537 samples are required for the active line. The excess 102 samples, set to black level, are placed evenly on each side of the active line samples.
+
+For 525-line transmission, samples from the first active line of Field No. 1 (line 14) form the $(E'_B - E'_Y)$ component, while those from the first active line of Field No. 2 (line 277) form the $(E'_R - E'_Y)$ component. For 625-line transmission, samples from the first active line of Field No. 1 (line 9) form the $(E'_R - E'_Y)$ component and those from the first active line of Field No. 2 (line 272) form the $(E'_B - E'_Y)$ component.
+
+## C.4 Transmission and synchronization
+
+### C.4.1 General
+
+The systematic replenishment algorithm based on the consecutive transmission of every 19th sample is also used in the 525-line version. However, since the samples extend over almost the complete line period, the divide-by-nineteen clock is suspended for only one luminance sample period during line-blanking. During transmission to a 625-line decoder, 5 additional lines per field are included before the picture area starts together with 6 additional lines per field after the end of the picture area, increasing the lines per field from 247 to 258. The luminance and colour-difference values on the extra lines are set to black level. Also, the divide-by-nineteen clock is changed to divide-by-five while samples are being selected from the added lines. This deceives the 625-line decoder into believing that there are 19 lines (per field) of black above the picture and 22 lines below the picture, making the total number of lines per field equal to 288, the same value as in Annex A.
+
+The field synchronization code and the method of identifying fields are identical to those described in Annex A (except that the first line of Field No. 1 may be either line 14 or 9 and that of Field No. 2 either line 277 or 272).
+
+### C.4.2 Data structure
+
+In 525 to 525-line transmission, each transmitted field comprises 8 field-synchronization bytes followed by 8307 bytes of picture data.
+
+In 525 to 625-line transmission, each transmitted field comprises 8 field-synchronization bytes followed by 9685 or 9686 bytes of picture data, exactly the same as in the 625-line version in Annex A. In the 525-line coder the picture data are assembled from:
+
+| | |
+|-------------------------------------------------------|-------------|
+| 5 lines of 639 samples, every 5th sample . . . . . | 639 bytes; |
+| 247 lines of 639 samples, every 19th sample . . . . . | 8207 bytes; |
+| 6 lines of 639 samples, every 5th sample . . . . . | 766 bytes. |
+
+The number of bytes required from the 6 lines at the bottom of the picture is 739 or 740. The excess bytes (all at black level), arising from non-integral results of division, are discarded.
+
+Other details of the data structure are as in Annex A.
+
+### C.4.3 Data output
+
+The graphics data are generated at a nominal rate of about 4 Mbit/s and fed into buffer store. The output from the buffer is at less than 2 Mbit/s (depending on the number of time slots allocated to video). When the buffer level at the end of a field exceeds 160 kbits, the sampling is suspended for two complete fields to allow the buffer to empty. If the level is then still in excess of 160 kbits, sampling is suspended for a further two fields.
+
+The octet structure of the output data must be aligned with the time slot structure of the primary rate interface.
+
+The resulting transmission time for a complete picture is of the order of 1.7 to 3 s.
+
+## C.5 Decoder
+
+The received data are associated with addresses derived from the field synchronization code and assembled in a picture store having $639 \times 494$ addressable positions with 8-bit capacity. The data are stored in the multiplexed form (luminance and colour-difference) used for transmission. The contents of the store are read out sequentially, the luminance and colour-difference components line-interpolated to give the $(E'_R - E'_Y)$ and $(E'_B - E'_Y)$ components simultaneously and coincident with the associated luminance.
+
+The length of the line in the picture store is 639 elements; for a 525-line picture sampled at 10.08 MHz, the active line requires only 537 elements. When television blanking is applied to the output signals, the 102 extra elements are suppressed and the standard 525-line signal results.
+
+When receiving a signal from a 625-line terminal, 639 elements per line are received and stored. However, the first 19 active lines and the last 22 active lines of each field of the 625-line signal are not read into the store and are discarded. This, together with the effect of the line blanking on the horizontal output from the store, provides a 525-line display corresponding to the 625-line input picture after a border about 8% wide has been trimmed from all four edges.
+
+# **Annex D**
+
+(referring to clause 2 of Recommendation H.120)
+
+## **Encryption option – 525 line**
+
+Under study.
+
+# **Annex E**
+
+(referring to clause 3 of Recommendation H.120)
+
+## **Colour decoding and coding filters**
+
+(This annex forms an integral part of this Recommendation)
+
+## **E.1 Configuration**
+
+See Figure E.1.
+
+a) Digital colour separation circuit
+
+
+
+Block diagram of a digital colour separation circuit. An NTSC signal at 4 f\_sc enters from the left. One path goes through a 1H line delay. The output of the delay is subtracted from the original NTSC signal. The result is filtered by a Y-LPF and then a Y-SCT (4 f\_sc) to produce the Y signal at 2 f\_sc. Another path from the subtraction point goes through a C-BPF. The output of the C-BPF is multiplied by ±1 and then filtered by a C-LPF (2 f\_sc) to produce the C1 signal at 1/3 f\_sc. Another path from the C-BPF is multiplied by ±1 and then filtered by a C-LPF (2 f\_sc) to produce the C2 signal at 1/3 f\_sc.
+
+b) Digital colour composition circuit
+
+
+
+Block diagram of a digital colour composition circuit. The Y signal at 2 f\_sc is filtered by a Y-IPF to produce a signal at 4 f\_sc. The C1 signal at 1/3 f\_sc is filtered by a C-IPF to produce a signal at 2 f\_sc, which is then multiplied by ±1. The C2 signal at 1/3 f\_sc is filtered by a C-IPF to produce a signal at 2 f\_sc, which is then multiplied by ±1. The outputs of the Y-IPF and the multipliers are summed to produce the final NTSC signal at 4 f\_sc.
+
+| | |
+|----------|-----------------------------------|
+| H | Line delay |
+| Y-LPF | Low pass filter for Y signal |
+| Y-SCT | Subcarrier trapper |
+| C-BPF | Band pass filter for C signal |
+| C-LPF | Low pass filter for C signal |
+| $f_{sc}$ | Colour subcarrier frequency |
+| Y-IPF | Interpolation filter for Y signal |
+| C-IPF | Interpolation filter for C signal |
+
+FIGURE E.1/H.120
+
+## E.2 Basic filter characteristics
+
+See Table E.1.
+
+TABLE E.1/H.120
+
+| Filter | Transfer function H(z) |
+|--------|----------------------------------------------------------------------------------------------------------------|
+| C-BPF | $(-Z^{-2} + 2 - Z^2)/4$ |
+| Y-LPF | $(-3Z^{-3} + 19Z^{-1} + 32 + 19Z - 3Z^3)/64$ |
+| Y-SCT | $(Z^{-5} - 3Z^{-3} + 10Z^{-1} + 10Z - 3Z^3 + Z^5)/16$ |
+| C-LPF | $(Z^{-4} + 3Z^{-2} + 4 + 3Z^2 + Z^4)/12$ |
+| Y-IPF | $(-3Z^{-3} + 19Z^{-1} + 32 + 19Z - 3Z^3)/64$ |
+| C-IPF | $(Z^{-2} + 1 + Z^2)(Z^{-1} + 2 + Z)(-Z^{-8} - 2Z^{-6} + 2Z^{-4} + 6Z^{-2} + 6 + 6Z^2 + 2Z^4 - 2Z^6 - Z^8)/192$ |
+
+## E.3 Advanced filter characteristics
+
+See Table E.2.
+
+TABLE E.2/H.120
+
+| Filter | Transfer function H(z) |
+|--------|----------------------------------------------------------------------------------------------------------------|
+| C-BPF | $(Z^{-8} - 9Z^{-6} + 17Z^{-4} - 23Z^{-2} + 28 - 23Z^2 + 17Z^4 - 9Z^6 + Z^8)/128$ |
+| Y-LPF | $(-Z^{-7} + 4Z^{-5} - 10Z^{-3} + 39Z^{-1} + 64 + 39Z - 10Z^3 + 4Z^5 - Z^7)/128$ |
+| Y-SCT | $(Z^{-5} - 3Z^{-3} + 10Z^{-1} + 10Z - 3Z^3 + Z^5)/16$ |
+| C-LPF | $(Z^{-4} + 3Z^{-2} + 4 + 3Z^2 + Z^4)/12$ |
+| Y-IPF | $(-Z^{-7} + 4Z^{-5} - 10Z^{-3} + 39Z^{-1} + 64 + 39Z - 10Z^3 + 4Z^5 - Z^7)/128$ |
+| C-IPF | $(Z^{-2} + 1 + Z^2)(Z^{-1} + 2 + Z)(-Z^{-8} - 2Z^{-6} + 2Z^{-4} + 6Z^{-2} + 6 + 6Z^2 + 2Z^4 - 2Z^6 - Z^8)/192$ |
+
+# **Annex F** (referring to clause 3 of Recommendation H.120)
+
+## **An example of coding control sequence** (This annex forms an integral part of this Recommendation)
+
+
+
+The figure is a step-like graph illustrating the relationship between buffer memory occupancy and quantizing characteristics for different coding modes. The x-axis represents 'Buffer memory occupancy' with markers from 0 to T8. The y-axis on the right represents 'Quantizing characteristics' with markers Q0, Q1, Q2, and Q3. The y-axis on the left lists 'Coding modes': Normal, Field repetition, Field repetition and subsampling, and Stop. The graph shows that as buffer occupancy increases, the quantizing characteristic generally decreases (from Q0 to Q3). The 'Normal' mode starts at Q0 and steps down to Q3 at T5. The 'Field repetition' mode starts at T2 and steps down to Q3 at T6. The 'Field repetition and subsampling' mode starts at T6 and steps down to Q3 at T7. The 'Stop' mode is indicated by a vertical line at T8.
+
+| Coding mode | Start | End | Quantizing characteristic |
+|----------------------------------|-------|-----|---------------------------|
+| Normal | 0 | T1 | Q 0 |
+| Normal | T1 | T2 | Q 1 |
+| Normal | T2 | T3 | Q 2 |
+| Normal | T3 | T4 | Q 2 |
+| Normal | T4 | T5 | Q 3 |
+| Normal | T5 | T8 | Q 3 |
+| Field repetition | T2 | T3 | Q 1 |
+| Field repetition | T3 | T4 | Q 2 |
+| Field repetition | T4 | T5 | Q 3 |
+| Field repetition | T5 | T6 | Q 3 |
+| Field repetition | T6 | T7 | Q 3 |
+| Field repetition | T7 | T8 | Q 3 |
+| Field repetition and subsampling | T6 | T7 | Q 2 |
+| Field repetition and subsampling | T7 | T8 | Q 3 |
+| Stop | T8 | T8 | Q 3 |
+
+A graph showing the relationship between Buffer memory occupancy (T0 to T8) and Quantizing characteristics (Q0 to Q3) for different Coding modes (Normal, Field repetition, Field repetition and subsampling, Stop).
+
+FIGURE F.1/H.120
+
+# **Annex G** (referring to clause 3 of Recommendation H.120)
+
+## **Examples of entropy coding**
+
+(This annex forms an integral part of this Recommendation)
+
+
+
+The figure is a bar chart representing the quantization level number of a prediction error 'e' over a series of time intervals. The vertical axis is labeled 'e (Quantization level number)' and the horizontal axis is labeled 'Time'. The bars show varying heights, indicating different quantization levels. Below the x-axis, the timeline is divided into segments with labels: $R_2$ , $V_5$ , $F_6$ , $F_0$ , $V_0$ , $V_1$ , $F_2$ , $V_1$ , $V_6$ , $F_2$ , $V_1$ , $R_3$ , $V_1$ , $V_0$ , $V_2$ , $R_{67}$ , $V_5$ , $F_0$ , and $R$ . Double-headed arrows indicate the duration of each segment. A break in the timeline is marked with '//' between $R_{67}$ and $V_5$ . A small code 'T1514070-93/d26' is located at the bottom right of the chart.
+
+A bar chart showing the quantization level number of prediction error 'e' over time. The y-axis is labeled 'e (Quantization level number)' and the x-axis is labeled 'Time'. The chart displays several bars of varying heights. Below the x-axis, there are labels for different regions and states: R2, V5, F6, F0, V0, V1, F2, V1, V6, F2, V1, R3, V1, V0, V2, R67, V5, F0, and R. A break in the x-axis is indicated by '//' between R67 and V5. A small code 'T1514070-93/d26' is present at the bottom right of the chart area.
+
+FIGURE G.1/H.120
+**Coding of prediction error e**
+
+a) When SBS is off
+
+
+
+Diagram illustrating the coding of motion vector $v$ when SBS is off. The top timeline shows the magnitude of the motion vector $\Delta V$ over time, represented by four rectangular pulses. The middle timeline shows the SBS (Spatial Boundary Signal) status, which is constant at OFF. The bottom timeline shows the corresponding code sequence: $RL_3, \Delta V_2, \Delta V_3, \Delta V_1, RL_1, \Delta V_1, \Delta V_3, RL_3$ , where each element is aligned with a pulse in the $\Delta V$ signal.
+
+Timing diagram for SBS off. It shows three horizontal timelines: ΔV, SBS, and Code. ΔV has four rectangular pulses of varying heights. SBS is a single line labeled 'OFF'. Code has labels RL3, ΔV2, ΔV3, ΔV1, RL1, ΔV1, ΔV3, RL3 aligned with the pulses of ΔV.
+
+b) When SBS is on
+
+
+
+Diagram illustrating the coding of motion vector $v$ when SBS is on. The top timeline shows the magnitude of the motion vector $\Delta V$ over time, represented by four rectangular pulses. The middle timeline shows the SBS status, which is ON during the first three pulses and OFF during the fourth. The bottom timeline shows the corresponding code sequence: $RL_2, RL_1, \Delta V_2, \Delta V_3, \Delta V_1, RL_1, \Delta V_1, \Delta V_3, RL_3$ . Vertical dashed lines labeled TRANS indicate the transitions of the SBS signal, aligning with the start and end of the ON period.
+
+Timing diagram for SBS on. It shows three horizontal timelines: ΔV, SBS, and Code. ΔV has four rectangular pulses. SBS is a line that is ON during the first three pulses and OFF during the fourth. Code has labels RL2, RL1, ΔV2, ΔV3, ΔV1, RL1, ΔV1, ΔV3, RL3. Vertical dashed lines labeled TRANS mark the start and end of the ON period for SBS, aligning with the start of RL1 and the start of the second RL1.
+
+T1514080-93/d27
+
+FIGURE G.2/H.120
+Coding of motion vector $v$
+
+# Appendix I Outline description of operation of codecs in clauses 1 and 2
+
+(This appendix does not form an integral part of this Recommendation)
+
+Since the conditional replenishment codec is a complex and unfamiliar item, this simplified outline of its method of operation is included to make the Recommendation more easily comprehensible. More complete descriptions are to be found in published papers [1], [2].
+
+A conditional replenishment codec operates by transmitting only those parts of a picture which differ significantly from one television frame to the next. This normally gives rise to data being generated in spurts separated by gaps in which no data are being generated. To match the non-uniform data generation to a channel transmitting at a uniform rate, a buffer is used to smooth out short-term fluctuations while, for longer-term variations, the coding algorithm is adaptively modified to change the rate of generation. In the event of too much data, caused for example by a lot of movement, the definition of the transmitted moving area is decreased, taking advantage of the reduced ability of the eye to perceive detail as the rate of movement increases. When little movement is present, the moving-area data are supplemented by data from non-moving areas in such a way that the whole picture is replenished over several picture periods. Picture stores are required at both transmitter and receiver and the objective is to make the content of the receiving store follow that of the transmitting store as closely as possible.
+
+The codec can be regarded as comprising three basic sections: the source codec, the video multiplex codec and the transmission codec. Figure I-1 shows an outline of the arrangement.
+
+
+
+The diagram illustrates the signal flow and control structure of a codec. The **Coder** section (top) takes an input of **Video 625-lines, 50 fields/s** through an **ADC** (Analogue-digital converter). The signal then passes through a **DPrF** (Digital pre-filter), a **CRC** (Conditional replenishment coder), a **VMC** (Video multiplex coder), a **TB** (Transmission buffer), and a **TC** (Transmission coder). The **TC** block also receives **Sound** and **Facsimile Data** inputs. The output of the **TC** is a stream at **2048 kbit/s**. The **Decoder** section (bottom) receives this stream through a **TD** (Transmission decoder), which also outputs **Sound** and **Facsimile Data**. The signal then passes through a **RB** (Receiving buffer), a **VMD** (Video multiplex decoder), a **CRD** (Conditional replenishment decoder), a **DPoF** (Digital post-filter), and a **DAC** (Digital-analogue converter) to produce the final output. Control signals are shown between the **VMC** and **TB** blocks, and between the **VMD** and **RB** blocks. A reference label **T1514090-93/d28** is present near the **TD** block.
+
+| | |
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+|
Coder
ADC Analogue-digital converter
DPrF Digital pre-filter
CRC Conditional replenishment coder
VMC Video multiplex coder
TB Transmission buffer
TC Transmission coder
| Decoder
DAC Digital-analogue converter
DPoF Digital post-filter
CRD Conditional replenishment decoder
VMD Video multiplex decoder
RB Receiving buffer
TD Transmission decoder
|
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+
+Outline block diagram of codec showing Coder and Decoder sections. The Coder section includes ADC, DPrF, CRC, VMC, TB, and TC blocks. The Decoder section includes DAC, DPoF, CRD, VMD, RB, and TD blocks. Control signals and data inputs/outputs are shown for both sections.
+
+FIGURE I.1/H.120
+**Outline block diagram of codec**
+
+In the source codec, the video signal is first digitized and optionally pre-filtered. When used, the pre-filter conditions the signal for further processing by reducing noise to improve the performance of the subsequent movement detector and to reduce the subjective effects of subsampling. The movement detector, in conjunction with the picture store, determines which areas in the picture are deemed to be moving. Noise introduces uncertainties in this decision and, when two or more groups of picture elements along a scanning line are deemed to be moving but are separated by small numbers of non-moving picture elements (probably caused by noise), the moving groups and separating elements are combined to form a single cluster, thus minimizing the addressing information which is required. Clusters of moving picture elements are then coded using DPCM followed by variable-length (entropy) coding where the shortest codes are allocated to the most frequently-occurring DPCM prediction errors.
+
+The video multiplex codec adds to the video data the line- and field-synchronization signals together with addressing and other information (for example, whether PCM or DPCM is being transmitted) which must be transmitted in close association with the video to ensure that the decoder responds correctly.
+
+The buffer, which strictly is part of the source coder, accepts the irregularly spaced bursts of data and delivers them at a uniform rate for transmission. The extent to which the buffer is filled is monitored and this is used to modify the rate of data generation by the source coder. It can reduce the data rate by modifying the pre-filter response and the thresholds in the movement detector, and by initiating element and field subsampling. On the other hand, if the buffer tends to empty, it may initiate the generation of complete PCM coded lines to provide systematic updating of the picture stores.
+
+The transmission codec accepts the video data, adds a 64 kbit/s channel for sound, a 32 kbit/s channel for codec-codesignalling and optional additional data channels for facsimile, signalling or other data. It assembles the various signals into a frame structure, defined in Recommendation H.130 which is compatible with Recommendation G.732 and therefore suitable for transmission on 2048 kbit/s digital paths. In doing so, it provides the justification facilities to enable the clock for video processing to be independent of the network clock.
+
+# Appendix II
+
+(referred to in Annexes A and C)
+
+(This appendix does not form an integral part of this Recommendation)
+
+## II.1 Cursor data
+
+In order to point out to items in the frozen graphics picture during face-to-face mode, a cursor has to be provided. The cursor is defined by a horizontal address, a vertical address and bits for cursor specification.
+
+The horizontal address consists of 8 bits:
+
+| Horizontal address | Codeword |
+|---------------------------|-----------------|
+| 1st picture element | 0 |
+| 4th picture element | 1 |
+| 7th picture element | 2 |
+| . | . |
+| . | . |
+| . | . |
+| 715th picture element | 238 |
+| 718th picture element | 239 |
+
+The vertical address consists of 8 bits:
+
+| Vertical address | Codeword | |
+|-------------------------|-----------------|--------------------------------------------------|
+| 1st line | 0 | The line numbers indicate lines in a full frame. |
+| 5th line | 1 | |
+| 9th line | 2 | |
+| . | | |
+| . | | |
+| . | | |
+| 569th line | 142 | |
+| 573rd line | 143 | |
+
+For the horizontal address codewords of the form 1111xxxx, for the vertical address codewords of the form 11xxxxxx (x = 0 or 1) are forbidden.
+
+For cursor specification, 6 bits are used as follows: XCCSSS.
+
+| | |
+|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------|
+| SSS Shape | 000 = small circle
001 = arrow to the top
010 = arrow to the bottom
011 = arrow to the right
100 = arrow to the left
101 = cross |
+| CC Colour | 00 = black
01 = red
10 = green
11 = white |
+| X on/off | 0 = cursor off
1 = cursor on |
+
+The cursor defines the centre of the small circle, the centre of the cross, or the peak of an arrow.
+
+The graphics codecs have been designed for the transmission of half an A4 page. If eight bits each are used for transmission of the horizontal and of the vertical address of the cursor, a resolution of the cursor positioning results which is 0.8 mm in the horizontal direction, and 1 mm in the vertical direction.
+
+## II.2 Frame structure
+
+The cursor data are embedded in a pulse frame of length 32 bits as follows:
+
+| | | | |
+|----------------------|----------------------|--------------------|------------------|
+| 0111111111 | X CC SSS | HHHHHHHH | VVVVVVVV |
+| frame alignment word | cursor specification | horizontal address | vertical address |
+
+The frame alignment word cannot be simulated by the cursor data, as some codewords for the horizontal and vertical address are forbidden.
+
+For transmission, the frame alignment word is leading, followed by the data for cursor specification. In the horizontal and vertical addresses the most significant bits are transmitted first.
+
+## II.3 Transmission of cursor data
+
+The cursor data for the graphics codec is transmitted in time slot 17 of the transmission frame.
+
+# References
+
+- [1] DUFFY (T. S.) and NICOL (R. C.): A codec for visual teleconferencing, *Communications 82*, IEE Conference Publication No. 209, 1982.
+- [2] NICOL (R. C.), CHIARIGLIONE (L.) and SCHAEFER (P.): The development of the European Videoteleconference Codec, *Globecom 82*, IEEE global telecommunications conference, 1982.
\ No newline at end of file
diff --git a/marked/H/T-REC-H.200-199303-I_PDF-E/raw.md b/marked/H/T-REC-H.200-199303-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..e34b44c22a4b08a8c6c02164a3de9f1fd7ce80cc
--- /dev/null
+++ b/marked/H/T-REC-H.200-199303-I_PDF-E/raw.md
@@ -0,0 +1,221 @@
+
+
+
+
+ITU logo: A globe with a lightning bolt and the letters ITU.
+
+INTERNATIONAL TELECOMMUNICATION UNION
+
+**ITU-T**
+
+**H.200**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+(03/93)
+
+**LINE TRANSMISSION
+OF NON-TELEPHONE SIGNALS**
+
+---
+
+**FRAMEWORK FOR RECOMMENDATIONS
+FOR AUDIOVISUAL SERVICES**
+
+**ITU-T Recommendation H.200**
+
+(Previously "CCITT Recommendation")
+
+---
+
+# FOREWORD
+
+The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of the International Telecommunication Union. The ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Conference (WTSC), which meets every four years, established the topics for study by the ITU-T Study Groups which, in their turn, produce Recommendations on these topics.
+
+ITU-T Recommendation H.200 was revised by the ITU-T Study Group XV (1988-1993) and was approved by the WTSC (Helsinki, March 1-12, 1993).
+
+---
+
+# NOTES
+
+1 As a consequence of a reform process within the International Telecommunication Union (ITU), the CCITT ceased to exist as of 28 February 1993. In its place, the ITU Telecommunication Standardization Sector (ITU-T) was created as of 1 March 1993. Similarly, in this reform process, the CCIR and the IFRB have been replaced by the Radiocommunication Sector.
+
+In order not to delay publication of this Recommendation, no change has been made in the text to references containing the acronyms "CCITT, CCIR or IFRB" or their associated entities such as Plenary Assembly, Secretariat, etc. Future editions of this Recommendation will contain the proper terminology related to the new ITU structure.
+
+2 In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+# CONTENTS
+
+| | Page |
+|------------------------------------------------------------------------|-------------|
+| 1 Audiovisual services ..... | 1 |
+| 2 Harmonization of audiovisual services ..... | 1 |
+| 3 Purpose of this Recommendation..... | 1 |
+| 4 Framework ..... | 2 |
+| 5 List of audiovisual services covered ..... | 2 |
+| 6 List of networks covered..... | 2 |
+| Annex A – Framework for Recommendations for audiovisual services ..... | 3 |
+
+
+
+# **FRAMEWORK FOR RECOMMENDATIONS FOR AUDIOVISUAL SERVICES**
+
+*(Melbourne, 1988; amended at Helsinki, 1993)*
+
+## **1 Audiovisual services**
+
+A number of services are, or will be, defined in CCITT having as their common characteristic the transmission of speech together with other information reaching the eventual user in visual form. This Recommendation concerns a set of such services which should be treated in a harmonized way; it is convenient to refer to the members of this set as “audiovisual services” (abbreviated to AV services).
+
+## **2 Harmonization of audiovisual services**
+
+While the various audiovisual services may easily be distinguished in terms of their user-application, common methods are used for the transport of signals representing speech, moving or still pictures, and associated controls/indications, and also telematic auxiliary facilities. The standardization process seeks the greatest possible harmonization of these common features, confining the distinction to the application layers wherever possible, in order to:
+
+- a) Maximize the possibilities for intercommunication between terminals intended for different applications;
+- b) Maximize the commonality of hardware and software in the interests of economies of scale. The scope for commonality includes: audio and video input/output parameters, audio and video codecs, the control/indication set, frame structures and multiplexing, call control procedures (including multipoint).
+
+The embodiment of this harmonization policy will be a consistent set of Recommendations, consistent in the sense that all members of the set take into account all other members.
+
+## **3 Purpose of this Recommendation**
+
+The purpose of this Recommendation is to define the set that shall be consistent. In fulfilling this function it is important to distinguish, at a given time, between Recommendations and draft Recommendations.
+
+Recommendations are members of the set by virtue of their consistency with other adopted members of the set: these are listed in Annex A. It is of course necessary to ensure continued consistency when amendments are introduced.
+
+Draft Recommendations range from mere titles or outline contents through varying stages of maturity to a stable final draft. As many different intended members of the Recommendation H.200 set are developed in parallel to ensure consistency they should be treated as “provisional” members of the set. The list of set members including provisional items does not form part of this Recommendation, but this Recommendation should be updated in the future to include new members of the set formally adopted.
+
+## 4 Framework
+
+Recommendations in the H.200 set are arranged in three main sections:
+
+- a) *Service definitions* – These specify the service as seen by the user, including basic service, optional enhancements, quality, and intercommunication requirements, together with operational aspects; technical implementation methods are taken into account but not defined herein.
+- b) *Infrastructure* – This section includes all the Recommendations which are applicable to two or more distinct services: these encompass network configuration, frame structures, control/indications, communication/intercommunication, and audio/video coding. The “infrastructure” includes this generality of signals which flow on unrestricted digital bearers on established network connections – it does not include the methods of call establishment and control, orchestrated by signals outside these bearers.
+- c) *Systems and terminal equipment* – This section deals with the technical implementation of specific services: it therefore includes service-specific equipment for the application layer, and draws upon the infrastructure Recommendations to identify the detailed processes required for the particular service.
+
+An “other aspects” section is included, covering such matters as call control, including aspects which are particular to AV services but, some involving out-of-band signals, do not come within the scope of the infrastructure section above.
+
+## 5 List of audiovisual services covered
+
+The following audiovisual services shall be included in the harmonized set:
+
+- narrowband videophone ( $p \times 64$ kbit/s);
+- broadband videophone (a teleservice for broadband ISDN);
+- narrowband videoconferencing ( $p \times 64$ kbit/s);
+- broadband videoconferencing (a teleservice for broadband ISDN);
+- audiographic teleconferencing;
+- telephony (a degenerate case of an AV service, included for intercommunication purposes);
+- telesurveillance.
+
+The following audiovisual services are in the process of being defined, and consideration should be given to their inclusion in the set for either of the reasons given in 2.
+
+- video mail;
+- videotex (including pictures and sound);
+- video retrieval;
+- high resolution image retrieval;
+- distribution services.
+
+## 6 List of networks covered
+
+The possible use of the following networks is taken into account:
+
+- ISDN (basic and primary access);
+- B-ISDN (using ATM);
+- analogue (PSTN);
+- LANs (e.g. FDDI);
+- mobile/radio;
+- leased lines (digital).
+
+# Annex A
+
+(to Recommendation H.200)
+
+## Framework for Recommendations for audiovisual services
+
+(This annex forms an integral part of this Recommendation)
+
+## A.1 Service definition
+
+*Recommendation No.*
+
+| | | |
+|--------|------------------------------------------------------------|---------------------------------------|
+| AV.100 | General AV services | Draft available |
+| AV.101 | Teleconference service | F.701 (F.710
in Blue Book ) |
+| AV.110 | General principles for audiographic conference service | F.710 |
+| AV.111 | Audiographic conference service | F.711 |
+| AV.120 | Videotelephony services – General | F.720 |
+| AV.121 | Basic narrow band videophone service in the ISDN | F.721 |
+| AV.122 | Broadband videotelephony services | F.722 |
+| AV.130 | Videoconference service – General | F.730 |
+| AV.131 | Videoconference services – General | |
+| AV.132 | Broadband videoconference services | F.732 |
+| AV.140 | Audiovisual interactive services – General | F.740 |
+| AV.150 | (Other AV services not yet defined) | |
+| AV.160 | (Audiovisual service applications) | |
+| AV.161 | Service oriented requirements for telewriting applications | F.761 (F.730
in Blue Book ) |
+
+## A.2 Infrastructure
+
+| | | |
+|--------|-----------------------------------------------------------------------------------------------------------------------------|-------|
+| AV.200 | (General AV infrastructure) | |
+| AV.210 | (Reference networks) | |
+| AV.220 | (Transmission multiplex structure) | |
+| AV.221 | Frame structure for a 64 to 1920 kbit/s channel in audiovisual teleservices | H.221 |
+| AV.230 | Frame-synchronous control and indication signals for audiovisual systems | H.230 |
+| AV.231 | Multipoint control units for audiovisual systems using digital channels up to 2 Mbit/s | H.231 |
+| AV.232 | (Broadband multipoint control) | |
+| AV.233 | Confidentiality system for audiovisual services | H.233 |
+| AV.240 | (Communication – Principles) | |
+| AV.241 | System aspects for the use of the 7 kHz audio codec within 64 kbit/s | G.725 |
+| AV.242 | System for establishing communication between audiovisual terminals using digital channels up to 2 Mbit/s | H.242 |
+| AV.243 | Procedures for establishing communication between three or more audiovisual terminals using digital channels up to 2 Mbit/s | H.243 |
+| AV.250 | (Audio coding) | |
+| AV.251 | Pulse code modulation (PCM) of voice frequencies | G.711 |
+
+| | | |
+|--------|------------------------------------------------------------------------------|------------------------------------|
+| AV.252 | 7 kHz audio-coding within 64 kbit/s | G.722 |
+| AV.253 | (Audio coding at 24/32 kbit/s) | |
+| AV.254 | Coding of speech at 16 kbit/s using low-delay code excited linear prediction | G.728 |
+| AV.255 | Audio coding for storage/retrieval | MPEG audio
(DIS 11172 Part 3) |
+| AV.260 | (Video coding) | |
+| AV.261 | Video codec for audiovisual services at $p \times 64$ kbit/s | H.261 |
+| AV.262 | (Video coding for use on B-ISDN) | |
+| AV.263 | Video coding for storage/retrieval up to about 1 Mbit/s | MPEG-1 Video
(DIS 11172 Part 2) |
+| AV.264 | (Video coding for storage/retrieval at less than 10 Mbit/s) | MPEG-2 |
+| AV.266 | (Video coding for distribution) | |
+| AV.270 | Overview of AGC Recommendations | T.120 |
+| AV.271 | Audiographic conferencing | T.121 |
+| AV.272 | Generic conference control | T.124 |
+| AV.273 | Protocol stacks for audiographic and audiovisual teleconference applications | T.123 |
+| AV.274 | Multipoint communications service | T.122 |
+| AV.280 | (For future purposes) | |
+| AV.290 | (Interworking with pre-existing systems) | |
+| AV.291 | (Interworking with H.120/H.130 systems) | |
+
+## A.3 Systems and terminal equipment
+
+| | | |
+|--------|----------------------------------------|-----------------|
+| AV.300 | (General AV systems/terminals) | |
+| AV.310 | (TC systems and equipment) | |
+| AV.311 | Audiographic teleconference | Draft available |
+| AV.320 | Visual telephone systems and equipment | H.320 |
+| AV.321 | (Broadband visual telephone) | |
+| AV.330 | (Equipment for AV retrieval, systems) | |
+| AV.331 | Broadcasting type multipoint systems | H.331 |
+
+### A.4 Other aspects
+
+| | | |
+|--------|---------------------------------------|--|
+| AV.400 | (Other aspects) | |
+| AV.410 | (Reservation systems) | |
+| AV.420 | [Call control (including multipoint)] | |
+| AV.440 | (Multipoint call set-up) | |
+
+NOTE – Entries in parentheses are indicative of the purpose of the various positions in the framework.
\ No newline at end of file
diff --git a/marked/H/T-REC-H.221-200903-I_PDF-E/14a22f23ced8ba1d63ece69861dbaacc_img.jpg b/marked/H/T-REC-H.221-200903-I_PDF-E/14a22f23ced8ba1d63ece69861dbaacc_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..36cf51f8ba07e44aa7a4b009f3ba08eb2b570b1c
--- /dev/null
+++ b/marked/H/T-REC-H.221-200903-I_PDF-E/14a22f23ced8ba1d63ece69861dbaacc_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:11780faeee75ba39ab4ed9de67a9e67abec0d9ba3068ebec661dea70c16e29d3
+size 4338
diff --git a/marked/H/T-REC-H.221-200903-I_PDF-E/20727e57890be6da5692a02d13c0a8ec_img.jpg b/marked/H/T-REC-H.221-200903-I_PDF-E/20727e57890be6da5692a02d13c0a8ec_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..f799fa2261842122e7930d96b12d3326c79829f4
--- /dev/null
+++ b/marked/H/T-REC-H.221-200903-I_PDF-E/20727e57890be6da5692a02d13c0a8ec_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e885c11ebf6203583d11886d7fe7a479cc75753cbc7d644902b96d71a9e10858
+size 70840
diff --git a/marked/H/T-REC-H.221-200903-I_PDF-E/4cec89a753c447a050c0171c274f2acb_img.jpg b/marked/H/T-REC-H.221-200903-I_PDF-E/4cec89a753c447a050c0171c274f2acb_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c42073e81ab27a399a411fed20de33e8372d071c
--- /dev/null
+++ b/marked/H/T-REC-H.221-200903-I_PDF-E/4cec89a753c447a050c0171c274f2acb_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:47f6274f1fcd305e185663c5a86c170f205b413858a550da984dc32792217bfc
+size 53425
diff --git a/marked/H/T-REC-H.221-200903-I_PDF-E/705ee99c3c44fd2a1ea6a3348ce8878f_img.jpg b/marked/H/T-REC-H.221-200903-I_PDF-E/705ee99c3c44fd2a1ea6a3348ce8878f_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..3fb05690e79bd48076c78c5e1912de6d3e560a17
--- /dev/null
+++ b/marked/H/T-REC-H.221-200903-I_PDF-E/705ee99c3c44fd2a1ea6a3348ce8878f_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:84a709dc556ec40623c8dc562c63e728bdee7c5b5a772a220737a9619d364315
+size 52632
diff --git a/marked/H/T-REC-H.221-200903-I_PDF-E/9c1d3678db4a12d5864cb2a4def1135d_img.jpg b/marked/H/T-REC-H.221-200903-I_PDF-E/9c1d3678db4a12d5864cb2a4def1135d_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..4d907eb6384966a16d0e9bd59989f8024b1fc2ba
--- /dev/null
+++ b/marked/H/T-REC-H.221-200903-I_PDF-E/9c1d3678db4a12d5864cb2a4def1135d_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c5804a7abd6f1423c3bab479f49dc2e2fc581239eb60ef43f9145845d712bc41
+size 54172
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/132ad076dd59b60fd549f7a612ed568b_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/132ad076dd59b60fd549f7a612ed568b_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..48654d728881ac086007209a71399043a688cc42
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/132ad076dd59b60fd549f7a612ed568b_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cde9632b8569afed815950dd32474ee38f04e06a59bc93ae82ad701c8ce71021
+size 25802
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/143c8ee1010bf7669caabfbed815df1b_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/143c8ee1010bf7669caabfbed815df1b_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..5df2ec4918113f7ce305e982295812bfa35d7b51
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/143c8ee1010bf7669caabfbed815df1b_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d023db85d5270e39c3b4f14f4b8b0d5c96c709b650d3482d7cf866154f57f749
+size 19816
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/1922717e4a5ef189ba4572ea65b2f0ae_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/1922717e4a5ef189ba4572ea65b2f0ae_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..fb92608600549e4a61f7add968410cf49bcb2f20
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/1922717e4a5ef189ba4572ea65b2f0ae_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d80f065f2c75987df41719dfb13d0a4f6cc805ab7f732f1f2e6b8743c9a823c0
+size 22895
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/1d7527f4316cfe2d342b08d1653d1592_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/1d7527f4316cfe2d342b08d1653d1592_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..f8b3fa916496efdd6983a126e9291dc60382ea97
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/1d7527f4316cfe2d342b08d1653d1592_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dec4cb6f2dcf8d2d1338311a2205418ab0a8a849a20807164af1822a31ce7cc9
+size 5818
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/26d6d8d333f84acff82b7a9f9b303da6_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/26d6d8d333f84acff82b7a9f9b303da6_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..ba5634143c97159f321f67f9917f70f119063f80
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/26d6d8d333f84acff82b7a9f9b303da6_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:767adb66fa10c95f75eef50ed5cd92998b36b422e45f044d23b98d3a4714f408
+size 20741
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/2b00743506f6a3bbd17af764162dc76d_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/2b00743506f6a3bbd17af764162dc76d_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..11e168116c4787f62eb49a95929d5cc93fe09476
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/2b00743506f6a3bbd17af764162dc76d_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:218d0671333b29b60ac4d62015ee5c8b729276bda3fd6f10120b0ee939f6afaa
+size 103108
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/3349dc82c6333221b0610be6ee7250b6_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3349dc82c6333221b0610be6ee7250b6_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..e0a135d9d6ac0db2b85cfe6203b4b1db4131d640
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3349dc82c6333221b0610be6ee7250b6_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:27331ba5906e1e1a0675874f867ffab6fa379e04a6b947aee69a1f69d03e5889
+size 56688
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/3481cde1adf61b0452dd6489dada6d6a_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3481cde1adf61b0452dd6489dada6d6a_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..e927c3d0800d9a09b73f1e42ba095147439cae5d
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3481cde1adf61b0452dd6489dada6d6a_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:038435e62dcd223a4a0851f57ce445927bd8cca6915507ea46d910de31556122
+size 23586
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/3b8ac904c44dd47c5ccd03def99a19c4_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3b8ac904c44dd47c5ccd03def99a19c4_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c50364c7a0cad457725e1445edd005c557dbc05c
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3b8ac904c44dd47c5ccd03def99a19c4_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d043e4b9610478bfebf992770d741ffb9470090a6d5cd66d5161c85700a5f1b2
+size 41759
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/3ce6b213ec556257e32ff7451182369d_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3ce6b213ec556257e32ff7451182369d_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..2302de8ad7e7176281cb0c16a5eed271983fe00b
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3ce6b213ec556257e32ff7451182369d_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d92f736b6bda55b6a926da7569bd8ad27f0bb875c7a5f96a43fcb484f09ff1cf
+size 26430
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/3fa5b988fc31a30231724a06f3567c54_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3fa5b988fc31a30231724a06f3567c54_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..3a9cf1d8b9e76d1cbfe456e305e08b234ad9a0af
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/3fa5b988fc31a30231724a06f3567c54_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1cbdb8caeec5d9bc3532f893a3329c8bc829d00698a287654131ca5d29cc7e3e
+size 19115
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/54159e6d8f5ecc73ad262758e3a60677_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/54159e6d8f5ecc73ad262758e3a60677_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..a9e548cdc2e29d84f858b40c27c062bbd8b9d144
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/54159e6d8f5ecc73ad262758e3a60677_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95e05e4e86013e6469599760c91c6b6a4e862bda7388df6e56c8d8a3be2e8c7c
+size 60589
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/56f125e1bc127f7ac3d210407957413c_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/56f125e1bc127f7ac3d210407957413c_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..bafee45707d7c50bf580771cec5bcf6272f5cd97
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/56f125e1bc127f7ac3d210407957413c_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:509b8c25193a15660ec635ee4c34aa1657994212313e20a451aa0962a6caf894
+size 36536
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/5ee80a63ec53c60d7306b5a44984afcf_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/5ee80a63ec53c60d7306b5a44984afcf_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..06cfbc2f3e52ab98e3fc6edded541113a16d1bd7
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/5ee80a63ec53c60d7306b5a44984afcf_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c1c53fe01f14a22d50f50560b680c1234b13a29f30a55000a5ed70726cef2de
+size 37230
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/6ca842602b0473809416a9cf0d4106a4_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/6ca842602b0473809416a9cf0d4106a4_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..8154ef27d363c364fe0d917a05f995a3245a820e
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/6ca842602b0473809416a9cf0d4106a4_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5bc73a1df95082c8bfc442e1927126973472a286933441294f4805cc6fd68ccd
+size 61369
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/6e9d059430baba0c363e33749f68b107_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/6e9d059430baba0c363e33749f68b107_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..14bfc85ff246264e5e3361ee205c315bbcb3c835
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/6e9d059430baba0c363e33749f68b107_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:704e9fb300f23ae4fa8e9d61062b92608a7b000e530c3f23ab315917b80f86e8
+size 61066
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/78151e5dd542eada99ead8203dfce76b_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/78151e5dd542eada99ead8203dfce76b_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..f0b815d20eb09095f7603b57348a26f6deaba87f
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/78151e5dd542eada99ead8203dfce76b_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93cc3e2460a89a4ca6d59762fe949ac00144b33dc2f282f60f03a77e33be11b5
+size 18943
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/845e014e3b8677eb735d0e21f21206be_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/845e014e3b8677eb735d0e21f21206be_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..3ec3878ede9f4cad9d07a9a751d59a0ef1b7fccc
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/845e014e3b8677eb735d0e21f21206be_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:80c51adcc17fe4e900e78c175097665d22fac6505739b8a629f0aabfdeef87fb
+size 68187
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/8768e42bf1062f1af11f259fc52a92e9_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/8768e42bf1062f1af11f259fc52a92e9_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..ddb8199958a82db71c2d232a25c404040b0ba9fd
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/8768e42bf1062f1af11f259fc52a92e9_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3487a9c6f6cb96e9758671c3b8e2df8ac94945e9c9beecd1af1a5d7af5ce0c24
+size 28744
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/9b6977f95ef47e2c87cd4979c09a7edb_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/9b6977f95ef47e2c87cd4979c09a7edb_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..5ffc5725d26c12443db43e241d4b916a66d9f5eb
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/9b6977f95ef47e2c87cd4979c09a7edb_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:86a561872bbeaaab1d16f2d156d0c57210037c919c9fa4e5740b2c4f12de31b7
+size 80956
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/a4e9abbc6ca82471f1a223d0a68cd45e_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/a4e9abbc6ca82471f1a223d0a68cd45e_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..558ddecd7f429ec50b861fd26c41225a63fef2e6
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/a4e9abbc6ca82471f1a223d0a68cd45e_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3b3f360f78a41716ec9874652cb5a60e2764f403d8cf9c820505064fc1a13a7c
+size 25574
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/a83c022a6dac411615bcc38b7cd0d573_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/a83c022a6dac411615bcc38b7cd0d573_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..e9f3042d4946cb3ec1d20f163d2f041a3e251a6e
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/a83c022a6dac411615bcc38b7cd0d573_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:76ca0e8841cfb7a1943563734b50c4eb84a8647d8fef8abcd424af0c98825f34
+size 28308
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/ae57a92114d2bd84ef81129e7fbdd89d_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/ae57a92114d2bd84ef81129e7fbdd89d_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..f2c7a585e4abedf14ad4042f1099cf2a67cc1450
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/ae57a92114d2bd84ef81129e7fbdd89d_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:394847dfdb24668e689dba843a72bb42f4a70d9c1cb0fc8eaa75d51caf497d8b
+size 41295
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/b02ba0b73e95416eb547976f6145b169_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/b02ba0b73e95416eb547976f6145b169_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..9e83c93e17b6307bac9516f6d8a877591fb232c9
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/b02ba0b73e95416eb547976f6145b169_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:16419372baedea9e24d0d025fb75dc13f80df3f1556bb376a54d68d5015f461b
+size 34202
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/b11b654648249b38a82129a35555b481_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/b11b654648249b38a82129a35555b481_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..cee6d1cd5818ebeb5e8f4b1b1805853b154210cd
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/b11b654648249b38a82129a35555b481_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:532e171a48a3b9bf1a95ed9fbbe0b311b50c162d76246e437aae4caea43813e9
+size 25144
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/c19f37cdfc7768db716bfc0cc5934cfb_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/c19f37cdfc7768db716bfc0cc5934cfb_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..863e2d9e3721c21794466511e5c6d37a93d3ab3e
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/c19f37cdfc7768db716bfc0cc5934cfb_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c9deecee427a33fe867b3b92044a9cad449bf997443e4c53faa99f75a9db67a0
+size 19081
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/c2e2b17d61aecbead88a6278e4ba3605_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/c2e2b17d61aecbead88a6278e4ba3605_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..6895065739b8c03100bff51f901a90d1584cc10d
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/c2e2b17d61aecbead88a6278e4ba3605_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c1f52ecf803fc54e7a69b5482c12ec7167018c43c901c50b7ccf8a6728e9ea3
+size 29005
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/c93353297f7ed04bc9173ac1f224d406_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/c93353297f7ed04bc9173ac1f224d406_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c9dfb8ecffcad058c1595d06cc494c2511c6e270
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/c93353297f7ed04bc9173ac1f224d406_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf929f3e89c3336c88ad185f01a1274469c65102c13abd61747a26465b1243b4
+size 83870
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/ce5c6c3f1a6331655b939aaaaba0ecba_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/ce5c6c3f1a6331655b939aaaaba0ecba_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..268f2029fb46186b1412ee61f0818345e248e9c8
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/ce5c6c3f1a6331655b939aaaaba0ecba_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4883f968d890e52d6109b6b6e31cbd1b7e647e7471388a9872fadbe8b4f0e328
+size 33092
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/ceb6fe29e2d57711907569c31182b3c2_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/ceb6fe29e2d57711907569c31182b3c2_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..dcb44ce293957ce49e1afdff56a3e99f68817c09
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/ceb6fe29e2d57711907569c31182b3c2_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:50d912e1ed35cbbfbe5e5428060a03298d847e34071c6f668c17491335676f46
+size 23456
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/cfef993dcc8fb513de79eb1f93cf26ae_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/cfef993dcc8fb513de79eb1f93cf26ae_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..40e1cfc6c054486466313ed01c9827fc4ba6907c
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/cfef993dcc8fb513de79eb1f93cf26ae_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:604eacf835fd6f2139d674e4f34f57ed02901ea3167cb162d7feb3bbf7fae5bf
+size 83444
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/dd00cc2325415c09afb8bf178f60f33b_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/dd00cc2325415c09afb8bf178f60f33b_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..29f7e15ed7935dda69eae9108746712f0bd2cc07
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/dd00cc2325415c09afb8bf178f60f33b_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d73f7282ee90d9737ad7dd0a93cb9162e642937e2f79e0c657e65720bf5a14d
+size 104622
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/f2b561f8d2d2b8402379552179d9fbef_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/f2b561f8d2d2b8402379552179d9fbef_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..97a74b58c6b92dd774e5bf9e838ee85427c7dae0
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/f2b561f8d2d2b8402379552179d9fbef_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9874ab21e27b6301bb10c81d8c09fe110116b01be8eeeb401d669054091ddcc4
+size 24528
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/f431b5db0c635c95318cff1adbe10c05_img.jpg b/marked/H/T-REC-H.225.0-202203-I_PDF-E/f431b5db0c635c95318cff1adbe10c05_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..5c1504c38eef6e45c21703faa7103025e960d3f2
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/f431b5db0c635c95318cff1adbe10c05_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eccab8a44aaaac5d3135b47283175c2dfbbc15b3a1c6289f976c4bbb29fb7877
+size 21169
diff --git a/marked/H/T-REC-H.225.0-202203-I_PDF-E/raw.md b/marked/H/T-REC-H.225.0-202203-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..f090d588767bca6ae9a948b200ad565523867ca8
--- /dev/null
+++ b/marked/H/T-REC-H.225.0-202203-I_PDF-E/raw.md
@@ -0,0 +1,8193 @@
+
+
+International Telecommunication Union
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.225.0**
+
+(03/2022)
+
+SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS
+
+Infrastructure of audiovisual services – Transmission
+multiplexing and synchronization
+
+---
+
+**Call signalling protocols and media stream
+packetization for packet-based multimedia
+communication systems**
+
+Recommendation ITU-T H.225.0
+
+ITU-T
+
+
+
+The logo of the International Telecommunication Union (ITU) is located in the bottom right corner. It features a blue globe with a white grid pattern, overlaid by a stylized 'ITU' text in blue.
+
+ITU logo
+
+# ITU-T H-SERIES RECOMMENDATIONS **AUDIOVISUAL AND MULTIMEDIA SYSTEMS**
+
+| | |
+|---------------------------------------------------------------------------------------------|--------------------|
+| CHARACTERISTICS OF VISUAL TELEPHONE SYSTEMS | H.100–H.199 |
+| INFRASTRUCTURE OF AUDIOVISUAL SERVICES | |
+| General | H.200–H.219 |
+| Transmission multiplexing and synchronization | H.220–H.229 |
+| Systems aspects | H.230–H.239 |
+| Communication procedures | H.240–H.259 |
+| Coding of moving video | H.260–H.279 |
+| Related systems aspects | H.280–H.299 |
+| Systems and terminal equipment for audiovisual services | H.300–H.349 |
+| Directory services architecture for audiovisual and multimedia services | H.350–H.359 |
+| Quality of service architecture for audiovisual and multimedia services | H.360–H.369 |
+| Telepresence, immersive environments, virtual and extended reality | H.420–H.439 |
+| Supplementary services for multimedia | H.450–H.499 |
+| MOBILITY AND COLLABORATION PROCEDURES | |
+| Overview of Mobility and Collaboration, definitions, protocols and procedures | H.500–H.509 |
+| Mobility for H-Series multimedia systems and services | H.510–H.519 |
+| Mobile multimedia collaboration applications and services | H.520–H.529 |
+| Security for mobile multimedia systems and services | H.530–H.539 |
+| Security for mobile multimedia collaboration applications and services | H.540–H.549 |
+| VEHICULAR GATEWAYS AND INTELLIGENT TRANSPORTATION SYSTEMS (ITS) | |
+| Architecture for vehicular gateways | H.550–H.559 |
+| Vehicular gateway interfaces | H.560–H.569 |
+| BROADBAND, TRIPLE-PLAY AND ADVANCED MULTIMEDIA SERVICES | |
+| Broadband multimedia services over VDSL | H.610–H.619 |
+| Advanced multimedia services and applications | H.620–H.629 |
+| Content delivery and ubiquitous sensor network applications | H.640–H.649 |
+| IPTV MULTIMEDIA SERVICES AND APPLICATIONS FOR IPTV | |
+| General aspects | H.700–H.719 |
+| IPTV terminal devices | H.720–H.729 |
+| IPTV middleware | H.730–H.739 |
+| IPTV application event handling | H.740–H.749 |
+| IPTV metadata | H.750–H.759 |
+| IPTV multimedia application frameworks | H.760–H.769 |
+| IPTV service discovery up to consumption | H.770–H.779 |
+| Digital Signage | H.780–H.789 |
+| E-HEALTH MULTIMEDIA SYSTEMS, SERVICES AND APPLICATIONS | |
+| Personal health systems | H.810–H.819 |
+| Interoperability compliance testing of personal health systems (HRN, PAN, LAN, TAN and WAN) | H.820–H.859 |
+| Multimedia e-health data exchange services | H.860–H.869 |
+| Safe listening | H.870–H.879 |
+
+*For further details, please refer to the list of ITU-T Recommendations.*
+
+# Recommendation ITU-T H.225.0
+
+# Call signalling protocols and media stream packetization for packet-based multimedia communication systems
+
+## Summary
+
+Recommendation ITU-T H.225.0 covers the technical requirements for narrow-band visual telephone services defined in H.200 and F.720-series Recommendations, in those situations where the transmission path includes one or more packet-based networks, each of which is configured and managed to provide a non-guaranteed Quality of Service (QoS) which is not equivalent to that of N-ISDN, such that additional protection or recovery mechanisms beyond those mandated by Rec. ITU-T H.320 need be provided in the terminals. It is noted that Rec. ITU-T H.322 addresses the use of some other LANs which are able to provide the underlying performance not assumed by ITU-T Recs H.323 and H.225.0.
+
+This Recommendation describes how audio, video, data, and control information on a packet-based network can be managed to provide conversational services in H.323 equipment.
+
+Products claiming compliance with Version 8 of H.225.0 (this version) shall comply with all of the mandatory requirements of this Recommendation. Version 8 products can be identified by H.225.0 messages containing a **protocolIdentifier** value of {itu-t (0) recommendation (0) h (8) 2250 version (0) 8}.
+
+This revision incorporates the following changes:
+
+- 1) Enhancements for language capability exchange.
+- 2) Modification to the scope regarding use on the Internet.
+- 3) Clarification that the **Facility** message may be used to initiate call transfer.
+
+## History
+
+| Edition | Recommendation | Approval | Study Group | Unique ID* |
+|---------|--------------------------------|------------|-------------|---------------------------------------------------------------------------|
+| 1.0 | ITU-T H.225.0 | 1996-11-11 | 16 | 11.1002/1000/3836 |
+| 2.0 | ITU-T H.225.0 | 1998-02-06 | 16 | 11.1002/1000/4231 |
+| 2.1 | ITU-T H.225.0 Annex I | 1998-09-25 | 16 | 11.1002/1000/4501 |
+| 2.2 | ITU-T H.225.0 Annex G | 1999-05-27 | 16 | 11.1002/1000/4672 |
+| 3.0 | ITU-T H.225.0 | 1999-09-30 | 16 | 11.1002/1000/4762 |
+| 4.0 | ITU-T H.225.0 | 2000-11-17 | 16 | 11.1002/1000/5257 |
+| 4.1 | ITU-T H.225.0 (2000) Amd. 1 | 2002-11-29 | 16 | 11.1002/1000/6164 |
+| 5.0 | ITU-T H.225.0 | 2003-07-14 | 16 | 11.1002/1000/6452 |
+| 6.0 | ITU-T H.225.0 | 2006-05-29 | 16 | 11.1002/1000/8805 |
+| 6.1 | ITU-T H.225.0 (2006) Amd. 1 | 2007-01-13 | 16 | 11.1002/1000/9025 |
+| 7.0 | ITU-T H.225.0 v7 | 2009-12-14 | 16 | 11.1002/1000/10624 |
+| 7.1 | ITU-T H.225.0 v7 (2009) Amd. 1 | 2013-03-16 | 16 | 11.1002/1000/11859 |
+| 8.0 | ITU-T H.225.0 (V8) | 2022-03-16 | 16 | 11.1002/1000/14946 |
+
+## Keywords
+
+H.225.0, H.323, multimedia communication, videoconferencing, VoIP.
+
+---
+
+\* To access the Recommendation, type the URL in the address field of your web browser, followed by the Recommendation's unique ID. For example, .
+
+## FOREWORD
+
+The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications, information and communication technologies (ICTs). The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU-T study groups which, in turn, produce Recommendations on these topics.
+
+The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
+
+In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
+
+## NOTE
+
+In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure, e.g., interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
+
+## INTELLECTUAL PROPERTY RIGHTS
+
+ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
+
+As of the date of approval of this Recommendation, ITU had received notice of intellectual property, protected by patents/software copyrights, which may be required to implement this Recommendation. However, implementers are cautioned that this may not represent the latest information and are therefore strongly urged to consult the appropriate ITU-T databases available via the ITU-T website at .
+
+© ITU 2022
+
+All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
+
+## Table of Contents
+
+###### Page
+
+| | | |
+|---|---------------------------------------------------------------|----|
+| 1 | Scope | 1 |
+| 2 | References | 3 |
+| 3 | Definitions | 5 |
+| 4 | Abbreviations and acronyms | 5 |
+| | 4.1 General abbreviations | 5 |
+| | 4.2 RAS message abbreviations | 7 |
+| 5 | Conventions | 7 |
+| 6 | Packetization and synchronization mechanism | 8 |
+| | 6.1 General approach | 8 |
+| | 6.2 Use of RTP/RTCP | 11 |
+| 7 | H.225.0 message definitions | 14 |
+| | 7.1 Use of Q.931 messages | 14 |
+| | 7.2 Common Q.931 information elements | 17 |
+| | 7.3 Q.931 based H.225.0 call signalling message details | 27 |
+| | 7.4 Q.932-based H.225.0 call signalling message details | 41 |
+| | 7.5 H.225.0 call signalling timer values | 46 |
+| | 7.6 H.225.0 common message elements | 46 |
+| | 7.7 Required support of RAS messages | 60 |
+| | 7.8 Terminal and gateway discovery messages | 61 |
+| | 7.9 Terminal and gateway registration messages | 63 |
+| | 7.10 Terminal/gatekeeper unregistration messages | 69 |
+| | 7.11 Terminal to gatekeeper admission messages | 71 |
+| | 7.12 Terminal to gatekeeper requests for changes in bandwidth | 76 |
+| | 7.13 Location request messages | 78 |
+| | 7.14 Disengage messages | 82 |
+| | 7.15 Status request messages | 84 |
+| | 7.16 Non-standard message | 88 |
+| | 7.17 Message not understood | 89 |
+| | 7.18 Gateway resource availability messages | 89 |
+| | 7.19 RAS timers and Request in Progress (RIP) | 90 |
+| | 7.20 Service control messages | 92 |
+| | 7.21 AdmissionConfirmSequence | 94 |
+| | 7.22 Error Code Mapping | 94 |
+| 8 | Mechanisms for maintaining QoS | 95 |
+| | 8.1 General approach and assumptions | 95 |
+| | 8.2 Use of RTCP in measuring QoS | 96 |
+| | 8.3 Audio/Video jitter procedures | 96 |
+| | 8.4 Audio/Video skew procedures | 97 |
+
+| | Page |
+|-----------------------------------------------------------------------------------|-------------|
+| 8.5 Procedures for maintaining QoS | 97 |
+| 8.6 Echo control | 97 |
+| Annex A – RTP/RTCP | 99 |
+| Annex B – RTP profile | 100 |
+| Annex C – RTP payload format for H.261 video streams | 101 |
+| Annex D – RTP payload format for H.261A video streams | 102 |
+| D.1 Introduction | 102 |
+| D.2 H.261A RTP packetization | 102 |
+| Annex E – Video packetization | 104 |
+| E.1 H.263 | 104 |
+| Annex F – Audio and multiplexed packetization | 105 |
+| F.1 G.723.1 | 105 |
+| F.2 G.728 | 106 |
+| F.3 G.729 | 106 |
+| F.4 Silence suppression | 109 |
+| F.5 GSM codecs | 110 |
+| F.6 G.722.1 | 111 |
+| F.7 TIA/EIA-136 ACELP | 112 |
+| F.8 TIA/EIA-136 US1 | 113 |
+| F.9 IS-127 EVRC | 115 |
+| F.10 H.223 MUX-PDU packetization | 117 |
+| Annex G – Communication between and within administrative domains | 118 |
+| G.1 Scope | 118 |
+| G.2 Definitions | 119 |
+| G.3 Abbreviations | 120 |
+| G.4 Normative references | 120 |
+| G.5 System models | 120 |
+| G.6 Operation | 123 |
+| G.7 Signalling examples | 129 |
+| G.8 Annex G profiles | 138 |
+| Annex H – H.225.0 message syntax (ASN.1) | 143 |
+| Annex I – H.263+ video packetization | 181 |
+| Appendix I – RTP/RTCP algorithms | 182 |
+| Appendix II – RTP profile | 183 |
+| Appendix III – H.261 packetization | 184 |
+| Appendix IV – H.225.0 operation on different packet-based network protocol stacks | 185 |
+| IV.1 TCP/IP/UDP | 185 |
+| IV.2 SPX/IPX | 188 |
+
+| | Page |
+|--------------------------------------------------------------------------|-------------|
+| IV.3 SCTP..... | 189 |
+| Appendix V – ASN.1 usage in this Recommendation..... | 190 |
+| V.1 Tagging..... | 190 |
+| V.2 Types ..... | 190 |
+| V.3 Constraints and ranges..... | 190 |
+| V.4 Extensibility..... | 190 |
+| Appendix VI – H.225.0 identifiers of tunnelled signalling protocols..... | 191 |
+
+
+
+# **Recommendation ITU-T H.225.0**
+
+# Call signalling protocols and media stream packetization for packet-based multimedia communication systems
+
+# **1 Scope**
+
+This Recommendation describes the means by which audio, video, data, and control are associated, coded, and packetized for transport between H.323 equipment on a packet-based network. This includes the use of an H.323 gateway, which in turn may be connected to H.320, H.324, or H.310/H.321 terminals on N-ISDN, GSTN, or B-ISDN respectively. The equipment descriptions and procedures are described in Rec. ITU-T H.323 while this Recommendation covers protocols and message formats. Communication via an H.323 gateway to an H.322 gateway for guaranteed Quality of Service (QoS) LANs and thus to H.322 endpoints is also possible.
+
+This Recommendation is intended to operate over a variety of different packet-based networks, including IEEE 802.3, Token Ring, etc. Thus, this Recommendation is defined as being above the Transport layer such as TCP/IP/UDP, SPX/IPX, etc. Specific profiles for particular transport protocol suites are included in Appendix IV. This packet-based network may be a single segment or ring, it logically could be an enterprise data network comprising multiple packet-based networks bridged or routed to create one interconnected network, or it could be the Internet. The possible means by which quality of service might be assured on this packet-based network, or on the Internet in general, is beyond the scope of this Recommendation. However, this Recommendation provides a means for the user of H.323 equipment to determine that quality problems are the result of packet-based network congestion, as well as procedures for corrective actions. It is also noted that the use of multiple H.323 gateways connected over the public ISDN network is a straightforward method for increasing quality of service.
+
+Rec. ITU-T H.323 and this Recommendation are intended to extend H.320 and H.221 connections onto the non-guaranteed QoS packet-based network environment conferences. As such the primary conference model1 is one with size in the range of a few participants to a few thousand, as opposed to large-scale broadcast operations, with strong admission control, and tight conference control.
+
+This Recommendation makes use of (RTP/RTCP) Real-time Transport Protocol/Real-Time Transport Control Protocol for media stream packetization and synchronization for all underlying packet-based networks (see Annexes A, B and C). Please note that the usage of RTP/RTCP as specified in this Recommendation is not tied in any way to the usage of TCP/IP/UDP. This Recommendation assumes a call model where initial signalling on a non-RTP transport address is used for call establishment and capability negotiation (see Recs ITU-T H.323 and H.245), followed by the establishment of one or more RTP/RTCP connections. This Recommendation contains details on the usage of RTP/RTCP.
+
+In Rec. ITU-T H.221, audio, video, data, and control are multiplexed into one or more synchronized physical SCN calls. On the packet-based network side of an H.323 call, none of these concepts apply. There is no need to carry from the SCN side the H.221 concept of a $P \times 64$ kbit/s call, e.g., 2 by 64 kbit/s, 3 by 64 kbit/s, etc. Thus, on the packet-based network side, for example, there are only single "connection" calls with a maximum rate limited to 128 kbit/s, not $2 \times 64$ kbit/s fixed rate calls. Another example has single "connection" packet-based network calls with a maximum rate limited
+
+---
+
+1 An optional broadcast-only conference model is under consideration; of necessity the broadcast model does not provide tight admissions or conference control.
+
+to 384 kbit/s interworking with $6 \times 64$ kbit/s on the SCN side2. The primary rationale of this approach is to put complexity in the gateway rather than the terminal and to avoid extending onto the packet-based network features of H.320 that are tightly tied to ISDN unless this is necessary.
+
+In general, H.323 terminals are not aware directly of the H.320 transfer rate while interworking through an H.323 gateway; instead, the gateway uses H.245 **FlowControlCommand** messages to limit the media rate on each logical channel in use to that allowed by the H.221 multiplex. The gateway may allow the packet-based network side video rates to substantially underrun the SCN side rates (or the reverse) through the usage of a rate reducing function and H.261 fill frames; the details of such operations are beyond the scope of Rec. ITU-T H.323 and this Recommendation. Note that the H.323 terminal is indirectly aware of the H.320 transfer rates via the video maximum bit rate fields in Rec. ITU-T H.245 and shall not transmit at rates that exceed these rates.
+
+This Recommendation is designed so that, with an H.323 gateway, interoperability with H.320 (1990), H.320 (1993), and H.320 (1996) terminals is possible. However, some features of this Recommendation may be directed toward allowing enhanced operations with future versions of Rec. ITU-T H.320. It is also possible that the quality of service on the H.320 side may vary based on the features and capabilities of the H.323 gateway (see Figure 1).
+
+The general approach of this Recommendation is to provide a means of synchronizing packets that make use of the underlying packet-based network/transport facilities. This Recommendation does not require all media and control to be mixed into a single stream, which is then packetized. The framing mechanisms of Rec. ITU-T H.221 are not utilized for the following reasons:
+
+- Not using H.221 allows each media to receive different error treatment as appropriate.
+- H.221 is relatively sensitive to the loss of random groups of bits; packetization allows greater robustness in the packet-based network environment.
+- H.245 and H.225.0 call signalling messages can be sent over reliable links provided by the packet-based network.
+- The flexibility and power of H.245 as compared to H.242.
+
+---
+
+2 Note that video and data rates on the LAN side must match the video and data rates in the SCN side H.320 multiplex; the audio and control rates are not required to match. Stated another way one would normally expect that, using H.245 flow control, the LAN/SCN gateway will force the video and data rates to fit into the H.221 SCN multiplex. However, since audio may be transcoded in the gateway often, one will frequently find that the LAN audio rate and the SCN rate do not match. Also there should be no expectation that the H.221 bit rate for control (800 bit/s) will generally match the H.245 bit rate on the LAN side. Also note that the LAN rate may under-run the SCN rate for either/both video or/and data, but it cannot exceed the maximum amount that fits into the SCN side multiplex.
+
+
+
+H.225.0\_F01
+
+Diagram of H.323 protocol stack and H.225.0 scope. The H.323 protocol stack is shown as a layered model. The top layer contains AV app, Terminal control and management, and Data app. The next layer contains G.xxx, H.261, RTP, RTCP, H.225.0 terminal to gatekeeper signalling (RAS), H.225.0 call signalling, and H.245. The next layer contains Unreliable transport and Reliable transport. The next layer contains Network layer, Link layer, and Physical layer. A dashed line on the left indicates the LAN boundary. To the right, the H.323 gateway is shown with Other stacks and H.225.0 stack. Below the stack, a box labeled H.225.0 scope is shown. The label H.225.0\_F01 is at the bottom right.
+
+**Figure 1 – H.225.0 scope**
+
+# 2 References
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
+
+- [1] Recommendation ITU-T G.711 (1988), *Pulse code modulation (PCM) of voice frequencies.*
+- [2] Recommendation ITU-T G.722 (2012), *7 kHz audio-coding within 64 kbit/s.*
+- [3] Recommendation ITU-T G.728 (2012), *Coding of speech at 16 kbit/s using low-delay code excited linear prediction.*
+- [4] Recommendation ITU-T G.723.1 (2006), *Dual rate speech coder for multimedia communications transmitting at 5.3 and 6.3 kbit/s.*
+- [5] Recommendation ITU-T G.729 (2012), *Coding of speech at 8 kbit/s using conjugate-structure algebraic-code-excited linear prediction (CS-ACELP).*
+- [6] Recommendation ITU-T H.221 (2009), *Frame structure for a 64 to 1920 kbit/s channel in audiovisual teleservices.*
+- [7] Recommendation ITU-T H.230 (2009), *Frame-synchronous control and indication signals for audiovisual systems.*
+- [8] Recommendation ITU-T H.233 (2002), *Confidentiality system for audiovisual services.*
+
+- [9] Recommendation ITU-T H.242 (2009), *System for establishing communication between audiovisual terminals using digital channels up to 2 Mbit/s.*
+- [10] Recommendation ITU-T H.243 (2005), *Procedures for establishing communication between three or more audiovisual terminals using digital channels up to 1920 kbit/s.*
+- [11] Recommendation ITU-T H.245 (2022), *Control protocol for multimedia communication.*
+- [12] Recommendation ITU-T H.261 (1993), *Video codec for audiovisual services at $p \times 64$ kbit/s.*
+- [13] Recommendation ITU-T H.263 (2005), *Video coding for low bit rate communication.*
+- [14] Recommendation ITU-T H.320 (2004), *Narrow-band visual telephone systems and terminal equipment.*
+- [15] Recommendation ITU-T T.122 (1998), *Multipoint communication service – Service definition.*
+- [16] Recommendation ITU-T T.123 (1999), *Network-specific data protocol stacks for multimedia conferencing.*
+- [17] Recommendation ITU-T T.125 (1998), *Multipoint communication service protocol specification.*
+- [18] Recommendation ITU-T H.321 (1998), *Adaptation of H.320 visual telephone terminals to B-ISDN environments.*
+- [19] Recommendation ITU-T H.322 (1996), *Visual telephone systems and terminal equipment for local area networks which provide a guaranteed quality of service.*
+- [20] Recommendation ITU-T H.324 (2009), *Terminal for low bit-rate multimedia communication.*
+- [21] Recommendation ITU-T H.310 (1998), *Broadband audiovisual communication systems and terminals.*
+- [22] Recommendation ITU-T Q.931 (1998), *ISDN user-network interface layer 3 specification for basic call control.*
+- [23] Recommendation ITU-T Q.932 (1998), *Digital subscriber signalling system No. 1 – Generic procedures for the control of ISDN supplementary services.*
+- [24] Recommendation ITU-T X.680 (2015) | ISO/IEC 8824-1:2008, *Information technology – Abstract Syntax Notation One (ASN.1): Specification of basic notation.*
+- [25] Recommendation ITU-T X.681 (2015) | ISO/IEC 8824-2:2008, *Information technology – Abstract Syntax Notation One (ASN.1): Information object specification.*
+- [26] Recommendation ITU-T X.691 (2015) | ISO/IEC 8825-2:2008, *Information technology – ASN.1 encoding rules – Specification of Packed Encoding Rules (PER).*
+- [27] Recommendation ITU-T E.164 (2010), *The international public telecommunication numbering plan.*
+- [28] ISO/IEC 10646:2020, *Information technology – Universal Multiple-Octet Coded Character Set (UCS).*
+- [29] Recommendation ITU-T Q.850 (1998), *Usage of cause and location in the Digital Subscriber Signalling System No. 1 and the Signalling System No. 7 ISDN user part.*
+- [30] Recommendation ITU-T Q.950 (2000), *Supplementary services protocols, structure and general principles.*
+
+- [31] Recommendation ITU-T H.235.0 (2022), *H.323 security: Framework for security in H-series (H.323 and other H.245-based) multimedia systems.*
+- [32] ISO/IEC 11571:1998, *Information technology – Telecommunications and information exchange between systems – Private Integrated Services Networks – Addressing.*
+- [33] IETF RFC 1738 (1994), *Uniform Resource Locators (URL).*
+- [34] Recommendation ITU-T Q.115.1 (2002), *Logic for the control of echo control devices and functions.*
+- [35] IETF RFC 5646 (2009), *Tags for Identifying Languages.*
+- [36] Recommendation ITU-T H.248.1 (2013), *Gateway control protocol: Version 3.*
+- [37] IETF RFC 3550 (2003), *RTP: A Transport Protocol for Real-Time Applications.*
+- [38] IETF RFC 3551 (2003), *RTP Profile for Audio and Video Conferences with Minimal Control.*
+- [39] IETF RFC 4587 (2006), *RTP Payload Format for H.261 Video Streams.*
+- [40] Recommendation ITU-T X.690 (2015) | ISO/IEC 8825-4:2015, *Information technology – ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER).*
+
+# 3 Definitions
+
+See definitions in Rec. ITU-T H.323. In Rec. ITU-T H.323 the term "endpoint" is used to refer to terminals, gateways, and MCUs as elements that are capable of receiving or initiating calls. In this Recommendation the term "terminal" is often used in a general way in descriptions of call setup, and should be understood as referring to an element that can take part in call setup, including a gateway or MCU.
+
+# 4 Abbreviations and acronyms
+
+This Recommendation uses the following abbreviations and acronyms:
+
+## 4.1 General abbreviations
+
+| | |
+|-------|---------------------------------|
+| BAS | Bit rate Allocation Signal |
+| CIF | Common Intermediate Format |
+| CRV | Call Reference Value |
+| ECS | Encryption Control Signal |
+| FFS | For Further Study |
+| GOB | Group of Blocks |
+| H-MLP | High speed Multi-Layer Protocol |
+| HSD | High Speed Data |
+| IA5 | International Alphabet No. 5 |
+| IE | Information Element |
+| IETF | Internet Engineering Task Force |
+| IP | Internet Protocol |
+| LAN | Local Area Network |
+
+| | |
+|---------|--------------------------------------------------|
+| LD-CELP | Low Delay – Code Excited Linear Prediction |
+| LSB | Least Significant Bit |
+| LSD | Low Speed Data |
+| MB | Macro Block (see Rec. ITU-T H.261) |
+| MBE | Multi-Byte Extension |
+| MCC | Multipoint Command Conference |
+| MCN | Multipoint Command Negating |
+| MCS | Multipoint Command Symmetrical data transmission |
+| MCS | Multipoint Communication Service |
+| MCU | Multipoint Control Unit |
+| MF | MultiFrame |
+| MLP | Multi-Layer Protocol |
+| MPI | Minimum Picture Interval |
+| MSB | Most Significant Bit |
+| NA | Not Applicable |
+| NS | Non-Standard |
+| NSAP | Network Service Access Point |
+| PCM | Pulse Code Modulation |
+| PDU | Protocol Data Unit |
+| QCIF | Quarter Common Intermediate Format |
+| QoS | Quality of Service |
+| RAS | Registration, Admission and Status |
+| RTCP | Real-time Transport Control Protocol |
+| RTP | Real-time Transport Protocol |
+| SBE | Single Byte Extension |
+| SC | Service Channel |
+| SCM | Selected Communications Mode |
+| SCN | Switched Circuit Network |
+| TCP | Transport Control Protocol |
+| TSAP | Transport Service Access Point |
+| UDP | User Datagram Protocol |
+| URL | Uniform Resource Locator |
+| VCF | Video Command "Freeze picture Request" |
+| VCU | Video Command "Fast Update Request" |
+
+## **4.2 RAS message abbreviations**
+
+| | |
+|------|----------------------------------------------|
+| ACF | Admissions Confirm |
+| ARJ | Admissions Reject |
+| ARQ | Admissions Request |
+| BCF | Bandwidth Confirm |
+| BRJ | Bandwidth Reject |
+| BRQ | Bandwidth Request |
+| DCF | Disengage Confirm |
+| DRJ | Disengage Reject |
+| DRQ | Disengage Request |
+| GCF | Gatekeeper Confirm |
+| GRJ | Gatekeeper Reject |
+| GRQ | Gatekeeper Request |
+| IACK | Information request Acknowledgement |
+| INAK | Information request Negative Acknowledgement |
+| IRQ | Information Request |
+| IRR | Information Request Response |
+| LCF | Location Confirm |
+| LRJ | Location Reject |
+| LRQ | Location Request |
+| RAC | Resource Availability Confirmation |
+| RAI | Resource Availability Indication |
+| RCF | Registration Confirm |
+| RIP | Request In Progress |
+| RRJ | Registration Reject |
+| RRQ | Registration Request |
+| SCI | Service Control Indication |
+| SCR | Service Control Response |
+| UCF | Unregistration Confirm |
+| URJ | Unregistration Reject |
+| URQ | Unregistration Request |
+
+# **5 Conventions**
+
+In this Recommendation, "shall" refers to a mandatory requirement, while "should" refers to a suggested but optional feature or procedure. The term "may" refers to an optional course of action without expressing a preference.
+
+When a term such as "MCU" is used, an H.323 MCU is referred to. If an H.231 MCU is intended, this will be explicitly noted.
+
+In this Recommendation kilobits/second is abbreviated kbit/s and is measured in units of 1000. Thus, 64 kbit/s is exactly 64 000 bits per second.
+
+Unless otherwise specified, the aligned variant PER encoding of ASN.1 shall be used for all ASN.1 specified in this Recommendation.
+
+Q.931 message names are Capitalized. ASN.1 names are indicated in **bold**.
+
+NOTE – More recent Recommendations normally represent ASN.1 names using `courier` font. For consistency of presentation with other Recommendations of the H.323 system, ASN.1 names in this text are kept in **bold** typeface.
+
+# 6 Packetization and synchronization mechanism
+
+## 6.1 General approach
+
+Before any calls are made, an endpoint may discover/register with a gatekeeper. If this is the case, it is desirable for the endpoint to know the vintage of the gatekeeper it is registering with. It is also desirable for the gatekeeper to know the vintage of endpoints that register with it. For these reasons, both the *discovery* and registration sequences contain an H.245 style OBJECT IDENTIFIER that allows the vintage to be determined in terms of the version of Rec. ITU-T H.323 implemented. This sequence also may contain optional non-standard message parts to allow endpoints to establish non-standard relationships. At the end of this sequence, both gatekeepers and endpoints are aware of the version numbers and the non-standard status of each other.
+
+The version number is mandatory and non-standard information is optional in the Setup/Connect sequence described below to allow two endpoints to inform each other of their vintage and non-standard status. Note, however, that all H.225.0 call signalling messages have a field for an optional non-standard message in the User-user information element, and that all RAS channel messages have an optional field for non-standard information. In addition, a non-standard RAS message has been defined that can be sent at any time.
+
+The unreliable channel for registration, admissions, and status messaging is called the RAS channel. The general approach to starting a call is to send a mandatory admission request on the RAS channel3, followed by an initial Setup message on a reliable channel transport address (this address may have been returned in the admission confirmation message, or may have been known to the calling terminal). As a result of this initial message, a call setup sequence commences based on H.225.0 call signalling operations with enhancements described below. The sequence is complete when the terminal receives in the Connect message a reliable transport address on which to send H.245 control messages4.
+
+When messages are sent on the reliable H.225.0 call signalling channel, only one whole message shall be sent within the boundaries defined by the reliable transport; there shall be no fragmentation of H.225.0 messages across transport PDUs. (In IP implementations as outlined in Appendix IV, this PDU is defined by TPKT.)
+
+Once the reliable H.245 control channel has been established, additional channels for audio, video, and data may be established based on the outcome of the capability exchange using H.245 logical channel procedures. Also, the nature of the packet-based network-side multimedia conference
+
+---
+
+3 A terminal that is not registered with a gatekeeper is not required to send an admissions request.
+
+4 Note that the H.245 address may be sent in the Alerting or Call Proceeding message to shorten call setup time. Note that the H.245 channel may be opened immediately after the receipt of the H.245 address in the Setup message.
+
+(centralized vs. distributed/multicast) is negotiated on a per connection basis5. This negotiation is performed per media, in the sense that, for example, audio/video may be distributed, while data and control are centralized.
+
+When messages are sent on the reliable H.245 control channel, more than one message may be sent within the boundaries defined by the reliable transport PDU as long as whole messages are sent; there shall be no fragmentation of H.245 messages across transport PDUs. (In IP implementations as outlined in Appendix IV, this PDU is defined by TPKT.)
+
+H.225.0 terminals shall be capable of sending audio and video using RTP via unreliable channels to minimize delay. Error concealment or other recovery action may be applied to overcome lost packets; in general audio/video packets are not re-transmitted since this would result in excessive delay in the packet-based network environment6. It is assumed that bit errors are detected in the lower layers, and errored packets are not sent up to H.225.0. Note that audio/video and call signalling/H.245 control are never sent on the same channel, and do not share a common message structure. H.225.0 terminals shall be capable of sending and receiving audio and video on separate transport addresses using separate instances of RTP to allow for media-specific frame sequence numbers and separate quality of service treatment for each media. However, an optional mode where audio and video packets are mixed in a single frame which is sent to a single transport address is for further study.
+
+T.120 capabilities are negotiated using H.245, and upon receipt of appropriate messages, T.120 conferences are established using the transport/packet-based network stacks of T.123 as appropriate. T.120 shall be conveyed over the packet-based network between endpoints on another transport address. Table 1 shows the number of TSAP identifiers used for each media on a point-to-point call. It is also true that a given H.323 terminal may be able to participate in more than one conference at a time, resulting in the use of additional TSAP identifiers. All H.245 logical channels used are unidirectional except for those associated with T.120, which are bidirectional.
+
+**Table 1 – TSAP IDs used by H.225.0 per point-to-point unicast call**
+
+| Usage of TSAP IDs | Reliable or unreliable | Well-known or dynamic |
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------|-----------------------|
+| Audio/RTP | Unreliable | Dynamic |
+| Audio/RTCP | Unreliable | Dynamic |
+| Video/RTP | Unreliable | Dynamic |
+| Video/RTCP | Unreliable | Dynamic |
+| Call Signalling | Reliable | Well-known or dynamic |
+| H.245 | Reliable | Dynamic |
+| Data (T.120) | Reliable | Well-known or dynamic |
+| RAS | Unreliable | Well-known or dynamic |
+| NOTE – If well-known TSAP identifiers are used, there can only be a single endpoint per network address. Also, in the direct call model the caller requires a well-known TSAP identifier for the Call Signalling channel to start the call. | | |
+
+Although the transport address for, say, audio and video, may share the same packet-based network address and differ only by TSAP identifier, some manufacturers may choose to use different packet-
+
+5 The LAN side conference may be part centralized and part distributed, as decided by the MC controlling the conference. However, the terminal is not aware of this fact. Generally, of course, all terminals will see the same Selected Communications Mode (SCM) (see Rec. ITU-T H.243 for a definition).
+
+6 Fast Update of full frames, MBs, or GOBs may be requested via H.245 signalling.
+
+based network addresses for audio and video. The only requirement is that the convention of Annexes A and B should be followed in the numbering of TSAP identifiers in the RTP session7.
+
+Table 1 describes the basic case of point-to-point unicast operations between two terminals. To facilitate the construction of gateways, MCUs, and gatekeepers, dynamic TSAP IDs may be used instead of well-known TSAP IDs. Tables 2 and 3 illustrate an example of TSAP ID usage for the gateway/MCU case, and for the gatekeeper case.
+
+**Table 2 – TSAP IDs used on one MCU/gateway port (Unicast example)**
+
+| Usage of TSAP IDs | Reliable or unreliable | Well-known or dynamic |
+|-------------------------------|------------------------|-----------------------|
+| Audio/RTP | Unreliable | Dynamic |
+| Audio/RTCP | Unreliable | Dynamic |
+| Video/RTP | Unreliable | Dynamic |
+| Video/RTCP | Unreliable | Dynamic |
+| Call Signalling | Reliable | Dynamic (Note) |
+| H.245 | Reliable | Dynamic |
+| Data (T.120) | Reliable | Dynamic |
+| RAS | Unreliable | Dynamic (Note) |
+| NOTE – See Note 1 of Table 3. | | |
+
+**Table 3 – Example of TSAP IDs usage by H.225.0 gatekeeper supporting the gatekeeper mediated call model of Figure 28/H.323 for a point-to-point call**
+
+| Usage of TSAP IDs | Reliable or unreliable | Well-known or dynamic | Number of channels |
+|--------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------|--------------------------------|---------------------|
+| Call Signalling | Reliable | Dynamic or well-known (Note 1) | 2 per call (Note 2) |
+| H.245 | Reliable | Dynamic | 2 per call (Note 2) |
+| RAS | Unreliable | Well-known | 1 |
+| NOTE 1 – If the well-known TSAP ID is used, the gatekeeper may be limited to a single endpoint per device; therefore, dynamic TSAP IDs should be used. | | | |
+| NOTE 2 – 0 for direct call model; 2 for gatekeeper-mediated call model. | | | |
+
+Note that a reliable transport address is used for call setup for the terminal to terminal case, and also for the gatekeeper-mediated case. The reliable call signalling connection shall be kept active until a Release Complete message is received for all active calls signalled over the call signalling channel.
+
+Note that more than one H.245 channel may be open at a given time, i.e., an endpoint may be in more than one call/conference at the same time. Note also that within a specific call, a terminal may have more than one channel of the same type open, e.g., two audio channels for stereo audio. The only limitation is that there shall be one and only one H.245 control channel per point-to-point call.
+
+H.245 logical channel signalling is used to start and stop video, audio, and data protocol usage. This process calls for closing the open channel, and then reopening with a new mode of operation. As part of the process of opening the channel, before sending the open logical channel acknowledgment, the endpoint uses the ARQ/ACF or BRQ/BCF sequence to ensure that sufficient bandwidth is available for the new channel (unless sufficient bandwidth is available from a previous ARQ/ACF or BRQ/BCF
+
+7 Note that any TSAP ID can be used for the initial RTP session; the major reason to follow the RTP convention is for possible IETF RTP interoperability.
+
+sequence). In some cases, the gateway may find that the SCN side mode change occurs more quickly than the packet-based network side mode change, resulting in the possibility of the loss of audio information. The gateway may adopt several approaches at the discretion of the manufacturer:
+
+- a) the gateway may transcode audio, thus hiding the SCN mode changes;
+- b) the gateway may simply throw away audio information; or
+- c) the gateway may operate as an H.231 MCU, thus gaining control over all SCN side mode changes.
+
+No general rule exists concerning whether H.245 or RTP procedures (see Annexes A, B and C) take precedence; each conflict and its resolution is specifically mentioned in this Recommendation.
+
+Note also that there is no fixed association between SSRCs and logical channels; Rec. ITU-T H.245 provides this association which may be used for audio/video synchronization.
+
+In general, two types of conference modes of operation on the packet-based network side are possible: distributed and centralized. It is also possible that different choices may be made for different media, e.g., distributed audio/video and centralized data. Procedures for determining what sort of conference to establish are in Rec. ITU-T H.323; the messages of this Recommendation are intended to support all allowed combinations, noting that distributed control and data are for further study although supported by the H.245 capability signalling.
+
+## 6.2 Use of RTP/RTCP
+
+The H.225.0 endpoint shall be capable of using separate TSAP IDs for audio and video and the associated RTCP channels as described in Annexes A and B. Optionally, endpoints may choose to use different packet-based network addresses for audio and video, but for each packet-based network address the convention of Annexes A and B should be followed in the use of TSAP IDs. Using H.245 signalling, additional audio and video channels may be established if the terminal supports this capability.
+
+An optional capability to use a single transport address for both audio and video is for further study.
+
+Unless an exception is specifically mentioned here, implementations shall follow those of RTP as contained in Annex A unless modified by text in this Recommendation. Implementations shall follow the RTP profile (see Annex B) only as specifically mentioned in this Recommendation.
+
+RTP translators and mixers are not elements of the H.323 system, and any information about them in Annexes A and B shall be regarded as informative. Note that both gateways and MCUs have some aspects of both mixers and translators, and the information in Annexes A and B may be helpful in the implementation of gateways and MCUs. However, MCUs are not mixers, and mixers are not MCUs. Note that gateways, for example, on a packet-based network-to-packet-based network call via the gateway may act as translators.
+
+**Version (V):** Version 2 of RTP shall be used.
+
+**CSRC Count (CC):** Use of the CSRC count in this Recommendation is optional. When not in use, the value of CC shall be zero (0). The CSRC may be used by MCUs to provide information on contributors to the audio sum when distributed audio processing is occurring. Note that there are no capabilities associated with the ability to understand the CSRC count so the MCU/MC has no way of knowing whether and how the terminal in the conference makes use of the information.
+
+**CNAME:** In the simplest case of a point-to-point connection on the packet-based network, the SSRC is used to identify an audio/video source from a terminal, and the streams are associated by a CNAME as being supplied by the same endpoint as specified in Annex A.
+
+When using RTCP, either RR or SR packets shall be sent periodically as described in Annex A. The CNAME SDES message shall be used. Other SDES messages (see Annex A) are optional, but shall not be used for conference control or conference information when either H.245 and/or T.120 control
+
+functions are in use. Information provided by Rec. ITU-T H.245 and/or Rec. ITU-T T.120 shall be regarded as the correct information.
+
+The RTCP BYE message shall not be relied on for RTP session termination. The H.323 terminal determines when a call is disconnected via the procedures of Rec. ITU-T H.323. The only mandatory use of the RTCP BYE packet is for SSRC collision resolution.
+
+The H.323 terminal, when engaged in any conference, whether point-to-point or multipoint, shall restrict the logical channel bit rate averaged over a period as defined in Rec. ITU-T H.245 to that signalled in the H.245 **FlowControlCommands**, H.245 logical channel commands, and the T.120 flow control mechanism.
+
+When the H.323 terminal is connected to an H.323 gateway, the gateway shall use the means of ITU-T Recs H.245 and T.120 to force the H.323 terminal to transmit at a rate less than or equal to the SCN side media rates and receive at a rate equal or higher than the SCN rate, with the following exceptions:
+
+- Control bandwidth on the packet-based network need not match that in Rec. ITU-T H.221.
+- Audio bandwidth on the packet-based network may match that in Rec. ITU-T H.221 on the SCN, but with gateway transcoding a match is not required.
+- In the case where the gateway is using a rate reducer: the packet-based network-side H.323 terminal shall not exceed the H.245 signalled rate, which will probably be less than the rate being sent over the SCN.
+
+Encryption for H.323 endpoints is for further study.
+
+### 6.2.1 Audio
+
+Before considering how audio is packetized using RTP, attention must be directed toward how it is signalled via H.245, and the relationship of this signalling to RTP. In general, when the audio channel is opened, an H.245 logical channel is opened. H.245 signalling in the **AudioCapability** structure is given in terms of the maximum number of frames per packet. The frame size for this Recommendation varies with the audio coding in use.
+
+All H.323 terminals offering audio communication shall support G.711. For all frame-oriented audio codecs, receivers shall signal the maximum number of audio frames they are capable of accepting in a single audio packet. Transmitters may send any whole number of audio frames in each packet, up to the maximum stated by the receiver. Transmitters shall not split audio frames across packets, and shall send whole numbers of octets in each audio packet.
+
+Sample-based codecs, such as G.711 and G.722, shall be considered to be frame-oriented, with a frame size of eight samples. (See Annex B for additional information regarding guidelines for sample-based audio encoding.) For audio algorithms such as G.723.1 which use more than one size of audio frame, audio frame boundaries within each packet shall be signalled in-band to the audio channel.
+
+For audio algorithms which use a fixed frame size (see ITU-T Recs G.728 and G.729 for the frame size used by each) audio frame boundaries shall be implied by the ratio of packet size to audio frame size; in other words only whole audio frames shall be put in the RTP packet.
+
+**Payload Type (PT):** Only ITU-T payload types such as (0)[PCMU], (8)[PCMA], (9)[G722], and (15)[G728] shall be used for ITU-T codecs signalled in Rec. ITU-T H.245. Dynamic payload types exchanged using H.245 signalling shall be used for any ITU-T payload types not listed in Annex B.
+
+It is recommended that if an interruption in sequence numbers is observed, the receiver may repeat the most recent received sounds such that the amplitude of the repeated sound decays to silence; other similar procedures may be used at the discretion of the manufacturer.
+
+Each G.711 octet shall be octet aligned in an RTP packet. The sign bit of each G.711 octet shall correspond to the most significant bit of the octet in the RTP packet (i.e., assuming the G.711 samples are handled as octets on the host machine, the sign bit shall be the most significant bit of the octet as defined by the host machine format).
+
+When sending 48/56 kbit/s PCM toward the packet-based network, the H.323 gateway shall pad the extra 1 or 2 bits in each octet in accordance with Note 2 in Table 1b/G.711, and use the RTP values for PCMA or PCMU(8 or 0). For $\mu$ -law the padding consists of "1" in both the 7th and 8th bit. For A-law the 7th bit shall be 0 and the 8th bit 1. In the reverse direction the H.323 gateway shall truncate 64 kbit/s G.711 on the packet-based network side to fit the G.711 rate being used in H.320. Thus, on the packet-based network side only 64 kbit/s G.711 shall be used.
+
+When sending 48/56 kbit/s G.722 toward the packet-based network, the H.323 gateway shall pad the extra 1 or 2 bits in each octet, and use dynamic RTP payload types as signalled by Rec. ITU-T H.245 to differentiate between 64 kbit/s (which uses PT = 9) and the reduced rate cases. In the reverse direction the H.323 gateway shall truncate 64 kbit/s G.722 on the packet-based network side to fit the G.711 rate being used in H.320. Thus, on the packet-based network side only 64 kbit/s G.722 shall be used.
+
+If possible, the H.323 terminal should make use of the silence suppression feature of RTP, especially when the conference is multicast. The H.323 terminal shall be able to receive silence compressed RTP streams. Coders may omit sending audio signals during silent periods after sending a single frame of silence, or may send silence background fill frames if such techniques are specified by the audio codec Recommendation in use.
+
+### 6.2.2 Video messages
+
+**Payload Type (PT):** Only ITU-T payload types such as that for Rec. ITU-T H.261 or Rec. ITU-T H.263 shall be used for ITU codecs signalled in Rec. ITU-T H.245. Dynamic payload types may be used for codecs which can be signalled via H.245 and for which packetization formats have not been defined.
+
+**Marker (M):** The marker bit should be set according to the procedures described in Annex A except in cases where it would increase end-to-end delay.
+
+In order to recover from the loss of video packets, H.245 **VideoFastUpdatePicture**, **VideoFastUpdateMB**, and **VideoFastUpdateGOB** shall be supported. Use of the RTCP control packets Full Intra Request (FIR) [send me a full frame] and Negative Acknowledgment (NACK) [Send me certain packets] is optional, and signalled in H.245 capabilities.
+
+Error recovery method 3) as described in Section 5 of RFC 4587 [39] may be impractical if the NACK does not arrive within one frame time.
+
+H.261 is packetized on the packet-based network side as per Annex C. As long as sufficiently large RTP packets are available, fragmentation on MB boundaries by the transmitter is not required. However, if the H.323 terminal fragments H.261 packets on the RTP level, this fragmentation shall occur on MB boundaries. All H.323 terminals shall be able to receive MB fragmented packets as well as GOB fragmented packets, or packets with a mix of MBs and GOBs. Note that failure to support MB fragmentation in the transmitter may result in the loss of an entire GOB, and may also lower the packet rate. RTP packets used shall not exceed the size of the Maximum Transfer Unit (MTU) on a given packet-based network to maximize robustness of operation, but if the smallest independently coded element of the coding scheme (e.g., a macroblock) is larger than the MTU size it is not required to break up the packet over MTUs. MBs shall not be split across packets; all packets shall end on a GOB or MB boundary. The H.323 transmitter may choose to fill out a packet containing a small GOB with additional MBs, but this is not required.
+
+To preclude the possibility of corruption in multiple pictures caused by the loss of an RTP packet, the RTP packetizer in an H.323 endpoint shall not include video from more than one picture in an RTP packet.
+
+The SBIT is the number of most significant bits that shall be ignored in the first data octet. EBIT is the number of least significant bits that shall be ignored in the last data octet.
+
+The RTP packetizer shall not intentionally octet align video at the start of RTP packets. In other words, if $EBIT = n$ in an RTP packet, SBIT in the next RTP packet shall equal $8 - n$ , $0 < n < 8$ , and if $EBIT = 0$ in an RTP packet, SBIT in the next RTP packet shall equal 0. This requirement avoids possible additional end-to-end delay caused by bit-shifting. This requirement shall apply across picture boundaries.
+
+Annex D specifies an H.323 extension to the video packet header that contains an optional octet count. The use of this optional extension is described in Annex D.
+
+See Appendix IV for packet-based network-specific advice on video packetization.
+
+### 6.2.3 Data messages
+
+There are no special data messages or formats; T.120 is used on the packet-based network as per Rec. ITU-T T.123. Centralized vs. distributed data conferencing on the packet-based network is described in Rec. ITU-T H.323, and is negotiated via H.245.
+
+T.120 flow control on the packet-based network is managed using packet-based network protocols when requested by H.245 **FlowControlCommand** and **maxBitRate** limits.
+
+See Rec. ITU-T H.323 for the procedures used to connect a running T.120 conference to an H.323 conference, or to add an H.323 call to a T.120 conference.
+
+The protocol to be used by H.224 on the packet-based network is for further study.
+
+# 7 H.225.0 message definitions
+
+This clause concerns the definition of messages for call setup, call control, and communications between terminals, gateways, gatekeepers, and MCUs.
+
+The ASN.1 definitions for all H.225.0 messages appear in Annex H.
+
+## 7.1 Use of Q.931 messages
+
+Implementations shall follow Rec. ITU-T Q.931 as specified in this Recommendation. Terminals may also support optional H.450 APDUs in the User-User IE. The messages shall contain all of the mandatory information elements and may contain any of the optional information elements as defined in Rec. ITU-T Q.931 as described in this Recommendation. The H.225.0 endpoint may, according to Rec. ITU-T Q.931, ignore all optional messages it does not support without harming interoperability, but shall respond with a Status message that should contain Cause No. 95 "Invalid message, unspecified" to an H.225.0 message it cannot understand or decode due to a Q.931 or ASN.1 encoding error.
+
+Error handling procedures defined in clause 5.8 and associated sub-clauses of Rec. ITU-T Q.931 do not apply to H.225.0 endpoints.
+
+Each H.225.0 endpoint shall be able to receive and identify an incoming H.225.0 call signalling message including one containing an H.450 APDU in the User-user IE. It shall be capable of processing the mandatory H.225.0 call signalling messages; it may be capable of processing the optional H.225.0 call signalling messages. In any case, each H.225.0 endpoint shall be able to ignore messages unknown to it without disturbing operation.
+
+Each H.225.0 endpoint shall be able to interpret and generate the information elements mandated in the following for the respective H.225.0 call signalling messages and H.450 APDU in User-user IE. It may interpret and generate the optional information elements as defined below as well. It may also interpret other information elements of Q.931, or other Q-series or H.450 protocols. The endpoints shall be able to ignore unknown information elements contained in an H.225.0 call signalling message or H.450 APDU without disturbing operation. H.225.0 endpoints shall not send multiple information elements of the same type in the same message; for example, they shall not send multiple Calling Party Number information elements as described in Annex A/Q.951.
+
+Information Elements shall be encoded according to Rec. ITU-T Q.931, except where modified in this Recommendation. However, Rec. ITU-T Q.931 shall always dictate the proper ordering of information elements within a message, regardless of the order of elements listed within this Recommendation.
+
+Intermediate systems (gateways and gatekeepers) shall follow the rules below with regard to H.225.0 call signalling optional messages and information elements:
+
+- 1) The gateway should and the gatekeeper shall, after appropriate modification, forward all information elements (optional or mandatory) associated with mandatory H.225.0 call signalling messages either from the terminal to the gateway/terminal or in the reverse direction. This includes such information elements as User-user information and the Display information.
+- 2) A gateway should forward all H.225.0 call signalling messages including those containing H.450 APDUs and information elements in both directions.
+- 3) A gatekeeper shall forward all H.225.0 call signalling messages including those containing H.450 APDUs and information elements in both directions after appropriate modification. Note that the gatekeeper may act as a signalling element that can provide features (such as supplementary service features) and may therefore modify, terminate, or originate H.225.0 call signalling messages.
+
+H.323 gateways may be capable of converting H.450-series supplementary services and H.225.0 messages to the corresponding supplementary services and messages of ISO/IEC 11582, ISUP and other SCN signalling standards. Details are the scope of Rec. ITU-T H.246 and its annexes.
+
+H.323 gateways may be capable of passing on unmodified signalling messages of ISO/IEC 11582, ISUP and other SCN signalling standards using tunnelling of non-H.323 signalling in H.225.0. Details are in Annex M/H.323 (see M.1/H.323, M.2/H.323, etc.).
+
+In this version of this Recommendation, all references are to the 1998 version of Rec. ITU-T Q.931. The procedures of 3.1/Q.931 for circuit mode connection setup are followed. However, the implementer is reminded that although "bearer" is being signalled for, no actual "B-channels" of the ISDN type exist on the packet-based network side. Successful completion of the "call" results in an end-to-end reliable channel supporting H.245 messaging. Actually "bearer" setup is done using H.245. However, the use of Q.931 on the packet-based network side enables interworking with Q.931 on the SCN side as well as providing a well-tested framework for general connection oriented calling features.
+
+In general, the symmetric procedures of Annex D/Q.931 are used. This implies that the Q.931 state machine is followed as per Annex D/Q.931 with the exception that the procedure of D.3/Q.931 (Call collisions) shall not be followed; recovery from this glare condition is left to the application layer.
+
+Endpoints not supporting Q.931 shifted code sets shall ignore all Q.931 messages using such methods.
+
+Table 4 shows what messages are mandatory and optional for H.323 and H.225.0 call setup using Q.931 on the packet-based network.
+
+**Table 4 – H.225.0 usage of Q.931/Q.932 messages**
+
+| | Transmit
(M, F, O, CM) (Note 1) | Receive and act on
(M, F, O (Note 2), CM) |
+|----------------------------------------|--------------------------------------------|------------------------------------------------------|
+| Call establishment messages | | |
+| Alerting | M | M |
+| Call Proceeding | O | CM (Notes 3 and 6) |
+| Connect | M | M |
+| Connect Acknowledge | F | F |
+| Progress | O | CM (Note 6) |
+| Setup | M | M |
+| Setup Acknowledge | O | O |
+| Call Clearing messages | | |
+| Disconnect | F | F |
+| Release | F | F |
+| Release Complete | M (Note 4) | M |
+| Call Information Phase messages | | |
+| Resume | F | F |
+| Resume Acknowledge | F | F |
+| Resume Reject | F | F |
+| Suspend | F | F |
+| Suspend Acknowledge | F | F |
+| Suspend Reject | F | F |
+| User Information | O | O |
+| Miscellaneous messages | | |
+| Congestion Control | F | F |
+| Information | O | CM (Note 6) |
+| Notify | O | O |
+| Status | M (Note 5) | M |
+| Status Inquiry | O | M |
+| Q.932/H.450 messages | | |
+| Facility | M | M |
+| Hold | F | F |
+| Hold Acknowledge | F | F |
+| Hold Reject | F | F |
+
+**Table 4 – H.225.0 usage of Q.931/Q.932 messages**
+
+| | Transmit
(M, F, O, CM) (Note 1) | Receive and act on
(M, F, O (Note 2), CM) |
+|----------------------|------------------------------------|----------------------------------------------|
+| Retrieve | F | F |
+| Retrieve Acknowledge | F | F |
+| Retrieve Reject | F | F |
+
+NOTE 1 – M: Mandatory, F: Forbidden, O: Optional, CM: Conditionally Mandatory. Something is CM if it is required once an option is supported.
+NOTE 2 – Note that Status shall not be sent in response to a message listed here as "O"; the receiver shall simply ignore the message if it does not support it.
+NOTE 3 – Terminals intended to use gateways shall receive and act on Call Proceeding.
+NOTE 4 – Release Complete is required to close the H.225.0 reliable call signalling channel. However, the call signalling channel shall remain open if other calls using the same call signalling channel are still in progress. Additionally, the Gatekeeper may set the **maintainConnection** flag to TRUE to prevent the closure of the call signalling channel.
+NOTE 5 – The endpoint shall respond to an unknown message with a Status message; response to Status Inquiry is also mandatory. However, an endpoint is not required to send Status Inquiry. As a practical matter, the endpoint should be able to understand a Status message received in response to a message sent that was not known to the receiver.
+NOTE 6 – Endpoints that support optional features that use these messages (such as H.245 tunnelling, H.450 supplementary services, tunnelling of signalling protocols, or features that use **genericData**) shall process these messages.
+
+## 7.2 Common Q.931 information elements
+
+### 7.2.1 Header information elements
+
+For all H.225.0 call signalling messages, there are three common fields that are mandatory in addition to the message type that are described in this clause.
+
+#### 7.2.1.1 Protocol discriminator
+
+As defined in 4.2/Q.931.
+
+Shall be set to 08H – this identifies the message as Q.931/I.451 user-network message (encoded following Figure 4-2/Q.931). If a gatekeeper is acting as a network to supply supplementary services, it may be appropriate to use another value. This is for further study.
+
+#### 7.2.1.2 Call reference
+
+As defined in 4.3/Q.931.
+
+A call reference value length of two octets shall be supported by any H.323 endpoint.
+
+The call reference value is chosen at the side originating the call and has to be locally unique. For subsequent communication, the calling and the called side shall use this call reference value in all the messages belonging to this particular call.
+
+The value is encoded following Figure 4-5/Q.931 for a two-octet call reference value. The most significant octet of the reference value is always encoded in octet No. 2.
+
+Note that the CRV is only unique on a particular part of a call, e.g., between two terminals, or between a terminal and a gatekeeper. If a given terminal has two calls in the same conference, each shall have the same conference ID but different CRVs.
+
+The call reference flag shall be set according to the procedures described in Rec. ITU-T Q.931.
+
+Note that the CRV values passed in RAS messages shall conform to the structure as specified in Rec. ITU-T Q.931. Specifically, the call reference flag shall be included as the most significant bit of the Call ReferenceValue. This restricts the actual CRV to the range of 0 through 32 767, inclusive.
+
+The Global Call Reference, as shown in Figure 4-5/Q.931 and having the numeric value 0, is used to refer to all calls on the Call Signalling Channel or the RAS channel.
+
+#### 7.2.1.3 Message type
+
+The message type is encoded according to Figure 4-6/Q.931 using the values specified in Table 4-2/Q.931. H.225.0 specific extensions are for further study.
+
+### 7.2.2 Message-specific information elements
+
+The general encoding rules for the following information elements are defined in 4.5.1/Q.931 and Table 4-3/Q.931. These rules shall be followed. The escape mechanism (see Figure 4-8/Q.931) is optional.
+
+#### 7.2.2.1 Bearer capability
+
+This information element is encoded according to Figure 4-11/Q.931 and Table 4-6/Q.931. If this information element is received in a packet-based network-to-packet-based network call, it may be ignored by the receiver. If this information element appears in a Setup message for a call-independent signalling connection as defined in Rec. ITU-T H.450.1, the coding shall follow 7.2.2.1.2. In all other cases, coding shall follow 7.2.2.1.1. The octet number references refer to Figure 4-11/Q.931.
+
+##### 7.2.2.1.1 Bearer capability default encoding
+
+H.323 entities shall encode the Bearer capability IE as follows unless indicated otherwise in subsequent clauses.
+
+*Extension bit for octet No. 3 (bit 8)*
+
+- Shall be set to "1".
+
+*Coding Standard (octet No. 3, bits 6-7)*
+
+- Shall be set to "00" indicating "ITU-T".
+
+*Information transfer capability (octet No. 3, bits 1-5)*
+
+- For calls originating from an ISDN endpoint, the information indicated to the gateway shall be forwarded.
+
+NOTE – This is to allow some advance information about the nature of the connection to be forwarded to the H.323 endpoint, e.g., voice only vs. data vs. video; this would have an impact on the bandwidth required as well as on the ability/willingness to accept the call or not.
+
+- Calls that originate from an H.323 endpoint shall use this field to indicate their wish to place an audiovisual call. Therefore, the field shall be set either to "unrestricted digital information", i.e., "01000" or to "restricted digital information", i.e., "01001". If a speech only call is to be placed, the H.323 terminal shall set the information transfer capability to either "speech" (i.e., "00000") or to "3.1 kHz audio" (i.e., "10000").
+
+*Extension bit for octet No. 4 (bit 8)*
+
+- Shall be set to "0" if the information transfer rate is set to "multirate"; shall be set to "1" otherwise.
+
+*Transfer Mode (octet No. 4, bits 6, 7)*
+
+- Shall specify "circuit mode", value "00".
+
+###### *Information transfer rate (octet No. 4, bits 1-5)*
+
+- Shall be encoded following Table 4-6/Q.931 except that the value "00000" (for packet mode) is not permitted unless the gateway is connected to a packet network.
+
+###### *Rate multiplier (octet No. 4.1)*
+
+- Shall be present if information transfer rate is set to "multirate".
+- The extension bit (bit 8) shall be set to "1".
+- The bits 1 through 7 shall indicate the bandwidth needed for the call as defined in the following (note, that in contrast to Rec. ITU-T Q.931, a value of "0000001" is allowed here).
+- For a call originating from an ISDN endpoint, the gateway shall simply pass on the information that it receives from the ISDN.
+- For a call incoming from an H.324 endpoint, the gateway shall set the rate multiplier to 01H.
+- For a call incoming from B-ISDN, some translation from Rec. ITU-T Q.2931 to Rec. ITU-T Q.931 needs to be performed. This is for further study.
+- For a call originated from an H.323 endpoint, this shall be used to indicate the bandwidth to be used for this call. If the called system is another H.323 endpoint, this value may reflect the bandwidth to be used on the packet-based network, but the receiving terminal is not required to follow this information. If a gateway is involved, then this value shall reflect the number of external connections to be set up. The bandwidth needed for the call is the bandwidth needed on the SCN side, and may or may not match the bandwidth allowed on the packet-based network by the ACF/BCF messages.
+
+###### *Layer 1 protocol (Octet No. 5)*
+
+- The extension bit (bit 8) shall be set to "1".
+- Bits 6 and 7 shall indicate the layer one identifier, i.e., "01".
+- Bits 1 through 5 shall indicate the layer one protocol.
+- The allowed values are G.711 (A-law "00011" and $\mu$ -law "00010") to indicate a voice-only call and H.221 and H.242 ("00101") to indicate an H.323 videophone call.
+
+*Octets Nos. 5a, 5b, 5c, 5d, 6 and 7 shall not be present.*
+
+##### **7.2.2.1.2 Bearer capability encoding for H.450.1 call-independent signalling connections**
+
+H.323 entities shall encode the Bearer capability IE as follows for call-independent signalling connections as defined in Rec. ITU-T H.450.1.
+
+###### *Extension bit for octet No. 3 (bit 8)*
+
+- Shall be set to "1".
+
+###### *Coding standard (octet No. 3, bits 6-7)*
+
+- Shall be set to "01" indicating "Other international standard". Note that when this coding standard is indicated, the coding defined in Rec. ITU-T Q.931 shall apply for octets 1 to 2 and bit 8 of octets 3 to 4. Information transfer capability, Transfer mode and Information transfer rate shall be encoded as indicated and no other octets shall be included.
+
+###### *Information transfer capability (octet No. 3, bits 1-5)*
+
+- Shall be set to "01000", indicating "Unrestricted digital information".
+
+###### *Extension bit for octet No. 4 (bit 8)*
+
+- Shall be set to "1".
+
+###### *Transfer mode (octet No. 4, bits 6, 7)*
+
+- Shall be set to "00", indicating "Call-independent signalling connection".
+
+*Information transfer rate (octet No. 4, bits 1-5)*
+
+- Shall be set to "00000", indicating "Call-independent signalling connection".
+
+*Octets 4.1 and higher shall not be included.*
+
+#### **7.2.2.2 Call identity**
+
+The possible use of the Call identity IE is for further study. This study should consider multi-stage dialling, including terminal-to-gatekeeper-to-terminal and terminal-to-gateway-to-terminal, and loose source routing.
+
+#### **7.2.2.3 Call state**
+
+This information element is encoded following Figure 4-13/Q.931.
+
+*Octet No. 3 coding standard (bits 8-7)*
+
+- Set to "00" to indicate ITU-T standardized coding.
+
+*Call state value (octet No. 3, bits 1-6)*
+
+- Set as per Table 4-8/Q.931 but do not use the global interface state values. Values are interpreted as User State as per use of Annex D/Q.931. Note that most of the listed codes will not be generated by an H.323 terminal.
+
+#### **7.2.2.4 Called party number**
+
+This information element is encoded following Figure 4-14/Q.931 and Table 4-9/Q.931.
+
+*Octet No. 3 extension (bit 8)*
+
+- Set to "1".
+
+*Type of number (octet No. 3, bits 5-7)*
+
+- Encoded following the values and rules of Table 4-9/Q.931.
+
+*Numbering plan identification (octet No. 3, bits 1-4)*
+
+- Encoded following the values and rules of Table 4-9/Q.931. A number in the form of a dialled digit string should be coded as "0000" (Unknown). If set to "1001" (Private Numbering Plan) in a packet-based network originated call, this indicates that:
+ - 1) the dialled digit string is not present in Setup; and
+ - 2) the call will be routed via an alias address in the User-user information.
+
+*Type of number (octet No. 3, bits 5-7)*
+
+- Encoded following the values and rules of Table 4-9/Q.931. A number with the Numbering plan identification coded as "0000" (Unknown) shall be coded as "000" (Unknown). A number with the Numbering plan identification coded as "0001" (ISDN/Telephony Numbering Plan, Rec. ITU-T E.164) with the Type of number coded as "000" (Unknown) may be used for backward compatibility.
+
+*Number "digits"*
+
+- Any number of IA5 characters, according to the formats specified in the appropriate numbering/dialling plan.
+
+NOTE – An E.164 number shall only consist of IA5 characters "0", "1", "2", "3", "4", "5", "6", "7", "8" and "9".
+
+#### **7.2.2.5 Called party subaddress**
+
+Use as per Rec. ITU-T Q.931.
+
+#### **7.2.2.6 Calling party number**
+
+This information element is encoded following Figure 4-16/Q.931 and Table 4-11/Q.931.
+
+##### *Type of number (octet No. 3, bits 5-7)*
+
+- Encoded following the values and rules of Table 4-11/Q.931. A number with the Numbering plan identification coded as "0000" (Unknown) shall be coded as "000" (Unknown). A number with the Numbering plan identification coded as "0001" (ISDN/Telephony Numbering Plan, Rec. ITU-T E.164) with the Type of number coded as "000" (Unknown) may be used for backward compatibility.
+
+##### *Numbering plan identification (octet No. 3, bits 1-4)*
+
+- Encoded following the values and rules of Table 4-11/Q.931. A number in the form of a dialled digit string should be coded as "0000" Unknown. If set to "1001" (Private Numbering Plan) in a packet-based network originated call, this indicates that:
+ - 1) the dialled digit string is not present in Setup; and
+ - 2) the call will be routed via an alias address in the User-user information.
+
+##### *Octet No. 3a*
+
+- Encoded following the values and rules of Table 4-11/Q.931.
+
+##### *Number "digits"*
+
+- Any number of IA5 characters, according to the formats specified in the appropriate numbering/dialling plan.
+
+NOTE – An E.164 number shall only consist of IA5 characters "0", "1", "2", "3", "4", "5", "6", "7", "8" and "9".
+
+H.323 endpoints shall not send multiple Calling Party Number IEs in the same message. Gateways may provide support for interworking with Q.931 SETUP messages that contain multiple Calling Party Number IEs. Gateways that provide such support shall map the first Q.931 Calling Party Number IE to the Calling Party Number IE of the H.225.0 Setup message, and map subsequent Q.931 Calling Party Number IEs to the **additionalSourceAddresses** field of the H.225.0 Setup message. Gatekeepers that route H.225.0 Setup messages initiated by an H.323 endpoint may insert a number in the **additionalSourceAddresses** field before forwarding it to its next recipient.
+
+#### 7.2.2.7 Calling party subaddress
+
+Use as per Rec. ITU-T Q.931.
+
+#### 7.2.2.8 Cause
+
+If received, the rules defined in Rec. ITU-T Q.850 apply. Note that either Cause or **ReleaseCompleteReason** is mandatory for Release Complete; the Cause IE is optional elsewhere. The Cause IE and the **ReleaseCompleteReason** (a part of the Release Complete message) are mutually exclusive. Gateways shall map from a **ReleaseCompleteReason** to the Cause IE when sending a Release Complete message to the circuit-switched side from the packet-based network side (see Table 5). (The reverse mapping is not required as packet-based network entities are required to decode the Cause IE.)
+
+Gateways shall also map from **AdmissionRejectReason** and **LocationRejectReason** to the Cause IE when sending a Release Complete message to the circuit-switched side after receiving an **AdmissionReject** or a **LocationReject** (see Table 6).
+
+**Table 5 – ReleaseCompleteReason to Cause IE mapping**
+
+| ReleaseCompleteReason code | Corresponding Q.931/Q.850 cause value |
+|----------------------------|----------------------------------------|
+| noBandwidth | 34 – No circuit/channel available |
+| gatekeeperResources | 47 – Resource unavailable, unspecified |
+| unreachableDestination | 3 – No route to destination |
+
+**Table 5 – ReleaseCompleteReason to Cause IE mapping**
+
+| ReleaseCompleteReason code | Corresponding Q.931/Q.850 cause value |
+|--------------------------------------|-------------------------------------------------|
+| destinationRejection | 16 – Normal call clearing |
+| invalidRevision | 88 – Incompatible destination |
+| noPermission | 127 – Interworking, unspecified |
+| unreachableGatekeeper | 38 – Network out of order |
+| gatewayResources | 42 – Switching equipment congestion |
+| badFormatAddress | 28 – Invalid number format (address incomplete) |
+| adaptiveBusy | 41 – Temporary Failure |
+| inConf | 17 – User busy |
+| undefinedReason | 31 – Normal, unspecified |
+| facilityCallDeflection | 16 – Normal call clearing |
+| securityDenied | 31 – Normal, unspecified |
+| securityWrongSyncTime | 31 – Normal, unspecified |
+| securityReplay | 31 – Normal, unspecified |
+| securityWrongGeneralID | 31 – Normal, unspecified |
+| securityWrongSendersID | 31 – Normal, unspecified |
+| securityMessageIntegrityFailed | 31 – Normal, unspecified |
+| securityWrongOID | 31 – Normal, unspecified |
+| securityDHmismatch | 31 – Normal, unspecified |
+| securityCertificateExpired | 31 – Normal, unspecified |
+| securityCertificateDateInvalid | 31 – Normal, unspecified |
+| securityCertificateRevoked | 31 – Normal, unspecified |
+| securityCertificateNotReadable | 31 – Normal, unspecified |
+| securityCertificateSignatureInvalid | 31 – Normal, unspecified |
+| securityCertificateMissing | 31 – Normal, unspecified |
+| securityCertificateIncomplete | 31 – Normal, unspecified |
+| securityUnsupportedCertificateAlgOID | 31 – Normal, unspecified |
+| securityUnknownCA | 31 – Normal, unspecified |
+| calledPartyNotRegistered | 20 – Subscriber absent |
+| callerNotRegistered | 31 – Normal, unspecified |
+| newConnectionNeeded | 47 – Resource unavailable, unspecified |
+| nonStandardReason | 127 – Interworking, unspecified |
+| replaceWithConferenceInvite | 31 – Normal, unspecified |
+| genericDataReason | 31 – Normal, unspecified |
+| neededFeatureNotSupported | 31 – Normal, unspecified |
+| tunnelledSignallingRejected | 127 – Interworking, unspecified |
+| InvalidCID | 3 – No route to destination |
+| hopCountExceeded | 3 – No route to destination |
+
+**Table 6 – AdmissionRejectReason/LocationRejectReason to Cause IE mapping**
+
+| AdmissionRejectReason or LocationRejectReason code | Corresponding Q.931/Q.850 cause value |
+|-----------------------------------------------------------|---------------------------------------------------|
+| calledPartyNotRegistered | 20 – Subscriber absent |
+| invalidPermission | 127 – Interworking, unspecified |
+| requestDenied | 31 – Normal, unspecified |
+| undefinedReason | 31 – Normal, unspecified |
+| callerNotRegistered | 31 – Normal, unspecified |
+| routeCallToGatekeeper | Not applicable |
+| invalidEndpointIdentifier | 127 – Interworking, unspecified |
+| resourceUnavailable | 47 – Resource unavailable |
+| securityDenial | 31 – Normal, unspecified |
+| qosControlNotSupported | 63 – Service or option not available, unspecified |
+| incompleteAddress | 28 – Invalid number format |
+| aliasesInconsistent | 31 – Normal, unspecified |
+| routeCallToSCN | 3 – No route to destination |
+| exceedsCallCapacity | 41 – Temporary Failure |
+| collectDestination | 31 – Normal, unspecified |
+| collectPIN | 31 – Normal, unspecified |
+| genericDataReason | 31 – Normal, unspecified |
+| neededFeatureNotSupported | 31 – Normal, unspecified |
+| securityWrongSyncTime | 31 – Normal, unspecified |
+| securityReplay | 31 – Normal, unspecified |
+| securityWrongGeneralID | 31 – Normal, unspecified |
+| securityWrongSendersID | 31 – Normal, unspecified |
+| securityIntegrityFailed | 31 – Normal, unspecified |
+| securityWrongOID | 31 – Normal, unspecified |
+| secuirtyDHMismatch | 31 – Normal, unspecified |
+| noRouteToDestination | 3 – No route to destination |
+| unallocatedNumber | 1 – Unallocated number |
+| noBandwidthAvailable | 34 – No circuit/channel available |
+
+#### **7.2.2.9 Channel identification**
+
+Use is for further study; may be used to provide feedback on multiple call attempts.
+
+#### **7.2.2.10 Connected number**
+
+Encoded following 5.4.1/Q.951.
+
+#### **7.2.2.11 Connected sub-address**
+
+Encoded following 5.4.2/Q.951.
+
+#### **7.2.2.12 Congestion level**
+
+Shall not be used.
+
+#### **7.2.2.13 Date/time**
+
+Encoded following Figure 4-21/Q.931.
+
+#### **7.2.2.14 Display**
+
+Encoded following Figure 4-22/Q.931. The maximum length of the entire information element is 82 octets.
+
+#### **7.2.2.15 Extended facility information element**
+
+Any Extended Facility IE that is used to indicate unmodified semantics as defined in Q.95x-series Recommendations shall be encoded following 8.2.4/Q.932. In this case, the Service ADUs shall be formed according to ROSE (uses Rec. ITU-T X.680 (Specification of ASN.1) and Rec. ITU-T X.690 (Specification of basic encoding rules for ASN.1)) as defined in Rec. ITU-T X.229.
+
+#### **7.2.2.16 Facility**
+
+In order to signal call redirection specific to H.323 procedures (call forwarding, call transfer, redirecting a call to the MC, or forcing a call to be routed to the gatekeeper) or in case of supplementary service signalling according to Rec. ITU-T H.450, the User-user information element of the Facility message is used. This particular case shall be indicated by coding a Facility IE of length zero; i.e., the Facility information element shall consist of exactly 2 octets as follows:
+
+- Octet No. 1 (information element identifier) shall be set to "00011100" ("1CH") to indicate the Facility IE.
+- Octet No. 2 (information element length) shall be set to "0" to indicate that no further octets belonging to this information element follow.
+
+In order to indicate call forwarding or call transfer, the Facility IE shall be empty and the **Facility-UUIE** shall indicate in the **alternativeAddress** or the **alternativeAliasAddress** the terminal to which the call is to be redirected. In this case, the **facilityReason** shall be set to **callForwarded**.
+
+To instruct an endpoint to call a different endpoint because the calling endpoint wishes to join a conference and the called endpoint does not have the MC, the Facility IE would be left empty as well. The **conferenceID** shall indicate the conference to join and the reason in the **Facility-UUIE** shall be **routeCallToMC**.
+
+Also, to instruct the calling endpoint to signal the called endpoint through the called endpoint's gatekeeper, the Facility IE is left empty. The **conferenceID** in the **Facility-UUIE** shall indicate the conference to join and the reason in the **Facility-UUIE** shall be **routeCallToGatekeeper**.
+
+Any Facility IE that is used to indicate unmodified semantics as defined in Q.95x-series Recommendations shall be encoded following 8.2.3/Q.932. In this case, the Service ADUs shall be formed according to ROSE (uses Rec. ITU-T X.680 (Specification of ASN.1) and Rec. ITU-T X.690 (Specification of basic encoding rules for ASN.1)) as defined in Rec. ITU-T X.229.
+
+#### **7.2.2.17 High layer compatibility**
+
+FFS.
+
+#### **7.2.2.18 Keypad facility**
+
+Encoded following Figure 4-24/Q.931. The use of the exclamation point character "!" shall represent a hookflash indication. Endpoints not supporting reception of the hookflash indication shall ignore the "!" if received.
+
+#### **7.2.2.19 Low layer compatibility**
+
+FFS.
+
+#### **7.2.2.20 More data**
+
+Shall not be used.
+
+#### **7.2.2.21 Network-specific facilities**
+
+Shall not be used.
+
+#### **7.2.2.22 Notification indicator**
+
+Encoded following 4.5.22/Q.931.
+
+#### **7.2.2.23 Progress indicator**
+
+Encoded following Figure 4-29/Q.931 and Table 4-20/Q.931.
+
+This information element is only required for interfacing an H.323 terminal to an ISDN- and ATM-based terminal where detailed call proceeding information is available. In this case, the gateway shall forward this information to the H.323 terminal. The H.323 end system need not interpret this information element.
+
+If this information element is generated by an H.323 terminal, the following restrictions apply:
+
+*Coding standard (octet No. 3, bit 6,7)*
+
+- Shall indicate "ITU-T" ("00").
+
+*Location*
+
+- Following Table 4-20/Q.931.
+- The values "user" ("0000"), "private network serving the local user" ("0001"), and "private network serving the remote user" ("0101") are permitted.
+
+*Progress description*
+
+- Following Table 4-20/Q.931.
+
+#### **7.2.2.24 Redirecting number**
+
+Encoded following 4.6.7/Q.931. Note that this IE is provided only to facilitate interworking with the SCN, and not to provide a mechanism for H.323-based call diversion services. Call diversion services in H.323 are defined by Rec. ITU-T H.450.3.
+
+#### **7.2.2.25 Repeat indicator**
+
+Shall not be used.
+
+#### **7.2.2.26 Restart indicator**
+
+Shall not be used.
+
+#### **7.2.2.27 Segmented message**
+
+Shall not be used. Note that there is no critical upper limit on the message size in Rec. ITU-T H.323 and this Recommendation.
+
+#### **7.2.2.28 Sending complete**
+
+Encoded following Figure 4-33/Q.931.
+
+No restrictions apply.
+
+#### **7.2.2.29 Signal**
+
+Encoded following Figure 4-34/Q.931 and Table 4-24/Q.931.
+
+No restrictions apply.
+
+#### 7.2.2.30 Transit network selection
+
+Shall not be used.
+
+#### 7.2.2.31 User-user
+
+Encoded following Figure 4-36/Q.931 and Table 4-26/Q.931, as modified here.
+
+The User-user information element shall be used by all H.323 entities to convey H.323-related information. Actual user-user information to be exchanged only between the involved terminals is nested in the **user-data** field of the **H323-UserInformation** PDU (to which no restrictions apply).
+
+The following restrictions apply:
+
+##### *Length of user-user contents*
+
+- Shall be 2 octets instead of 1 (as in Figure 4-36/Q.931).
+
+##### *Protocol discriminator*
+
+- Shall indicate ITU-T Recs X.680 and X.690 (ASN.1) coded user information ("00000101").
+NOTE – This is taken from the 1998 revision of Rec. ITU-T Q.931 that references the earlier revisions of ASN.1. The correct references to ASN.1 are ITU-T Recs X.680 (syntax) and X.691 (PER).
+
+##### *User information*
+
+- Shall contain an ASN.1 structure (H323-UserInformation) that, besides the H.323 relevant information, includes the actual user data as follows. The ASN.1 is encoded using the aligned variant of the packed encoding rules as specified in Rec. ITU-T X.691.
+
+The **H323-UserInformation** structure contains the **h323-uu-pdu** and **user-data** fields.
+
+The **h323-uu-pdu** field of the **H323-UserInformation** structure contains the following fields. Note that not all fields in **h323-uu-pdu** are permitted in every message. See the description of each individual message for restrictions.
+
+- **h323-message-body** – This field contains information specific to a particular H.225.0 signalling message, as described in 7.3 and 7.4. A sender may select a choice of **empty** if there is no need to send the UUIE field (**Facility-UUIE**, etc.) in a particular message, such as when a Facility message is used to transport non-call associated information. Note that beginning with version 4 of this Recommendation, if a message is associated with a particular call, then the sender shall include the UUIE field. This is necessary in order to provide the **callIdentifier** field.
+- **nonStandardData** – This field carries information not defined in this Recommendation (for example, proprietary data).
+- **h4501SupplementaryService** – This field carries a sequence of H4501SupplementaryService APDUs as defined in Table 3/H.450.1.
+- **h245Tunnelling** – This element is set to TRUE if tunnelling of H.245 messages is enabled. Systems compliant with H.225.0 version 4 or higher shall set this element to TRUE if the Fast Connect procedure is used to establish the call.
+- **h245Control** – This field carries a sequence of tunnelled H.245 PDUs. Each octet string shall contain exactly one H.245 PDU.
+- **nonStandardControl** – This field contains control information not defined in this Recommendation (for example, proprietary control information).
+- **callLinkage** – The contents of this field are typically controlled by a call linkage service. For the procedures and semantics of this field refer to Rec. ITU-T H.323.
+
+- **tunnelledSignallingMessage** – A tunnelled entire signalling message in its native format to support additional end-to-end call control signalling. The **tunnelledProtocolID** field identifies the protocol being tunnelled. The **messageContent** field is a sequence of actual entire tunnelled messages in their native binary format; this allows aggregation of tunnelled messages in one H.225.0 message. If the **tunnellingRequired** field is present, the call shall only proceed if tunnelling is supported.
+- **provisionalRespToH245Tunnelling** – This flag is used to signal that the called entity has not yet decided whether H.245 tunnelling is applicable for this call. If present, the **h245Tunnelling** flag shall be ignored by the receiving entity.
+- **stimulusControl** – This field is reserved for future use by the ITU-T for a stimulus-based protocol.
+- **genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through H.225.0.
+
+The **user-data** field of the **H323-UserInformation** structure contains the following fields:
+
+- protocol-discriminator – This field is encoded following Table 4-26/Q.931.
+- user-information – This field is encoded following 4.5.30/Q.931.
+
+## 7.3 Q.931 based H.225.0 call signalling message details
+
+Note that the lengths of the information elements specified in the tables below, where "\*" denotes an undefined maximum length, refer to messages that are generated by H.323 terminals only. The size of the User-user information element, not explicitly shown, is understood as the size of the PER encoded **H323-UserInformation sequence**. The total size of **H323-UserInformation** is limited to 65 536 octets. Regardless of the specified sizes, messages forwarded from the SCN side may have different (larger) sizes.
+
+Also note that an information element specified below as mandatory, optional, or forbidden refers only to whether or not H.323 terminals may originate such information elements.
+
+### 7.3.1 Alerting
+
+This message may be sent by the called user to indicate that called user alerting has been initiated. In everyday terms, the "phone is ringing".
+
+Follow Table 3-2/Q.931 (1998 version) as modified below in Table 7.
+
+**Table 7 – Alerting**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M | 3 |
+| Message type | M | 1 |
+| Bearer capability | O | 5-6 |
+| Extended facility | O | 8-* |
+| Channel identification | FFS | NA |
+| Facility | O | 8-* |
+| Progress indicator | O | 2-4 |
+| Notification indicator | O | 2-* |
+| Display | O | 2-82 |
+
+**Table 7 – Alerting**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|--------------------------|------------------------|-------------------|
+| Signal | O | 2-3 |
+| High layer compatibility | FFS | NA |
+| User-user | M | * |
+
+The User-user information element contains the Alerting-UUIE defined in the H.225.0 Message Syntax. The **Alerting-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**destinationInfo** – Contains an **EndpointType** to allow the caller to determine whether the call involves a gateway or not.
+
+**h245Address** – This is a specific transport address on which the called endpoint or gatekeeper handling the call would like to establish H.245 signalling. This address may also be sent in Call Proceeding, Progress, Connect, or Facility.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**h245SecurityMode** – An H.323 entity that receives a Setup message with the **h245SecurityCapability** set shall respond with the corresponding, acceptable **h245SecurityMode** in the Call Proceeding, Alerting, Progress, or Connect.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**fastStart** – Used only in the fast connect procedure, **fastStart** supports the signalling needed to open a logical channel. This uses the **OpenLogicalChannel** structure defined in Rec. ITU-T H.245, but the sender of this indicates the modes it prefers to receive and transmit, and the transport addresses where it expects to receive media streams.
+
+**multipleCalls** – If TRUE, this indicates that the sender of the message is capable of signalling multiple calls over a single call signalling connection.
+
+**maintainConnection** – If TRUE, this indicates that the sender of the message is capable of supporting a signalling connection when no calls are currently signalled over the connection.
+
+**alertingAddress** – Contains the alias addresses for the alerting party.
+
+**presentationIndicator** – Indicates whether presentation of the **alertingAddress** should be allowed or restricted.
+
+**screeningIndicator** – Indicates whether the **alertingAddress** was provided by the endpoint or network (gatekeeper), and whether the **alertingAddress** was screened by a gatekeeper.
+
+**fastConnectRefused** – A called endpoint should return this element in any message up to and including the Connect message when establishing a call to indicate that it refuses the Fast Connect procedure.
+
+**serviceControl** – Contains service-specific data, or references to it, that may be used as part of the setup procedure by the calling endpoint (e.g., a menu of options for call diversion) as described, for example, in Annex K/H.323.
+
+**capacity** – This field indicates the sending endpoint's available call capacity at this point in time, assuming that this Alerting message represents an active call. When sending this field, the endpoint shall include the **currentCallCapacity** element.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**displayName** – Provides an ordered list of names, along with language tags, that identify the called or calling user. The user's most preferred name and language should be indicated first, followed by alternative representations using the same or different language tags. The receiving user may select any of the offered names for display according to local preference. When the **displayName** field is present, it shall take precedence over the **Display IE**. However, the **Display IE** should still be provided for interworking with legacy systems.
+
+### 7.3.2 Call proceeding
+
+This message may be sent by the called user to indicate that requested call establishment has been initiated and no more call establishment information will be accepted. See Table 8.
+
+**Table 8 – Call proceeding**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|--------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M | 3 |
+| Message type | M | 1 |
+| Bearer capability | O | 5-6 |
+| Extended facility | O | 8-* |
+| Channel identification | FFS | NA |
+| Facility | O | 8-* |
+| Progress indicator | O | 2-4 |
+| Notification indicator | O | 2-* |
+| Display | O | 2-82 |
+| High layer compatibility | FFS | NA |
+| User-user | M | * |
+
+The User-user information element contains the **CallProceeding-UUIE** defined in the H.225.0 Message Syntax. The **CallProceeding-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**destinationInfo** – Contains an **EndpointType** to allow the caller to determine whether the call involves a gateway or not.
+
+**h245Address** – This is a specific transport address on which the called endpoint or gatekeeper handling the call would like to establish H.245 signalling.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**h245SecurityMode** – An H.323 entity that receives a Setup message with the **h245SecurityCapability** set shall respond with the corresponding, acceptable **h245SecurityMode** in the Call Proceeding, Alerting, Progress, or Connect.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**fastStart** – Used only in the fast connect procedure, **fastStart** supports the signalling needed to open a logical channel. This uses the **OpenLogicalChannel** structure defined in Rec. ITU-T H.245, but the sender of this indicates the modes it prefers to receive and transmit, and the transport addresses where it expects to receive media streams.
+
+**multipleCalls** – If TRUE, this indicates that the sender of the message is capable of signalling multiple calls over a single call signalling connection.
+
+**maintainConnection** – If TRUE, this indicates that the sender of the message is capable of supporting a signalling connection when no calls are currently signalled over the connection.
+
+**fastConnectRefused** – A called endpoint should return this element in any message up to and including the Connect message when establishing a call to indicate that it refuses the Fast Connect procedure.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+### 7.3.3 Connect
+
+This message shall be sent by the called entity to the calling entity (gatekeeper, gateway, or calling terminal) to indicate acceptance of the call by the called entity. Follow Table 3-4/Q.931, as modified in Table 9 below.
+
+**Table 9 – Connect**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|--------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M | 3 |
+| Message type | M | 1 |
+| Bearer capability | O | 5-6 |
+| Extended facility | O | 8-* |
+| Channel identification | FFS | NA |
+| Facility | O | 8-* |
+| Progress indicator | O | 2-4 |
+| Notification indicator | O | 2-* |
+| Display | O | 2-82 |
+| Date/Time | O | 8 |
+| Connected Number | O | 2-* |
+| Connected Subaddress | O | 2-23 |
+| Low layer compatibility | FFS | NA |
+| High layer compatibility | FFS | NA |
+| User-user | M | * |
+
+The User-user information element contains the **Connect-UUIE** defined in the H.225.0 Message Syntax. The **Connect-UUIE** includes the following:
+
+**protocolIdentifier** – Set by the called endpoint to the version of H.225.0 supported.
+
+**h245Address** – This is a specific transport address on which the called endpoint or gatekeeper handling the call would like to establish H.245 signalling. This address shall be sent if sent earlier in Alerting, Progress, Call Proceeding, or Facility.
+
+**destinationInfo** – Contains an **EndpointType** to allow the caller to determine whether the call involves a gateway or not.
+
+**conferenceID** – Will contain a unique number to allow the conference to be uniquely identified from all others as received in the Setup.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**h245SecurityMode** – An H.323 entity that receives a Setup message with the **h245SecurityCapability** set shall respond with the corresponding, acceptable **h245SecurityMode** in the Call Proceeding, Alerting, Progress, or Connect.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**fastStart** – Used only in the fast connect procedure, **fastStart** supports the signalling needed to open a logical channel. This uses the **OpenLogicalChannel** structure defined in Rec. ITU-T H.245, but the sender of this indicates the modes it prefers to receive and transmit, and the transport addresses where it expects to receive media streams.
+
+**multipleCalls** – If TRUE, this indicates that the sender of the message is capable of signalling multiple calls over a single call signalling connection.
+
+**maintainConnection** – If TRUE, this indicates that the sender of the message is capable of supporting a signalling connection when no calls are currently signalled over the connection.
+
+**language** – Indicates the language(s) the user will use or in which the user would prefer to receive announcements and prompts. The field contains one or more RFC 5646 compliant language tags.
+
+**connectedAddress** – Contains the alias addresses for the connected (answering) party; the dialled digit string of the connected party is in the Connected Number IE.
+
+**presentationIndicator** – Indicates whether presentation of the **connectedAddress** should be allowed or restricted. If both **presentationIndicator** and the presentation indicator of the Connected Number IE are present and are in conflict, the presentation indicator of the Connected Number IE shall be used.
+
+**screeningIndicator** – Indicates whether the **connectedAddress** was provided by the endpoint or network (gatekeeper), and whether the **connectedAddress** was screened by a gatekeeper. If both **screeningIndicator** and the screening indicator of the Connected Number IE are present and are in conflict, the screening indicator of the Connected Number IE shall be used.
+
+**fastConnectRefused** – A called endpoint should return this element in any message up to and including the Connect message when establishing a call to indicate that it refuses the Fast Connect procedure.
+
+**serviceControl** – Contains service-specific data, or references to it, that could be used by an endpoint or gateway (e.g., for displaying a menu of options to a caller) as described, for example, in Annex K/H.323.
+
+**capacity** – This field indicates the sending endpoint's available call capacity at this point in time, assuming that this Connect message represents an active call. When sending this field, the endpoint shall include the **currentCallCapacity** element.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**displayName** – Provides an ordered list of names, along with language tags, that identify the called or calling user. The user's most preferred name and language should be indicated first, followed by alternative representations using the same or different language tags. The receiving user may select
+
+any of the offered names for display according to local preference. When the *displayName* field is present, it shall take precedence over the *Display* IE. However, the *Display* IE should still be provided for interworking with legacy systems.
+
+### 7.3.4 Connect acknowledgement
+
+This message shall not be sent.
+
+### 7.3.5 Disconnect
+
+This message shall not be sent by an H.323 entity.
+
+The contents and semantics of a *Disconnect* message received from the network are defined in Table 3-6/Q.931 and in 10.5 of ISO/IEC 11582.
+
+### 7.3.6 Information
+
+This message may be sent to provide additional information. It may be used to provide information for call establishment (e.g., overlap sending) or miscellaneous call-related information. It may be used to deliver proprietary features.
+
+This message may be sent by an H.323 entity.
+
+This message follows Table 3-7/Q.931 with the following modifications (see Table 10).
+
+**Table 10 – Information message content**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|-------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M | 3 |
+| Message type | M | 1 |
+| Sending complete | O | 1 |
+| Display | O | 2-82 |
+| Keypad facility | O | 2-34 |
+| Signal | O | 2-3 |
+| Called party number | O (Note) | 2-35 |
+| User-user | M | * |
+| NOTE – The Called Party Number IE will be used to carry numbers from a Private Numbering Plan when performing overlapped sending according to 8.1.12/H.323. | | |
+
+The *User-user* information element contains the **Information-UUIE** defined in the H.225.0 Message Syntax. The **Information-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**fastStart** – This field shall not be included, and shall be ignored upon receipt.
+
+**fastConnectRefused** – This field shall not be included, and shall be ignored upon receipt.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+### 7.3.7 Progress
+
+This message may be sent by an H.323 gateway to indicate the progress of a call in the event of interworking with SCN. This message may also be sent by an H.323 endpoint before the Connect message, depending on supplementary service interaction.
+
+Follow Table 3-9/Q.931 and 10.10 of ISO/IEC 11582 as modified in Table 11.
+
+**Table 11 – Progress**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|--------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M | 3 |
+| Message type | M | 1 |
+| Bearer capability | O | 5-6 |
+| Cause | O | 2-32 |
+| Extended facility | O | 8-* |
+| Channel identification | FFS | NA |
+| Facility | O | 8-* |
+| Progress indicator | M | 2-4 |
+| Notification indicator | O | 2-* |
+| Display | O | 2-82 |
+| High layer compatibility | FFS | NA |
+| User-user | M | * |
+
+The User-user information element contains the **Progress-UUIE** defined in the H.225.0 Message Syntax. The **Progress-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**destinationInfo** – Contains an **EndpointType** to allow the caller to determine whether the call involves a gateway or not.
+
+**h245Address** – This is a specific transport address on which the called endpoint or gatekeeper handling the call would like to establish H.245 signalling. This address shall be sent if sent earlier in Call Proceeding, Alerting, Connect, or Facility.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**h245SecurityMode** – An H.323 entity that receives a Setup message with the **h245SecurityCapability** set shall respond with the corresponding, acceptable **h245SecurityMode** in the Call Proceeding, Alerting, Progress, or Connect.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**fastStart** – Used only in the fast connect procedure, **fastStart** supports the signalling needed to open a logical channel. This uses the **OpenLogicalChannel** structure defined in Rec. ITU-T H.245, but the sender of this indicates the modes it prefers to receive and transmit, and the transport addresses where it expects to receive media streams.
+
+**multipleCalls** – If TRUE, this indicates that the sender of the message is capable of signalling multiple calls over a single call signalling connection.
+
+**maintainConnection** – If TRUE, this indicates that the sender of the message is capable of supporting a signalling connection when no calls are currently signalled over the connection.
+
+**fastConnectRefused** – A called endpoint should return this element in any message up to and including the Connect message when establishing a call to indicate that it refuses the Fast Connect procedure.
+
+### 7.3.8 Release
+
+This message shall not be sent by an H.323 entity.
+
+The contents and semantics of a Release message received are defined in Table 3-10/Q.931 and in 10.5 of ISO/IEC 11582.
+
+### 7.3.9 Release complete
+
+This message shall be sent by a terminal to indicate release of the call. Afterwards, the Call Reference Value (CRV) is available for reuse.
+
+The disconnect/release/release complete sequence is not used since its primary purpose is to indicate the completion of release of circuit-switched resources. As this does not apply to the packet-based network environment, the single step method of sending only Release Complete is used.
+
+Follow Table 3-11/Q.931. Table 12 modifications apply.
+
+**Table 12 – Release complete**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|----------------------------------------------------------------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M | 3 |
+| Message type | M | 1 |
+| Cause | CM (Note) | 2-32 |
+| Facility | O | 8-* |
+| Notification indicator | O | 2-* |
+| Display | O | 2-82 |
+| Signal | O | 2-3 |
+| User-user | M | * |
+| NOTE – Either the Cause IE or the ReleaseCompleteReason shall be present. | | |
+
+If this message is sent in response to a Facility message with an empty Facility IE, the **ReleaseCompleteReason** shall be set to **facilityCallDeflection**.
+
+If this message is forwarded from a SCN by a gateway, the cause value shall be set as specified in Rec. ITU-T Q.931.
+
+The User-user information element contains the **ReleaseComplete-UUIE** defined in the H.225.0 Message Syntax. The **ReleaseComplete-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**reason** – More information on why the call was released. A reason of **genericDataReason** indicates that the call was cleared as a result of a generic element or feature; in this case, additional information may be specified in the **genericData** field of the **h323-uu-pdu** of this message. A reason of **neededFeatureNotSupported** indicates that a feature required by one entity is not supported by
+
+another. A reason of **tunnelledSignallingRejected** is sent if the call is cleared because the sender does not allow tunnelled non-H.323 signalling and tunnelling is required in order for the call to succeed. A reason of **hopCountExceeded** indicates that the call was rejected because the **hopCount** value reached 0 and hence the call cannot proceed further.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**busyAddress** – Contains the alias addresses for the busy party.
+
+**presentationIndicator** – Indicates whether presentation of the **busyAddress** should be allowed or restricted.
+
+**screeningIndicator** – Indicates whether the **busyAddress** was provided by the endpoint or network (gatekeeper), and whether the **busyAddress** was screened by a gatekeeper.
+
+**capacity** – Indicates the sending endpoint's available call capacity after the call referenced in this Release Complete message has been released. When sending this field, the endpoint shall include the **currentCallCapacity** element.
+
+**serviceControl** – Contains service-specific data, or references to it, for post-call services (e.g., an error message or announcement) as described, for example, in Annex K/H.323.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**destinationInfo** – Contains an **EndpointType** to allow the caller to determine whether the call involves a gateway or not.
+
+**displayName** – Provides an ordered list of names, along with language tags, that identify the called or calling user. The user's most preferred name and language should be indicated first, followed by alternative representations using the same or different language tags. The receiving user may select any of the offered names for display according to local preference. When the **displayName** field is present, it shall take precedence over the Display IE. However, the Display IE should still be provided for interworking with legacy systems.
+
+### 7.3.10 Setup
+
+This message shall be sent by a calling H.323 entity to indicate its desire to set up a connection to the called entity.
+
+Follow Table 3-15/Q.931 as modified in Table 13.
+
+**Table 13 – Setup**
+
+| Information element | H.225.0 status (M/F/O/CM) | Length in H.225.0 |
+|-----------------------------|---------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M (Note 2) | 3 |
+| Message type | M | 1 |
+| Sending complete | O | 1 |
+| Repeat indicator | F | NA |
+| Bearer capability | M | 5-6 |
+| Extended facility | O | 8-* |
+| Channel identification | FFS | NA |
+| Facility | O | 8-* |
+| Progress indicator | O | 2-4 |
+| Network specific facilities | F | NA |
+| Notification indicator | O | 2-* |
+| Display | O | 2-82 |
+| Keypad facility | O | 2-34 |
+| Signal | O | 2-3 |
+| Calling party number | O | 2-131 |
+| Calling party subaddress | CM (Note 1) | NA |
+| Called party number | O | 2-131 |
+| Called party subaddress | CM (Note 1) | NA |
+| Redirecting Number | O | 2-* |
+| Transit network selection | F | NA |
+| Low layer compatibility | FFS | NA |
+| High layer compatibility | FFS | NA |
+| User-user | M | * |
+
+NOTE 1 – Subaddresses are needed for some SCN call scenarios; they should not be used for packet-based network side only calls.
+NOTE 2 – If an ARQ was previously sent, the CRV used here shall be the same.
+
+The User-user information element contains the **Setup-UUIE** defined in the H.225.0 Message Syntax. The **Setup-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**h245Address** – This is a specific transport address on which the calling endpoint or gatekeeper handling the call would like to establish the H.245 signalling. This should only be provided by the sender if it is capable of handling H.245 procedures before receiving a Connect on the Call Signalling channel.
+
+**sourceAddress** – Contains the alias addresses of the source. The primary address shall be first. Note that the E.164 number of the source, if any, shall be contained within the Calling Party Number information element.
+
+**sourceInfo** – Contains an **EndpointType** to allow the called party to determine whether the call involves a gateway or not.
+
+**destinationAddress** – This is the address to which the endpoint wishes to be connected. The primary address shall be first. When calling an endpoint using only a dialled digit string, this address shall be placed in the H.225.0 call signalling message Called Party Number IE. The **destinationAddress**, if available, shall be included in the Setup message by terminals compliant with version 2 or higher of this Recommendation.
+
+**destCallSignalAddress** – Needed to inform the gatekeeper of the destination terminal's call signalling transport address; redundant in the direct terminal-to-terminal case. In all cases where the information is available to the sender of the Setup message, this field shall be filled in.
+
+**destExtraCallInfo** – Needed to make possible additional channel calls, i.e., for a $2 \times 64$ kbit/s call on the SCN side. Shall only contain dialled digit strings, E.164 numbers, or Private numbers and shall not contain the number of the initial channel. (See Note.)
+
+**destExtraCRV** – CRVs for the additional SCN calls specified by **destExtraCallInfo**. Their use is for further study. They can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**activeMC** – Indicates that the calling endpoint is under the influence of an active MC.
+
+**conferenceID** – Unique conference identifier.
+
+**conferenceGoal**:
+
+- **create** – Start a new conference.
+- **invite** – Invite a party into an existing conference.
+- **join** – Join an existing conference.
+- **capability-negotiation** – Negotiate capabilities for a later loosely coupled conference.
+- **callIndependentSupplementaryService** – Transport of supplementary services APDUs in a non-call related manner.
+
+**callServices** – Provides information on support of optional Q-series protocols to gatekeeper and called terminal.
+
+**callType** – Using this value, called party's gatekeeper can attempt to determine "real" bandwidth usage. The default value is **pointToPoint** for all calls; it should be recognized that the call type may change dynamically during the call and that the final call type may not be known when the Setup is sent.
+
+**sourceCallSignalAddress** – Contains the transport address for the source; this value shall be used in the ARQ message by the receiver of the Setup. In all cases where the information is available to the sender of the Setup message, this field shall be filled in. The value of **sourceCallSignalAddress** shall be equal to the value that was used in the ARQ by the sender of the Setup, and shall be echoed by the endpoint receiving the Setup in its ARQ.
+
+**remoteExtensionAddress** – Contains the alias address of a called endpoint in cases where this information is needed to traverse multiple Gateways. In all cases where the information is available to the sender of the Setup message, this field shall be filled in.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**h245SecurityCapability** – A set of capabilities the sender can use to secure the H.245 channel.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**fastStart** – Used only in the fast connect procedure, **fastStart** supports the signalling needed to open a logical channel. This uses the **OpenLogicalChannel** structure defined in Rec. ITU-T H.245, but the sender of this indicates the modes it prefers to receive and transmit, and the transport addresses where it expects to receive media streams.
+
+**mediaWaitForConnect** – If TRUE, indicates that the recipient of the Setup message shall not transmit media until sending the Connect message.
+
+**canOverlapSend** – If TRUE, indicates that the sender of Setup shall support overlap sending.
+
+**endpointIdentifier** – This is an endpoint identifier that was assigned to the terminal in the RCF message. This field shall be present when the Setup is sent towards the gatekeeper where the endpoint is registered, and shall not be present when the Setup is sent to any other entity.
+
+**multipleCalls** – If TRUE, this indicates that the sender of the message is capable of signalling multiple calls over a single call signalling connection.
+
+**maintainConnection** – If TRUE, this indicates that the sender of the message is capable of supporting a signalling connection when no calls are currently signalled over the connection.
+
+**ConnectionParameters** – Allow specification of parameters needed by gateways that provide multiple connection types and/or aggregation (for example, an H.323/H.320 gateway):
+
+- **scnConnectionType** – Provides information to a gateway on the type of individual connection used to produce the entire SCN call. Endpoints or gatekeepers should fill in this field if the information is available to them. If the option "multirate" is indicated, then the information transfer rate octet in the bearer capability shall also indicate "multirate" and the rate multiplier octet shall indicate the number of connections. In all other cases, if the **scnConnectionType** field is present, it overrides any indication about the individual connection type contained in the transfer rate (octet #4) and rate multiplier (octet #4.1) of the bearer capability IE.
+- **numberOfSCNConnections** – Indicates the number of connections of type **scnConnectionType** which are aggregated together to produce the SCN call. This field, when multiplied by the bandwidth of the individual connection specified in **scnConnectionType**, denotes the bandwidth for the entire call on the SCN. Endpoints or gatekeepers should fill in this field if the information is available to them. Note that if the **scnConnectionType** is set to unknown, then a unit of bandwidth of 64 kbit/s is assumed. If both this field and the **scnConnectionType** fields are present, then the total bandwidth indicated shall agree with the total SCN bandwidth indicated by the transfer rate (octet #4) and rate multiplier (octet #4.1) of the Bearer capability IE.
+- **scnConnectionAggregation** – Indicates how the individual connections are aggregated together to produce the complete SCN call. Endpoints or gatekeepers should fill in this field if the information is available to them. The default option, to be used when the actual aggregation mechanism is unknown, is "auto". Where bonding is known to be used, but the precise bonding mode is unknown, then the option "bonded-mode1" should be used.
+
+**language** – Indicates the language(s) the user will use or in which the user would prefer to receive announcements and prompts. The field contains one or more RFC 5646 compliant language tags.
+
+**presentationIndicator** – Indicates whether presentation of the **sourceAddress** should be allowed or restricted. If both **presentationIndicator** and the presentation indicator of the Calling Party Number IE are present and are in conflict, the presentation indicator of the Calling Party Number IE shall be used.
+
+**screeningIndicator** – Indicates whether the **sourceAddress** was provided by the endpoint or network (gatekeeper), and whether the **sourceAddress** was screened by a gatekeeper. If both **screeningIndicator** and the screening indicator of the Calling Party Number IE are present and are in conflict, the screening indicator of the Calling Party Number IE shall be used.
+
+**serviceControl** – Contains service-specific data, or references to it, that may be used as part of the setup procedure at the called endpoint (e.g., an image or icon to be displayed while alerting) as described, for example, in Annex K/H.323.
+
+**symmetricOperationRequired** – If present, indicates that the called endpoint must select identical transmit and receive audio capabilities. This element shall not be included unless the **fastStart** element is also included.
+
+**capacity** – This field indicates the sending endpoint's available call capacity at this point in time, assuming that this Setup message represents an active call. When sending this field, the endpoint shall include the **currentCallCapacity** element.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+**desiredProtocols** – Identifies the type of protocols, in order of preference, the originating endpoint desires for its call (e.g., voice or fax). A resolving entity may use this field to locate an endpoint that also supports the protocol, giving consideration to the order of preference.
+
+**neededFeatures** – This field specifies a list of generic features that are required in order for the call to succeed.
+
+**desiredFeatures** – This field specifies a list of generic features that are preferred for the call, but are not required in order for it to succeed.
+
+**supportedFeatures** – This field specifies a list of generic features that the sender support and has chosen to declare.
+
+**parallelH245Control** – This field carries a sequence of tunnelled H.245 Terminal Capability Set PDUs and optionally Master Slave Determination PDUs. Each octet string shall contain exactly one H.245 PDU.
+
+**additionalSourceAddresses** – This field carries a sequence of alias addresses that correspond to the second and subsequent Calling Party Number IEs in non-H.323 networks. For example, in ISDN, multiple calling party numbers may be present to support the "Two Calling party number information elements delivery option" defined in Annex A/Q.951.
+
+**hopCount** – This field specifies an integer value to indicate the number of hops the call signalling can traverse further.
+
+**displayName** – Provides an ordered list of names, along with language tags, that identify the called or calling user. The user's most preferred name and language should be indicated first, followed by alternative representations using the same or different language tags. The receiving user may select any of the offered names for display according to local preference. When the **displayName** field is present, it shall take precedence over the **Display** IE. However, the **Display** IE should still be provided for interworking with legacy systems.
+
+NOTE – If the **destExtraCallInfo** is present, a CRV for each call to be made may be supplied in **destExtraCRV**. These CRVs will be used to identify any response to each call launched. These procedures are for further study. If the **destExtraCRV** field is not present, a gateway shall aggregate all call information into a single response, with the effect that if one call fails on the SCN side, the entire call is treated as a failure.
+
+### 7.3.11 Setup acknowledge
+
+This message may be sent by an H.323 entity. However, it may be forwarded from the network via a gateway. Processing on receipt is optional, but an entity that indicates **canOverlapSend** in Setup shall support Setup Acknowledge.
+
+The contents and semantics of a Setup Acknowledge message received from the network are defined in Table 3-16/Q.931, as modified in Table 14.
+
+**Table 14 – Setup acknowledge**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|-------------------------------------------------------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M | 3 |
+| Message type | M | 1 |
+| Channel identification | FFS | NA |
+| Display | O | 2-82 |
+| User-user | M (Note) | * |
+| NOTE – This element was not present in H.225.0 prior to H.225.0 (2000). | | |
+
+For backward compatibility with systems prior to H.225.0 version 4, the sender of this message shall not include the **h4501SupplementaryService** or the **h245Control** field in the **h323-message-body** field of the User-user information element.
+
+The User-user information element contains the **SetupAcknowledge-UIE** defined in the H.225.0 Message Syntax. The **SetupAcknowledge-UIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint, which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+### 7.3.12 Status
+
+The Status message shall be used to respond to an unknown call signalling message or to a Status Inquiry message.
+
+Follow Table 3-17/Q.931 as modified in Table 15.
+
+**Table 15 – Status**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|----------------------------------------------------------------------------------------------------------------------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference (Note 1) | M | 3 |
+| Message type | M | 1 |
+| Cause | M | 4-32 |
+| Call State | M | 3 |
+| Display | O | 2-82 |
+| User-user | M (Note 2) | * |
+| NOTE 1 – This message may carry the global call reference if the message applies to all calls on a connection carrying multiple calls. | | |
+| NOTE 2 – This element was not present in H.225.0 prior to H.225.0 (2000). | | |
+
+For backward compatibility with systems prior to H.225.0 version 4, the sender of this message shall not include the **h4501SupplementaryService** or the **h245Control** field in the **h323-message-body** field of the User-user information element.
+
+The User-user information element contains the **Status-UUIE** defined in the H.225.0 Message Syntax. The **Status-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint, which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+### 7.3.13 Status inquiry
+
+The Status Inquiry message may be used to request call status as described in 8.4.2/H.323.
+
+Follow Table 3-18/Q.931 as modified by Table 16.
+
+**Table 16 – Status inquiry**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|-------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference (Note 1) | M | 3 |
+| Message type | M | 1 |
+| Display | O | 2-82 |
+| User-user | M (Note 2) | * |
+
+NOTE 1 – This message may carry the global call reference if the message applies to all calls on a connection carrying multiple calls.
+NOTE 2 – This element was not present in H.225.0 prior to H.225.0 (2000).
+
+For backward compatibility with systems prior to H.225.0 version 4, the sender of this message shall not include the **h4501SupplementaryService** or the **h245Control** field in the **h323-message-body** field of the User-user information element.
+
+The User-user information element contains the **StatusInquiry-UUIE** defined in the H.225.0 Message Syntax. The **StatusInquiry-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+## 7.4 Q.932-based H.225.0 call signalling message details
+
+The messages defined in the following are derived from ITU-T Recs Q.932 and H.450. Refer to ITU-T Recs Q.932 and H.450 for further details.
+
+Note that the lengths of the information elements specified in the tables below, where "\*" denotes an undefined maximum length, refer to messages that are generated by H.323 terminals only. The size of the User-user information element, not explicitly shown, is understood as the size of the PER-encoded H323-UserInformation sequence. The total size of H323-UserInformation is limited to 65 536 octets. Regardless of the specified sizes, messages forwarded from the SCN side may have different (larger) sizes.
+
+Also note that an information element specified below as mandatory, optional or forbidden refers only to whether or not H.323 terminals may originate such information elements.
+
+### 7.4.1 Facility
+
+The Facility message shall be used to provide information on where a call should be directed (**FacilityReason = routeCallToMC**), or for an endpoint to indicate that the incoming call must go through a gatekeeper (**FacilityReason = routeCallToGatekeeper**).
+
+In order to signal call redirection specific to H.323 procedures, the User-user information element of the Facility message is used. This particular case shall be indicated by coding a Facility IE of length zero. In this case, the Facility information element shall consist of exactly 2 octets. An H.323 entity shall handle the empty (H.323-specific) Facility IE properly and shall be capable of skipping other Facility IEs that it does not understand.
+
+The Facility message may be used to request or acknowledge a supplementary service according to H.450.x-series Recommendations. For that reason, one or more H.450 Supplementary Service APDUs shall be carried within the User-user information element of the Facility message. The H.450 Supplementary Service APDUs shall be coded according to clause 8/H.450.1. The Facility information element shall be contained with length zero. Note that a Facility message of H.225.0 version 2 or version 3 that carries only H.450 Supplementary Service APDUs might choose not to include the Facility-UUIE, but instead use the "**empty" h323-message-body** choice. In this case, a Facility message would not have a **callIdentifier** field in it. In H.225.0 version 4 and higher, a sender shall include a Facility-UUIE carrying a **callIdentifier** field in every call-associated Facility message, and shall set the **reason** field value to **transportedInformation**.
+
+If a Facility IE carrying semantics of Rec. ITU-T Q.932 and encoded as defined in Rec. ITU-T Q.932 and Rec. ITU-T Q.95x is present, it shall consist of at least 8 octets as required by Table 7-2/Q.932. The use of Facility IEs of that type is for further study.
+
+The Facility message may be used by an endpoint or gatekeeper to request the recipient to establish an H.245 channel between the two entities (**FacilityReason = startH245**).
+
+The Facility message may be used by an endpoint or gatekeeper to send a new set of tokens in the **tokens** and/or **cryptoTokens** field of the Facility message (**FacilityReason = newTokens**). This may be useful, for example, for applications in which tokens are used to allow some action to take place only for a limited amount of time.
+
+Follow 7.1.1/Q.932 and 10.8 of ISO/IEC 11582, as modified in Table 17.
+
+**Table 17 – Facility**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|-------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference (Note 1) | M | 3 |
+| Message type | M | 1 |
+| Extended facility | O (Note 2) | 8-* |
+| Facility | O (Note 2) | 2 or 8-* |
+| Notification indicator | O | 2-* |
+| Display | O | 2-82 |
+| Calling Party Number | F | NA |
+| Called Party Number | F | NA |
+| User-user | M | * |
+
+NOTE 1 – This message may carry the global call reference if the message applies to all calls on a connection carrying multiple calls.
+NOTE 2 – If the Facility message is used for carrying Q.95x supplementary service signalling, one of either the Facility or Extended Facility information elements is required. If the Facility message is used for Supplementary Service control according to H.450.x-series Recommendations, or if the Facility message is used for the reroute to MC/GK functions, then the zero-length Facility information element is required.
+
+#### *Coding of Message Type information element*
+
+The message type information element of the Facility message shall be coded "0110 0010".
+
+The User-user information element contains the Facility-UUIE defined in the H.225.0 Message Syntax. The Facility-UUIE includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**alternativeAddress** – This is a specific transport address to which the calling party should direct the call; if present, **alternativeAliasAddress** is not needed.
+
+**alternativeAliasAddress** – Contains aliases that can be used to redirect the call; if an alias is provided, **alternativeAddress** is not needed.
+
+**conferenceID** – Unique conference identifier; not needed if the **conferences** field is used.
+
+**reason** – More information about the Facility message. A reason of **featureSetUpdate** indicates that the purpose of the message is to update **featureSet** information that was sent previously. A **reason** of **forwardedElements** indicates that the purpose of the message is to forward elements of another message in case that message cannot be sent, as would be the case when a routing gatekeeper receives a Call Proceeding message after it has already sent Call Proceeding. A reason of **transportedInformation** indicates that the purpose of the message is to transport higher-layer information, for example in the **h4501SupplementaryService** field; the **Facility-UUIE** in this case is included only in order to provide the **callIdentifier**.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**destExtraCallInfo** – Needed to make possible additional channel calls, i.e., for a $2 \times 64$ kbit/s call on the SCN side. Shall only contain dialled digit strings, E.164 numbers, or Private numbers and shall not contain the number of the initial channel.
+
+**remoteExtensionAddress** – Contains the alias address of a called endpoint in cases where this information is needed to traverse multiple Gateways.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**conferences** – One or more conferences that may be joined.
+
+**h245Address** – This is a specific transport address on which the endpoint or gatekeeper sending this facility would like the recipient to establish H.245 signalling. Note that this field may be present when an intermediate signalling entity is conveying the **h245Address** field from a Call Proceeding message. The receiving entity is instructed to initiate H.245 procedures only when **reason** is **startH245**.
+
+**fastStart** – Used only in the fast connect procedure, **fastStart** supports the signalling needed to open a logical channel. This uses the **OpenLogicalChannel** structure defined in Rec. ITU-T H.245, but the sender of this indicates the modes it prefers to receive and transmit, and the transport addresses where it expects to receive media streams. This field is present in a Facility message when a routing gatekeeper received it in a Call Proceeding message from the called user and is forwarding the information to the calling user. This field shall not be included by an endpoint.
+
+**multipleCalls** – If TRUE, this indicates that the sender of the message is capable of signalling multiple calls over a single call signalling connection.
+
+**maintainConnection** – If TRUE, this indicates that the sender of the message is capable of supporting a signalling connection when no calls are currently signalled over the connection.
+
+**fastConnectRefused** – A called endpoint should return this element in any message up to and including the Connect message when establishing a call to indicate that it refuses the Fast Connect procedure. This field is present in a Facility message when a routing gatekeeper received it in a Call Proceeding message from the called user and is forwarding the information to the calling user.
+
+**serviceControl** – Contains service-specific data, or references to it, that could be used by an endpoint or gateway (e.g., for displaying a menu of options to a participant in a call), as described, for example, in Annex K/H.323.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**destinationInfo** – Contains an **EndpointType** to allow the caller to determine whether the call involves a gateway or not. This field is present in a Facility message when a routing gatekeeper received it in a Call Proceeding message from the called user and is forwarding the information to the calling user. This field did not exist in the Facility message prior to H.225.0 version 4.
+
+**h245SecurityMode** – An H.323 entity that receives a Setup message with the **h245SecurityCapability** set responds with the corresponding, acceptable **h245SecurityMode** in the Call Proceeding, Alerting, Progress, or Connect. This field is present in a Facility message when a routing gatekeeper received it in a Call Proceeding message from the called user and is forwarding the information to the calling user. This field did not exist in the Facility message prior to H.225.0 version 4.
+
+### 7.4.2 Notify
+
+This message may be sent by an H.323 entity. Processing on receipt is optional.
+
+Follow Table 3-8/Q.931 as modified in Table 18.
+
+**Table 18 – Notify**
+
+| Information element | H.225.0 status (M/F/O) | Length in H.225.0 |
+|----------------------------------------------------------------|------------------------|-------------------|
+| Protocol discriminator | M | 1 |
+| Call reference | M | 3 |
+| Message type | M | 1 |
+| Bearer capability | O (Note) | 5-6 |
+| Notification indicator | M | 3 |
+| Display | O | 2-82 |
+| Connected Number | O | 2-* |
+| User-user | M | * |
+| NOTE – Included to indicate a change of the bearer capability. | | |
+
+For backward compatibility with systems prior to H.225.0 version 4, the sender of this message shall not include the **h4501SupplementaryService** or the **h245Control** field in the **h323-message-body** field of the User-user information element.
+
+The User-user information element contains the **Notify-UUIE** defined in the H.225.0 Message Syntax. The **Notify-UUIE** includes the following:
+
+**protocolIdentifier** – Set to the version of H.225.0 supported.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**connectedAddress** – Contains the alias addresses for the connected party; the dialled digit string of the connected party is in the Connected Number IE and may be replicated in the **connectedAddress** field along with any other known aliases. This field and the Connected Number IE may be conveyed to endpoints by intermediary devices that perform call transfers using methods such as those described in Clause 8.4.6/H.323. This field, and the Connected Number IE, may be sent to either the calling or called endpoint; "connected" in this context merely refers to the opposite endpoint in a call.
+
+**presentationIndicator** – Indicates whether presentation of the **connectedAddress** should be allowed or restricted. If both **presentationIndicator** and the presentation indicator of the Connected Number IE are present and are in conflict, the presentation indicator of the Connected Number IE shall be used.
+
+**screeningIndicator** – Indicates whether the **connectedAddress** was provided by the endpoint or network (gatekeeper), and whether the **connectedAddress** was screened by a gatekeeper. If both **screeningIndicator** and the screening indicator of the Connected Number IE are present and are in conflict, the screening indicator of the Connected Number IE shall be used.
+
+**destinationInfo** – Contains an **EndpointType** to allow the caller to determine whether the call involves a gateway or not.
+
+**displayName** – Provides an ordered list of names, along with language tags, that identify the called or calling user. The user's most preferred name and language should be indicated first, followed by alternative representations using the same or different language tags. The receiving user may select any of the offered names for display according to local preference. When the **displayName** field is present, it shall take precedence over the **Display** IE. However, the **Display** IE should still be provided for interworking with legacy systems.
+
+### 7.4.3 Other messages
+
+The call control messages which can carry optional Facility, Extended Facility, or Notification Indicator information elements are specified in 8.3.
+
+## 7.5 H.225.0 call signalling timer values
+
+The following Q.931 timers shall be supported:
+
+- The "setup timer" T303 (see Tables 9-1/Q.931 and 9-2/Q.931) defining how long the calling endpoint shall wait for an Alerting, Call Proceeding, Connect, Release Complete or other message from the called endpoint after it has sent a Setup message. This time-out value shall be at least 4 seconds. Note that some applications may appear in networks which have inherently longer delays (for example, compare the Internet to a local enterprise network or intranet).
+- The "establishment timer" T301 (see Tables 9-1/Q.931 and 9-2/Q.931) defining after which time the calling endpoint shall stop waiting for the called endpoint to respond. This timer starts when Alerting is received and normally terminates on Connect or when the caller terminates the call attempt and sends Release Complete. This time-out value shall be 180 seconds (3 minutes) or greater.
+- The "overlap sending timer" T302 (see Tables 9-1/Q.931 and 9-2/Q.931) defining after which time the called endpoint shall stop waiting for the dialled digits from calling endpoint while in the overlap sending. This timer starts when SETUP ACK is sent or INFORMATION received and normally terminates when sending complete indication is received. This timeout value shall be 10-15 seconds.
+- The "overlap receiving timer" T304 (see Tables 9-1/Q.931 and 9-2/Q.931) defining after which time the calling endpoint shall stop waiting for the dialled digits from called endpoint user while in the overlap receiving. This timer starts when SETUP ACK is received restarts when INFORMATION is sent and normally terminates CALL PROCEEDING, ALERTING or CONNECT is received. This timeout value shall be at least 20 seconds.
+- The "incoming call proceeding timer" T310 (see Tables 9-1/Q.931 and 9-2/Q.931) defining after which time the called endpoint shall stop waiting for the dialled digits from calling endpoint while in the overlap sending. This timer starts when CALL PROCEEDING is received and normally terminates on ALERTING, CONNECT or when the caller terminates the call attempt and sends Release Complete. The T310 timer shall be stopped and T301 timer shall be started upon receipt of a Progress Indicator IE with a value of 1 or 8. This timeout value shall be at least 10 seconds.
+- The "status timer" T322 (see Tables 9-1/Q.931 and 9-2/Q.931) defining after which time the called endpoint shall stop waiting STATUS message response to STATUS ENQUIRY it has sent. This timer starts when STATUS ENQUIRY is sent normally terminates when STATUS message is received. This timeout value shall be at least 4 seconds.
+
+Note that the packet-based network-side values of these timers is the same as that used in the SCN.
+
+Other timers may be supported as part of optional H.450.x-series Supplementary Service Recommendations.
+
+## 7.6 H.225.0 common message elements
+
+This clause describes ASN.1 structures that are used in more than one Registration, Admission, and Status (RAS) messages. Some may also be used in the User-user part of the call signalling messages.
+
+**requestSeqNum** in messages is used to keep track of multiple outstanding requests. Any associated response messages (success or failure) shall have the corresponding **requestSeqNum** returned with it. Retransmitted messages shall have the same **requestSeqNum**. **RequestSeqNum** increments by 1 modulo 65536.
+
+The **protocolIdentifier** is included as part of discovery, registration and Setup/Connect to allow the parties involved to determine the vintage of the implementations involved.
+
+**nonStandardParameter**: This parameter is optional in the discovery, registration, and Setup/Connect sequences to allow the parties involved to determine the non-standard status of the endpoints involved. A gatekeeper or gateway is not obligated to pass on **nonStandardData** it does not support or understand as this might interfere with its operations.
+
+The **TransportAddress** structure is meant to capture the various transport formats and includes any transport-specific scheme in addition to the possibly local reference to a TSAP identifier.
+
+IPv4 and IPv6 addresses shall be encoded with the most significant octet of the address being the first octet in the respective OCTET STRING, e.g., the class B IPv4 address 130.1.2.97 shall have the "130" being encoded in the first octet of the OCTET STRING, followed by the "1" and so forth.
+
+The IPv6 address a148:2:3:4:a:b:c:d shall have the "a1" encoded in the first octet, "48" in the second, "00" in the third, "02" in the fourth and so forth.
+
+A **TransportAddress** of type **ipSourceRoute** in which the **route** SEQUENCE has no entries shall be interpreted as representing the same address as of type **ipAddress** which contains the same values for both **ip** and **port**.
+
+IPX addresses, **node**, **netnum**, and **port** shall be encoded with the most significant octet of each field being the first octet in the respective OCTET STRING.
+
+Note that this structure does not use the Transport Address = "packet-based network Address plus TSAP identifier" language of Rec. ITU-T H.323. Instead, the terms common in each transport domain are used.
+
+The **EndpointType** structure conveys information about the H.323 entity at the end of the signalling link. The H.323 entity would complete one or more of the **gatekeeper**, **gateway**, **mcu**, or **terminal** message elements. If the H.323 entity has an MC, then the **mc** Boolean would be TRUE. Clause 6.3/H.323 describes the representation of an MCU when collocated with a gateway; in this case, the H.323 device may include both the **gateway** and the **mcu** elements within its **EndpointType** definition. Presence of the **set** component indicates that the entity is a Simple Endpoint Type (SET) device as defined, for example, in Annex F/H.323. The bit positions in the **set** component indicate the type of SET device; their meaning is defined in Annex F/H.323 and other Recommendations that specify SET device types. The **supportedTunnelledProtocols** field supplies a prioritized list (highest priority first) of supported tunnelled protocols.
+
+The **TunnelledProtocol** structure identifies a tunnelled signalling protocol as described, for example, in M.1/H.323 and M.2/H.323. The **tunnelledProtocolObjectID** field is an **OBJECT IDENTIFIER** identifying the protocol being tunnelled. The **tunnelledProtocolAlternateID** provides an alternate identifier format. The **subIdentifier** field allows specification of a particular version of a standard protocol.
+
+The **TunnelledProtocolAlternateIdentifier** structure provides a string-based identifier format for a tunnelled protocol. The **protocolType** provides the general type of protocol, such as ISUP. The **protocolVariant** field provides a specific variation of that standard, such as ANSI.
+
+Tunnelled protocols that are defined as of this Recommendation are shown in Tables VI.1 and VI.2. Note that tunnelling is not restricted to the protocols listed in those tables.
+
+The **GatewayInfo** structure contains a **protocol** element, which allows the gateway to indicate the protocols it supports.
+
+The **SupportedProtocols** structure indicates a choice of protocols with which an H.323 entity has the capability to interwork. For example, selection of the **h310** choice indicates that the entity provides interworking with H.310.
+
+In each supported protocol capability structure (**H310Caps**, **H320Caps**, etc.), the **dataRatesSupported** element indicates the data rates supported for each protocol the device supports. The **supportedPrefixes** element indicates the prefixes associated with a supported protocol, and in some cases also with the data rates.
+
+The **McuInfo** structure contains a **protocol** element, which allows the MCU to indicate the protocols it supports.
+
+The **CapacityReportingCapability** structure indicates an endpoint's ability to report call capacity information.
+
+The **CapacityReportingSpecification** structure indicates the call capacity information that an endpoint is requested to report. **callStart** indicates a request for capacity information at the beginning of the call (i.e., in the ARQ or Setup). **callEnd** indicates a request for capacity information at the end of the call (i.e., in the DRQ or Release Complete). An empty **when** sequence indicates a request that the endpoint not report capacity information.
+
+The **CallCapacityInfo** structure allows an endpoint to indicate its call acceptance capacity for each type of call the endpoint supports. It therefore represents the current idle status of the endpoint. For example, in a voice gateway **CallCapacityInfo** would represent the number of idle circuits.
+
+The **CallCapacity** structure allows an endpoint to indicate its maximum capacity for each type of call and its current available capacity for each type of the call the endpoint supports.
+
+The **CallsAvailable** structure represents a subset of an endpoint's total call capacity. The **group** field allows the subset to be identified by a group label. The **group** may be the same as that reported in the **CircuitIdentifier**.
+
+The **DataRate** structure provides gateway protocol rate information. **channelRate** is the basic channel rate in hundreds of bits. **channelMultiplier** indicates the number of channels at the **channelRate**. For example, if a gateway supports a 3B call, **channelMultiplier** = 3 and **channelRate** = 640 for a 64 kbit/s channel.
+
+The **VendorIdentifier** structure allows a vendor to identify a product. The **vendor** element allows identification in terms of country code, extension, and manufacturer code. **productId** and **versionId** are text strings that can provide product information. The **enterpriseNumber** field identifies the manufacturer and is assigned by the Internet Assigned Numbers Authority (IANA).
+
+The **H221NonStandard** structure allows definition of a nonstandard field. The **t35CountryCode** element shall identify the country, as described in Annex A/T.35. The **t35Extension** element shall contain a country code extension that is assigned nationally, unless the **t35CountryCode** is binary "1111 1111", in which case this field shall contain the country code found in Annex B/T.35. The **manufacturerCode** shall be assigned nationally and identifies an equipment manufacturer.
+
+The **AliasAddress** structure is meant to capture the various external address formats that reference a particular transport location on the packet-based network. When registering an address consisting of dialled digits with a gatekeeper, an endpoint shall use the **dialedDigits** field and shall use only the digits 0-9. When registering an E.164 address with a gatekeeper, an endpoint shall use the **e164Number** field and shall use only the digits 0-9. When registering or otherwise representing a prefix, an endpoint shall use the **dialedDigits** field and shall use only the digits 0-9 and "#" and "\*". The **mobileUIM** field is an identification module for systems compatible with 2nd Generation and 3rd Generation wireless networks, and permits interworking with Public Land Mobile Networks as described, for example, in Annex E/H.246. When registering an ISUP address signal code with a gatekeeper, an endpoint shall use the **isupNumber** field.
+
+The **AddressPattern** structure allows specification of a wildcarded **AliasAddress** or a range of **PartyNumbers**. The **wildcard** field represents the possible wildcarded expansion of the **AliasAddress** structure. For dialled digits or E.164 numbers this expansion is possible at the end of the number. For email addresses the expansion is possible at the beginning. For example, if wildcard is "+1 303", the pattern could represent any number in the Denver area code. The **range** field of the **AddressPattern** structure represents a range of addresses, including the indicated start and end of range.
+
+The mechanisms that an endpoint uses to determine the address type is left as an implementation issue. The representation of the various number types in messages is captured in Table 19. Note that if an endpoint does not know the type or scope of an address, then it should represent this as Private Unknown when coded in H.225.0 call signalling messages and as a **dialedDigits AliasAddress** when coded in RAS messages.
+
+**Table 19 – Type of number representation mapping**
+
+| Type of number | Q.931 representation | H.225.0 information element representation | H.225.0 UIE representation |
+|-------------------------------------------------------|--------------------------------------------------------------------------|-------------------------------------------------------------------|---------------------------------------------------------------------------------------|
+| Unknown (default and version 1 interoperability mode) | Private Numbering Plan, Type of number = Unknown ("000") (Note 1) | Private Numbering Plan, Type of number = Unknown ("000") | dialedDigits AliasAddress (Note 2) |
+| Private unknown | Private Numbering Plan, Type of number = Unknown ("000") (Note 1) | Private Numbering Plan, Type of number = Unknown ("000") (Note 1) | dialedDigits AliasAddress (Note 2) |
+| Private, Level 2 Regional Number | Private Numbering Plan, Type of number = Level 2 Regional Number ("001") | Private Numbering Plan, Type of number = Unknown ("000") (Note 1) | privateNumber of PartyNumber AliasAddress, TypeOfNumber = level2RegionalNumber |
+| Private, Level 1 Regional Number | Private Numbering Plan, Type of number = Level 1 Regional Number ("010") | Private Numbering Plan, Type of number = Unknown ("000") (Note 1) | privateNumber of PartyNumber AliasAddress, TypeOfNumber = level1RegionalNumber |
+| Private, PISN specific Number | Private Numbering Plan, Type of number = PISN specific Number ("011") | Private Numbering Plan, Type of number = Unknown ("000") (Note 1) | privateNumber of PartyNumber AliasAddress, TypeOfNumber = pISNSpecificNumber |
+| Private, Level 0 Regional Number (Local) | Private Numbering Plan, Type of number = Level 0 Regional Number ("100") | Private Numbering Plan, Type of number = Unknown ("000") (Note 1) | privateNumber of PartyNumber AliasAddress, TypeOfNumber = localNumber |
+| E.164 Public number, unknown | ISDN/Telephony Numbering Plan, Type of number = Unknown ("000") | ISDN/Telephony Numbering Plan, Type of number = Unknown ("000") | e164Number of PartyNumber AliasAddress, TypeOfNumber = Unknown |
+
+**Table 19 – Type of number representation mapping**
+
+| Type of number | Q.931 representation | H.225.0 information element representation | H.225.0 UUIE representation |
+|----------------------------------------------|--------------------------------------------------------------------------------|--------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
+| E.164 Public number, International Number | ISDN/Telephony Numbering Plan, Type of number = International Number ("001") | ISDN/Telephony Numbering Plan, Type of number = International Number ("001") | e164Number of PartyNumber AliasAddress, TypeOfNumber = internationalNumber |
+| E.164 Public number, National Number | ISDN/Telephony Numbering Plan, Type of number = National Number ("010") | ISDN/Telephony Numbering Plan, Type of number = National Number ("010") | e164Number of PartyNumber AliasAddress, TypeOfNumber = nationalNumber |
+| E.164 Public number, Network Specific Number | ISDN/Telephony Numbering Plan, Type of number = NetworkSpecific Number ("011") | ISDN/Telephony Numbering Plan, Type of number = NetworkSpecific Number ("011") | e164Number of PartyNumber AliasAddress, TypeOfNumber = networkSpecificNumber |
+| E.164 Public number, Subscriber Number | ISDN/Telephony Numbering Plan, Type of number = Subscriber Number ("100") | ISDN/Telephony Numbering Plan, Type of number = Subscriber Number ("100") | e164Number of PartyNumber AliasAddress, TypeOfNumber = subscriberNumber |
+| E.164 Public number, Abbreviated Number | ISDN/Telephony Numbering Plan, Type of number = Abbreviated Number ("110") | ISDN/Telephony Numbering Plan, Type of number = Abbreviated Number ("110") | e164Number of PartyNumber AliasAddress, TypeOfNumber = abbreviatedNumber |
+
+NOTE 1 – When Numbering plan identification = Private, the private number digits are encoded in **privateNumber of PartyNumber**, which includes the type of number. The Type of number field in the information element shall be ignored on reception, and coded according to this table on transmission.
+NOTE 2 – A **privateTypeOfNumber = Unknown PartyNumber AliasAddress** shall be treated the same as a **dialedDigits AliasAddress**.
+
+The **MobileUIM** structure represents an identification module for systems compatible with 2nd Generation and 3rd Generation wireless networks. The choices available are:
+
+- **ansi-41-uim** – This is for wireless networks defined by American standards.
+- **gsm-uim** – This is for wireless networks defined by European standards.
+
+The **ANSI-41-UIM** structure identifies an identification module for systems compliant with American standards for wireless networks. The choices available are:
+
+- **imsi** – This is for International Mobile Station Identification numbers.
+- **min** – This is for Mobile Identification Numbers.
+- **mdn** – This is for Mobile Directory Numbers.
+- **msisdn** – This is for Mobile Station ISDN numbers.
+- **esn** – This is for Electronic Serial Numbers.
+- **mscid** – This is for Mobile Switching Centre numbers plus Market Identification or System Identification numbers.
+- **sid** – This is for System Identification numbers.
+
+- **mid** – This is for Market Identification numbers.
+- **systemMyTypeCode** – This is for vendor identification numbers.
+- **systemAccessType** – This is for the system access type.
+- **qualificationInformationCode** – This is for the qualification information code.
+- **sesn** – This is for SIM Electronic Serial Numbers.
+- **soc** – This is for System Operator Codes.
+
+The **GSM-UIM** structure identifies an identification module for systems compliant with European standards for wireless networks. The choices available are:
+
+- **imsi** – This is for International Mobile Station Identification.
+- **tmsi** – This is for Temporary Mobile Station Identification.
+- **msisdn** – This is for Mobile Station ISDN numbers.
+- **imei** – This is for International Mobile Equipment Identification numbers.
+- **hplmn** – This is for Home Public Land Mobile Network Numbers.
+- **vplmn** – This is for Visiting Public Land Mobile Network Numbers.
+
+The **IsupNumber** structure represents an ISUP address signal code defined in Rec. ITU-T Q.763. The choices available are:
+
+- **e164Number** – This is for address signal codes that use a numbering plan according to ITU-T Recs E.163 or E.164.
+- **dataPartyNumber** – This is not currently used.
+- **telexPartyNumber** – This is not currently used.
+- **privateNumber** – This is for address signal codes that use a numbering plan according to ISO/IEC 11571.
+- **nationalStandardPartyNumber** – This is not currently used.
+
+The **IsupPublicPartyNumber** structure represents an ISUP address signal code that follows a public numbering plan:
+
+- **natureOfAddress** – This is for the numbering type used for this number.
+- **address** – This carries the number digits.
+
+The **IsupPrivatePartyNumber** structure represents an ISUP address signal code that follows a private numbering plan:
+
+- **privateTypeOfNumber** – This is for the numbering type used for this number.
+- **address** – This field carries the number digits.
+
+The **NatureOfAddress** structure represents a numbering type used with an ISUP number. The choices correspond to the Nature Of Address (NOA) indicator defined in Rec. ITU-T Q.762. The choices available are:
+
+- **unknown** – There is no specific numbering type or the numbering type is not known.
+- **subscriberNumber** – This is for a subscriber number as defined in Rec. ITU-T Q.763.
+- **nationalNumber** – This is for a national number as defined in Rec. ITU-T Q.763.
+- **internationalNumber** – This for is an international number as defined in Rec. ITU-T Q.763.
+- **networkSpecificNumber** – This is for a network-specific number as defined in Rec. ITU-T Q.763.
+- **routingNumberNationalFormat** – This is for a network routing number in national (significant) number format as defined in Rec. ITU-T Q.769.1.
+
+- **routingNumberNetworkSpecificFormat** – This is for a network routing number in network-specific number format as defined in Rec. ITU-T Q.769.1.
+- **routingNumberWithCalledDirectoryNumber** – This is for a network routing number concatenated with called directory number as defined in Rec. ITU-T Q.769.1.
+
+The mapping between ISUP address codes and H.225.0 address digits in **IsupNumber** is shown in Table 20:
+
+**Table 20 – Number representation mapping**
+
+| ISUP code | ISUP address signal | H.225.0 IsupNumber digits |
+|----------------------------------------------------------------------------------|---------------------|---------------------------|
+| 0 0 0 0 | digit 0 | 0 |
+| 0 0 0 1 | digit 1 | 1 |
+| 0 0 1 0 | digit 2 | 2 |
+| 0 0 1 1 | digit 3 | 3 |
+| 0 1 0 0 | digit 4 | 4 |
+| 0 1 0 1 | digit 5 | 5 |
+| 0 1 1 0 | digit 6 | 6 |
+| 0 1 1 1 | digit 6 | 7 |
+| 1 0 0 0 | digit 8 | 8 |
+| 1 0 0 1 | digit 9 | 9 |
+| 1 0 1 0 | Spare | A |
+| 1 0 1 1 | code 11 | B |
+| 1 1 0 0 | code 12 | C |
+| 1 1 0 1 | Spare | D |
+| 1 1 1 0 | Spare | E |
+| NOTE – The value '1111' is mapped to Q.931 Sending Complete IE in Annex C/H.246. | | |
+
+The **ExtendedAliasAddress** structure provides a means for associating common information with alias addresses. The **presentationIndicator** indicates whether presentation of the **address** should be allowed or restricted. The **screeningIndicator** indicates whether the **address** was provided by the endpoint or by the network, and whether it has been screened by the network.
+
+The **Endpoint** structure is used to indicate back-up, redundant, or alternative information about an endpoint:
+
+- **nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+- **aliasAddress** – This is a list of alias addresses, by which other endpoints may identify this endpoint.
+- **callSignalAddress** – This is the call signalling transport address for this endpoint.
+- **rasAddress** – This is the registration and status transport address for this endpoint.
+- **endpointType** – This specifies the type of the endpoint.
+- **tokens** – Tokens associated with this endpoint (i.e., endpoint described in the **Endpoint** structure).
+- **cryptoTokens** – **CryptoTokens** associated with this endpoint (i.e., the endpoint described in the **Endpoint** structure).
+
+- **priority** – Used when a SEQUENCE of **Endpoints** is presented. Endpoints with lower priority numbers are preferred over endpoints with higher priority numbers. Endpoints without priority numbers are equivalent to those with a priority of 0 (highest priority).
+- **remoteExtensionAddress** – Contains the alias address of an endpoint in cases where this information is needed to traverse multiple gateways.
+- **destExtraCallInfo** – Contains external addresses for multiple calls.
+- **alternateTransportAddresses** – Indicates support for transports other than TCP.
+
+The **AlternateTransportAddresses** structure conveys call signalling addresses for transports other than TCP.
+
+The **UseSpecifiedTransport** structure defines a choice of signalling transport protocols. A value of **tcp** indicate the TCP protocol, a value of **annexE** indicates the protocol defined by Annex E/H.323, and a value of **sctp** indicates the usage of the Stream Control Transmission Protocol (SCTP).
+
+The **AlternateGK** structure is used to indicate a list of alternative or back-up gatekeepers, or the assigned gatekeeper:
+
+- **rasAddress** – The transport address used for RAS signalling.
+- **gatekeeperIdentifier** – Optionally included to identify the back-up or alternative gatekeeper. If it is supplied, it shall be included in future RAS messages sent to the back-up gatekeeper.
+- **needToRegister** – Set to TRUE to indicate that the endpoint must register with the alternate before sending other RAS requests.
+- **priority** – Indicates the priority of the gatekeeper back-up or alternative. A lower number implies a higher priority.
+
+The **AltGKInfo** structure is used to provide information about alternate gatekeepers:
+
+- **alternateGatekeeper** – Sequence of prioritized alternate gatekeepers.
+- **altGKisPermanent** – TRUE to indicate that all future RAS signals should be redirected to a gatekeeper listed in the **alternateGatekeeper** field; FALSE if only the message that caused the Reject should be redirected. This flag shall be set to TRUE if a **needToRegister** flag is set to TRUE in the **alternateGatekeeper** field.
+
+The **QseriesOptions** structure supplies information to the gatekeeper or other endpoints concerning the support provided by a terminal for optional Q-series protocols. It is used in the ARQ, Setup, and GRQ messages. The usage of QSeriesOptions is not yet defined pending further study.
+
+The **GloballyUniqueID** and **ConferenceIdentifier** are meant to be globally unique identifiers (**GloballyUniqueID**), the use of which is described in Rec. ITU-T H.323. A **GloballyUniqueID** is encoded with octet zero being encoded first. A **GloballyUniqueID** is formed according to Table 21.
+
+**Table 21 – Globally unique ID formation**
+
+| Field | Data type | Octet No. | Note |
+|---------------------------|-------------------------|-----------|---------------------------------------------------------------------|
+| time_low | Unsigned 32-bit integer | 0-3 | The low field of the timestamp |
+| time_mid | Unsigned 16-bit integer | 4-5 | The middle field of the timestamp |
+| time_hi_and_version | Unsigned 16-bit integer | 6-7 | The high field of the timestamp multiplexed with the version number |
+| clock_seq_hi_and_reserved | Unsigned 8-bit integer | 8 | The high field of the clock sequence multiplexed with the variant |
+| clock_seq_low | Unsigned 8-bit integer | 9 | The low field of the clock sequence |
+| node | Unsigned 48-bit integer | 10-15 | The spatially unique node identifier |
+
+The **GloballyUniqueID** consists of a record of 16 octets and shall not contain padding between fields. The total size is 128 bits.
+
+To minimize confusion about bit assignments within octets, the **GloballyUniqueID** record definition is defined only in terms of fields that are integral numbers of octets. The version number is multiplexed with the timestamp (*time\_high*), and the variant field is multiplexed with the clock sequence (*clock\_seq\_high*).
+
+The timestamp is a 60-bit value represented by Coordinated Universal Time (UTC) as a count of 100 nanosecond intervals since 00:00:00.00, 15 October 1582 (the date of Gregorian reform to the Christian calendar).
+
+The version number is multiplexed in the 4 most significant bits of the *time\_hi\_and\_version* field, and is set to 1 (binary "0001").
+
+The variant field determines the layout of the **GloballyUniqueID**. The structure of a DCE **GloballyUniqueID** is fixed across different versions. Other **GloballyUniqueID** variants may not interoperate with a DCE **GloballyUniqueID**. Interoperability of **GloballyUniqueIDs** is defined as the applicability of operations such as string conversion, comparison, and lexical ordering across different systems. The *variant* field consists of a variable number of the MSBs of the *clock\_seq\_hi\_and\_reserved* field (see Table 22).
+
+**Table 22 – Contents of the DCE variant field**
+
+| msb1 | msb2 | msb3 | Description |
+|------|------|------|--------------------------------------|
+| 0 | – | – | Reserved, NCS backward compatibility |
+| 1 | 0 | – | DCE variant |
+| 1 | 1 | 0 | Reserved, Microsoft Corporation GUID |
+| 1 | 1 | 1 | Reserved for future definition |
+
+The clock sequence is required to detect potential losses of monotonicity of the clock. The clock sequence is encoded in the 6 least significant bits of the *clock\_seq\_hi\_and\_reserved* field and in the *clock\_seq\_low* field.
+
+The *node* field consists of the IEEE address, usually the host address. For systems with multiple IEEE 802 nodes, any available node address can be used. The lowest addressed octet (octet number 10) contains the global/local bit and the unicast/multicast bit, and is the first octet of the address transmitted on an 802.3 packet-based network.
+
+The clock sequence value should be changed whenever:
+
+- the **GloballyUniqueID** generator detects that the local value of UTC has gone backward; this may be due to normal functioning of the DCE Time Service.
+- the **GloballyUniqueID** generator has lost its state of the last value of UTC used, indicating that time may have gone backward; this is typically the case on reboot.
+
+While a node is operational, the **GloballyUniqueID** generator always saves the last UTC used to create a **GloballyUniqueID**. Each time a new **GloballyUniqueID** is created, the current *UTC* is compared to the saved value and if either the current value is less (the non-monotonic clock case) or the saved value was lost, then the *clock sequence* is incremented modulo 16 384, thus avoiding production of duplicate **GloballyUniqueIDs**.
+
+The *clock sequence* should be initialized to a random number to minimize the correlation across systems.
+
+A **GloballyUniqueID** is generated according to the following algorithm:
+
+- 1) Determine the values for the UTC-based timestamp and clock sequence to be used in the **GloballyUniqueID**.
+- 2) Set the *time\_low* field equal to the least significant 32 bits (bits numbered 0 to 31 inclusive) of the timestamp in the same order of significance.
+- 3) Set the *time\_mid* field equal to the bits numbered 32 to 47 inclusive of the timestamp in the same order of significance.
+- 4) Set the 12 least significant bits (bits numbered 0 to 11 inclusive) of the *time\_hi\_and\_version* field equal to the bits numbered 48 to 59 inclusive of the timestamp in the same order of significance.
+- 5) Set the 4 most significant bits (bits numbered 12 to 15 inclusive) of the *time\_hi\_and\_version* field to the 4-bit version number corresponding to the **GloballyUniqueID** version being created, as shown in Table 22.
+- 6) Set the *clock\_seq\_low* field to the 8 least significant bits (bits numbered 0 to 7 inclusive) of the *clock sequence* in the same order of significance.
+- 7) Set the 6 least significant bits (bits numbered 0 to 5 inclusive) of the *clock\_seq\_hi\_and\_reserved* field to the 6 most significant bits (bits numbered 8 to 13 inclusive) of the *clock sequence* in the same order of significance.
+- 8) Set the 2 most significant bits (bits numbered 6 and 7) of the *clock\_seq\_hi\_and\_reserved* to 0 and 1, respectively.
+- 9) Set the *node* field to the 48-bit IEEE address in the same order of significance as the address.
+
+If a system wants to generate a **GloballyUniqueID** but has no IEEE 802 compliant network card or other source of IEEE 802 addresses, then an alternative method should be used to generate a replacement value for the address. The ideal solution is to obtain a 47-bit cryptographic quality random number, and use it as the most significant 47 bits of the node ID, with the least significant bit of the first octet of the node ID set to 1. This bit is the unicast/multicast bit, which will never be set in IEEE 802 addresses obtained from network cards; hence, there can never be a conflict between **GloballyUniqueIDs** generated by machines with and without network cards.
+
+If a system does not have a primitive to generate cryptographic quality random numbers, then in most systems there are usually a fairly large number of sources of randomness available from which one can be generated. Such sources are system specific, but often include the percentage of memory in use, the size of main memory in bytes, the amount of free main memory in bytes, the size of the paging or swap file in bytes, free bytes of paging or swap file, the total size of user virtual address space in bytes, the total available user address space bytes, the size of boot disk drive in bytes, the free
+
+disk space on boot drive in bytes, the current time, the amount of time since the system booted, the individual sizes of files in various system directories, etc.
+
+For use in human-readable text, a **GloballyUniqueID** string representation is specified as a sequence of fields, some of which are separated by single dashes.
+
+Each field is treated as an integer and has its value printed as a zero-filled hexadecimal digit string with the most significant digit first. The hexadecimal values a to f inclusive are output as lower case characters, and are case insensitive on input. The sequence is the same as the **GloballyUniqueID** constructed type.
+
+The formal definition of the **GloballyUniqueID** string representation is provided by the following extended BNF:
+
+```
+
+UUID =
+
+
+
+time_low =
+time_mid =
+time_high_and_version =
+clock_seq_and_reserved =
+clock_seq_low =
+node =
+
+hexOctet = p
+hexDigit = | | | | | |
+digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |
+ "8" | "9"
+hyphen = "-"
+a = "a" | "A"
+b = "b" | "B"
+c = "c" | "C"
+d = "d" | "D"
+e = "e" | "E"
+f = "f" | "F"
+
+```
+
+The following is an example of the string representation of a **GloballyUniqueID**:
+
+f81d4fae-7dec-11d0-a765-00a0c91e6bf6
+
+**timeToLive** is a number of seconds that a registration is to be considered valid.
+
+The **H248PackagesDescriptor** structure is an octet string, which will contain ASN.1 PER encoded H.248 **PackagesDescriptor**.
+
+The **H248SignalsDescriptor** structure is an octet string, which will contain ASN.1 PER encoded H.248 **SignalsDescriptor**.
+
+The **FeatureDescriptor** structure is a **GenericData** element that is used to generically identify a feature.
+
+**CircuitInfo** – This structure provides information about the SCN circuit or circuits used for this call. The **sourceCircuitID** field provides information about the source circuit when the call originates on the SCN, and might be used by an ingress gateway to report the source circuit identifier to the gatekeeper. The **destinationCircuitID** provides information about the destination circuit when the call terminates on the SCN, and might be used by a gatekeeper to select a destination circuit on an egress gateway.
+
+The **CircuitIdentifier** structure designates a facility for purposes of reporting by a gateway or selection by a gatekeeper. The **CircuitIdentifier** structure supports a variety of interfaces.
+
+The **CicInfo** structure designates SS7 bearer channels. The **cic** field is the circuit identifier code as defined in Rec. ITU-T Q.763, encoded with the least significant bits in the first octet and the most significant bits in the last octet. The **pointCode** field contains the point code as defined in Rec. ITU-T Q.763. The first octet of the **pointCode** identifies the network (network indicator code) and the remaining octets identify the SS7 point code value. The **cic** and **pointCode** fields are variable in length to allow for national variants.
+
+The **GroupID** structure identifies a physical or logical **group** and a **member** (or set of **members**) within that group. For example, **group** could identify a physical interface, while **member** could identify a particular DS0 on that interface. If the **member** field is omitted, the gateway is expected to select an available facility in the specified **group**.
+
+The **CarrierInfo** structure contains information about the Carrier Selection. The **carrierIdentificationCode** identifies the carrier (like carrier identification code in ISUP IAM message) chosen by the subscriber or determined by the routing applications, as a binary string of digits. The **carrierName** field is another means to identify the carrier as an ASCII string.
+
+**carrier** – carrier identifier/selection code for call routing as determined by the routing applications or preferred by the subscriber.
+
+The **ServiceControlDescriptor** structure contains service-specific data, or references to it, intended for user presentation or other service control communications as described, for example, in Annex K/H.323. The following options are possible:
+
+- **url** – This selection contains a URL-referenced protocol or resource.
+- **signal** – This selection contains a **SignalsDescriptor** as defined in Rec. ITU-T H.248.1, in binary format. The optional **streamID** and **notifyCompletion** elements shall be omitted from the **Signal** sequence in the **SignalsDescriptor**.
+- **nonStandard** – This selection contains information not defined in this Recommendation (for example, proprietary data).
+- **callCreditServiceControl** – This selection contains information related to controlling the duration of a call and advising the user of account balance information.
+
+The **ServiceControlSession** structure contains a description of a service control session as described, for example, in Annex K/H.323. It contains the following fields:
+
+- **sessionId** – An integer identifying this session that is unique for the client. Note that the identifiers received through different signalling paths (e.g., RAS and call signalling) are orthogonal and may overlap.
+- **contents** – A **ServiceControl** structure with the relevant contents, or communication mechanism.
+- **reason** – Indicates whether this is a new session (**open**) or a modification to an existing session (**refresh**), or that the session is being terminated by the provider (**close**) and existing resources such as a GUI, etc., should be closed.
+
+The **RasUsageInfoTypes** structure lists types of usage information that may be reported by an endpoint to a gatekeeper. The endpoint uses this structure to indicate its capabilities with respect to collecting and reporting usage information, and the gatekeeper uses this structure to request usage information of particular types. The **nonStandardUsageTypes** field allows a vendor to refer to proprietary usage information types. The **startTime** and **endTime** fields refer to the times at which a call started and ended, respectively. The **terminationCause** parameter refers to the reason that the call ended.
+
+The **RasUsageSpecification** structure is a template that allows a gatekeeper to request particular types of usage information at specific points in a call. The **when** field indicates the point or points in the call at which time the endpoint is requested to report the information; **start** refers to the start of
+
+the call, **end** refers to the end of the call, and **inIrr** refers to unsolicited IRR messages. The **callStartingPoint** field defines the point or points in the call that shall be considered the start of the call for the purposes of reporting usage information; a value of **connect** refers to transmission or reception of the Connect message, and a value of **alerting** refers to transmission or reception of the Alerting message. The **required** field indicates the types of usage information that the endpoint is required to report. A **RasUsageSpecification** structure in which nothing is selected in either the **when** or **required** fields indicates a request to disable the reporting of usage information.
+
+The **RasUsageInformation** structure is a collection of usage data pertaining to a particular call. The **nonStandardUsageFields** field allows a vendor to list usage information of proprietary types. The **alertingTime** field indicates the time at which the Alerting message was sent or received. The **connectTime** field indicates the time at which the Connect message was sent or received. The **endTime** field indicates the time at which the Release Complete message was sent or received.
+
+The **CallTerminationCause** structure indicates the reason for the end of a call. The **releaseCompleteReason** field indicates the **reason** that was specified in the Release Complete message. The **releaseCompleteCauseIE** field provides the Cause IE from the Release Complete message.
+
+The **BandwidthDetails** structure defines additional bandwidth usage information that is not available in the **BandWidth** structure. The **sender** field is set to TRUE if the message is sent by the sender of the stream, or FALSE if sent by the receiver. The **multicast** field is set to TRUE if the stream is multicast, or FALSE otherwise. The **bandwidth** field indicates the bandwidth used for the stream in units of hundreds of bits per second. The **rtcpAddresses** field indicates the RTCP addresses used for the media stream.
+
+The **CallCreditCapability** structure indicates certain capabilities of an endpoint related to billing for a call. By default, an endpoint is assumed not to have these optional capabilities. If a field in this structure is not included, this indicates that the status of the capability represented by that field has not changed since the last time it was reported. The **canDisplayAmountString** field indicates whether the endpoint can display a text string that contains the amount of currency in a user's account. The **canEnforceDurationLimit** field indicates whether an endpoint has the capability to disengage a call when a call duration limit indicated by the gatekeeper has elapsed.
+
+The **CallCreditServiceControl** structure allows a gatekeeper to provide certain billing-related control and information to an endpoint. This structure provides the following fields:
+
+- **amountString** – This field indicates the amount of money in a user's account, e.g., "\$10.00". The string shall include the appropriate currency symbol. Note that standard abbreviations for currency types, such as "USD" for United States dollars, are defined by ISO 4217. The **amountString** field shall be encoded in Basic ISO/IEC 10646 (Unicode).
+- **billingMode** – This field indicates the billing mode for this call. A mode of **debit** indicates that the call will result in charges against the amount of money available in a user's account. A mode of **credit** indicates that the call will result in charges to be paid at a later time. An endpoint could use this information, for example, to determine the type of announcement to play or display.
+- **callDurationLimit** – This field indicates the remaining amount of time allowed for a particular call.
+- **enforceCallDurationLimit** – This field indicates whether the endpoint is requested to disengage the call after the amount of time indicated by **callDurationLimit** has elapsed. If this field is not provided, the endpoint shall interpret this to indicate that the directive has not changed from its previous state.
+- **callStartingPoint** – This field indicates the point in the call that timing is requested to begin if call duration enforcement is provided by the endpoint.
+
+The **GenericData** structure consists of an **id** to identify the data, and the **parameters** field to convey the actual parameters.
+
+The **GenericIdentifier** structure provides various ways to identify an object.
+
+The **EnumeratedParameter** structure provides a generic parameter. It consists of an **id** to identify the parameter, and a **content** field to convey any associated data.
+
+The **Content** structure supports a number of different data types, including **raw**, **text**, **unicode**, **bool**, **number8**, **number16**, **number32**, **id**, **alias**, **transport**, **compound** and **nested**. This allows for flexible definition of a generic parameter. The **raw** choice allows for a parameter or set of parameters whose actual data structure is defined elsewhere; for example, it could consist of PER-encoded ASN.1 or data in type-length-value form, or could be an encapsulated message of another signalling protocol.
+
+The **FeatureSet** structure allows an entity to specify generic feature information. The entity specifies the set of features that it requires for successful completion of the call using the **neededFeatures** field, the set of features that it prefers but does not require using the **desiredFeatures** field, and the set of features that it supports in the **supportedFeatures** field. The **replacementFeatureSet** BOOLEAN is set to TRUE to indicate that this feature set replaces any previously sent feature set, or FALSE otherwise.
+
+The **TransportChannelInfo** structure provides information about a media transport channel. The **sendAddress** field is the transport address of the sender, and the **recvAddress** is the transport address of the receiver.
+
+The **RTPSession** structure provides a description of an RTP session. It has the following fields:
+
+- **rtpAddress** – This field provides the send and receive addresses of the RTP stream.
+- **rtcpAddress** – This field provides the send and receive addresses of RTCP messages.
+- **cname** – This field provides the CNAME as specified in clause 6 and in Annex A.
+- **ssrc** – This field is used to identify the source of an RTP stream, as described in clause 6 and in Annex A.
+- **sessionId** – This field provides the identifier of this RTP session, as described in Rec. ITU-T H.245.
+- **associatedSessionIds** – This field provides the identifiers of associated RTP sessions, as described in Rec. ITU-T H.245.
+- **multicast** – This field indicates whether this is a multicast session.
+- **bandwidth** – This field indicates the bandwidth used for the stream in units of hundreds of bits per second.
+
+The **RehomingModel** structure is used to indicate the model used by an endpoint for identifying and re-registering to its assigned gatekeeper. The following options are possible:
+
+- **gatekeeperBased** – The endpoint will re-register with the assigned gatekeeper under when instructed to do so by the gatekeeper.
+- **endpointBased** – The endpoint will poll the assigned gatekeeper and will re-register when the assigned gatekeeper responds to it.
+
+The **TransportQOS** structure is used to indicate the resource reservation capabilities supported by an endpoint. The following options are possible:
+
+- **endpointControlled** – The endpoint will apply its own reservation mechanism.
+- **gatekeeperControlled** – The gatekeeper will perform resource reservation on behalf of the endpoint.
+- **noControl** – No resource reservation is needed.
+
+- **qOSCapabilities** – The QoS capabilities of the endpoint are described by the fields in a **QoSCapability** structure.
+
+## 7.7 Required support of RAS messages
+
+Table 23 shows the RAS messages that are supported by different endpoint types.
+
+**Table 23 – Status of RAS messages**
+
+| RAS Message | Endpoint (Tx) | Endpoint (Rx) | Gatekeeper (Tx) | Gatekeeper (Rx) |
+|--------------------|----------------------|----------------------|------------------------|------------------------|
+| GRQ | O | | | M |
+| GCF | | O | M | |
+| GRJ | | O | M | |
+| RRQ | M | | | M |
+| RCF | | M | M | |
+| RRJ | | M | M | |
+| URQ | O | M | O | M |
+| UCF | M | O | M | O |
+| URJ | O | O | M | O |
+| ARQ | M | | | M |
+| ACF | | M | M | |
+| ARJ | | M | M | |
+| BRQ | M | M | O | M |
+| BCF | M (Note 1) | M | M | O |
+| BRJ | M | M | M | O |
+| IRQ | | M | M | |
+| IRR | M | | | M |
+| IACK | | O | CM | |
+| INAK | | O | CM | |
+| DRQ | M | M | O | M |
+| DCF | M | M | M | M |
+| DRJ | M (Note 2) | M | M | M |
+| LRQ | O | | O | M |
+| LCF | | O | M | O |
+| LRJ | | O | M | O |
+| NSM | O | O | O | O |
+| XRS | M | M | M | M |
+| RIP | CM | M | CM | M |
+| RAI | O | | | M |
+| RAC | | O | M | |
+
+**Table 23 – Status of RAS messages**
+
+| RAS Message | Endpoint (Tx) | Endpoint (Rx) | Gatekeeper (Tx) | Gatekeeper (Rx) |
+|--------------------|----------------------|----------------------|------------------------|------------------------|
+| SCI | O | O | O | O |
+| SCR | O | O | O | O |
+
+M Mandatory
+O Optional
+F Forbidden
+CM Conditionally Mandatory
+blank "Not Applicable"
+NOTE 1 – If a gatekeeper sends a BRQ requesting a lower rate, the endpoint shall reply with BCF if the lower rate is supported, otherwise with BRJ. If a gatekeeper sends a BRQ requesting a higher rate, the endpoint may reply with BCF or BRJ.
+NOTE 2 – Terminal shall not send DRJ in response to a valid DRQ from its gatekeeper.
+
+## 7.8 Terminal and gateway discovery messages
+
+The GRQ message requests that any gatekeeper receiving it respond with a GCF granting it permission to register. The GRJ is a rejection of this request indicating that the requesting endpoint should seek another gatekeeper.
+
+### 7.8.1 GatekeeperRequest (GRQ)
+
+Note that one GRQ is sent per logical endpoint; thus, an MCU or a Gateway might send many.
+
+The GRQ message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any messages associated with this specific message.
+
+**protocolIdentifier** – Identifies the H.225.0 vintage of the sending endpoint.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**rasAddress** – This is the transport address that this endpoint uses for registration and status messages. The Gatekeeper shall send RAS messages to this address and not to the address from which the message was sent, unless the **rasAddress** cannot be decoded.
+
+**endpointType** – This specifies the type(s) of the endpoint that is registering (the MC bit shall not be set by itself).
+
+**gatekeeperIdentifier** – String to identify the gatekeeper from which the terminal would like to receive permission to register. A missing or null string **gatekeeperIdentifier** indicates that the terminal is interested in any available gatekeeper.
+
+**callServices** – Provides information on support of optional Q-series protocols to gatekeeper and called terminal.
+
+**endpointAlias** – A list of alias addresses, by which other terminals may identify this terminal.
+
+**alternateEndpoints** – A sequence of prioritized endpoint alternatives for **rasAddress**, **endpointType**, or **endpointAlias**.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**authenticationCapability** – This indicates the authentication mechanisms supported by the endpoint.
+
+**algorithmOIDs** – Indicates the entire set of encryption algorithms supported by the endpoint.
+
+**integrity** – Indicates to the recipient which integrity mechanism is to be applied on the RAS messages.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**supportsAltGK** – Indicates whether the endpoint supports the alternate gatekeeper mechanism.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**supportsAssignedGK** – Indicates whether the endpoint supports the assigned gatekeeper mechanism.
+
+**assignedGatekeeper** – This field indicates the endpoint's current assigned gatekeeper.
+
+### 7.8.2 GatekeeperConfirm (GCF)
+
+The GCF message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the GRQ.
+
+**protocolIdentifier** – Identifies the vintage of the accepting gatekeeper.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**gatekeeperIdentifier** – String to identify gatekeeper that is sending the GCF.
+
+**rasAddress** – This is the transport address that the gatekeeper uses for registration and status messages.
+
+**alternateGatekeeper** – Sequence of prioritized alternatives for **gatekeeperIdentifier** and **rasAddress**.
+
+**authenticationMode** – This indicates the authentication mechanism to be used. The gatekeeper shall choose **authenticationMode** from **authenticationCapability** provided by the endpoint in GRQ.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**algorithmOID** – Indicates the encryption algorithm required by the gatekeeper.
+
+**integrity** – Indicates to the recipient which integrity mechanism is to be applied on the RAS messages.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation,
+
+the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+**rehomingModel** – Indicates the mechanism to be used by the endpoint for re-registering to the assigned gatekeeper.
+
+### 7.8.3 GatekeeperReject (GRJ)
+
+The GRJ message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the GRQ.
+
+**protocolIdentifier** – Identifies the vintage of the rejecting gatekeeper.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**gatekeeperIdentifier** – String to identify gatekeeper that is sending the GRJ.
+
+**rejectReason** – Codes for why the GRQ was rejected by this gatekeeper. A reason of **genericDataReason** indicates that the request was rejected as a result of a generic element or feature; in this case, additional information may be specified in the **genericData** field.
+
+**altGKInfo** – Optional information about alternative gatekeepers.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+## 7.9 Terminal and gateway registration messages
+
+The RRQ is a request from a terminal to a gatekeeper to register. If the gatekeeper responds with a RCF, the terminal shall use the responding gatekeeper for future calls. If the gatekeeper responds with a RRJ, the terminal must seek another gatekeeper to register with.
+
+### 7.9.1 RegistrationRequest (RRQ)
+
+The RRQ message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any response associated with this specific message.
+
+**protocolIdentifier** – Identifies the H.225.0 vintage of the sending endpoint.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**discoveryComplete** – Set to TRUE if the requesting endpoint has preceded this message with the gatekeeper discovery procedure; set to FALSE if registering only. Note that registration may age, and the endpoint will get a failure on an RRQ or ARQ with a reason code of **discoveryRequired** or **notRegistered** respectively. This indicates that the endpoint should perform the discovery procedure (either dynamic or static) before issuing the RRQ with **discoveryComplete** set to TRUE.
+
+**callSignalAddress** – This is the call signalling transport address for this endpoint. If multiple transports are supported, they shall be registered all at once.
+
+**rasAddress** – This is the registration and status transport address for this endpoint. The Gatekeeper shall send RAS messages to this address and not to the address from which the message was sent, unless the **rasAddress** cannot be decoded.
+
+**terminalType** – This specifies the type(s) of the endpoint that is(are) registering; note that the **mc** bit shall not be set by itself; either the **terminal**, **mcu**, **gateway**, or **gatekeeper** bit shall also be set. If **vendor** information is provided, this information shall be identical to that in **endpointVendor**. If the **terminalType** is **gateway** or **mcu**, then the optional **supportedPrefixes** value is a list of prefix addresses by which other endpoints may identify SCN protocols and data rates supported by this entity. This field may be used in addition to or as an alternative to the **terminalAlias** and **terminalAliasPattern** fields. All of the endpoint's supported prefixes shall be included in each RRQ unless the **additiveRegistration** option is specified, in which case the supported prefixes in an RRQ shall be added to the list of currently registered prefixes for the endpoint. With the additive RRQ, supported prefixes already registered to this endpoint shall be considered still registered. Note that prefixes are not part of a **PartyNumber** (E.164 or others). In order to register a **PartyNumber** (or a range or pattern of them), the endpoint shall use the **terminalAlias** and **terminalAliasPattern** fields as described below.
+
+**terminalAlias** – This optional value is a list of alias addresses, by which other terminals may identify this terminal. This field may be used in addition to or as an alternative to the **terminalAliasPattern** and **supportedPrefixes** fields. If the **terminalAlias** is null, a **terminalAlias** address may be assigned by the gatekeeper and included in the RCF. If the **terminalAlias** does not contain any **dialedDigits**, **partyNumber** or **isupNumber** address, a **dialedDigits.partyNumber** or **isupNumber** address may be assigned by the gatekeeper and included in the RCF. If an **email-ID** is available for the endpoint, it should be registered. Note that multiple alias addresses may refer to the same transport addresses. All of the endpoint's aliases that it desires to register shall be included in this list unless the **additiveRegistration** option is specified, in which case the endpoint aliases in an RRQ shall be added to the list of aliases currently registered for the endpoint.
+
+**gatekeeperIdentifier** – String to identify the gatekeeper that the terminal wishes to register with.
+
+**endpointVendor** – Information about the endpoint vendor.
+
+**alternateEndpoints** – A sequence of prioritized endpoint alternatives for **callSignalAddress**, **rasAddress**, **terminalType**, or **terminalAlias**.
+
+**timeToLive** – Duration of the validity of the registration, in seconds. After this time the gatekeeper may consider the registration stale.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**keepAlive** – If set to TRUE, indicates that the endpoint has sent this RRQ as a "keep alive". An endpoint can send a lightweight RRQ consisting of only **rasAddress**, **keepAlive**, **endpointIdentifier**, **gatekeeperIdentifier**, **tokens**, and **timeToLive**. A gatekeeper in receipt of RRQ with a **keepAlive** field set to TRUE should ignore fields other than **endpointIdentifier**, **gatekeeperIdentifier**, **tokens**, and **timeToLive**. The **rasAddress** in a lightweight RRQ shall only be used by a gatekeeper as the destination for an RRJ when the endpoint is not registered.
+
+**endpointIdentifier** – The **endpointIdentifier** provided by the gatekeeper during the original RCF.
+
+**willSupplyUUIEs** – If set to TRUE, this indicates that the endpoint will supply H.225.0 call signalling message information in IRR messages if requested by the gatekeeper.
+
+**maintainConnection** – If TRUE, this indicates that the sender of the message is capable of supporting a signalling connection when no calls are currently signalled over the connection.
+
+**alternateTransportAddresses** – This field conveys call signalling addresses for transports other than TCP. Inclusion of an address indicates support for the corresponding transport.
+
+**additiveRegistration** – If present, this field indicates that this message is an "additive" RRQ, meaning that the endpoint has sent this RRQ as an addition of information to an existing registration. An endpoint may send an additive RRQ consisting of only **callSignalAddress**, **rasAddress**, **terminalType**, **terminalAlias**, **terminalAliasPattern**, **alternateEndpoints**, **endpointIdentifier**, **gatekeeperIdentifier**, and **tokens**. A gatekeeper in receipt of an RRQ with the **additiveRegistration** field present shall ignore fields other than these. The **rasAddress** in an additive RRQ shall be used by a gatekeeper as the destination for the subsequent RRJ if the endpoint is not registered or if the **terminalAlias** and/or **terminalAliasPattern** conflicts with the gatekeeper's registration policy.
+
+**terminalAliasPattern** – This optional value is a list of address patterns specifying aliases and addresses by which other endpoints may identify this endpoint. This field may be used in addition to or as an alternative to the **terminalAlias** and **supportedPrefixes** fields. All of the endpoint's aliases and addresses shall be included in each RRQ unless the **additiveRegistration** option is TRUE, in which case the endpoint aliases and addresses in the RRQ shall be added to the list of aliases currently registered for the endpoint.
+
+**supportsAltGK** – Indicates whether the endpoint supports the alternate gatekeeper mechanism.
+
+**usageReportingCapability** – This field may be included by the endpoint to advertise its ability to collect and report various types of usage information.
+
+**multipleCalls** – If TRUE, this field indicates that the sender of the message is capable of signalling multiple calls over a single call signalling connection.
+
+**supportedH248Packages** – This field indicates a list of H.248 packages supported by this endpoint.
+
+**callCreditCapability** – This field describes certain billing-related capabilities of this endpoint.
+
+**capacityReportingCapability** – This field describes the endpoint's ability to report call capacity information.
+
+**capacity** – This field indicates the endpoint's maximum and current call capacity. When sending this field, the endpoint shall include the **maximumCallCapacity** and **currentCallCapacity** elements.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**restart** – If set, this field indicates that this is the first RRQ sent by the endpoint after its reboot or after an abnormal event that resulted in loss of its calls. This allows the gatekeeper to perform any cleanup or other functions as necessary.
+
+**supportsACFSequences** – If set, this field indicates that the endpoint is able to receive and process a sequence of ACF messages in response to a single ARQ message.
+
+**supportsAssignedGatekeeper** – Indicates whether the endpoint supports the assigned gatekeeper mechanism.
+
+**assignedGatekeeper** – This field indicates the endpoint's current assigned gatekeeper.
+
+**transportQOS** – An endpoint may use this field to indicate its capability to reserve transport resources.
+
+**language** – Indicates the language(s) the user will use or in which the user would prefer to receive announcements and prompts. The field contains one or more RFC 5646 compliant language tags.
+
+### 7.9.2 RegistrationConfirm (RCF)
+
+The RCF message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the RRQ.
+
+**protocolIdentifier** – Identifies the vintage of the accepting gatekeeper.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**callSignalAddress** – This is an array of transport addresses for H.225.0 call signalling messages; one for each transport that the gatekeeper will respond to. This address includes the TSAP identifier.
+
+**terminalAlias** – This optional value is a list of alias addresses, by which other terminals may identify this terminal. This field may be used in addition to, or as an alternative to, the **terminalAliasPattern** and **supportedPrefixes** fields. It specifies the alias addresses that have been accepted from those proposed in the associated RRQ message. If none were proposed in the RRQ, this list gives aliases assigned by the gatekeeper. If this field is not included, and alias addresses were proposed in the RRQ, then the gatekeeper has accepted all of the proposed alias addresses. If this field is included and specifies a subset of the alias addresses proposed in the RRQ, then the Gatekeeper has accepted only those addresses.
+
+**gatekeeperIdentifier** – String to identify the gatekeeper that has accepted the terminal's registration.
+
+**endpointIdentifier** – A gatekeeper assigned terminal identity string; shall be echoed in subsequent RAS messages.
+
+**alternateGatekeeper** – Sequence of prioritized alternatives for **gatekeeperIdentifier** and **rasAddress**.
+
+**timeToLive** – Duration of the validity of the registration, in seconds. After this time the gatekeeper may consider the registration stale.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**willRespondToIRR** – True if the gatekeeper will send an IACK or INAK message in response to an unsolicited IRR message with its **needsResponse** field set to TRUE.
+
+**preGrantedARQ** – Indicates events for which the gatekeeper has pre-granted admission. This allows for faster call setup times in environments where admission is guaranteed through means other than the ARQ/ACF exchange. Note that even if these fields are set to TRUE, an endpoint can still send an ARQ to the gatekeeper for reasons such as address translation, or the endpoint does not support this modified signalling mode. If the **preGrantedARQ** sequence is not present, then ARQ signalling shall be used in all cases. The fields are:
+
+- **makeCall** – If the **makeCall** flag is TRUE, then the gatekeeper has pre-granted permission to the endpoint to initiate calls without first sending an ARQ. If the **makeCall** flag is FALSE, the endpoint shall always send ARQ to get permission to make a call.
+- **useGKCallSignalAddressToMakeCall** – If the **makeCall** and **useGKCallSignalAddressToMakeCall** flags are both set to TRUE, then if the endpoint does not send an ARQ to the gatekeeper to make a call, the endpoint shall send all H.225.0 call signalling to the gatekeeper call signalling channel.
+- **answerCall** – If the **answerCall** flag is TRUE, then the gatekeeper has pre-granted permission to the endpoint to answer calls without first sending an ARQ. If the **answerCall** flag is FALSE, the endpoint shall always send ARQ to get permission to answer a call.
+- **useGKCallSignalAddressToAnswer** – If the **answerCall** and **useGKCallSignalAddressToAnswer** flags are both set to TRUE, then when an endpoint does not send an ARQ to the gatekeeper to answer a call, the endpoint shall ensure that all H.225.0 call signalling comes from the gatekeeper. If an endpoint has been instructed to use the gatekeeper when answering, but it does not know whether an incoming call has come from the gatekeeper (which may involve looking at the transport address), the endpoint shall issue ARQ irrespective of the state of the **useGKCallSignalAddressToAnswer** flag.
+- **irrFrequencyInCall** – This indicates the frequency, in seconds, of IRR messages sent to the gatekeeper when the endpoint is in one or more calls. If it is not present, the gatekeeper does not want unsolicited IRR messages. When the endpoint is sending these IRR messages, the call reference value shall be made unique for the terminal, as it would have been generated in an Admission Request. However, this is not a "normal" CRV, and cannot be reused for further communication (DRQ, IRQ or BRQ). The call identifier shall be the same as used in the call signalling channel messages for the related call.
+- **totalBandwidthRestriction** – This field limits the total use of bandwidth for the endpoint when in calls. If it is not present, there is no constant bandwidth restriction.
+- **alternateTransportAddresses** – This field conveys call signalling addresses for transports other than TCP. Inclusion of an address indicates support for the corresponding transport.
+
+- **useSpecifiedTransport** – This field allows the gatekeeper to instruct the endpoint as to which signalling transport protocol to use for making calls. If this field is included and the specified transport is not **tcp**, then the **alternateTransportAddresses** shall also be included in this message.
+
+**maintainConnection** – If TRUE, this indicates that the gatekeeper (in the case of gatekeeper routing) is capable of supporting a signalling connection when no calls are currently signalled over the connection.
+
+**serviceControl** – Contains service specific data or addressing information that the endpoint may use for non-call related service control communication with the network as described, for example, in Annex K/H.323.
+
+**supportsAdditiveRegistration** – If present, this field indicates that the gatekeeper supports additive registration capabilities. If not present, the gatekeeper does not support additive registration.
+
+**terminalAliasPattern** – This optional value is a list of address patterns specifying aliases and addresses by which other endpoints may identify this endpoint. This field may be used in addition to or as an alternative to the **terminalAlias** and **supportedPrefixes** fields. It specifies the aliases and addresses that have been accepted from those proposed in the associated RRQ message. If none were proposed in the RRQ, this list gives aliases and addresses assigned by the gatekeeper. If this field is not included and address patterns were proposed in the RRQ, then the gatekeeper has accepted all of the proposed patterns. If this field is included and specifies a subset of the address patterns proposed in the RRQ, then the gatekeeper has accepted only those patterns.
+
+**supportedPrefixes** – This optional value is a list of prefixes by which other endpoints may identify this endpoint. This field may be used in addition to or as an alternative to the **terminalAlias** and **terminalAliasPattern** fields. It specifies the address prefixes that have been accepted from those proposed in the associated RRQ message. If none were proposed in the RRQ, this list gives prefixes assigned by the gatekeeper. If this field is not included and address prefixes were proposed in the RRQ, then the gatekeeper has accepted all of the proposed prefixes. If this field is included and specifies a subset of the address prefixes proposed in the RRQ, then the gatekeeper has accepted only those prefixes.
+
+**usageSpec** – This field may be included by the gatekeeper to request that the endpoint collect and report the indicated call usage information at the specified points in time.
+
+**featureServerAlias** – This field is reserved for future use by the ITU-T for a stimulus-based protocol.
+
+**capacityReportingSpec** – This field indicates the type of call capacity information that an endpoint is requested to report.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+**rehomingModel** – Indicates the mechanism to be used by the endpoint for re-registering to the assigned gatekeeper.
+
+**transportQOS** – The Gatekeeper may use this field to indicate the resource reservation mechanism to be used by the endpoint.
+
+**language** – Indicates the language(s) associated with the user for calls or in which the user might receive announcements and prompts. If the endpoint provided language information in the RRQ, this field would normally contain the same information (if present). However, the Gatekeeper may use different language tags when resolving addresses or when responding to LRQs. Placing that
+
+information here will alert the user about such provisioned language information. The field contains one or more RFC 5646 compliant language tags.
+
+### 7.9.3 RegistrationReject (RRJ)
+
+The RRJ message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the RRQ.
+
+**protocolIdentifier** – Identifies the vintage of the rejecting gatekeeper.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**rejectReason** – The reason for the rejection of the registration. This field may contain an **invalidTerminalAliases** value, in which case it contains a list of aliases, addresses and supported prefixes that were determined to be invalid in the associated RRQ message. In any event, all of the aliases, addresses and supported prefixes from the associated RRQ are rejected along with those specified in the **invalidTerminalAliases** field. A reason of **genericDataReason** indicates that the request was rejected as a result of a generic element or feature; in this case, additional information may be specified in the **genericData** field. A reason of **registerWithAssignedGK** indicates that the request was rejected because the Assigned GK has become available; the endpoint registers to its assigned gatekeeper when it receives this reason.
+
+**gatekeeperIdentifier** – String to identify the gatekeeper that has rejected the terminal's registration.
+
+**altGKInfo** – Optional information about alternative gatekeepers.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+## 7.10 Terminal/gatekeeper unregistration messages
+
+### 7.10.1 UnregistrationRequest (URQ)
+
+The URQ requests that the association between a terminal and a gatekeeper be broken. Note that unregister is bidirectional, i.e., a gatekeeper can request a terminal to consider itself unregistered, and a terminal can inform a gatekeeper that it is revoking a previous registration.
+
+The URQ message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any response associated with this specific message.
+
+**callSignalAddress** – This is one or more of the transport call signalling addresses for this endpoint which are to be unregistered.
+
+**endpointAlias** – This optional value is a list of alias addresses, by which other terminals may identify this terminal. This field may be used in addition to or as an alternative to the **endpointAliasPattern** and **supportedPrefixes** fields. If this field, the **endpointAliasPattern** field, and the **supportedPrefixes** field are not present, all aliases are unregistered in a single message. The **dialedDigits** value, if assigned, is required. Only values listed here are unregistered; this allows, for example, an **h323-ID** to be unregistered while leaving the **dialedDigits** value registered.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**endpointIdentifier** – Confirmation of identity; not sent by the gatekeeper.
+
+**alternateEndpoints** – A sequence of prioritized endpoint alternatives for **callSignalAddress** or **endpointAlias**.
+
+**gatekeeperIdentifier** – A **gatekeeperIdentifier** which the endpoint received in the **alternateGatekeeper** list in an RCF from the gatekeeper when it registered or in a previous URJ message.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**reason** – Used when the gatekeeper sends the URQ to indicate why the gatekeeper considers the endpoint unregistered. A reason of **maintenance** indicates that the gatekeeper or endpoint is being taken down for maintenance. A reason of **registerWithAssignedGK** indicates that the endpoint is being unregistered because the Assigned GK has become available; the endpoint registers to its assigned gatekeeper when it receives this reason.
+
+**endpointAliasPattern** – This optional value is a list of address patterns specifying aliases and addresses by which other endpoints may identify this endpoint. This field may be used in addition to or as an alternative to the **endpointAlias** and **supportedPrefixes** fields. If this field, the **endpointAlias** field and the **supportedPrefixes** field are not present, all aliases and addresses are unregistered in a single message. Otherwise, only values listed here are unregistered.
+
+**supportedPrefixes** – This optional value is a list of prefixes by which other endpoints may identify this endpoint. This field may be used in addition to or as an alternative to the **terminalAlias** and **terminalAliasPattern** fields. If this field, the **endpointAlias** field and the **endpointAliasPattern** field are not present, all aliases and addresses are unregistered in a single message. Otherwise, only values listed here are unregistered.
+
+**alternateGatekeeper** – Sequence of prioritized alternatives for **gatekeeperIdentifier** and **rasAddress**.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+### 7.10.2 UnregistrationConfirm (UCF)
+
+The UCF message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the URQ.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+### 7.10.3 UnregistrationReject (URJ)
+
+The URJ message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the URQ.
+
+**rejectReason** – The reason for the rejection of the unregistration.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**altGKInfo** – Optional information about alternative gatekeepers.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+## 7.11 Terminal to gatekeeper admission messages
+
+The ARQ message requests that an endpoint be allowed access to the packet-based network by the gatekeeper, which either grants the request with an ACF or denies it with an ARJ.
+
+### 7.11.1 AdmissionRequest (ARQ)
+
+The ARQ message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any messages associated with this specific message.
+
+**callType** – Using this value, the gatekeeper can attempt to determine "real" bandwidth usage. The default value is **pointToPoint** for all calls. It should be recognized that the call type may change dynamically during the call and that the final call type may not be known when the ARQ is sent.
+
+**callModel** – If **direct**, the endpoint is requesting the direct terminal to terminal call model. If **gatekeeperRouted**, the endpoint is requesting the gatekeeper mediated model. The gatekeeper is not required to comply with this request.
+
+**endpointIdentifier** – This is an endpoint identifier that was assigned to the terminal by RCF.
+
+**destinationInfo** – Sequence of alias addresses for the destination, such as **dialedDigits**, **PartyNumber** (**e164Number** or **privateNumber**), or **h323-IDs**. When sending the ARQ to answer a call, **destinationInfo** indicates the destination of the call (the answering endpoint). If at least one alias is registered with a gatekeeper and no two aliases in the ARQ are registered to distinct people, the gatekeeper shall recognize the ARQ as referring to the registered identity. In the case of conflicting aliases the admission request should be rejected with cause **AliasesInconsistent**. If the gatekeeper does not provide this validation, it shall consider the first registered address to be the destination.
+
+**destCallSignalAddress** – Transport address used at the destination for call signalling.
+
+**destExtraCallInfo** – Contains external addresses for multiple calls.
+
+**srcInfo** – Sequence of alias addresses for the source endpoint, such as **dialedDigits**, **PartyNumber** (**e164Number** or **privateNumber**) or **h323-IDs**. When sending the ARQ to answer a call, **srcInfo** indicates the originator of the call.
+
+**srcCallSignalAddress** – Transport address used at the source for call signalling.
+
+**bandWidth** – The bidirectional bandwidth requested for the call, in units of 100 bits per second. For example, a 128 kbit/s call would be signalled as a request for 256 kbit/s. The value refers only to the audio and video bit rate excluding headers and overhead.
+
+**callReferenceValue** – The CRV from H.225.0 call signalling messages for this call; only local validity. This is used by a gatekeeper to associate the ARQ with a particular call.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**callServices** – Provides information on support of optional Q-series protocols to gatekeeper and called terminal.
+
+**conferenceID** – Unique conference identifier.
+
+**activeMC** – If TRUE, the calling party has an active MC; otherwise, FALSE.
+
+**answerCall** – Used to indicate to a gatekeeper that a call is incoming.
+
+**canMapAlias** – If set to TRUE, indicates that if the resulting ACF contains **destinationInfo**, **destExtraCallInfo** and/or **remoteExtensionAddress** fields, the endpoint shall copy this information to the **destinationAddress**, **destExtraCallInfo** and **remoteExtensionAddress** fields of the Setup message respectively, or into the Called Party Number IE if appropriate. If the endpoint is a gateway used to exit the H.323 network, the gateway will convert the destination information into the appropriate signalling format used outside of the H.323 network (for example, DTMF). If the GK would replace addressing information from the ARQ and **canMapAlias** is FALSE, then the
+
+gatekeeper should reject the ARQ. Systems compliant with H.225.0 version 4 and higher shall set this field to TRUE.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**srcAlternatives** – A sequence of prioritized source endpoint alternatives for **srcInfo**, **srcCallSignalAddress**, or **rasAddress**.
+
+**destAlternatives** – A sequence of prioritized destination endpoint alternatives for **destinationInfo** or **destCallSignalAddress**.
+
+**gatekeeperIdentifier** – A **gatekeeperIdentifier** which the endpoint received in the **alternateGatekeeper** list in an RCF from the gatekeeper when it registered or in a previous ARJ message.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**transportQOS** – An endpoint may use this field to indicate its capability to reserve transport resources.
+
+**willSupplyUUIEs** – If set to TRUE, this indicates that the endpoint will supply H.225.0 call signalling message information in IRR messages if requested by the gatekeeper.
+
+**callLinkage** – The contents of this field are typically controlled by a call linkage service. For the procedures and semantics of this field, refer to clause 10/H.323.
+
+**gatewayDataRate** – The requested data rate for the SCN side of a call through a gateway. This data rate if present shall be equal to the data rate specified in the Bearer capability IE of the Setup message. A gatekeeper might use this field in selecting a gateway to handle the call.
+
+**capacity** – This field indicates the sending endpoint's available call capacity at this point in time, assuming that the gatekeeper confirms the ARQ by sending an ACF. When sending this field, the endpoint shall include the **currentCallCapacity** element.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+**desiredProtocols** – Identifies the type of protocols, in order of preference, the originating endpoint desires for its call (e.g., voice or fax). A resolving entity may use this field to locate an endpoint that also supports the protocol, giving consideration to the order of preference.
+
+**desiredTunnelledProtocol** – This field identifies a protocol that is requested to be tunnelled.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**canMapSrcAlias** – If set to TRUE, indicates that if the resulting ACF contains **modifiedSrcInfo**, the endpoint shall copy this information to the **sourceInfo** field of the Setup message and/or to the Calling Party Number IE, if appropriate. If the gatekeeper would replace addressing information from the ARQ and **canMapSrcAlias** is FALSE, then the gatekeeper should reject the ARQ.
+
+NOTE – Both **destinationInfo** and **destCallSignalAddress** are optional, but at least one shall be present unless the endpoint is answering a call. There is no absolute rule which is preferred as this may be site specific, but the address should be provided if available. It is cautioned that the best results will be obtained by considering the nature of the transport protocols in use.
+
+### 7.11.2 AdmissionConfirm (ACF)
+
+The ACF message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the ARQ.
+
+**bandWidth** – The allowed maximum bandwidth for the call; may be less than that requested.
+
+**callModel** – Tells terminal whether call signalling sent on **destCallSignalAddress** goes to a gatekeeper or to a terminal. A value of **gatekeeperRouted** indicates that call signalling is being passed via the gatekeeper, while **direct** indicates that the endpoint-to-endpoint call mode is in use.
+
+**destCallSignalAddress** – The transport address to which to send H.225.0 call signalling, but may be an endpoint or gatekeeper address depending on the call model in use.
+
+**irrFrequency** – The frequency, in seconds, that the endpoint shall send IRRs to the gatekeeper while on a call, including while on hold. If not present, the endpoint does not send IRRs while active on a call, and it is expected that the gatekeeper will poll the endpoint.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**destinationInfo** – The address of the initial channel, used when calling through a gateway.
+
+**destExtraCallInfo** – Needed to make possible additional channel calls, i.e., for a $2 \times 64$ kbit/s call on the SCN side. Shall only contain **dialedDigits** or **PartyNumber** addresses and shall not contain the number of the initial channel.
+
+**destinationType** – This specifies the type of the destination endpoint.
+
+**remoteExtensionAddress** – Contains the alias address of a called endpoint in cases where this information is needed to traverse multiple gateways.
+
+**alternateEndpoints** – A sequence of prioritized endpoint alternatives for **destCallSignalAddress** or **destinationInfo**.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**transportQOS** – The gatekeeper may indicate to the endpoint where the responsibility lies for resource reservation. If the gatekeeper received a **TransportQOS** in ARQ, then it should include **transportQOS** (possibly modified according to gatekeeper implementation) in ACF.
+
+**willRespondToIRR** – TRUE if the gatekeeper will send an IACK or INAK message in response to an unsolicited IRR message when the IRR's **needsResponse** field set to TRUE.
+
+**uuiEsRequested** – The gatekeeper may request the endpoint to notify the gatekeeper of H.225.0 call signalling messages that the endpoint sends or receives if the endpoint indicated this capability in the ARQ by setting **willSupplyUUIEs** to TRUE. **uuiEsRequested** indicates the set of H.225.0 call signalling messages of which the endpoint shall notify the gatekeeper.
+
+**language** – Indicates the language(s) for this call, which may differ from those indicated in the RRQ if the Gatekeeper has additional information discovered via an LCF or some other mechanism. The field contains one or more RFC 5646 compliant language tags.
+
+**alternateTransportAddresses** – This field conveys call signalling addresses for transports other than TCP. Inclusion of an address indicates support for the corresponding transport.
+
+**useSpecifiedTransport** – This field allows the gatekeeper to instruct the endpoint as to which signalling transport protocol to use for making the call. If this field is included and the specified transport is not **tcp**, then the **alternateTransportAddresses** shall also be included in this message.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call. For example, it allows a gatekeeper to instruct an egress gateway to select particular SCN facilities to be used for the call.
+
+**usageSpec** – This field may be included by the gatekeeper to request that the endpoint collect and report the indicated call usage information at the specified points in time in this call.
+
+**supportedProtocols** – This field indicates the protocols supported by the destination endpoint.
+
+**serviceControl** – This field contains service-specific data, or references to it, that could be used by an endpoint (e.g., a message to be played to the caller) as described, for example, in Annex K/H.323.
+
+**multipleCalls** – If TRUE, this field indicates that the destination endpoint is capable of signalling multiple calls over a single call signalling connection. If FALSE, the destination endpoint does not have this capability. If this field is not present, the gatekeeper does not know whether the remote endpoint has this capability.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**modifiedSrcInfo** – Alias address that should be used for the source endpoint, such as **dialedDigits**, **PartyNumber** (**e164Number** or **privateNumber**) or **h323-IDs**. This field should be used when the calling endpoint's alias address is translated/modified when attempting to route the call to the primary destination, or to any of the alternate endpoints. These addresses should be used by the endpoint for this call only.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+### 7.11.3 AdmissionReject (ARJ)
+
+The ARJ message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the ARQ.
+
+**rejectReason** – This is the reason the admission request was denied. Note that the **rejectReason** of **routeCallToSCN** is an appropriate choice only when the ARJ is directed to an ingress gateway (the ARQ was sent by a gateway and the **answerCall** BOOLEAN in the ARQ is FALSE). If **rejectReason** is **routeCallToSCN**, the **rejectReason** for this choice also includes a telephone number, or list of telephone numbers, to which the gateway can redirect the call in the SCN, if the gateway supports such a procedure. If **rejectReason** is **exceedsCallCapacity**, the gatekeeper has determined that the
+
+destination does not have the capacity to accept this call at this point in time. A **rejectReason** of **collectDestination** indicates that the gatekeeper is requesting that the gateway collect the final destination address, and that the **serviceControl** field of the ARJ indicates the prompt to be presented to the user. A **rejectReason** of **collectPIN** indicates that the gatekeeper is requesting that the gateway collect a personal identification number or authorization code, and that the **serviceControl** field of the ARJ indicates the prompt to be presented to the user. A reason of **genericDataReason** indicates that the request was rejected as a result of a generic element or feature; in this case, additional information may be specified in the **genericData** field. The endpoint should re-register with the gatekeeper if it receives an error of **invalidEndpointIdentifier**. A reason of **registerWithAssignedGK** indicates that the request was rejected because the Assigned GK has become available; the endpoint registers to its assigned gatekeeper when it receives this reason.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**altGKInfo** – Optional information about alternative gatekeepers.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**callSignalAddress** – This is the gatekeeper's call signalling address returned when the reject reason is **routeCallToGatekeeper**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**serviceControl** – This field contains service-specific data, or references to it, that could be used by an endpoint (e.g., for displaying the reason a call failed) as described, for example, in Annex K/H.323.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+## 7.12 Terminal to gatekeeper requests for changes in bandwidth
+
+The BRQ message requests that an endpoint be granted a changed packet-based network bandwidth allocation by the gatekeeper, which either grants the request with a BCF or denies it with a BRJ.
+
+The gatekeeper may request that an endpoint raise or lower the bandwidth in use with a BRQ. If the request is to raise the rate, the endpoint may reply with either BRJ or BCF. If the request is for a lower rate, the endpoint shall reply with a BCF if the lower rate is supported, otherwise with BRJ.
+
+### 7.12.1 BandwidthRequest (BRQ)
+
+The BRQ message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any messages associated with this specific message.
+
+**endpointIdentifier** – This is an endpoint identifier that was assigned to the terminal by RCF.
+
+**conferenceID** – ID of the call that is to have the bandwidth changed.
+
+**callReferenceValue** – The CRV from H.225.0 call signalling messages for this call; only local validity. This is used by a gatekeeper to associate the BRQ with a particular call.
+
+**callType** – Using this value, the gatekeeper can attempt to determine "real" bandwidth usage.
+
+**bandWidth** – The new bidirectional bandwidth requested for the call, in units of 100 bits per second. This is an absolute value that includes only audio and video bitstreams not counting headers and overhead. Unique multicast streams shall only add to the total bandwidth usage one time, even if there are multiple recipients of the media stream.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**gatekeeperIdentifier** – A **gatekeeperIdentifier** which the endpoint received in the **alternateGatekeeper** list in an RCF from the gatekeeper when it registered or in a previous BRJ message.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**answeredCall** – Set to TRUE to indicate that this party was the original destination (this party answered the call).
+
+**callLinkage** – The contents of this field are typically controlled by a call linkage service. For the procedures and semantics of this field, refer to clause 10/H.323.
+
+**capacity** – This field indicates the sending endpoint's available call capacity at this point in time, assuming that the gatekeeper confirms the BRQ by sending a BCF. When sending this field, the endpoint shall include the **currentCallCapacity** element.
+
+**usageInformation** – This field allows the endpoint to report usage information for this call. A gatekeeper shall not include this field when sending a BRQ.
+
+**bandwidthDetails** – Provides bandwidth information for each media stream that the endpoint is currently transmitting or receiving in the same units as the **bandWidth** field. Each multicast stream shall be reported only one time, even if there are multiple recipients of the media stream.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**transportQOS** – An endpoint may use this field to indicate its capability to reserve transport resources.
+
+### 7.12.2 BandwidthConfirm (BCF)
+
+The BCF message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the BRQ.
+
+**bandWidth** – The maximum allowed at this time in increments of 100 bits.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**capacity** – This field indicates the sending endpoint's available call capacity at this point in time. When sending this field, the endpoint shall include the **currentCallCapacity** element. This field is not included when the BCF is sent by a gatekeeper.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**transportQOS** – The Gatekeeper may use this field to indicate the resource reservation mechanism to be used by the endpoint.
+
+### 7.12.3 BandwidthReject (BRJ)
+
+The BRJ message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the BRQ.
+
+**rejectReason** – The reason the change was rejected by the gatekeeper.
+
+**allowedBandWidth** – The maximum allowed at this time in increments of 100 bits including the current allocation.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**altGKInfo** – Optional information about alternative gatekeepers.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+## 7.13 Location request messages
+
+The LRQ requests that a gatekeeper provide address translation. The gatekeeper responds with an LCF containing the transport address of the destination, or rejects the request with LRJ.
+
+### 7.13.1 LocationRequest (LRQ)
+
+The LRQ message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any messages associated with this specific message.
+
+**endpointIdentifier** – This is an endpoint identifier that was assigned to the terminal by RCF.
+
+**destinationInfo** – Sequence of alias addresses for the destination, such as **dialedDigits**, **partyNumber** (**e164Number** or **privateNumber**), or **h323-IDs**. If at least one alias is registered with a gatekeeper and no two aliases in the LRQ are registered to distinct people, the gatekeeper shall recognize the LRQ as referring to the registered identity. In the case of conflicting aliases the location request should be rejected with cause **AliasesInconsistent**. If the gatekeeper does not provide this validation, it shall consider the first registered address to be the destination.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**replyAddress** – Transport address to which to send the LCF/LRJ.
+
+**sourceInfo** – Indicates the sender of the LRQ. The gatekeeper can use this information to decide how to respond to the LRQ.
+
+**canMapAlias** – If set to TRUE, indicates that if the resulting LCF contains **destinationInfo**, **destExtraCallInfo** and/or **remoteExtensionAddress** fields, the endpoint can copy this information to the **destinationAddress**, **destExtraCallInfo** and **remoteExtensionAddress** fields of the Setup message respectively. If the GK would replace addressing information from the LRQ and **canMapAlias** is FALSE, then the gatekeeper should reject the LRQ. Systems compliant with H.225.0 version 4 and higher shall set this field to TRUE.
+
+**gatekeeperIdentifier** – A **gatekeeperIdentifier** which the endpoint received in the **alternateGatekeeper** list in an RCF from the gatekeeper when it registered or in a previous LRJ message.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**desiredProtocols** – Identifies the type of protocols, in order of preference, the originating endpoint desires for its call (e.g., voice or fax). A resolving entity may use this field to locate an endpoint that also supports the protocol, giving consideration to the order of preference.
+
+**desiredTunnelledProtocol** – This field identifies a protocol that is requested to be tunnelled.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**hopCount** – This field defines the number of gatekeepers through which this message may propagate. When a gatekeeper receives an LRQ and decides that the message should be forwarded on to another gatekeeper, it first decrements **hopCount**. If **hopCount** is then greater than 0, the gatekeeper inserts
+
+the new hop count value into the message to be forwarded. If **hopCount** has reached 0, the gatekeeper shall not forward the message.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the Call Control signalling used in this Recommendation. When sending an LRQ in support of an ARQ or SETUP, the gatekeeper shall copy the call identifier from the ARQ or SETUP into the LRQ. An endpoint that sends an LRQ in preparation for initiating a call shall populate this field with the call identifier for the call. LRQs sent outside the context of a call will not include the call identifier field.
+
+**bandWidth** – The bidirectional bandwidth requested for the call, in units of 100 bits per second. For example, a 128 kbit/s call would be signalled as a request for 256 kbit/s. The value refers only to the audio and video bit rate excluding headers and overhead.
+
+**sourceEndpointInfo** – Sequence of alias addresses for the source endpoint, such as **dialedDigits**, **PartyNumber** (**e164Number** or **privateNumber**) or **h323-IDs**. The gatekeeper should copy the information for the endpoint on whose behalf it is sending this LRQ, or if, forwarding a received LRQ, the gatekeeper should copy the **sourceEndpointInfo** from the received LRQ.
+
+**canMapSrcAlias** – If set to TRUE, indicates that if the resulting LCF contains **modifiedSrcInfo**, the endpoint can copy this information to the **sourceInfo** field of the Setup message. If the LRQ is being sent by a gatekeeper as a result of receiving an ARQ, the gatekeeper shall copy this field from the ARQ. If the gatekeeper would replace addressing information from the LRQ and **canMapSrcAlias** is FALSE, then the gatekeeper should reject the LRQ.
+
+**language** – Indicates the language(s) the user will use or in which the user would prefer to receive announcements and prompts. The field contains one or more RFC 5646 compliant language tags.
+
+### 7.13.2 LocationConfirm (LCF)
+
+The LCF message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the LRQ.
+
+**callSignalAddress** – The transport address to which to send H.225.0 call signalling; uses the reliable well-known or dynamic port, but may be an endpoint or gatekeeper address depending on the call model in use.
+
+**rasAddress** – Registration, admissions, and status address for the located endpoint.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**destinationInfo** – Sequence of alias addresses for the destination, such as **dialedDigits**, **partyNumber** (**e164Number** or **privateNumber**) or **h323-IDs**.
+
+**destExtraCallInfo** – Contains external addresses for multiple calls.
+
+**destinationType** – This specifies the type of the destination endpoint.
+
+**remoteExtensionAddress** – Contains the alias address of a called endpoint in cases where this information is needed to traverse multiple Gateways.
+
+**alternateEndpoints** – A sequence of prioritized endpoint alternatives for **callSignalAddress**, **rasAddress**, or **destinationInfo**.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**alternateTransportAddresses** – This field conveys call signalling addresses for transports other than TCP. Inclusion of an address indicates support for the corresponding transport.
+
+**supportedProtocols** – This field indicates the protocols supported by the endpoint.
+
+**multipleCalls** – If TRUE, this field indicates that the located endpoint is capable of signalling multiple calls over a single call signalling connection. If FALSE, the endpoint does not have this capability. If this field is not present, the gatekeeper does not know whether the endpoint has this capability.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+**serviceControl** – This field contains addressing information that the endpoint may use for call-related service control communication with the network as described, for example, in Annex K/H.323.
+
+**modifiedSrcInfo** – Alias address that should be used for the source endpoint, such as **dialedDigits**, **PartyNumber** (**e164Number** or **privateNumber**) or **h323-IDs**. This field should be used when the calling endpoint's alias address is translated/modified when attempting to route the call to the primary destination, or to any of the alternate endpoints. If the LCF message results in an ACF reply to the endpoint, this field shall be copied into the ACF message.
+
+**bandWidth** – The allowed maximum bandwidth for the call; may be less than that requested.
+
+**language** – Indicates the language(s) supported by the remote user, including those used for announcements and prompts. The field contains one or more RFC 5646 compliant language tags.
+
+### 7.13.3 LocationReject (LRJ)
+
+The LRJ message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the LRQ.
+
+**rejectReason** – This is the reason the location request was denied. If **rejectReason** is **routeCallToSCN**, the **rejectReason** for this choice also includes a telephone number, or list of telephone numbers, to which the gateway can redirect the call in the SCN, if the gateway supports such a procedure. A reason of **resourceUnavailable** indicates that bandwidth is overutilized or that no entity registered with the gatekeeper has the capacity to handle a call to the requested location at the present time. A reason of **genericDataReason** indicates that the request was rejected as a result of a generic element or feature; in this case, additional information may be specified in the **genericData** field.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**altGKInfo** – Optional information about alternative gatekeepers.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**featureSet** – This field specifies a set of generic features that relate to this call.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**serviceControl** – This field contains addressing information that the endpoint may use for call-related service control communication with the network as described, for example, in Annex K/H.323.
+
+## 7.14 Disengage messages
+
+### 7.14.1 DisengageRequest (DRQ)
+
+If sent from an endpoint to a gatekeeper, the DRQ informs the gatekeeper that an endpoint is being dropped. If sent from a gatekeeper to an endpoint, the DRQ forces a call to be dropped; such a request shall not be refused. The DRQ is not sent between endpoints directly.
+
+Note that DRQ is not the same as **ReleaseComplete** since its purpose is to inform the gatekeeper of the termination of a call; the gatekeeper may not receive the release complete if it is not terminating the call signalling channel.
+
+The DRQ message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any messages associated with this specific message.
+
+**endpointIdentifier** – This is an endpoint identifier that was assigned to the terminal by RCF.
+
+**conference ID** – ID of the call that is to have the bandwidth released.
+
+**callReferenceValue** – The CRV from H.225.0 call signalling messages for this call; only local validity. This is used by a gatekeeper to associate the message with a particular call.
+
+**disengageReason** – The reason the change was requested by the gatekeeper or the terminal.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**gatekeeperIdentifier** – A **gatekeeperIdentifier** which the endpoint received in the **alternateGatekeeper** list in an RCF from the gatekeeper when it registered or in a previous DRJ message.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation,
+
+the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**answeredCall** – Set to TRUE to indicate that this party was the original destination (this party answered the call).
+
+**callLinkage** – The contents of this field are typically controlled by a call linkage service. For the procedures and semantics of this field, refer to clause 10/H.323.
+
+**capacity** – This field indicates the sending endpoint's available call capacity at this point in time, assuming that the gatekeeper confirms the DRQ by sending a DCF. When sending this field, the endpoint shall include the **currentCallCapacity** element. This field is not included when the DRQ is sent by a gatekeeper.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+**usageInformation** – This field allows an endpoint to report usage information for this call. A gatekeeper shall not include this field when sending a DRQ.
+
+**terminationCause** – This field describes the reason that the call ended. This information is more specific than the reason provided in the **disengageReason** field. A gatekeeper shall not include this field when sending a DRQ.
+
+**serviceControl** – This field contains service-specific data, or references to it, that could be used by an endpoint as described, for example, in Annex K/H.323. The gatekeeper could use this field to indicate that the call is ending because some account has expired or the amount paid for the call has been exhausted.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+### 7.14.2 DisengageConfirm (DCF)
+
+The DCF message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the DRQ.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**capacity** – This field indicates the sending endpoint's available call capacity after the call indicated in the DCF has been disengaged. When sending this field, the endpoint shall include the **currentCallCapacity** element. This field is not included when the DCF is sent by a gatekeeper.
+
+**circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+**usageInformation** – This field allows an endpoint to report usage information for this call. A gatekeeper shall not include this field when sending a DCF.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+### 7.14.3 DisengageReject (DRJ)
+
+DRJ is sent by the gatekeeper if the endpoint is unregistered.
+
+The DRJ message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the DRQ.
+
+**rejectReason** – The reason the request was rejected.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**altGKInfo** – Optional information about alternative gatekeepers.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+## 7.15 Status request messages
+
+The IRQ is sent from a gatekeeper to a terminal requesting status information in the form of an IRR. The IRR may be also be sent by the terminal at an interval specified in the ACF message without the receipt of an IRQ from the gatekeeper. This message should not be confused with the H.225.0 call signalling Status message.
+
+When an unsolicited IRR is sent by an endpoint to a gatekeeper of version 2 or higher, it may indicate in the **needResponse** field that it wishes the gatekeeper to acknowledge receipt of the IRR. In this case it fills in the **requestSeqNum** field with a number other than 1. The gatekeeper returns either an IACK (positive acknowledgement) or an INAK (negative acknowledgement) message, and shall return the same number in the **requestSeqNum** field.
+
+### 7.15.1 InfoRequest (IRQ)
+
+The IRQ message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any messages associated with this specific message.
+
+**callReferenceValue** – CRV of the call that the query is about. If zero, this message is interpreted as a request for an IRR for each call the terminal is active on. If the terminal is not active on any calls, an IRR shall be sent in response to a **callReferenceValue** of 0 with all appropriate fields provided. If **callReferenceValue** is 0, the endpoint shall ignore **callIdentifier** – in this case the gatekeeper shall fill **callIdentifier** with 0.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**replyAddress** – A transport address to send IRR to, perhaps not that of the gatekeeper.
+
+**callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**uuiesRequested** – The gatekeeper may request the endpoint to notify the gatekeeper of H.225.0 call signalling messages that the endpoint sends or receives if the endpoint indicated this capability in the ARQ by setting **willSupplyUUIEs** to TRUE. **uuiesRequested** indicates the set of H.225.0 call signalling messages of which the endpoint shall notify the gatekeeper.
+
+**callLinkage** – The contents of this field are typically controlled by a call linkage service. For the procedures and semantics of this field, refer to clause 10/H.323.
+
+**usageInfoRequested** – This field may be included by a gatekeeper to request that the endpoint report the indicated call usage information in the IRR message.
+
+**segmentedResponseSupported** – This field indicates whether the gatekeeper will allow the endpoint to return call information for all calls in multiple IRR messages, or "segments". If this field is present, segmentation is allowed. Otherwise, segmentation is not allowed. This field is only significant when the gatekeeper sends an IRQ with a **callReferenceValue** of 0 and shall not be present otherwise.
+
+**nextSegmentRequested** – If the gatekeeper sends an IRQ message with **callReferenceValue** of 0 and includes the **segmentedResponseSupported** field, the endpoint may return an IRR with only part of the call information, indicated by including the segment field in the IRR. The gatekeeper may request the next segment by retransmitting the previous IRQ message with the **nextSegmentRequested** field set to the value of the next segment that the gatekeeper expects to receive.
+
+**capacityInfoRequested** – If present, this field indicates that the gatekeeper is requesting that the endpoint include call capacity information in the IRR.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+**assignedGatekeeper** – Assigned gatekeeper of the endpoint.
+
+### 7.15.2 InfoRequestResponse (IRR)
+
+The IRR message includes the following:
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**requestSeqNum** – In the case of a solicited IRR, this field shall contain the sequence number from the IRQ. In the case of an unsolicited report to a version 1 gatekeeper, this field shall contain one (1).
+
+In all other unsolicited IRRs, it shall contain a monotonically increasing number (to be returned by the gatekeeper in its response if **needResponse** is TRUE).
+
+**endpointType** – Provides information about the endpoint.
+
+**endpointIdentifier** – Value assigned by the gatekeeper in the RCF.
+
+**rasAddress** – Address for registration, admissions, etc.
+
+**callSignalAddress** – Address of H.225.0 call signalling.
+
+**endpointAlias** – Alias(es) for endpoint.
+
+**perCallInfo** – Information about a particular call:
+
+- **nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+- **callReferenceValue** – H.225.0 call signalling CRV of that call that the response is about.
+- **conferenceID** – Unique conference identifier.
+- **originator** – If TRUE the endpoint being queried was the call originator, if FALSE the endpoint was the call destination.
+- **audio** – Information about the audio channel(s). The **multicast** element shall be included if the session is multicast.
+- **video** – Information about the video channel(s). The **multicast** element shall be included if the session is multicast.
+- **data** – Information about the data channel(s).
+- **h245** – The transport address of the H.245 control channel.
+- **callSignalling** – The transport address of the H.225.0 call signalling channel.
+- **callType** – Provides information on call topology.
+- **bandwidth** – Current usage in increments of 100 bit/s; includes only audio and video excluding headers and overhead.
+- **callModel** – Indicates the endpoint's idea of which call model is in use.
+- **callIdentifier** – A globally unique call identifier set by the originating endpoint which can be used to associate RAS signalling with the modified Q.931 signalling used in this Recommendation.
+- **tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+- **cryptoTokens** – Encrypted **tokens**.
+- **substituteConfIDs** – A listing of all ConferenceIDs received in H.245 SubstituteCID messages pertaining to the original RAS **perCallInfo conferenceID**.
+- **pdu**:
+ - **h323pdu** – A copy of an H.225.0 and Q.931 PDU as requested by the gatekeeper in **uuiiesRequested** in either ACF or IRQ.
+ - **sent** – Set to TRUE to indicate the endpoint sent the **h323pdu**; set to FALSE to indicate the endpoint received the **h323pdu**.
+- **callLinkage** – The contents of this field are typically controlled by a call linkage service. For the procedures and semantics of this field, refer to clause 10/H.323.
+- **usageInformation** – This field allows the endpoint to report usage information for this call.
+- **circuitInfo** – This field provides information about the SCN circuit or circuits used for this call.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**needResponse** – If this is set to TRUE and the gatekeeper indicated in either RCF or ACF that it will respond to unsolicited IRRs (by setting **willRespondToIRR** to TRUE), then the gatekeeper shall reply with an IACK or INAK. If the gatekeeper had not indicated in either RCF or ACF that it will respond to unsolicited IRRs (by setting **willRespondToIRR** to FALSE), then the gatekeeper may ignore the **needResponse** BOOLEAN.
+
+**capacity** – Indicates the sending endpoint's call capacity at this point in time. When sending this field, the endpoint shall include the **currentCallCapacity** element and should only include the **maximumCallCapacity** when responding to an IRQ that included the **capacityInfoRequested** element.
+
+**irrStatus** – This element should be returned in IRR messages in response to an IRQ sent by the gatekeeper. Absence of this element indicates that the IRR message contains complete call detail information. The following values are possible:
+
+- **complete** – Indicates that this IRR contains the last segment of call information for an IRQ which requests all call details. When segmentation is not used, this field indicates that the IRR contains all of the call details in a single IRR message.
+- **incomplete** – Indicates that the endpoint is not able to fit all of the requested call information in a single IRR message when responding to an IRQ message that contained a **callReferenceValue** of 0.
+- **segment** – This field indicates the segment number, which is a monotonically increasing value modulo 65536, of this IRR message when segmented IRRs are sent in response to an IRQ containing a **callReferenceValue** of 0.
+- **invalidCall** – This field indicates that the call referenced in the IRQ message does not exist.
+
+**unsolicited** – H.323 version 4 and later endpoints shall set this field to TRUE in unsolicited IRR messages as described in 8.4.2/H.323 and shall set it to FALSE it in solicited IRRs.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+### 7.15.3 InfoRequestAck (IACK)
+
+The IACK message includes the following:
+
+**requestSeqNum** – This field shall contain the **requestSeqNum** that was in the IRR.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+### 7.15.4 InfoRequestNak (INAK)
+
+The INAK message includes the following:
+
+**requestSeqNum** – This field shall contain the **requestSeqNum** that was in the IRR.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**nakReason** – Reason the IRR was negatively acknowledged.
+
+**altGKInfo** – Optional information about alternative gatekeepers.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+## 7.16 Non-standard message
+
+The **NonStandardMessage** structure is as follows:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+## 7.17 Message not understood
+
+This message is sent whenever an H.323 endpoint receives a RAS message it does not understand or it cannot decode. In cases where the destination transport address for the XRS message is not available (i.e., the received RAS message could not be decoded), the XRS may be sent to the transport address from which the not understood RAS message was received. This transport address may be obtained from the underlying transport layer. An XRS message shall not be sent in response to an incoming XRS message. H.323 endpoints should transmit no more than one XRS message per second to the same transport address to avoid network congestion in situations where corrupted messages are received.
+
+**RequestSeqNum** – Shall be the **requestSeqNum** of the unknown message, if it can be decoded. If the unknown message cannot be decoded, this field is a monotonically increasing number unique to the sender. The **RequestSeqNum** should be used for backward compatibility with H.323 version 3 and lower endpoints. H.323 version 4 and higher endpoints should look at the **messageNotUnderstood** parameter to associate the XRS with a previously transmitted message.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**messageNotUnderstood** – Copy of the message that was received and was not understood.
+
+## 7.18 Gateway resource availability messages
+
+The Resource Availability Indication (RAI) is a notification from a gateway to a gatekeeper of its current call capacity for each H-series protocol and data rate for that protocol. The gatekeeper responds with a Resource Availability Confirmation (RAC) upon receiving a RAI to acknowledge its reception.
+
+### 7.18.1 ResourcesAvailableIndicate (RAI)
+
+The RAI message includes the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any response associated with this specific message.
+
+**protocolIdentifier** – Identifies the vintage of the sending endpoint.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**endpointIdentifier** – A gatekeeper-assigned endpoint identity string.
+
+**protocols** – Indicates the current data rates for each protocol which can be supported given the current state of the device.
+
+**almostOutOfResources** – When set to TRUE, the device is nearing or at capacity. Any action based on this field is at the manufacturer's discretion. If the device is not near or at capacity this field should be set to FALSE.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**capacity** – Indicates the sending endpoint's call capacity at this point in time. Note that if **capacity** is provided, the **almostOutOfResources** BOOLEAN should be ignored by the recipient, since the **capacity** field provides more detailed information; however, the **almostOutOfResources** BOOLEAN shall be properly set in order to maintain backward compatibility. When sending the **capacity** field, the endpoint shall include the **currentCallCapacity** elements.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+### 7.18.2 ResourcesAvailableConfirm (RAC)
+
+The RAC message includes the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the RAI.
+
+**protocolIdentifier** – Identifies the vintage of the accepting gatekeeper.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+## 7.19 RAS timers and Request in Progress (RIP)
+
+Table 24 shows recommended default time-out values for the response to RAS messages and subsequent retry counts if a response is not received. (These values are subject to change with further implementation experience and input.)
+
+**Table 24 – Recommended default time-out values**
+
+| RAS message | Time-out value (s) | Retry count |
+|--------------|--------------------|-------------|
+| GRQ | 5 | 2 |
+| RRQ (Note 1) | 3 | 2 |
+| URQ | 3 | 1 |
+
+**Table 24 – Recommended default time-out values**
+
+| RAS message | Time-out value (s) | Retry count |
+|--------------------|---------------------------|--------------------|
+| ARQ | 5 | 2 |
+| BRQ | 3 | 2 |
+| IRQ | 3 | 1 |
+| IRR (Note 2) | 5 | 2 |
+| DRQ | 3 | 2 |
+| LRQ | 5 | 2 |
+| RAI | 3 | 2 |
+| SCI | 3 | 2 |
+
+NOTE 1 – The time-out value should be recalculated based upon both the time-to-live (which may be indicated by the gatekeeper in the RCF message) and the desired number of retries.
+NOTE 2 – In cases where the gatekeeper is expected to reply to an unsolicited IRR with IACK or INAK, the time-out may occur if no reply to the IRR is received.
+
+If an entity receives a request from a version 2 (or later) entity to which a response cannot be generated within a typical retry time-out period, it can send a RIP message specifying the period (in the **delay** field) after which a response should have been generated. As soon as a response is available, the responding entity should send the response and not wait for the RIP delay to expire. If a requesting entity has not received a response by the time the RIP delay expires, it shall resend the request. The responding entity can then either send a duplicate response or another RIP message. Figure 2 gives an example message exchange which demonstrates a number of aspects of the retry strategy.
+
+Vendors should be aware that any retries will have an impact on the call setup time, which should be minimized. Therefore, short retry times are desirable. So that remote entities can anticipate typical retry times for the purpose of deciding when to send a RIP message, entities should avoid retry periods less than 100 ms. Exponential backoff and adapting to measured round-trip times is encouraged. Entities can use the measured round trip time of the RRQ/RCF registration process to modify an initially conservative estimate (of a few seconds) for this purpose. Entities may also use the registration process to exchange version numbers to ensure that the RIP-based retry mechanism is not used when version 1 entities are involved in the signalling.
+
+
+
+Sequence diagram illustrating the use of RIP messages. The diagram shows two vertical lifelines. On the left, a message 'Lost LRQ' is sent to the right lifeline. A 'Retry delay (e.g. 200 ms)' is indicated. The right lifeline responds with 'RIP'. A 'RIP delay (e.g. 1 s)' is indicated. The left lifeline then sends another 'LRQ' to the right lifeline. The right lifeline responds with 'RIP'. A 'Lost LCF' message is shown being sent from the right lifeline to the left lifeline. A 'RIP delay' is indicated. Finally, the left lifeline sends a third 'LRQ' to the right lifeline, which responds with 'RIP'. The diagram is labeled 'H.225.0\_F02' at the bottom right.
+
+**Figure 2 – Example use of RIP message**
+
+The RIP message includes the following:
+
+**requestSeqNum** – This is the requestSeqNum of the request which is currently being processed.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted tokens.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**delay** – Specifies the amount of time in milliseconds that an endpoint shall wait before attempting a retry. The responding endpoint may respond before this period expires.
+
+## 7.20 Service control messages
+
+### 7.20.1 ServiceControlIndication (SCI)
+
+The SCI message is sent from a service provider to indicate to the service client that a separate service control session may be initiated towards the given address. It may be sent from a gatekeeper to an endpoint (e.g., for user presentation of service features) or from an endpoint to a gatekeeper (e.g., to upload a call processing script). Note that H.323 entities of version 3 or earlier are not able to decode this message and thus will not answer.
+
+The SCI message contains the following:
+
+**requestSeqNum** – This is a monotonically increasing number unique to the sender. It shall be returned by the receiver in any response associated with this specific message.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**serviceControl** – Carries a set of service control session information.
+
+**endpointIdentifier** – Set to the value received from the gatekeeper in the RCF message if the message is sent from an endpoint to its gatekeeper.
+
+**callSpecific** – Provided if the sessions given are relating to one specific call. The **callIdentifier**, **conferenceID** and **answeredCall** shall be set to the same value as in the ARQ message the service session is relating to.
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+### 7.20.2 ServiceControlResponse (SCR)
+
+The SCR message is sent to acknowledge the receipt of an SCI message, but does not necessarily mean that the service client will initiate the session as given in SCI.
+
+The SCR message contains the following:
+
+**requestSeqNum** – This shall be the same value that was passed in the SCI.
+
+**result** – This field indicates the result of processing the information contained in the SCI message. The following values are defined:
+
+- **started** – The requested service control was started.
+- **failed** – There was some error with the request, so the request failed.
+- **stopped** – The service control was stopped.
+- **notAvailable** – The requested service control was not available at the time of the request.
+
+**nonStandardData** – Carries information not defined in this Recommendation (for example, proprietary data).
+
+**tokens** – This is some data which may be required to allow the operation. The data shall be inserted into the message if available.
+
+**cryptoTokens** – Encrypted **tokens**.
+
+**integrityCheckValue** – Provides improved message integrity/message authentication of the RAS messages. The cryptographically-based integrity check value is computed by the sender applying a negotiated integrity algorithm and the secret key upon the entire message. Prior to **integrityCheckValue** computation, this field shall be ignored and shall be empty. After computation, the sender puts the computed integrity check value in the **integrityCheckValue** field and transmits the message.
+
+**featureSet** – This field specifies a set of generic features.
+
+**genericData** – This field is a list of generic elements related to features that are defined outside of the base H.225.0 specification. These parameters may be used, for example, for tunnelling information transparently through RAS.
+
+## 7.21 AdmissionConfirmSequence
+
+AdmissionConfirmSequence is a sequence of one or more RAS ACF messages. It may used by the gatekeeper to respond to a single ARQ message instead of the single ACF message when it has different security tokens, different translated source information, etc., that may not easily be expressed in a single ACF message. Endpoints indicate support for receiving AdmissionConfirmSequence by setting **supportsACFSequences** flag in RRQ.
+
+## 7.22 Error Code Mapping
+
+A Gatekeeper that needs to return an **AdmissionReject** message in response to an **AdmissionRequest** from an endpoint, as a result of having received a **LocationReject** or an H.501 **AccessRejection** in response to its sending a **LocationRequest** or **AccessRequest** message, should use Tables 25 and 26 to map the error code that it returns in the **AdmissionReject** message.
+
+**Table 25 – LocationRejectReason to AdmissionRejectReason**
+
+| LocationRejectReason | Corresponding AdmissionRejectReason |
+|--------------------------------|-------------------------------------|
+| notRegistered | calledPartyNotRegistered |
+| invalidPermission | invalidPermission |
+| requestDenied | requestDenied |
+| undefinedReason | undefinedReason |
+| securityDenial | securityDenial |
+| aliasInconsistent | aliasesInconsistent |
+| routeCallToSCN | routeCallToSCN |
+| resourceUnavailable | resourceUnavailable |
+| genericDataReason | genericDataReason |
+| neededFeatureNotSupported | neededFeatureNotSupported |
+| hopCountExceeded | noRouteToDestination |
+| incompleteAddress | incompleteAddress |
+| securityWrongSyncTime | securityWrongSyncTime |
+| securityReplay | securityReplay |
+| securityWrongGeneralID | securityWrongGeneralID |
+| securityWrongSendersID | securityWrongSendersID |
+| securityMessageIntegrityFailed | securityMessageIntegrityFailed |
+| securityWrongOID | securityWrongOID |
+| securityDHmismatch | securityDHmismatch |
+| noRouteToDestination | noRouteToDestination |
+| unallocatedNumber | unallocatedNumber |
+
+**Table 26 – AccessRejectionReason to AdmissionRejectReason**
+
+| AccessRejectionReason | Corresponding AdmissionRejectReason |
+|------------------------------|--------------------------------------------|
+| noMatch | noRouteToDestination |
+| packetSizeExceeded | undefinedReason |
+| Security | securityDenial |
+| hopCountExceeded | noRouteToDestination |
+| needCallInformation | undefinedReason |
+| noServiceRelationship | noRouteToDestination |
+| undefined | undefinedReason |
+| neededFeature | neededFeatureNotSupported |
+| genericDataReason | genericDataReason |
+| destinationUnavailable | resourceUnavailable |
+| aliasesInconsistent | aliasesInconsistent |
+| resourceUnavailable | resourceUnavailable |
+| incompleteAddress | incompleteAddress |
+| unknownServiceID | noRouteToDestination |
+| usageUnavailable | undefinedReason |
+| cannotSupportUsageSpec | undefinedReason |
+| unknownUsageSendTo | undefinedReason |
+
+# 8 Mechanisms for maintaining QoS
+
+## 8.1 General approach and assumptions
+
+Transport QoS (Quality of Service) on a packet-based network includes such characteristics as:
+
+- bit error rate;
+- packet loss rate;
+- delay.
+
+Any transport QoS-related signalling (e.g., a reservation request to a router) is done by the terminal as soon as possible, or by the gatekeeper on its behalf. The terminal may wish to make any reservations since the gatekeeper may not be logically near the terminal, or be able to make QoS related requests on behalf of the terminal. The means by which either the terminal or the gatekeeper make QoS or bandwidth reservations are beyond the scope of this Recommendation.
+
+The Sender and Receiver Reports of RTCP shall be the means by which QoS will be assessed.
+
+There are two types of congestion-related delay that might be measured:
+
+- short-term increases in delay that will result in a perceptible but not annoying slowing of the frame rate;
+- a general rise in delay due to packet-based network congestion over time such that a feedback-based mechanism is useful.
+
+Essentially, short-term bursts are approached by error concealment, and a longer-term congestion is approached by reducing the multimedia load. The assumption is made that all packet-based network multimedia terminals are H.323 terminals, and all will attempt to reduce packet-based network usage as congestion rises rather than "steal" bandwidth from each other.
+
+Bit errors on a packet-based network generally are either corrected at a lower layer, or result in packet loss, so they are not considered further in this clause.
+
+Packet loss requires the receiver to be able to compensate for lost packets in a fashion that conceals errors to the maximum possible extent. For data and control, retransmission at the transport layer is used. For audio and video, retransmission is for further study.
+
+A given level of transport QoS results in a level of user-perceived audio/video QoS that is a function in part of the effectiveness of the methods used to overcome transport QoS problems.
+
+## 8.2 Use of RTCP in measuring QoS
+
+### 8.2.1 Sender reports
+
+The sender report serves three main purposes:
+
+- 1) allows synchronization of multiple RTP streams, such as audio and video;
+- 2) allows the receiver to know the expected data rate and packet rate;
+- 3) allows the receiver to measure the distance in time to the sender.
+
+Of these three purposes, 1) is the most relevant to this Recommendation. Manufacturers may make use of the sender reports in other ways at their discretion.
+
+The relevant field for stream synchronization is the RTP timestamp and the NTP timestamp in the sender report of RTCP. The NTP timestamp (if available) gives "wall clock" time and corresponds to the RTP timestamp which has the same units and random offset as the RTP capture timestamp in the media packets.
+
+### 8.2.2 Receiver reports
+
+Four parts of the Receiver Reports are used in this Recommendation to measure QoS:
+
+- 1) fraction lost;
+- 2) the cumulative packets lost;
+- 3) the extended highest sequence number received;
+- 4) interarrival jitter.
+
+Items 2 and 3 are used to compute the number of packets lost since the previous receiver report. This can be taken as a long-term measure of packet-based network congestion. See clause 6.4.4 of IETF RFC 3550 [37] for a sample computation. If this loss rate exceeds a value set by the manufacturer, the H.225.0 terminal should reduce the media rates on the packet-based network side according to the procedures in 8.4. If item 1 exceeds a value set by the manufacturer, it may also be desirable to take corrective action.
+
+If the interval between receiver reports exceeds a value set by the manufacturer, H.323 terminals should use item 1 as an indicator of serious congestion requiring media rate reduction on the packet-based network side.
+
+Item 4 should be used as an indication of impending congestion. If interarrival jitter increases for three consecutive receiver reports, the H.323 sending terminal should take corrective action.
+
+## 8.3 Audio/Video jitter procedures
+
+Rec. ITU-T H.245 provides commands and procedures for round-trip indications using **RoundTripDelayRequest** and **RoundTripDelayResponse**. On a multipoint call the MC responds to a request from the endpoint. RTCP contains a method of calculating round-trip delays based on the Sender Report and the Receiver Report messages. Note that the quantity being measured in each case is not the same, so there is no conflict in using both methods to measure jitter.
+
+See 6.2.5/H.323 for a discussion of how H.245 level signalling can be used to optionally reduce jitter related delays.
+
+## 8.4 Audio/Video skew procedures
+
+See 6.2.6/H.323 for a discussion of how H.245 level signalling is used to limit the skew between different logical channels.
+
+## 8.5 Procedures for maintaining QoS
+
+A number of methods exist for the H.323 gateway/terminal to respond to an increase in packet loss or interarrival jitter in the far-end receiver. These methods can be grouped into those that are appropriate for a rapid response to a short-term problem, such as a lost or delayed packet, and those that are appropriate for a response to a longer-term problem such as growing congestion on the packet-based network. Note that these methods do not seek to maintain the current quality of service, but instead to provide for an orderly degradation of service. The following priorities shall be observed such that, if present, media shall be degraded in the following order: Video, Data, Audio, Control.
+
+### *Short-term responses*
+
+- reducing the frame rate for a short period of time: This may result in the H.323 gateway sending additional H.261 fill frames in the packet-based network to SCN direction to compensate for the packet under flow;
+- reduce packet rate by switching to the optional mode where audio/video are mixed in one packet (for further study);
+- packet rate can also be reduced via the use of MB fragmentation of the video stream.
+
+### *Longer-term responses*
+
+- reducing media bit rate (e.g., switching from 384 kbit/s to 256 kbit/s): This may involve a simple instruction to the encoder in a terminal, or it may involve the use of a rate reducer function in the H.323 gateway. These changes are signalled via H.245 **FlowControl** commands, or by logical channel signalling as appropriate;
+- turning off media of lesser importance (e.g., turning off video to allow a large amount of T.120 traffic);
+- returning a busy signal (adaptive busy) to the receiver as an indication of packet-based network congestion. This may be combined with turning off a media, or even all media other than the control Transport Port. Adaptive busy is signalled via a Q.931 cause value in Release Complete.
+
+It should be noted that responding to interarrival jitter in a multi-router path where a large percentage of packets arrive out of order is difficult. It may be impossible to distinguish this source of jitter from other sources, or to base error recovery strategy on measured jitter. However, packet loss is quantifiable and unambiguous.
+
+## 8.6 Echo control
+
+Control of acoustic echo is the responsibility of the H-series terminal. In general, given the delay involved in video/audio compression, it is assumed that all H.320, H.323 and H.324 terminals have some form of echo control (cancellation or switching).
+
+However, when the H.323 terminal is on a call with a GSTN telephone, it is typically the case that the GSTN phone does not support echo control. Thus, the user of the H.323 terminal may hear acoustic echo return from the GSTN side. This acoustic echo return can be minimized by the use of a speakerphone with echo control, or the use of a handset or earphones. Manufacturers may add loss to the audio path when an H.323 terminal is connected to a GSTN POTS phone.
+
+Control of hybrid (2- to 4-wire) echo. The hybrid circuit provides an interface between 4-wire transmission systems and 2-wire terminals. For ISDN speech calls that are carried through the GSTN at 64 kbit/s, echo cancellation is not required. For 64 kbit/s data calls, echo cancellation is not permitted.
+
+In the case of a decomposed gateway interfacing to an SS7 network, indications of the provision of echo cancellation are carried in the ISUP signalling message. The Echo Control Logic (Rec. ITU-T Q.115.1) in the H.323 media gateway controller (MGC) taking into account the signalling information will request to either enable or disable the echo cancellation function at the media gateway (MG).
+
+For voiceband data calls (modem calls) tone disabling of echo cancellation is provided by the modems by in-band tones.
+
+# Annex A
+
+## RTP/RTCP
+
+(This annex forms an integral part of this Recommendation.)
+
+RTP and RTCP are defined in IETF RFC 3550 [37]. IETF RFC 3550 is also referred to in Appendix I. Both this annex and Appendix I are being retained in this Recommendation for maintaining equivalence with earlier versions of this Recommendation.
+
+The reader should note that all references in [37] are to a bibliography, and are non-normative, with the exception of the reference to ISO/IEC 10646, which also appears in the references clause of this Recommendation.
+
+Readers should also note that the terminology used in [37] differs somewhat from that used in Rec. ITU-T H.323 and in this Recommendation according to Table A.1.
+
+**Table A.1 – Terminology correspondence**
+
+| H.323 and H.225.0 term | [37] (RTP/RTCP) term |
+|------------------------------|---------------------------|
+| media stream | data |
+| transport address | transport address |
+| packet-based network address | network address |
+| TSAP identifier | port |
+| Annex A | specification or document |
+| shall | must |
+| should | should |
+
+It should be further noted that "translators" and "mixers" are not part of the H.323 system. H.323 endpoints such as gateways and MCUs have some of the characteristics of translators and mixers, so this text has been retained as a guide to the implementer. However, support for translators and mixers is not part of H.323, and these clauses shall be considered informative.
+
+# **Annex B**
+
+## **RTP profile**
+
+(This annex forms an integral part of this Recommendation.)
+
+RTP Profile is defined in IETF RFC 3551 [38]. IETF RFC 3551 is also referred to in Appendix II. Both this annex and Appendix II are being retained in this Recommendation for maintaining equivalence with earlier versions of this Recommendation.
+
+See the introduction to Annex A; all the warnings mentioned there apply to this annex as well.
+
+# Annex C
+
+## **RTP payload format for H.261 video streams**
+
+(This annex forms an integral part of this Recommendation.)
+
+RTP Payload format for H.261 video streams is defined in IETF RFC 4587 [39]. IETF RFC 4587 is also referred to in Appendix III. Both this annex and Appendix III are being retained in this Recommendation for maintaining equivalence with earlier versions of this Recommendation.
+
+See the introduction to Annex A; all the warnings mentioned there apply to this annex as well.
+
+# Annex D
+
+## RTP payload format for H.261A video streams
+
+(This annex forms an integral part of this Recommendation.)
+
+## D.1 Introduction
+
+To facilitate interfacing H.323 video streams to the SCN via gateways, Rec. ITU-T H.323 defines a modified form of the RTP H.261 video payload. This eases buffer management and interoperability with remote SCN codecs. Support of the H.261A payload type is signalled using H.245 capability sets and in the **openLogicalChannel** message using RTP dynamic payload types.
+
+## D.2 H.261A RTP packetization
+
+This version is an extension of the version described in Annex C except that an additional 32-bit word is appended to the H.261 header. The procedures that are described in Annex C also apply to this annex.
+
+The H.261A data will follow the RTP header, as in:
+
+
+
+The diagram illustrates the structure of an RTP packet. It is divided into four 32-bit words, labeled 0, 1, 2, and 3 at the top. Each word contains 8 bytes, numbered 0 through 7. The first word (0) contains the RTP header. The second word (1) contains the H.261A header. The third word (2) and the fourth word (3) contain the H.261 stream payload. Vertical ellipses on the left and right sides of the diagram indicate that the packet can contain multiple such words. The label H.225.0\_FD.2A is located at the bottom right.
+
+Diagram of an RTP packet structure showing the RTP header, H.261A header, and H.261 stream payload across four 32-bit words.
+
+The H.261A header is defined as:
+
+
+
+The diagram shows the structure of the H.261A header. It consists of four 32-bit words, labeled 0, 1, 2, and 3 at the top. Each word contains 8 bytes, numbered 0 through 7. The first word (0) contains the H.261 header. The second word (1) contains the Last GOB Number (LGOBN) in the first 4 bytes, Reserved (Res) in the next 4 bytes, and the start of the Byte count in the third word (2). The third word (2) contains the remaining 24 bits of the Byte count. The fourth word (3) contains the start of the H.261 stream payload. Vertical ellipses on the left and right sides of the diagram indicate that the packet can contain multiple such words. The label H.225.0\_FD.2B is located at the bottom right.
+
+Diagram of the H.261A header structure, showing the H.261 header, LGOBN, Res, and Byte count fields.
+
+The fields in the H.261A header have the following meanings:
+
+*H.261 header*: 32 bits – As described in Annex C.
+
+*Last GOB Number (LGOBN)*: 4 bits – The GOB number of the last GOB in the RTP packet (max GOB number is 12 for Rec. ITU-T H.261).
+
+*Reserved (RES)*: Reserved.
+
+*Byte Count*: 24 bits – Indicates the cumulative number of octets that have been sent in the H.261 stream part of the RTP packets. If the last byte of a packet is only partially filled (as indicated
+
+by EBIT), then it is not counted in the cumulative byte count. This modulo $2^{24}$ byte count starts at a random value and is never reset.
+
+Both of the additional fields may be used when packets are lost or delivered out of order. The Byte Count can be used to determine how much stuffing will be needed in the SCN stream and facilitates buffer management. The last GOB number simplifies determining which GOBs have been lost due to packet loss.
+
+# Annex E
+
+## Video packetization
+
+(This annex forms an integral part of this Recommendation.)
+
+This annex describes RTP packetization details for video codecs. Table E.1 provides references to the definitions of video packetization formats that are not defined in this Recommendation. The remaining clauses of this annex define additional video packetization formats.
+
+**Table E.1 – Externally defined video packetization formats**
+
+| Encoding name | Packetization definition |
+|-----------------------------------|--------------------------------------------------------------------------|
+| ISO/IEC 14496-2
(MPEG-4 Video) | IETF RFC 3016, RTP Payload Format for MPEG-4 Audio/Visual Streams |
+
+## E.1 H.263
+
+An RTP payload format for H.263 video is specified in IETF RFC 2190 for H.263 video bitstreams that do not contain the new features adopted in version 2 (the 1998 version) of Rec. ITU-T H.263 (the features using PLUSPTYPE or annexes subsequent to Annex H/H.263). An additional payload format which supports the enhanced features of H.263 version 2 bitstreams will be specified at a later date. A legacy packetization format widely used in industry (not as specified in IETF RFC 2190) may only be used if the peer indicated support for this format in the capability exchange.
+
+RFC 3551 [38] section 5 describes the procedure to use to signal H.263 video streams.
+
+# Annex F
+
+## Audio and multiplexed packetization
+
+(This annex forms an integral part of this Recommendation.)
+
+This annex describes RTP packetization details for audio codecs. Table F.1 provides references to the definitions of audio packetization formats that are not defined by this Recommendation. Table F.2 provides references to the definitions of multiplexed packetization formats. The remaining clauses of this annex define additional audio packetization formats.
+
+**Table F.1 – Externally defined audio packetization formats**
+
+| Encoding name | Packetization definition |
+|--------------------------------|--------------------------------------------------------------------------|
+| ISO/IEC 14496-3 (MPEG-4 Audio) | IETF RFC 3016, RTP Payload Format for MPEG-4 Audio/Visual Streams |
+
+**Table F.2 – Externally defined multiplexed stream packetization formats**
+
+| Encoding name | Packetization definition |
+|------------------------------------------------------|----------------------------------------------------------------|
+| H.222 multiplexed streams (MPEG-2 transport streams) | IETF RFC 2250, RTP Payload Format for MPEG1/MPEG2 Video |
+
+## F.1 G.723.1
+
+This Recommendation specifies a coded representation that can be used for compressing the speech signal component of multimedia services at a very low bit rate. A G.723.1 frame can be one of three sizes: 24 bytes (6.3 kbit/s frame), 20 bytes (5.3 kbit/s frame), or 4 bytes. These 4-byte frames are called Silence Insertion Descriptor (SID) frames and are used to specify comfort noise parameters. There is no restriction on how 4-, 20-, and 24-byte frames are intermixed. The least significant two bits of the first octet in the frame determine the frame size and codec type (refer to Table 5/G.723.1 and Table 6/G.723.1 for more information on bit order). It is possible to switch between the two rates at any 30 ms frame boundary. Both (5.3 kbit/s and 6.4 kbit/s) rates are a mandatory part of the encoder and decoder. This coder was optimized to represent speech with near-toll quality at the above rates using a limited amount of complexity.
+
+All the bits of the encoded bit stream are transmitted always from the least significant bit towards the most significant bit. Note that this refers to the order of bits presented to the transport layer and not the order of bits on the wire.
+
+G.723.1 packetization conforms to Annex B except for the packetization interval (30 ms vs. 20 ms default):
+
+- 1) The first packet of a talkspurt (first packet after a silence period) is distinguished by setting the marker bit in the RTP data header.
+- 2) The sampling frequency (RTP clock frequency) is 8000 Hz.
+- 3) The packetization interval shall have a duration of 30 ms (one frame) as opposed to the default packetization of 20 ms.
+- 4) Codecs should be able to encode and decode several consecutive frames within a single packet.
+- 5) A receiver should accept packets representing between 0 and 180 ms of audio data as opposed to the default of 0 and 200 ms.
+
+## F.2 G.728
+
+#### 1) *Frame packetization:*
+
+A G.728 frame (4 vectors: V1-V4, 10 bits each, V1 is the older – first to be played) is organized into 5 bytes (B1-B5). Referring to the figure below, the principle for bit order is "maintenance of bit significance". Bits from older vectors are more significant than bit from newer vectors. The Most Significant Bit (MSB) of the frame goes to MSB of B1 and the Least Significant Bit (LSB) of the frame goes to LSB of B5. For clarification: more significant bits from each vector are put in more significant bits of B1-B5 (the more significant bits of lower number B).
+
+
+
+Diagram illustrating the mapping of 40 bits from 4 vectors (V1-V4) into 5 bytes (B1-B5) for a G.728 frame. The diagram shows 40 bit positions (0-39) arranged in 4 groups of 10 (V1, V2, V3, V4). These are mapped into 5 bytes (B1-B5), each containing 8 bits. The mapping is as follows: V1 bits 0-7 go to B1 bits 0-7; V1 bits 8-9 and V2 bits 0-5 go to B2 bits 0-7; V2 bits 6-9 and V3 bits 0-3 go to B3 bits 0-7; V3 bits 4-9 and V4 bits 0-2 go to B4 bits 0-7; V4 bits 3-9 go to B5 bits 0-7. The diagram uses arrows and dashed lines to show this bit-level mapping. A label 'Frame 1' is at the bottom. A small code 'H.225.0\_FF.2A' is in the bottom right corner.
+
+For example:
+
+B1 contains 8 most significant bits of V1, MSB of V1 is MSB of B1.
+
+B2 contains 2 least significant bits of V2, the more significant of the two in its MSB, and 6 most significant bits of V2, the most significant of them is more significant at B2 also.
+
+B1 shall be put first to the packet (most significant byte in RTP) and B5 last.
+
+#### 2) *Multi-frame packetization:*
+
+Ending a single frame in an RTP packet might cause considerable network overhead. Therefore, sending a multi-frame packet is allowed in the following manner:
+
+An RTP G.728 packet shall contain a whole number of frames.
+
+Older frames (to be played first) shall be put first into the RTP packet.
+
+The timestamp would reflect the capturing time of the first sample, in the first vector (V1) of the first frame (the oldest information in the packet).
+
+#### 3) The marker bit shall retain the same meaning assigned to it in this Recommendation.
+
+## F.3 G.729
+
+This Recommendation specifies a coded representation that can be used for compressing the speech signal component of multimedia services at a bit rate of 8 kbit/s. This coder was optimized to represent speech with toll or wireline quality at 8 kbit/s. This coder has an inherent robustness against random bit errors as well as against randomly and bursty erased frames. It represents speech with a high quality when operating in a noisy environment. A complexity-reduced version of the G.729 algorithm is specified in Annex A/G.729. A floating point version of these two algorithms is specified in Annex C/G.729. The speech coding algorithms in the main body of Rec. ITU-T G.729, in Annex A/G.729 and in Annex C/G.729 are fully interoperable with each other, so there is no need to further distinguish between them.
+
+A Voice Activity Detector (VAD) and Comfort Noise Generator (CNG) algorithm in Annex B/G.729 is recommended. This algorithm is applied to Annex F/G.729 (6.4 kbit/s with VAD/CNG), Annex G/G.729 (11.8 kbit/s with VAD/CNG), Annex B/G.729 (G.729 and Annex A/G.729 with VAD/CNG) and Annex I/G.729. A G.729 or Annex A/G.729 frame contains 10 octets; an Annex D/G.729 frame contains 8 octets; an Annex E/G.729 frame contains 15 octets; and the
+
+Annexes B/G.729, F/G.729 and G/G.729 comfort noise frame occupies 2 octets, as shown in Figure F.1.
+
+
+
+| | | | | | | | | | | | | | | | |
+|---|------|---|---|---|---|------|---|---|------|---|---|---|---|---|---|
+| 0 | | | | | | | | | | 1 | | | | | |
+| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 |
+| L | LSF1 | | | | | LSF2 | | | GAIN | | | | R | | |
+| S | | | | | | | | | | | | | | E | |
+| F | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 0 | 1 | 2 | 3 | S | |
+| 0 | | | | | | | | | | | | | | V | |
+
+RESV Reserved (zero) H.225.0\_FF.1
+
+**Figure F.1 – Annexes B/G.729, F/G.729 and G/G.729 CNG packetization format**
+
+The transmitted parameters of a G.729, Annex A/G.729 or Annex C/G.729 10-ms frame, consisting of 80 bits, are defined in Table 8/G.729. The mapping of these parameters is given in Figure F.2. Bits are numbered as Internet order, that is, the most significant bit is bit 0.
+
+
+
+| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+|---|----|---|---|---|---|---|---|----|---|---|---|----|---|---|---|----|---|---|---|---|---|---|---|---|----|---|---|---|---|---|---|
+| 0 | | | | | | | | 1 | | | | | | | | 2 | | | | | | | | 3 | | | | | | | |
+| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 |
+| L | L1 | | | | | | | L2 | | | | L3 | | | | P1 | | | | | | | | P | C1 | | | | | | |
+| 0 | | | | | | | | | | | | | | | | | | | | | 0 | | | | | | | | | | |
+| | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0 | 1 | 2 | 3 | 4 | |
+
+
+
+| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+|----|---|---|---|---|---|---|---|----|---|---|---|-----|---|---|-----|---|---|----|---|---|---|----|---|---|---|---|---|--|--|
+| C1 | | | | | | | | S1 | | | | GA1 | | | GB1 | | | P2 | | | | C2 | | | | | | | |
+| 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 0 | 1 | 2 | 3 | 0 | 1 | 2 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | | |
+
+
+
+| | | | | | | | | | | | | | | | |
+|----|---|---|---|---|----|---|---|---|-----|---|---|-----|---|---|---|
+| C2 | | | | | S2 | | | | GA2 | | | GB2 | | | |
+| 8 | 9 | 0 | 1 | 2 | 0 | 1 | 2 | 3 | 0 | 1 | 2 | 0 | 1 | 2 | 3 |
+
+H.225.0\_FF.2
+
+**Figure F.2 – G.729, Annex A/G.729 and Annex C/G.729 packetization format**
+
+Annex D/G.729 defines a 6.4 kbit/s rate extension of G.729 for momentary reduction in channel capacity, e.g., to handle overload conditions. Annex E/G.729 provides an 11.8 kbit/s extension of G.729 for better performance with a wide range of input signals, such as speech with background noise and music. Additionally, Annex E/G.729 has two operating modes, backward and forward adaptive, which are signalled by the first two bits in the packet header.
+
+The bits of a G.729-6.4 frame are formatted as shown in Figure F.3 (see Table D.1/G.729). Bits are numbered in Internet order; that is, the most significant bit is bit 0. A total of 64 bits are used.
+
+
+
+| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+|----|----|---|---|----|---|-----|---|-----|---|----|---|---|----|----|---|---|---|----|---|----|---|-----|---|-----|----|---|---|---|---|---|---|--|--|--|--|--|--|
+| 0 | | | | | | | | 1 | | | | | | | | | | 2 | | | | | | | | | | 3 | | | | | | | | | |
+| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | | | | | | |
+| L | L1 | | | | | | | L2 | | | | | L3 | | | | | P1 | | | | | | | C1 | | | | | | | | | | | | |
+| 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0 | 1 | 2 | 3 | 4 | 5 | | | | | | |
+| 3 | | | | | | | | 4 | | | | | | | | | | 5 | | | | | | | | | | 6 | | | | | | | | | |
+| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | | | | | | |
+| C1 | | | | S1 | | GA1 | | GB1 | | P2 | | | | C2 | | | | | | S2 | | GA2 | | GB2 | | | | | | | | | | | | | |
+| 6 | 7 | 8 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 2 | 0 | 1 | 2 | 3 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 2 | | | | | | |
+
+H.225.0\_FF.3
+
+**Figure F.3 – G.729-6.4 packetization format**
+
+The net bit rate for the Annex E/G.729 algorithm is 11.8 kbit/s and a total of 118 bits are used. The bits of a G.729-12 frame are formatted as shown in Figures F.4 and F.5 (see Table E.1/G.729). Figures F.4 and F.5 describe the fields for the forward adaptive mode and the backward adaptive mode respectively for the Annex E/G.729 algorithm. The two least significant bits are included as "don't care" bits and are used to complete an integer number of octets for the frame.
+
+
+
+| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+|------|---|---|----|------|---|---|---|------|---|------|---|------|----|---|---|------|---|----|---|------|---|---|---|----|---|------|---|---|---|---|---|--|--|--|--|--|--|
+| 0 | | | | | | | | 1 | | | | | | | | | | 2 | | | | | | | | | | 3 | | | | | | | | | |
+| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | | | | | | |
+| 0 | 0 | L | L1 | | | | | L2 | | | | | L3 | | | | | P1 | | | | | | | P | C0_1 | | | | | | | | | | | |
+| 0 | 0 | 0 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0 | 0 | 0 | 1 | 2 | | | | | | | |
+| 3 | | | | | | | | 4 | | | | | | | | | | 5 | | | | | | | | | | 6 | | | | | | | | | |
+| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | | | | | | |
+| C1_1 | | | | C2_1 | | | | | | C3_1 | | | | | | C4_1 | | | | | | | | | | | | | | | | | | | | | |
+| 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | | | | | | |
+| 6 | | | | | | | | 7 | | | | | | | | | | 8 | | | | | | | | | | 9 | | | | | | | | | |
+| 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | | | | | | |
+| GA1 | | | | GB1 | | | | P2 | | | | C0_2 | | | | C1_2 | | | | C2_2 | | | | | | | | | | | | | | | | | |
+| 0 | 1 | 2 | 0 | 1 | 2 | 3 | 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 5 | | | | | | |
+| 9 | | | | | | | | 1 | | | | | | | | | | 1 | | | | | | | | | | 1 | | | | | | | | | |
+| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | | | | | | |
+| C3_2 | | | | | | | | C4_2 | | | | | | | | GA2 | | | | GB2 | | | | DC | | | | | | | | | | | | | |
+| 6 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 0 | 1 | | | | | | | | | | | | | | |
+
+H.225.0\_FF.4
+
+**Figure F.4 – G.729-12 packetization format for the forward adaptive mode**
+
+
+
+H.225.0\_FF.5
+
+Diagram showing the G.729-12 packetization format for the backward adaptive mode. It consists of four rows of packets, each containing multiple frames. The first row shows packets 0, 1, 2, and 3. Packet 0 contains frame P1. Packet 1 contains frame P0 and frame C0\_1. Packet 2 contains frame C1\_1. Packet 3 contains frame P2. The second row shows packets 3, 4, 5, and 6. Packet 3 contains frame C2\_1. Packet 4 contains frame C3\_1. Packet 5 contains frame C4\_1. Packet 6 contains frame GA1, frame GB1, and frame P2. The third row shows packets 6, 7, 8, and 9. Packet 6 contains frame C0\_2. Packet 7 contains frame C1\_2. Packet 8 contains frame C2\_2. Packet 9 contains frame C3\_2. The fourth row shows packets 9, 1, 1, 1, 1, 1, 1, 1, 1, 1. Packet 9 contains frame C3\_2. Packet 1 contains frame C4\_2. Packet 1 contains frame GA2. Packet 1 contains frame GB2. Packet 1 contains frame DC. The diagram also includes frame indices (0-9) and bit indices (0-7) for each frame.
+
+**Figure F.5 – G.729-12 packetization format for the backward adaptive mode**
+
+An RTP packet may consist of zero or more G.729 or Annex A, C, D or E/G.729 frames, followed by zero or one Annex B/G.729 payloads. The presence of a comfort noise frame can be deduced from the length of the RTP payload.
+
+- 1) The first packet of a talkspurt (first packet after a silence period) is distinguished by setting the marker bit in the RTP header.
+- 2) The sampling frequency (RTP clock frequency) is 8000 Hz.
+- 3) The default packetization interval should have a duration of 20 ms. While 20 ms is the strongly recommended value, in some situations it may be desirable to send 10-ms packets. For example, consider a transition from voiced to unvoiced in the first 10 ms of the packet. If a 20-ms packetization interval were mandatory, then the transmitter would need to wait until speech is active again.
+- 4) Codecs should be able to encode and decode several consecutive frames within a single packet.
+- 5) A receiver should accept packets representing between 0 and 200 ms of audio data.
+
+## F.4 Silence suppression
+
+This Recommendation states that coders may send silence frames before the stop transmission during a silence period. Since not all audio coders have in-band signalling for silence, a general mechanism at the RTP level should be defined. An example might be sending an empty RTP packet. This is for further study.
+
+## F.5 GSM codecs
+
+GSM speech codecs include: GSM full rate (FR) [F-1], GSM half rate (HR) [F-2] and GSM enhanced full rate (EFR) [F-3]. Each codec produces three different speech traffic frame types, i.e.:
+
+- Speech frames – Contains actual speech data;
+- Idle frames – Indicates no voice activity, all data bits are set to one;
+- Silence Descriptor (SID) frames – Indicates start of a silence period, data describes background noise. SID frames are marked inband with a fixed bit pattern.
+
+### F.5.1 Frame packetization
+
+With all three GSM codecs speech traffic frame bits are packed into RTP frame most significant bit (MSB) first. One RTP packet may contain one or more GSM speech traffic frames. All endpoints shall be capable of receiving and identifying an idle frame. An idle GSM speech frame is filled with binary 1s.
+
+If an endpoint sets the `comfortNoise` parameter to `TRUE`, it shall send SID frames as specified in the comfort noise and discontinuous transmission (DTX) specifications of a particular GSM codec. During a silent period, a new SID frame, with (possibly) updated noise information, is sent periodically, that is every 24th frame. After a silence period, the marker bit shall be set to 1 in RTP header.
+
+#### Full-rate codec
+
+GSM full-rate codec sends a 260-bit (32.5 octets) frame every 20 ms. This information shall be packed into RTP frame with a four-bit prefix (0xD or 1101 binary), called signature. Therefore GSM FR payload within RTP shall consist of 33 octets. SID (Silence Descriptor) frame is marked inband by a SID codeword stored into codec parameters as described in reference [F-4] below. The payload size of a SID frame is 33 octets. The signature of a full rate SID frame shall be same as that of a full rate speech frame (0xD). RTP coded FR speech shall have a bit rate of 13 200 bit/s, not including the packetization overhead.
+
+#### Half-rate codec
+
+GSM half-rate codec sends a 112-bit (14 octets) frame every 20 ms. This information shall be packed into an RTP header without any prefixes/signatures. SID frame is marked inband by a SID codeword stored into codec parameters as described in reference [F-4] below. The payload size of a SID frame is 14 octets. RTP coded speech shall have a bit rate of 5600 bit/s, not including the packetization overhead.
+
+#### Enhanced full rate
+
+GSM EFR codec sends a 244-bit (30.5 octets) frame every 20 ms. This information shall be packed into an RTP header with a four-bit prefix (0xC or 1100 binary), called "signature". Therefore, GSM EFR payload within RTP shall consist of 31 octets. SID frame is marked inband by a SID codeword stored into codec parameters as described in reference [F-4] below. The payload size of a SID frame is 31 octets. RTP-coded EFR speech shall have a bit rate of 12 400 bit/s, not including the packetization overhead.
+
+### F.5.2 Informative references
+
+- [F-1] GSM 06.10 (ETS 300 961), *Digital cellular telecommunications system; Full rate speech; Transcoding*.
+- [F-2] GSM 06.60 (ETS 300 726), *Digital cellular telecommunications system; Enhanced Full Rate (EFR) speech transcoding*.
+- [F-3] GSM 06.20 (ETS 300 969), *Digital cellular telecommunications system; Half rate speech; Half rate speech transcoding*.
+
+- [F-4] ETSI, TIPHONE 03 001 (TS 101 318), *Telecommunications and Internet Protocol Harmonization Over Networks (TIPHON); Using GSM speech codecs within Recommendation ITU-T H.323*.
+- [F-5] GSM 06.31 (ETS 300 964), *Digital cellular telecommunications system; Full rate speech; Discontinuous Transmission (DTX) for full rate speech traffic channels*.
+- [F-6] GSM 06.81 (ETS 300 729), *Digital cellular telecommunications system; Discontinuous Transmission (DTX) for Enhanced Full Rate (EFR) speech traffic channels*.
+- [F-7] GSM 06.41 (ETS 300 972), *Digital cellular telecommunications system; Half rate speech; Discontinuous Transmission (DTX) for half rate speech traffic channels*.
+- [F-8] GSM 06.12 (ETS 300 963), *Digital cellular telecommunications system; Full rate speech; Comfort noise aspect for full rate speech traffic channels*.
+- [F-9] GSM 06.62 (ETS 300 728), *Digital cellular telecommunications system; Comfort noise aspects for Enhanced Full Rate (EFR) speech traffic channels*.
+- [F-10] GSM 06.22 (ETS 300 971), *Digital cellular telecommunications system; Half rate speech; Comfort noise aspect for the half Rate speech traffic channels*.
+- [F-11] GSM 08.60 (ETS 300 737), *Digital cellular telecommunications system; (Phase 2+) (GSM); In-band control of remote transcoders and rate adaptors for Enhanced Full Rate (EFR) and full rate traffic channels*.
+
+## F.6 G.722.1
+
+The speech coding algorithm defined in Rec. ITU-T G.722.1 encodes wideband audio signals with a 50 Hz to 7 kHz bandwidth into one of two bit rates, 24 kbit/s or 32 kbit/s, using 20 ms frames and a sampling rate clock of 16 kHz. The bit rate can be changed at any 20-ms frame boundary, although rate change notification is not provided inband with the bitstream. When operating at 24 kbit/s, 480 bits (60 octets) are produced per frame, and when operating at 32 kbit/s, 640 bits (80 octets) are produced per frame. Thus, both bit rates allow for octet alignment without the need for padding bits.
+
+The number of bits in a frame is fixed. However, within this fixed frame, G.722.1 uses variable length coding (e.g., Huffman coding) to represent most of the encoded parameters. Except for the categorization control bits parameter, all other bit stream parameters are represented by variable length codes, a variable number of bits. Figure F.6 illustrates this point and the order of the transmitted parameter fields. All variable length codes and the categorization control bits are transmitted in order from the leftmost (most significant (MSB)) bit to the rightmost (least significant (LSB)) bit. The use of Huffman coding means that it is not possible to identify the various coder parameters/fields contained within the bit stream without first completely decoding the entire frame.
+
+
+
+| | | |
+|------------------------------------------------------------|-----------------------------------|---------------------------------------------------------|
+| First bit transmitted
amplitude
envelope
bits | categorization
control
bits | Last bit transmitted
MLT
coefficients
bits |
+|------------------------------------------------------------|-----------------------------------|---------------------------------------------------------|
+
+← variable number of bits →
+← 4 bits →
+← variable number of bits →
+
+Diagram of G.722.1 major bitstream fields and their order of transmission. It shows three fields: amplitude envelope bits, categorization control bits, and MLT coefficients bits. The first and third fields have a variable number of bits, while the middle field has 4 bits. Arrows indicate the transmission order from left to right.
+
+**Figure F.6 – G.722.1 major bitstream fields and their order of transmission**
+
+Figure F.7 illustrates how the G.722.1 bit stream maps into an octet-aligned RTP payload. The encoder bit stream is split into a sequence of octets (60 or 80 depending on the bit rate), and each octet is in turn mapped into an RTP octet.
+
+An RTP packet shall only contain G.722.1 frames of the same bit rate. The RTP timestamp shall be in units of 1/16 000th of a second.
+
+
+
+Diagram showing the mapping of G.722.1 encoded bitstream to RTP. A long horizontal bar represents the 'Sequence of bits (480 or 640) generated by the G.722.1 encoder for transmission'. Above the left end is 'First bit transmitted' and above the right end is 'Last bit transmitted'. Below this bar, vertical lines divide the sequence into segments. At the bottom, these segments are mapped to RTP octets. The first three are labeled 'RTP octet 1', 'RTP octet 2', and 'RTP octet 3', each containing 'MSB ... LSB'. An ellipsis indicates more octets. The final octet is labeled 'RTP octet 60 or 80' and also contains 'MSB ... LSB'.
+
+**Figure F.7 – G.722.1 encoded bitstream mapping to RTP**
+
+## F.7 TIA/EIA-136 ACELP
+
+This vocoder is optimized for TIA/EIA-136 TDMA Digital Cellular and PCS systems. It includes voice activity detection (VAD), lost frame substitution and comfort noise generation (CNG) capabilities. The sampling rate is 8000 Hz and the compressed voice frame length is 20 ms. The vocoder produces a 148-bit speech-vector, s0 through s147, for each 20-ms voice frame. s0 is the most significant bit (MSB). Please refer to section 4 of reference [F.7-1] for more details.
+
+### F.7.1 TIA/EIA-136 ACELP frame format
+
+A speech indicator flag bit, SP, shall be generated by the vocoder and set to "1" to indicate a speech frame, or "0" to indicate a silence (comfort-noise) frame. This SP flag bit shall be inserted in bit-position 148. Bit position 149 is the BFI\_CN (bad frame or comfort noise indicator) and bit position 150 is the CNU flag (comfort noise update). Bit position 151 shall always be set to 0.
+
+The logical combinations of these three flags are described below.
+
+The 152-bit (19-octet) transmit frame is depicted in Figure F.8. Octets are formed starting with the LSB and moving towards the MSB. The LSB is transmitted first.
+
+| bit 0 (MSB) | 1 ... 146 | 147 | 148 | 149 | 150 | bit 151 (LSB) |
+|-----------------------------|-------------|------|------|--------|------|---------------|
+| s0 | s1 ... s146 | S147 | SP | BFI_CN | CNU | Always 0 |
+| Speech vector/Comfort noise | | | Flag | Flag | Flag | Padding bit |
+
+**Figure F.8 – ACELP vocoder voice frame**
+
+### F.7.2 TIA/EIA-136 ACELP silence suppression mode
+
+In silence mode, the vocoder generates an ambient noise frame representation. This frame is used by the vocoder at the receiving end to regenerate the ambient noise of the transmitting end. The CN (comfort noise) parameters vector consists of only 38 bits, to which the three flag bits and seven padding bits (consisting of all zeros) are appended to form a six-octet frame.
+
+The 48-bit (6-octet) CN frame is depicted in Figure F.9. Octets are formed starting with the LSB and moving towards the MSB. The LSB is transmitted first.
+
+| bit 0 (MSB) | 1 ... 37 | 38 | 39 | 40 | 41 | 41-47 (LSB) |
+|-----------------------------|--------------|------|------|--------|------|-------------|
+| Cn0 | cn1 ... cn37 | S147 | SP | BFI_CN | CNU | Always 0 |
+| Speech vector/Comfort noise | | | Flag | Flag | Flag | Padding bit |
+
+Key:
+
+SP Speech indicator
+
+BFI\_CN Bad Frame Indicator/Comfort Noise Indicator
+
+CNU Comfort Noise Update
+
+The logical values of these flags and their meanings are defined below:
+
+SP: 1 = speech frame; 0 = non-speech (comfort noise frame)
+
+BFI\_CN:
+
+If SP = 1
+
+And BFI\_CN = 1
+
+Then, this is a bad-voice frame
+
+Otherwise ( BFI\_CN = 0), this is a good voice-frame
+
+If SP = 0
+
+And BFI\_CN = 1
+
+Then this is a bad comfort-noise frame
+
+Otherwise ( BFI\_CN = 0), this is a good comfort-noise frame
+
+CN:
+
+If SP = 0
+
+And BFI\_CN = 0
+
+And CN = 1
+
+Then, this is an update comfort noise frame
+
+Otherwise it is a non-valid CN frame
+
+NOTE – A wireless mobile vocoder shall set the BFI\_CN to 0. The receiving base station may set this flag to 1 if it is unable to correct errors introduced by the radio channel.
+
+**Figure F.9 – ACELP vocoder silence suppression frame**
+
+### F.7.3 TIA/EIA-136 ACELP packetization
+
+The packetization of IS-ACELP shall be in conformance with Annex B.
+
+- 1) The packetization duration shall be a whole multiple of 20 ms.
+- 2) A packet may consist of one or more frames each.
+- 3) Codecs should be able to encode and decode several consecutive frames within a single packet.
+- 4) All the bits of the encoded bit stream are transmitted always from the least significant bit towards the most significant bit.
+
+### F.7.4 TIA/EIA-136 ACELP referenced standard
+
+[F.7-1] TIA/EIA-136, part 410, *TDMA Cellular/PCS – Radio Interface, Enhanced Full Rate Voice Codec (ACELP)*. Formerly IS-641.
+
+## F.8 TIA/EIA-136 US1
+
+This vocoder is optimized for TIA/EIA-136 TDMA Digital Cellular and PCS systems. Reference [F.8-1] provides a detailed description of the vocoder.
+
+### F.8.1 TIA/EIA-136 US1 frame format
+
+The sampling rate is 8000 Hz and the compressed voice frame-length is 20 ms. The vocoder produces 244 ordered bits per voice frame. Three flag bits, BFI, SID and TAF, are added to the speech vector. One padding bit (in bit position 247) is added to form a whole number of octets (31). The last bit is referred to as the least significant bit (LSB). This vocoder also supports DTX (discontinuous transmission) silence mode.
+
+The transmit voice frame structure is shown in Figure F.10.
+
+| MSB – bit 0 | 1 ... 243 | 244 | 245 | 246 | 247 (LSB) |
+|---------------|-------------|------|------|------|-------------|
+| s0 | s1 ... s243 | BFI | SID | TAF | Always 0 |
+| Speech vector | | Flag | Flag | Flag | Padding bit |
+
+**Figure F.10 – US1 vocoder voice frame**
+
+### F.8.2 TIA/EIA-136 US1 silence mode frames (TX-DTX)
+
+In silence mode, special frames called SID (for silence descriptor) frames are transmitted in a schedule specified in section 1.3 of reference [F.8-1].
+
+A SID frame contains the same number of bits as normal speech frames, but the bit-map is different. See reference [F.8-1] for details. The SID frame contains comfort noise (CN) parameters and a 95-bit SID code-word. The SID code-word is all "0"s. Other unused bits in the 244-bit vector payload are also set to "0". (See Figure F.11.)
+
+| MSB – bit 0 | 1 ... 243 | 244 | 245 | 246 | 247 (LSB) |
+|----------------------|---------------|------|------|------|-------------|
+| cn0 | cn1 ... cn243 | BFI | SID | TAF | Always 0 |
+| Comfort noise vector | | Flag | Flag | Flag | Padding bit |
+
+**Figure F.11 – Base station to landline,
+comfort noise transmit frame (US1)**
+
+The logic of the BFI, SID and TAF flags is similar to the equivalent flags of the TIA/EIA-136 ACELP vocoder, described in F.7.
+
+### F.8.3 TIA/EIA-136 US1 packetization
+
+The packetization shall be in conformance with Annex B.
+
+- 1) The packetization duration shall be a whole multiple of 20 ms.
+- 2) A packet may consist of zero, one or more frames each.
+- 3) Codecs should be able to encode and decode several consecutive frames within a single packet.
+- 4) All the bits of the encoded bit stream are transmitted always from the least significant bit towards the most significant bit.
+
+### F.8.4 TIA/EIA-136 US1 reference standard
+
+[F.8-1] TIA/EIA-136, part 430, *TDMA Cellular/PCS – Radio Interface, US1 Full Rate Voice Codec*.
+
+## F.9 IS-127 EVRC
+
+### F.9.1 IS-127 EVRC description
+
+#### F.9.1.1 General
+
+The TIA/EIA IS-127 Enhanced Variable Rate Codec (EVRC) is optimized for TIA/EIA IS-95 CDMA Digital Cellular and PCS systems. The sampling rate is 8000 samples per second and the voice frame length is 20 ms (that is, 160 samples per frame). EVRC encodes active speech at full rate or half rate and background noise (no speech present) at one eighth rate. It delivers toll quality speech at very low average bit rate. A detailed description of the EVRC codec can be found in the publicly available TIA/EIA IS-127 standard [F.9-1].
+
+#### F.9.1.2 Compression rates
+
+The EVRC coder compresses its input signal using one of three rates: full-rate (rate 1), half-rate (rate 1/2), and eighth-rate (rate 1/8). Full- and half-rates are used primarily for encoding active speech while the eighth-rate is used for encoding background noise (silence mode). All frames are 20 ms long, regardless of encoding rate.
+
+#### F.9.1.3 Blanked packets
+
+To allow for in-band signalling or for secondary traffic (see section 1.4.1 of [F.9-1]), voice frames are blanked. The generated voice packet is simply not used and the decoder treats it as an erased packet. See [F.9-1] for details.
+
+#### F.9.1.4 Half rate
+
+Half-rate encoding is used, instead of the normal full-rate, when a signalling message has to be added to the traffic channel.
+
+#### F.9.1.5 Null 1/8 rate traffic channel data
+
+A rate one-eighth packet in which all bits are set to "1" is considered null Traffic Channel data. Such packets are declared "erased packets" and are handled as described in section 5 of [F.9-1].
+
+Rate information and channel coding bits are added to the vocoder output bits for transport over the air, in accordance with TIA/EIA IS-95.
+
+The packet types, number of bits-per-packet, raw vocoder bit-rates and the aggregate rates (vocoder bits plus additional bits) are shown in Table F.3.
+
+**Table F.3 – EVRC packets and bit rates**
+
+| Packet type
(3 bits) | Rate | Bits/packet | Vocoder bit
rate | Aggregate rate |
+|-------------------------|-----------------------------------------|-------------|---------------------|----------------|
+| 1 | Full | 171 | 8.55 | 9.6 |
+| 2 | Half | 80 | 4.0 | 4.8 |
+| 3 (Note) | Fourth (service option-1 compatibility) | 40 | | |
+| 4 | Eighth | 16 | 0.8 | 1.2 |
+| 5 | Blanked | 0 | – | – |
+| 6 | Full-rate with errors | 171 | – | – |
+| 7 | Bad frame (erasure) | 0 | – | – |
+
+NOTE – Type 3 packets may only be generated by older IS-96 encoders. The IS-127 decoder shall treat these packets as erased-packets.
+
+### F.9.2 IS-127 EVRC packetization
+
+#### F.9.2.1 General requirements
+
+The transmission packetization shall be in conformance with Annex B.
+
+- 1) The packetization duration shall be a whole multiple of 20 ms.
+- 2) A transmission packet may consist of zero, one, or more frames.
+- 3) Codecs should be able to encode and decode several consecutive frames within a single transmission packet.
+- 4) All the bits of the encoded bit stream shall always be transmitted from the least significant bit towards the most significant bit.
+
+#### F.9.2.2 Frame formats
+
+##### F.9.2.2.1 Full rate – F1
+
+The EVRC full-rate, 176-bit (22-octet) transmit frame (F1), is depicted in Figure F.12. Octets are formed starting with the LSB and moving towards the MSB. The LSB (bit 175) is transmitted first.
+
+| Bit 0 (MSB) | Bits 1 through 170 | Bits 171 through 175 (LSB) |
+|---------------|--------------------|----------------------------|
+| s0 | s1 ... s170 | Always 0 |
+| Speech vector | | Padding bits |
+
+Figure F.12 – F1, Full-rate EVRC frame
+
+##### F.9.2.2.2 Half rate – F2
+
+The EVRC half-rate, 80-bit (10-octet) transmit frame (F2) is depicted in Figure F.13. Octets are formed starting with the LSB and moving towards the MSB. The LSB (bit 79) is transmitted first.
+
+| Bit 0 (MSB) | Bits 1 through 79 (LSB) |
+|---------------|-------------------------|
+| s0 | s1 ... s79 |
+| Speech vector | |
+
+Figure F.13 – F2, Half-rate EVRC frame
+
+##### F.9.2.2.3 Eighth Rate – F3
+
+The EVRC eighth-rate, 16-bit (2-octets) transmit frame (F3) is depicted in Figure F.14 below. Octets are formed starting with the LSB and moving towards the MSB. The LSB (bit 15) is transmitted first.
+
+| Bit 0 (MSB) | Bits 1 through 15 (LSB) |
+|---------------|-------------------------|
+| s0 | s1 ... s15 |
+| Speech vector | |
+
+Figure F.14 – F3, Eighth-rate EVRC frame
+
+### F.9.3 IS-127 EVRC reference standards
+
+[F.9-1] TIA/EIA IS-127 (1997), *Enhanced Variable Rate Codec, Speech Service Option 3 for Wideband Spread Spectrum Digital Systems*.
+
+[F.9-2] TIA/EIA IS-95-B (1999), *Mobile Station-Base Station Compatibility Standard for Wideband Spread Spectrum Cellular Systems*.
+
+## F.10 H.223 MUX-PDU packetization
+
+### F.10.1 Introduction
+
+The H.223 MUX-PDU is used by a packet-oriented multiplexing protocol designed for the exchange of one or more information streams between higher-layer entities such as data and control protocols and audio and video codecs, as defined in Rec. ITU-T H.223.
+
+Each information stream is represented by an H.245 unidirectional logical channel which is identified by a unique Logical Channel Number (LCN), an integer between 0 and 65535. LCN 0 is a permanent logical channel assigned to the H.245 control channel. All other logical channels are dynamically opened and closed by the transmitter using the H.245 OpenLogicalChannel and CloseLogicalChannel messages. All necessary attributes of the logical channel are specified in the OpenLogicalChannel message. For applications that require a reverse channel, a procedure for opening bidirectional logical channels is also defined in Rec. ITU-T H.245.
+
+The general structure of the multiplexer is shown in Figure 2/H.223. The multiplexer consists of two distinct layers: a Multiplex (MUX) layer and an Adaptation Layer (AL).
+
+Support of the H.223 payload type is signalled using H.245 capability sets and in the H.245 openLogicalChannel message using RTP dynamic payload types.
+
+### F.10.2 MUX-PDU packetization format
+
+The H.223 MUX-PDU specified by Figure 3/H.223 is carried as payload data within the RTP protocol. The order of bit transmission is specified in 3.2.2/H.223, and the field mapping convention is in 3.2.3/H.223.
+
+Though a MUX-PDU can occupy more than one RTP packet, a MUX-PDU shall start with the first octet of an RTP packet payload.
+
+Each RTP packet contains a timestamp that is derived from the sender's clock reference. The timestamp shall represent the target transmission time of the first byte of the H.223 MUX-PDU. The primary purpose of this timestamp is for the receiver to estimate and reduce any network-induced jitter, and to reproduce the H.223 bitstream with constant bit rate.
+
+The usage of the fields of the RTP header shall be as follows:
+
+- 1) An RTP dynamic payload type is used.
+- 2) The RTP timestamp represents the target transmission time for the first byte of the MUX-PDU in the packet over the H.223 constant bitrate channel. This timestamp is derived from the clock frequency with a default value of 90 kHz. The sender can change this frequency, and the selected value is signalled by the **BitRate** parameter in the **H223Capability** structure in H.245 messages. If a MUX-PDU occupies more than one RTP packet, the RTP timestamp shall be the same on successive packets. The timestamp should be calculated based on the number of bytes included in the transmitted MUX-PDUs.
+- 3) The marker bit of the RTP header is set to one in the last packet of a MUX-PDU, and otherwise must be zero. Thus, it is not necessary to wait for a following packet to detect the MUX-PDU boundary.
+
+The H.223 MUX-PDU follows the RTP header, as in:
+
+| | |
+|------------|--------------|
+| RTP header | MUX-PDU data |
+|------------|--------------|
+
+# Annex G
+
+## Communication between and within administrative domains
+
+(This annex forms an integral part of this Recommendation.)
+
+## G.1 Scope
+
+It is expected that the overall H.323 network will consist of smaller subsets of equipment organized in some manner, such as by Administrative Domain. Because of the potentially large numbers of H.323 elements that will exist in H.323 networks, an efficient protocol is needed to allow calls to be completed between Administrative Domains. The most elementary example is for a user (an endpoint) in one Administrative Domain to reach a user (an endpoint) serviced by another Administrative Domain. While the H.225.0 RAS protocol can address many of the needs for communication between Administrative Domains, it is neither complete nor efficient for this purpose.
+
+For the same reason, an efficient protocol also needs to be specified between H.323 elements within the same Administrative Domain.
+
+This annex describes methods to allow address resolution, access authorization and usage reporting between and within Administrative Domains in H.323 systems for the purpose of completing calls. H.323 elements that communicate using the procedures described in this annex are known as Peer Elements. An Administrative Domain exposes itself to other Administrative Domains through a type of logical element known as a Border Element. Border Elements are special cases of Peer Elements, at least one of whose peers belongs to another Administrative Domain. A Peer Element may be co-located with any other entity (for example, with a gatekeeper). This annex does not require an Administrative Domain to reveal details about its organization or architecture. This annex does not mandate a specific system architecture within an Administrative Domain. Furthermore, this annex supports the use of any call model (gatekeeper routed versus direct endpoint).
+
+The general procedure is for Peer Elements to exchange information regarding the addresses each can resolve. Border Elements exchange information regarding the addresses their Administrative Domains can resolve. Addresses can be specified in a general manner or in an increasingly specific manner. Additional information allows elements within an Administrative Domain to determine the most appropriate Administrative Domain to serve as the destination for the call. Border Elements may control access to their exposed addresses, and require reports on the usage made during calls to those addresses.
+
+Figure G.1 indicates a number of reference points representing signalling among various elements in an H.323 network. In Figure G.1, the Administrative Domains are part of a global packet network without edges. Note that Figure G.1 is not an explicit definition of an H.323 system architecture, but is meant to illustrate signalling reference points.
+
+
+
+The diagram illustrates the system reference points for H.323 elements across two administrative domains, A and B. At the top center is a box labeled 'Back end services'. Below it, two large circles represent 'Administrative domain A' (left) and 'Administrative domain B' (right). Inside each domain, there are 'Peer element' and 'Border element' boxes. In domain A, one 'Peer element' is connected to a 'Border element' (reference point B), and another 'Peer element' is connected to the first 'Peer element' (reference point C). The 'Border element' in domain A is connected to the 'Back end services' (reference point D) and to the 'Border element' in domain B (reference point A). The 'Border element' in domain B is also connected to the 'Back end services' (reference point D) and to a 'Peer element' (reference point B). The second 'Peer element' in domain B is connected to the first 'Peer element' (reference point C). Reference point D is also shown between the 'Peer element' and 'Back end services' in both domains. A small label 'H.225.0\_FG.1' is in the bottom right corner.
+
+Diagram of System reference points showing two administrative domains, A and B, connected by a central 'Back end services' node. Each domain contains 'Peer element' and 'Border element' nodes. Reference points are labeled: A (between border elements), B (between border and peer elements), C (between peer elements), and D (between elements and back-end services).
+
+**Figure G.1 – System reference points**
+
+Figure G.1 indicates the following reference points:
+
+A – Between Border Elements belonging to different Administrative Domains.
+
+B – Between Border Elements and Peer Elements within the same Domain.
+
+C – Between Peer Elements within the same Domain.
+
+D – Between H.323 elements and back-end services (not in the scope of this annex).
+
+Reference points A, B and C are the focus of this annex. As was mentioned earlier, a Peer Element may be co-located with some other H.323 element.
+
+Subclause G.7, Signalling examples, provides some signalling examples that may aid understanding.
+
+## G.2 Definitions
+
+This annex defines the following terms:
+
+**G.2.1 administrative domain:** An Administrative Domain is a collection of H.323 entities administered by one administrative entity. An Administrative Domain can consist of one or more gatekeepers (that is, one or more zones).
+
+**G.2.2 back-end services:** Back-End Services are functions such as user authentication or authorization, accounting, billing, rating/tariffing, etc. Back-end services and the protocol to exchange information with back-end services (if different than that in this annex) are not in the scope of this annex.
+
+**G.2.3 peer element:** As defined in Rec. ITU-T H.501, a Peer Element is a logical element that originates or terminates signalling messages defined in that Recommendation. This element may exist in combination with other H.323 elements, for example a combination of Peer Element, gatekeeper and gateway. An Administrative Domain may contain any number of Peer Elements.
+
+**G.2.4 border element:** A special case of the Peer Element, the Border Element is a functional element with at least one peer that is outside of its Administrative Domain. It supports public access into an Administrative Domain for the purposes of call completion or any other services that involve
+
+multimedia communication with other elements within the Administrative Domain. The Border Element controls the external view of the Administrative Domain.
+
+**G.2.5 clearing house:** A service (possibly in the form of a Border Element) that can provide resolution for all addresses (i.e., a type of aggregation point).
+
+## G.3 Abbreviations
+
+This annex uses the following abbreviations:
+
+| | |
+|-----|--------------------------|
+| AD | Administrative Domain |
+| BE | Border Element |
+| CH | Clearing House |
+| DST | Daylight Saving Time |
+| EP | Endpoint |
+| GK | Gatekeeper |
+| GW | Gateway |
+| PE | Peer Element |
+| SCN | Switched Circuit Network |
+| T | Terminal |
+
+## G.4 Normative references
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
+
+- Recommendation ITU-T H.323 (2006), *Packet-based multimedia communications systems*.
+- Recommendation ITU-T H.501 (2002), *Protocol for mobility management and intra/inter-domain communication in multimedia systems*.
+- Recommendation ITU-T H.460.2 (2001) *Number Portability Interworking between H.323 and SCN networks*.
+
+## G.5 System models
+
+This annex does not mandate a specific system architecture among Administrative Domains or within an Administrative Domain. The following subclauses provide some sample architectures, but these are to be viewed as illustrative rather than exhaustive.
+
+Remember that a Peer Element is a functional element that may exist together with any other H.323 element. Figure G.2 shows some examples of Peer Element implementations in combination with other elements.
+
+
+
+Figure G.2: Peer element placement examples. Three boxes show different internal structures: 1) Gatekeeper over Peer element; 2) Gateway over Peer element; 3) Gateway over Gatekeeper over Peer element. H.225.0\_FG.2
+
+**Figure G.2 – Peer element placement examples**
+
+In general, an Administrative Domain is viewed as consisting of any number of zones and any number of Peer Elements. The relationships among Administrative Domains, and among Peer Elements within an Administrative Domain, may be any of a variety of organizations. The following subclauses describe example relationships and organizations. These are described as between Administrative Domains, but the Hierarchical, Distributed/Full-Mesh and Aggregation examples could also be used to organize Peer Elements within an Administrative Domain.
+
+Note again that the following examples are illustrative, and not meant to exclude other possible organizations.
+
+### **G.5.1 Hierarchical**
+
+Figure G.3 shows a simple hierarchical arrangement among Administrative Domains. In such an arrangement, a Border Element in an Administrative Domain would consult a Border Element in an Administrative Domain higher in the hierarchy to resolve an address.
+
+
+
+Figure G.3: Sample hierarchical organization. A tree diagram showing Administrative domain A at the top, connected to domains B and C, which are further connected to domain D. H.225.0\_FG.3
+
+**Figure G.3 – Sample hierarchical organization**
+
+### **G.5.2 Distributed or full mesh**
+
+An entirely distributed or full mesh model is possible, as shown in Figure G.4. In this example, a Border Element in each Administrative Domain communicates with Border Elements in the other known Administrative Domains.
+
+
+
+The diagram shows four rectangular boxes labeled 'Administrative domain A', 'Administrative domain B', 'Administrative domain C', and 'Administrative domain D'. Domain A is at the top left, B is at the top right, C is at the bottom left, and D is at the bottom right. A horizontal line connects A and B. A horizontal line connects C and D. A vertical line connects A and C. A vertical line connects B and D. A diagonal line connects A and D. Another diagonal line connects B and C. The lines cross in the center, forming an 'X' shape. The label 'H.225.0\_FG.4' is located at the bottom right of the diagram.
+
+Figure G.4: Sample distributed organization diagram showing four administrative domains (A, B, C, D) connected in a mesh-like topology.
+
+**Figure G.4 – Sample distributed organization**
+
+### G.5.3 Clearing house
+
+An example of a Clearing House arrangement is shown in Figure G.5. In this arrangement, each Administrative Domain consults the Clearing House to resolve addresses. Note that since a Clearing House is an entity that exists outside of an Administrative Domain, the Peer Elements that communicate with it are by definition Border Elements.
+
+
+
+The diagram shows a central rectangular box at the top labeled 'Clearing house'. Below it are four rectangular boxes arranged horizontally, labeled 'Administrative domain A', 'Administrative domain B', 'Administrative domain C', and 'Administrative domain D'. Lines connect the 'Clearing house' box to each of the four administrative domain boxes. The label 'H.225.0\_FG.5' is located at the bottom right of the diagram.
+
+Figure G.5: Sample clearing house organization diagram showing a central Clearing house connected to four administrative domains (A, B, C, D).
+
+**Figure G.5 – Sample clearing house organization**
+
+### G.5.4 Aggregation point
+
+Figure G.6 shows an example of an aggregation point. In this example, Administrative Domain B is an aggregation point that can provide address resolution for both itself and Administrative Domains C and D. As an example, Administrative Domain B may forward resolution requests from Administrative Domain A to Administrative Domain C, or may instruct Administrative Domain A to contact Administrative Domain C directly for certain destinations. If Administrative Domain B forwards a request from Administrative Domain A to Administrative Domain C, Administrative Domain B may cache Administrative Domain C's response.
+
+
+
+```
+
+graph TD
+ A[Administrative domain A] --- B[Administrative domain B]
+ B --- C[Administrative domain C]
+ B --- D[Administrative domain D]
+ style H.225.0_FG.6 fill:none,stroke:none
+
+```
+
+Diagram illustrating an aggregation point example. It shows four boxes representing Administrative domains: 'Administrative domain A' at the top, 'Administrative domain B' below it, 'Administrative domain C' to the right of 'B', and 'Administrative domain D' below 'B'. Lines connect 'A' to 'B', 'B' to 'C', and 'B' to 'D'. A small label 'H.225.0\_FG.6' is located below the 'C' box.
+
+**Figure G.6 – Aggregation point example**
+
+### G.5.5 Overlapping Administrative Domains
+
+More than one Administrative Domain may be able to resolve a given address. For example, multiple Administrative Domains could contain gateways that can complete a call to a terminal in the GSTN. The selection of the appropriate destination Administrative Domain is the responsibility of the origination Administrative Domain. The algorithm employed to select the destination Administrative Domain is an implementation matter.
+
+## G.6 Operation
+
+### G.6.1 Use of H.501 messages
+
+Annex G/H.225.0 implementations shall make use of messages defined in Rec. ITU-T H.501. The entities exchanging H.501 messages are referred to in that Recommendation as Peer Elements.
+
+The following is a list of the H.501 messages used by this annex:
+
+ServiceRequest
+ ServiceConfirmation
+ ServiceRejection
+ ServiceRelease
+ DescriptorRequest
+ DescriptorConfirmation
+ DescriptorRejection
+ DescriptorIDRequest
+ DescriptorIDConfirmation
+ DescriptorIDRejection
+ DescriptorUpdate
+ DescriptorUpdateAck
+ AccessRequest
+ AccessConfirmation
+ AccessRejection
+ RequestInProgress
+
+NonStandardRequest
+NonStandardConfirmation
+NonStandardRejection
+UnknownMessageResponse
+UsageRequest
+UsageConfirmation
+UsageRejection
+UsageIndication
+UsageIndicationConfirmation
+UsageIndicationRejection
+ValidationRequest
+ValidationConfirmation
+ValidationRejection
+
+An Annex G/H.225.0 Peer Element receiving an H.501 request message not included in the above list shall respond with an UnknownMessageResponse message.
+
+Messages shall contain all fields defined by H.501 as mandatory, and may contain optional fields as required.
+
+### G.6.2 Address templates and descriptors
+
+A Peer Element obtains templates in these ways:
+
+- static configuration;
+- receiving descriptors from other Peer Elements in response to general requests;
+- receiving responses to specific queries.
+
+#### G.6.2.1 Static configuration
+
+A Peer Element will maintain templates for all the zones for which it is responsible. These templates may be explicitly provisioned in the Peer Element, or, in the case where the Peer Element co-exists with gatekeepers, these templates may be formed by summarizing information obtained from each gatekeeper with which the Peer Element communicates. The Peer Element may make this information available to other Peer Elements via responses to requests. An Administrative Domain may choose the level of detail to be provided by its Border Element(s). Examples include:
+
+- A Border Element that wishes to hide internal structure might provide one descriptor (with an indication to send an AccessRequest message) that describes its whole zone and refers to a gatekeeper that will handle all incoming calls.
+- A Border Element that does not care about revealing internal structure might provide a set of templates, each describing the gatekeeper for a zone within the domain.
+- A Border Element that is on a firewall (or one using the gatekeeper routed model) might provide a template for the whole zone with an indication to send a Setup message.
+- A Border Element with holes in its domain (because numbers have been moved to another Administrative Domain) provides templates marked **sendAccessRequest** that indicate which Border Element should be used to contact the other Administrative Domain.
+- A Clearing House Border Element (such as one that has a complete copy of, e.g., 44) might hold a template marked **sendAccessRequest** for each Administrative Domain within 44.
+
+Peer Elements need not keep a copy of the whole database. If a Peer Element does not hold a copy of the whole database, then it should contain statically configured **sendAccessRequest** templates indicating a Clearing House Border Element that will be used to resolve other queries.
+
+#### G.6.2.2 Receiving descriptors
+
+A Peer Element may request the statically configured templates from another Peer Element. The response to the request is decided by the Peer Element from which the templates are being requested. To request a transfer, the Peer Element sends a **DescriptorRequest** message specifying the descriptors it wishes to receive. If the owning Peer Element is able to transfer the descriptors, it responds with a **DescriptorConfirmation** message specifying all the templates.
+
+The requesting Peer Element may cache a copy of a template received in this manner until the template's lifetime expires, at which point the Peer Element should delete its copy of the template. If the owning Peer Element changes its statically configured templates before their lifetime has expired, then it shall send a **DescriptorUpdate** message to those Peer Elements of which it is aware. A Peer Element in receipt of a **DescriptorUpdate** message should delete, add, or change all indicated templates in its cache, or should request copies of the indicated descriptors from the owner.
+
+An intermediate Peer Element (a Peer Element between the originating and destination Administrative Domains, such as a Clearing House or aggregation point) may publish its own descriptors based on the descriptors it receives. For example, a Clearing House may indicate itself as the contact for an **AccessRequest** message even though the descriptors it received from another Border Element indicate that other Border Element as the contact.
+
+A Peer Element may indicate in a template the requirement for an originator to receive permission to place a call into an Administrative Domain. When the **callSpecific** flag is set in a template and the message type indicates that an **AccessRequest** message shall be sent, the originator shall provide per-call information in the **AccessRequest** message. If a Peer Element receives the **AccessRequest** message without per-call information and policy is to require per-call information, the Peer Element shall reply with an **AccessRejection** message with a **reason** of **needCallInformation**.
+
+A Peer Element may send a **DescriptorUpdate** message to other known Peer Elements, or the Peer Element may multicast a **DescriptorUpdate** message. If a **DescriptorUpdate** message is multicast, the Peer Element should consider the scope of the multicast. The **DescriptorUpdate** message may contain the descriptors that have changed. Alternatively, the **DescriptorUpdate** message may indicate only the identification of the descriptors that changed, allowing the recipient to query for the new information. If a large number of descriptors have changed, the information should be sent in multiple **DescriptorUpdate** messages so that a particular **DescriptorUpdate** message does not exceed the maximum transport packet size.
+
+#### G.6.2.3 Receiving responses to specific queries
+
+A Peer Element may send an **AccessRequest** message to another Peer Element asking for the resolution of a fully qualified or partially qualified address. The **AccessRequest** is usually sent over unreliable transport (e.g., UDP), although it may be sent over reliable transport (e.g., TCP).
+
+A Peer Element in receipt of an **AccessRequest** searches its database and responds with the most specific template for the destination. If multiple templates satisfy the request then the Peer Element shall return all matching templates. If the destination Peer Element is actually responsible for the alias address specified, the Peer Element will usually respond with a template indicating that either an **AccessRequest** or **Setup** message should be sent. If the destination Peer Element is a Clearing House, it will normally respond with a template indicating that the **AccessRequest** message should be sent.
+
+The destination Peer Element may also add templates to the response that it believes will be useful in the future. The addition of these templates should not make the response so large that the transport network will need to fragment it (e.g., 576 octets for IPv4 or 1200 octets for IPv6).
+
+For example, a Border Element that is tightly coupled with a firewall may provide two templates in its response to AccessRequest messages: one template with a short lifetime (of a few minutes or seconds) specifying the location to which a Setup message should be sent, and additional templates specifying that AccessRequest messages should be sent to the Border Element for other AliasAddresses within the Administrative Domain.
+
+A Peer Element may cache a template received in an AccessConfirmation until its lifetime expires.
+
+### G.6.3 Discovery of a Peer Element or set of Peer Elements
+
+#### G.6.3.1 Static
+
+A Peer Element may have an administered set of other Peer Elements that it may contact for address resolution. This administered set may be defined through a set of bilateral agreements, e.g., between an Administrative Domains and other Administrative Domains. The Administrative Domains may optionally utilize the service of a Clearing House.
+
+#### G.6.3.2 Dynamic
+
+On IP networks, ownership of Email-ID style addresses is defined by the DNS system. Thus, in the absence of any better information, a border element may do a DNS SRV record lookup on the part of the email-ID to the right of the "@" sign (for example, a DNS SRV lookup on **\_h2250-annex-g.\_udp.example.org** for **person@example.org**). The response to this lookup should be used to synthesize a **sendAccessRequest** template that can be used during the resolution process. Templates synthesized from DNS requests should not be cached for longer than the lifetime provided in the DNS response.
+
+#### G.6.3.3 Other methods
+
+The use of other methods to locate another Peer Element is for further study.
+
+### G.6.4 Resolution procedures
+
+#### G.6.4.1 Resolution procedure within Administrative Domains
+
+When a Peer Element is asked to resolve an AliasAddress (e.g., by a co-located gateway or gatekeeper), it finds matching templates in its cache.
+
+If more than one template matches, appropriate templates are selected and sorted according to local policy. For example, templates may be first sorted by wildcard length (more specific templates are better), then sorted by the type of protocol specified (**sendSetup** is better than **sendAccessRequest**).
+
+If multiple templates satisfy the request, then the Peer Element shall return all matching templates.
+
+If the template selection procedure produces no templates marked as **sendSetup**, then the Peer Element sends an AccessRequest message with a specific destination address to the address specified in the template. When it gets an answer from the Peer Element, it may store that in its cache and return to the requester the address to which to send the Setup message.
+
+#### G.6.4.2 Resolution procedure between Administrative Domains
+
+When a Border Element receives an AccessRequest message from a Border Element in another Administrative Domain, it searches through the templates in its cache and finds those that match the address in the query.
+
+If more than one template matches, the matching templates are first sorted by wildcard length (more specific templates are better). They are then sorted by the specified message type (**sendSetup** is better than **sendAccessRequest**). In each case all templates other than the most specific match are discarded.
+
+If the matched templates are marked as **sendAccessRequest** then the Border Element may choose to forward the AccessRequest message to the Border Element(s) specified in the template(s), or may choose to return the templates as they are. If the hop counter in the received AccessRequest message has reached zero, then the Border Element cannot forward the AccessRequest message to another Peer Element, but should instead return any matching templates. If the hop counter has reached zero and the Border Element has no information to provide in an AccessConfirmation, the Border Element should respond with an AccessRejection message indicating that the hop count was exceeded.
+
+At this point, the Border Element may use another Border Element (e.g., a Clearing House) to authorize the access request. To do that, it sends a ValidationRequest message, carrying access tokens supplied by the requesting Border Element in the AccessRequest rights. The recipient Border Element validates the tokens and returns ValidationConfirmation.
+
+The Border Element then returns an AccessConfirmation message containing the templates that it has found (these will have the same address and message type fields) and any other templates that it considers useful.
+
+If multiple templates satisfy the request, then the Border Element shall return all matching templates.
+
+If the access request contains specific call information, then the returned templates are valid only for the call requested. This is used when an Administrative Domain wishes to grant access on a per-call basis. In that case, the Administrative Domain may mandate the inclusion of call information per each AccessRequest sent to it. It does so by setting a flag in the templates that refer to it.
+
+### G.6.5 Usage information exchange
+
+Peer Elements may request other Peer Elements to provide them information about the usage of resources in specific calls. UsageIndication messages may be provided at any stage of the call. Also, multiple UsageIndication messages may be sent for the same call, each one with possibly more up-to-date information, or reporting on consecutive call segments or different media type usage. See G.6.5.1 for details.
+
+UsageIndication messages may be exchanged irrespective of whether the two Peer Elements have a service relationship between them. However the policy of a Peer Element may not allow such exchanges without a service relationship. In such a case, the Peer Element may reject the UsageIndication message, with a reject code of **noServiceRelationship**.
+
+UsageIndication requests shall be sent whenever a Peer Element requires them, either in the templates for which it serves as contact, or by indicating in the ServiceRequest message it sends during service relationship establishment with a remote Peer Element, or by so indicating in either of the UsageRequest, AccessRequest, ValidationRequest and ValidationConfirmation messages sent in the context of the call for which usage information is required.
+
+#### G.6.5.1 Multiple UsageIndications for the same call
+
+Multiple UsageIndications for the same call provide increasingly more up-to-date information on the same media types, or usage information about new media types created in the same call. Also, since Peer Elements may take over calls while being in progress, not all the UsageIndications necessarily originate from the same Peer Element. The following rules define the semantics:
+
+- 1) A UsageIndication message received with a **usageCallStatus** of **callInProgress** implies a subsequent UsageIndication with the same **callIdentifier** and **senderRole** should be received. If the recipient is configured for fault recovery it may choose to conclude after a configured time interval with no further UsageIndication messages that a fault has occurred, and may recover whatever data it can from the received UsageIndication messages.
+- 2) Subsequent UsageIndication messages with the same **usageField** ids should report a **startTime** matching the **endTime** of the previous message (although this may be impossible for an alternate Peer Element). Recipients shall assume each report is for a distinct
+
+period. Other information in the **usageField** overrides the information received in previous messages with the same **usageField** id.
+
+- 3) A Peer Element should send a new **UsageIndication** message for each change in the media type during the call, e.g., audio stopped and fax started, or a codec has changed. If multiple media types are engaged at the same time (e.g., audio and video) they should be reported in the same **UsageIndication** message.
+
+#### G.6.5.2 Requesting and negotiating usage information during service relationship establishment
+
+A Peer Element **PEA** may include a **UsageSpecification** element in a **ServiceRequest** message to a second Peer Element **PEB**. This **UsageSpecification** element will be used to define the default usage information to be reported for all calls that take place while the service relationship exists between the two Peer Elements **PEA** and **PEB**. This **UsageSpecification** shall be used for all calls for which **PEB** sends **UsageIndications** to **PEA**.
+
+If a **UsageSpecification** element arrives at **PEB** in another message from **PEA** (for example, an **AccessConfirmation**), then the new **UsageSpecification** overrides the default **UsageSpecification** for all calls related to the new message.
+
+A Peer Element receiving a **ServiceRequest** that contains a **UsageSpecification** element should act as follows:
+
+- i) If the receiving Peer Element is willing to accept the **ServiceRequest** and the **UsageSpecification** contained within, it shall send a **ServiceConfirmation** message that contains the same **UsageSpecification** as the one received in the **ServiceRequest**. The **UsageSpecification** shall apply to both incoming calls to the recipient Peer Element from the requesting Peer Element and outgoing calls from the recipient Peer Element to the requesting Peer Element.
+- ii) If the receiving Peer Element is willing to accept the **ServiceRequest** but is not willing to accept the **UsageSpecification** contained within, it shall either send a **ServiceConfirmation** message containing a different **UsageSpecification** that specifies the usage information that it is able to provide to the requesting Peer Element, or a **ServiceRejection** message with the reason set to **cannotSupportUsageSpec**.
+- iii) If the receiving Peer Element does not support usage reporting at all, it shall return a **ServiceRejection** message with the reason set to **usageUnavailable**.
+
+A Peer Element receiving a **ServiceConfirmation** should act as follows:
+
+- i) If the **UsageSpecification** in the **ServiceConfirmation** is the same as the one sent in the **ServiceRequest**, then the originating Peer Element and terminating Peer Element have established a service relationship between them.
+- ii) If the **UsageSpecification** in the **ServiceConfirmation** is different than the one sent in the **ServiceRequest** message, then if the originating Peer Element is willing to use the new **UsageSpecification**, the service relationship is established. If the originating Peer Element is not willing to use the new **UsageSpecification**, it shall send a **ServiceRelease** message with reason set to **terminated**. The originating Peer Element could then analyse the **UsageSpecification** returned in the **ServiceConfirmation** in order to build a new **ServiceRequest** message with a modified **UsageSpecification** that may be acceptable to both Peer Elements.
+- iii) If the **ServiceConfirmation** does not contain a **UsageSpecification** (and the **ServiceRequest** did), then the Peer Element that sent the **ServiceConfirmation** cannot or will not employ usage reporting at the level of the service relationship. This is the case when, for example, the recipient Peer Element implements version 1 of this annex. In this case, the
+
+originating Peer Element can either terminate the service relationship (by sending a ServiceRelease message with the reason code set to **terminated**), or not terminate the service relationship. In either case, if the originating Peer Element is interested in receiving usage information about calls, it should request usage information using the mechanisms described in version 1 of this annex (i.e., sending **UsageSpecification** elements in either AccessRequest, AccessConfirmation (within the returned address templates), UsageRequest, ValidationRequest or ValidationConfirmation messages).
+
+### G.6.6 Number portability information signalling
+
+Rec. ITU-T H.460.2 describes mechanisms for number portability in H.323 networks. Support for H.460.2 requires that this annex be capable of transporting number portability information through address resolution message exchanges. The interface between the Annex G Border Element and the other H.323 network elements with which it communicates is not covered by this annex; it is assumed this interface is capable of transporting the H.460.2 number portability to and from the Annex G Border Element.
+
+When an AccessRequest is sent, it will transport the H.460.2 number portability information, if present, using the **genericData** field in the common information portion of the message.
+
+AccessConfirmation and AccessRejection messages will carry the corresponding number portability response information in the **genericData** field as well. In the case of an AccessRejection, the reject reason shall be **genericDataReason**.
+
+## G.7 Signalling examples
+
+These signalling examples are provided to illustrate basic operation. In these examples, assume that the Administrative Domains have agreements with each other, so the Border Elements have been provisioned with information (e.g., TCP ports) about each other. In many of the examples below, RAS LRQ/LCF messages are exchanged between a gatekeeper and a Border Element within the same Administrative Domain. This is purely for illustrative purposes, and analogous Annex G messages could be exchanged between the Border Element and a Peer Element residing within the gatekeeper.
+
+### G.7.1 Distributed or full mesh
+
+An example of a distributed network is shown in Figure G.7.
+
+
+
+```
+
+graph TD
+ A["Administrative domain A
+1732*"]
+ B["Administrative domain B
+1908*
+1908953*"]
+ C["Administrative domain C
+1303538*
+1303*"]
+ A --- B
+ A --- C
+
+```
+
+Diagram showing three Administrative Domains (A, B, and C) connected to a central point. Domain A is at the top, B is at the bottom left, and C is at the bottom right. Each domain box contains its name and associated patterns. Domain A: 1732\*. Domain B: 1908\*, 1908953\*. Domain C: 1303538\*, 1303\*.
+
+H.225.0\_FG.7
+
+**Figure G.7 – Distributed network for signalling examples**
+
+For this example, assume the Administrative Domains each have one Border Element, and that the Border Elements are configured to resolve addresses as follows:
+
+| Administrative Domain | Template definition | Comment |
+|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| A | Descriptor "d1":
Pattern = 1732*
Transport address = BE A call signal address
Message type = sendSetup | Signalling for any call into AD A will be through AD A's Border Element. |
+| B | Descriptor "d2":
Pattern = 1908*
Transport address = BE B annex g address
Message type = sendAccessRequest
Descriptor "d3":
Pattern = 1908953*
Transport address = GW B1 call signalling address
Message type = sendSetup | For calls to 1908*, an AccessRequest message is needed to get the destination's (i.e., a gateway) call signalling address.
For calls to 1908953*, the Setup can be sent directly to this particular gateway. |
+| C | Descriptor "d4":
Pattern = 1303538*
Transport address = GK C1 call signal address
Message type = sendSetup
Descriptor "d5":
Pattern = 1303*
Transport address = BE C annex g address
Message type = sendAccessRequest | Calls to 1303538* will be routed through this particular gatekeeper.
Calls to 1303* can be signalled directly to the destination gateway, but an AccessRequest must be sent to obtain the gateway's call signalling address. |
+
+#### G.7.1.1 Exchange of zone information
+
+In the distributed, or full mesh, organization each Administrative Domain is aware of each other Administrative Domain, presumably through a number of bilateral contractual agreements. At any time, a Border Element in an Administrative Domain can query another Administrative Domain to obtain addressing information. An example of this signalling appears in Figure G.8.
+
+
+
+```
+
+sequenceDiagram
+ participant BE_A
+ participant BE_B
+ participant BE_C
+ Note right of BE_C: H.225.0_FG.8
+ BE_A->>BE_B: DescriptorIDRequest
+ BE_B-->>BE_A: DescriptorIDReqConf(IDs=d2, d3)
+ BE_A->>BE_B: DescriptorRequest (d2)
+ BE_B-->>BE_A: DescriptorRequestConfirmation
+ BE_A->>BE_B: DescriptorRequest (d3)
+ BE_B-->>BE_A: DescriptorRequestConfirmation
+ BE_A->>BE_C: DescriptorIDRequest
+ BE_C-->>BE_A: DescriptorIDReqConf (IDs=d4, d5)
+ BE_A->>BE_C: DescriptorRequest (d4)
+ BE_C-->>BE_A: DescriptorRequestConfirmation
+ BE_A->>BE_C: DescriptorRequest (d5)
+ BE_C-->>BE_A: DescriptorRequestConfirmation
+
+```
+
+Sequence diagram showing descriptor exchange between BE\_A, BE\_B, and BE\_C. BE\_A sends DescriptorIDRequest to BE\_B, which responds with DescriptorIDReqConf. BE\_A then sends DescriptorRequest (d2) and DescriptorRequest (d3) to BE\_B, receiving confirmations. BE\_A then sends DescriptorIDRequest to BE\_C, which responds with DescriptorIDReqConf. BE\_A sends DescriptorRequest (d4) and DescriptorRequest (d5) to BE\_C, receiving confirmations.
+
+**Figure G.8 – Example of descriptor exchange**
+
+Similarly, BEB queries BEA and BEC, and BEC queries BEA and BEB.
+
+#### G.7.1.2 Placing a call
+
+Suppose that T1 in Administrative Domain A initiates a call to 19085551515 (T2). On receipt of T1's ARQ, T1's gatekeeper sends an LRQ. A Border Element in Administrative Domain A, BEA, has previously received zone descriptors and knows how to process the request. As shown in Figure G.9, BEA sends an AccessRequest message to BEB, as specified in the descriptor BEA received from BEB. BEB replies back with T2's call signalling address (in this example, T2 could be any type of endpoint). T1 then sends the H.225.0 Setup message to T2's call signalling address following the normal procedures defined in Rec. ITU-T H.323 and its annexes.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_A1
+ participant BE_A
+ participant BE_B
+ participant T2
+ Note right of T2: H.225.0_FG.9
+ T1->>GK_A1: ARQ
+ GK_A1->>BE_A: LRQ
+ BE_A->>BE_B: AccessRequest
+ BE_B-->>BE_A: AccessConfirmation
+ BE_A->>GK_A1: LCF
+ GK_A1-->>T1: ACF
+ T1->>T2: Setup
+
+```
+
+Sequence diagram showing a simple call setup. T1 sends ARQ to GK\_A1, which sends LRQ to BE\_A. BE\_A sends AccessRequest to BE\_B, which responds with AccessConfirmation. BE\_A sends LCF to GK\_A1, which responds with ACF. T1 then sends Setup to T2.
+
+**Figure G.9 – Example of a simple call**
+
+Now, suppose that T1 initiates a call to 19089532000. In this example, BEA has previously obtained the call signalling address of a gateway in Administrative Domain B that will accept the call. As shown in Figure G.10, BEA can respond to the LRQ without any message exchange into Administrative Domain B, allowing T1 to send the Setup message directly to the gateway.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_A1
+ participant BE_A
+ participant GW_B1
+ T1->>GK_A1: ARQ
+ GK_A1->>BE_A: LRQ
+ BE_A-->>GK_A1: LCF
+ GK_A1-->>T1: ACF
+ T1->>GW_B1: Setup
+
+```
+
+H.225.0\_FG.10
+
+Sequence diagram for Figure G.10: Example of a call with cached address. Lifelines: T1, GK\_A1, BE\_A, GW\_B1. T1 sends ARQ to GK\_A1. GK\_A1 sends LRQ to BE\_A. BE\_A sends LCF to GK\_A1. GK\_A1 sends ACF to T1. T1 sends Setup directly to GW\_B1.
+
+**Figure G.10 – Example of a call with cached address**
+
+In another example, suppose that T1 initiates a call to 13035382899. Administrative Domain C has advertised its ability to accept a call to this number, and will accept call signalling through its gatekeeper in implementing the gatekeeper-routed model. As shown in Figure G.11, BEA can respond to the LRQ with an LCF that contains the call signalling address of a gatekeeper in Administrative Domain C without any message exchange into Administrative Domain C.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_A1
+ participant BE_A
+ participant BE_C
+ participant GK_C1
+ participant T3
+ T1->>GK_A1: ARQ
+ GK_A1->>BE_A: LRQ
+ BE_A-->>GK_A1: LCF
+ GK_A1-->>T1: ACF
+ T1->>GK_A1: Setup
+ GK_A1->>GK_C1: Setup
+ GK_C1->>T3: Setup
+
+```
+
+H.225.0\_FG.11
+
+Sequence diagram for Figure G.11: Example of remote gatekeeper routed call. Lifelines: T1, GK\_A1, BE\_A, BE\_C, GK\_C1, T3. T1 sends ARQ to GK\_A1. GK\_A1 sends LRQ to BE\_A. BE\_A sends LCF to GK\_A1. GK\_A1 sends ACF to T1. T1 sends Setup to GK\_A1. GK\_A1 forwards Setup to GK\_C1. GK\_C1 sends Setup to T3.
+
+**Figure G.11 – Example of remote gatekeeper routed call**
+
+Alternatively, T1's gatekeeper can implement the gatekeeper-routed model, as shown in Figure G.12.
+
+
+
+Sequence diagram for a local gatekeeper routed call. Lifelines: T1, GK\_A1, BE\_A, BE\_C, GK\_C1, T3. The sequence starts with T1 sending an ARQ to GK\_A1. GK\_A1 sends an LRQ to BE\_A, which responds with LCF. GK\_A1 then sends an ACF back to T1. T1 sends a Setup message to GK\_A1, which is then forwarded by GK\_A1 to GK\_C1, which finally forwards it to T3. The diagram is labeled H.225.0\_FG.12.
+
+Figure G.12 – Example of local gatekeeper routed call
+
+### G.7.2 Clearing House
+
+An example of a configuration using a Clearing House is shown in Figure G.13. Refer to this figure for the following examples. In this example, the Clearing House holds addressing information for all Administrative Domains for which the Clearing House provides service.
+
+
+
+Diagram showing a Clearing house connected to two Administrative domains, D and E. The Clearing house box lists patterns: 1908\*, 1908953\*, 1303538\*, and 1303\*. Administrative domain D box lists patterns: 1908\* and 1908953\*. Administrative domain E box lists patterns: 1303538\* and 1303\*. The diagram is labeled H.225.0\_FG.13.
+
+Figure G.13 – Sample clearing house configuration
+
+For this example, the Border Elements in Administrative Domains D and E, and the Clearing House, contain the following information:
+
+| Administrative Domain | Template definition | Comment |
+|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| D | Descriptor "d1":
Pattern = 1908*
Transport address = BE D annex g address
Message type = sendAccessRequest
Descriptor "d2":
Pattern = 1908953*
Transport address = GW D1 Call
Signalling address
Message type = sendSetup | For calls to 1908*, an AccessRequest message is needed to get the destination's (i.e., a gateway) call signalling address.
For calls to 1908953*, the Setup can be sent directly to this particular gateway. |
+
+| Administrative Domain | Template definition | Comment |
+|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| E | Descriptor "d3":
Pattern = 1303538*
Transport address = GK E1 call signal address
Message type = sendSetup
Descriptor "d4":
Pattern = 1303*
Transport address = BE E annex g address
Message type = sendAccessRequest | Calls to 1303538* will be routed through this particular gatekeeper.
Calls to 1303* can be signalled directly to the destination gateway, but an AccessRequest must be sent to obtain the gateway's call signalling address. |
+| CH | Descriptor "d1":
Pattern = 1908*
Transport address = BE D annex g address
Message type = sendAccessRequest
Descriptor "d2":
Pattern = 1908953*
Transport address = GWD D1 call signalling address
Message type = sendSetup
Descriptor "d3":
Pattern = 1303538*
Transport address = GK E1 call signal address
Message type = sendSetup
Descriptor "d4":
Pattern = 1303*
Transport address = BE E annex g address
Message type = sendAccessRequest | The Clearing House obtains descriptors from other ADs and holds this information for distribution during descriptor exchange. |
+
+#### G.7.2.1 Exchange of zone information
+
+In this example, a Clearing House exchanges information with Administrative Domains that subscribe to the Clearing House's service. The Clearing House holds the information it receives from each Administrative Domain and passes this information along to other Administrative Domains. In this example, the Clearing House appears as Administrative Domain E to Administrative Domain D, while Administrative Domains D and E are not necessarily aware of each other. See Figure G.14.
+
+
+
+```
+
+sequenceDiagram
+ participant BE_D
+ participant BE_CH
+ participant BE_E
+ Note right of BE_E: H.225.0_FG.14
+ BE_D->>BE_CH: DescriptorIDRequest
+ BE_CH-->>BE_D: DescriptorIDReqConf(IDs=d1, d2, d3, d4)
+ BE_D->>BE_CH: DescriptorRequest (d3)
+ BE_CH-->>BE_D: DescriptorRequestConfirmation
+ BE_D->>BE_CH: DescriptorRequest (d4)
+ BE_CH-->>BE_D: DescriptorRequestConfirmation
+ BE_CH->>BE_E: DescriptorIDRequest
+ BE_E-->>BE_CH: DescriptorIDReqConf(IDs=d1, d2, d3, d4)
+ BE_CH->>BE_E: DescriptorRequest (d1)
+ BE_E-->>BE_CH: DescriptorRequestConfirmation
+ BE_CH->>BE_E: DescriptorRequest (d2)
+ BE_E-->>BE_CH: DescriptorRequestConfirmation
+
+```
+
+Sequence diagram showing descriptor exchange between BE\_D, BE\_CH, and BE\_E. BE\_D sends DescriptorIDRequest to BE\_CH, which responds with DescriptorIDReqConf(IDs=d1, d2, d3, d4). BE\_D then sends DescriptorRequest (d3) and receives DescriptorRequestConfirmation. BE\_D sends DescriptorRequest (d4) and receives DescriptorRequestConfirmation. Then BE\_CH sends DescriptorIDRequest to BE\_E, which responds with DescriptorIDReqConf(IDs=d1, d2, d3, d4). BE\_CH then sends DescriptorRequest (d1) and receives DescriptorRequestConfirmation. BE\_CH sends DescriptorRequest (d2) and receives DescriptorRequestConfirmation.
+
+**Figure G.14 – Example descriptor exchange with clearing house**
+
+#### G.7.2.2 Placing a call
+
+Suppose that T1 in Administrative Domain E initiates a call to 19085551515. The Border Element in Administrative Domain E has received descriptors from the Clearing House that indicate the Clearing House should be consulted for such a call. The Border Element sends an AccessRequest to the Clearing House Border Element. Based on the descriptors the Clearing House Border Element received from the Border Element in Administrative Domain D, the Clearing House Border Element sends an AccessRequest to the Border Element in Administrative Domain D. When the Clearing House Border Element returns the confirmation to the Border Element in Administrative Domain E, the confirmation contains the information sent from the Border Element in Administrative Domain D. T1's gatekeeper returns an ACF with T2's destCallSignalAddress, allowing T1 to send the Setup message to T2. See Figure G.15.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_E1
+ participant BE_E
+ participant BE_CH
+ participant BE_D
+ participant T2
+ Note right of T2: H.225.0_FG.15
+ T1->>GK_E1: ARQ
+ GK_E1->>BE_E: LRQ
+ BE_E->>BE_CH: AccessRequest
+ BE_CH->>BE_D: AccessRequest
+ BE_D-->>BE_CH: AccessConfirmation
+ BE_CH-->>BE_E: AccessConfirmation
+ BE_E->>GK_E1: LCF
+ GK_E1-->>T1: ACF
+ T1->>T2: Setup
+
+```
+
+Sequence diagram showing call placement from T1 to T2 via GK\_E1, BE\_E, BE\_CH, and BE\_D. T1 sends ARQ to GK\_E1. GK\_E1 sends LRQ to BE\_E. BE\_E sends AccessRequest to BE\_CH. BE\_CH sends AccessRequest to BE\_D. BE\_D returns AccessConfirmation to BE\_CH. BE\_CH returns AccessConfirmation to BE\_E. BE\_E sends LCF to GK\_E1. GK\_E1 returns ACF to T1. Finally, T1 sends a Setup message directly to T2.
+
+**Figure G.15 – Example of call with clearing house**
+
+Alternatively, T1's gatekeeper could route the call signalling, as shown in Figure G.16.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_E1 as GKE1
+ participant BE_E as BEE
+ participant BE_CH as BECH
+ participant BE_D as BED
+ participant T2
+
+ T1->>GK_E1: ARQ
+ GK_E1->>BE_E: LRQ
+ BE_E->>BE_CH: AccessRequest
+ BE_CH->>BE_D: AccessRequest
+ BE_D->>BE_CH: AccessConfirmation
+ BE_CH->>BE_E: AccessConfirmation
+ BE_E->>GK_E1: LCF
+ GK_E1->>T1: ACF
+ T1->>GK_E1: Setup
+ GK_E1->>T2: Setup
+
+```
+
+H.225.0\_FG.16
+
+Sequence diagram for Figure G.16: Example of local gatekeeper routed call with clearing house. Lifelines: T1, GK\_E1, BE\_E, BE\_CH, BE\_D, T2. The sequence shows ARQ, LRQ, AccessRequest, AccessConfirmation, LCF, ACF, and Setup messages.
+
+**Figure G.16 – Example of local gatekeeper routed call with clearing house**
+
+Another possibility is for the Clearing House to respond to the Border Element in Administrative Domain E with the contact information for the Border Element in Administrative Domain D, as shown in Figure G.17.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_E1 as GKE1
+ participant BE_E as BEE
+ participant BE_CH as BECH
+ participant BE_D as BED
+ participant T2
+
+ T1->>GK_E1: ARQ
+ GK_E1->>BE_E: LRQ
+ BE_E->>BE_CH: AccessRequest
+ BE_CH->>BE_E: AccessConfirmation
+ BE_E->>BE_CH: AccessRequest
+ BE_CH->>BE_D: AccessRequest
+ BE_D->>BE_CH: AccessConfirmation
+ BE_CH->>BE_E: AccessConfirmation
+ BE_E->>GK_E1: LCF
+ GK_E1->>T1: ACF
+ T1->>GK_E1: Setup
+ GK_E1->>T2: Setup
+
+```
+
+H.225.0\_FG.17
+
+Sequence diagram for Figure G.17: Example of clearing house routing using contact info for remote BE. Lifelines: T1, GK\_E1, BE\_E, BE\_CH, BE\_D, T2. The sequence shows ARQ, LRQ, AccessRequest, AccessConfirmation, AccessRequest, AccessConfirmation, LCF, ACF, and Setup messages.
+
+**Figure G.17 – Example of clearing house routing using contact info for remote BE**
+
+Now suppose that T1 initiates a call to 19089532000. The descriptors previously exchanged allow the Border Element to return the call signalling address to T1 without consulting the Clearing House, as shown in Figure G.18.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_E1 as GKE1
+ participant BE_E as BEE
+ participant GW_D1 as GWD1
+
+ T1->>GK_E1: ARQ
+ GK_E1->>BE_E: LRQ
+ BE_E->>GK_E1: LCF
+ GK_E1->>T1: ACF
+ T1->>GK_E1: Setup
+ GK_E1->>GW_D1: Setup
+
+```
+
+H.225.0\_FG.18
+
+Sequence diagram for Figure G.18: Example of call using cached descriptor in local BE. Lifelines: T1, GK\_E1, BE\_E, GW\_D1. The sequence shows ARQ, LRQ, LCF, ACF, and Setup messages.
+
+**Figure G.18 – Example of call using cached descriptor in local BE**
+
+Next, consider a scenario where T1 initiates a call to 13035382899. The Border Element in Administrative Domain E had previously advertised that calls to 1303538\* could be routed directly to a gatekeeper in Administrative Domain E without need for an Access Request message, as shown in Figure G.19. (This advertisement does not indicate that the entity is a gatekeeper, only that a Setup message could be sent to a specified address.) The Border Element in Administrative Domain D received this information from the Clearing House, assuming the Clearing House in this example does not have a requirement to provide address resolution for these calls.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_D1 as GKD1
+ participant BE_D as BED
+ participant BE_E as BEE
+ participant GK_E1 as GKE1
+ participant T3
+
+ T1->>GK_D1: ARQ
+ GK_D1->>BE_D: LRQ
+ BE_D-->>GK_D1: LCF
+ GK_D1-->>T1: ACF
+ T1->>GK_D1: Setup
+ GK_D1->>GK_E1: Setup
+ GK_E1->>T3: Setup
+
+```
+
+H.225.0\_FG.19
+
+Sequence diagram for Figure G.19 showing a GK routed call using a cached descriptor. Lifelines: T1, GK\_D1, BE\_D, BE\_E, GK\_E1, T3. The sequence starts with T1 sending an ARQ to GK\_D1. GK\_D1 sends an LRQ to BE\_D, which responds with LCF. GK\_D1 then sends an ACF to T1. T1 sends a Setup message to GK\_D1, which is then forwarded by GK\_D1 to GK\_E1, which finally sends a Setup message to T3.
+
+**Figure G.19 – Example of GK routed call using cached descriptor**
+
+Recall that a Border Element may be combined with a gatekeeper, and may also route calls in the gatekeeper-routed model. An alternative signalling example is shown in Figure G.20. It is also possible to use the Border Element as a routing gatekeeper into an Administrative Domain if the descriptors are so configured.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_D1 as GKD1
+ participant BE_D as BED
+ participant BE_E as BEE
+ participant GK_E1 as GKE1
+ participant T3
+
+ T1->>GK_D1: ARQ
+ GK_D1->>BE_D: LRQ
+ BE_D-->>GK_D1: LCF
+ GK_D1-->>T1: ACF
+ T1->>GK_D1: Setup
+ GK_D1->>BE_D: Setup
+ BE_D->>GK_E1: Setup
+ GK_E1->>T3: Setup
+
+```
+
+H.225.0\_FG.20
+
+Sequence diagram for Figure G.20 showing a call with a combined BE/routing GK. Lifelines: T1, GK\_D1, BE\_D, BE\_E, GK\_E1, T3. The sequence starts with T1 sending an ARQ to GK\_D1. GK\_D1 sends an LRQ to BE\_D, which responds with LCF. GK\_D1 then sends an ACF to T1. T1 sends a Setup message to GK\_D1, which is then forwarded by GK\_D1 to BE\_D. BE\_D then sends a Setup message to GK\_E1, which finally sends a Setup message to T3.
+
+**Figure G.20 – Example of call with combined BE/routing GK**
+
+In the example of Figure G.21, the Clearing House validates the call for the terminating Administrative Domain. The Clearing House also requires both originating and terminating Border Elements to send UsageIndications for the call.
+
+
+
+```
+
+sequenceDiagram
+ participant T1
+ participant GK_D/BE_E
+ participant BE_CH
+ participant BE_D/GK_E
+ participant T2
+
+ Note right of T1: H.225.0_FG.21
+
+ T1->>GK_D/BE_E: ARQ
+ GK_D/BE_E->>BE_CH: AccessRequest
+ BE_CH-->>GK_D/BE_E: AccessConfirmation
+ GK_D/BE_E-->>T1: ACF
+ T1->>GK_D/BE_E: Setup
+
+ T2->>BE_D/GK_E: ARQ
+ BE_D/GK_E->>BE_CH: ValidationRequest
+ BE_CH-->>BE_D/GK_E: ValidationConfirmation
+ BE_D/GK_E-->>T2: ACF
+ T2->>BE_D/GK_E: Connect
+ BE_D/GK_E-->>T1:
+
+ GK_D/BE_E->>BE_CH: UsageIndication
+ BE_CH-->>BE_D/GK_E: UsageIndication
+ BE_D/GK_E-->>GK_D/BE_E: UsageIndicationConfirm
+ BE_CH-->>GK_D/BE_E: UsageIndicationConfirm
+
+ T1->>T2: Release Complete
+
+ T1->>GK_D/BE_E: DRQ
+ GK_D/BE_E-->>T1: DCF
+
+ BE_D/GK_E->>T2: DRQ
+ T2-->>BE_D/GK_E: DCF
+
+ BE_CH-->>BE_D/GK_E: UsageIndication
+ BE_D/GK_E-->>BE_CH: UsageIndicationConfirm
+
+ GK_D/BE_E->>BE_CH: UsageIndication
+ BE_CH-->>GK_D/BE_E: UsageIndicationConfirm
+
+```
+
+Sequence diagram illustrating call validation and usage reporting with clearing house. Lifelines: T1, GK\_D/BE\_E, BE\_CH, BE\_D/GK\_E, T2. The sequence shows ARQ, AccessRequest, AccessConfirmation, ACF, Setup, ValidationRequest, ValidationConfirmation, Connect, UsageIndication, UsageIndicationConfirm, Release Complete, DRQ, and DCF messages.
+
+**Figure G.21 – Call validation and usage reporting example with clearing house**
+
+## G.8 Annex G profiles
+
+### G.8.1 Introduction
+
+Rec. ITU-T H.501 offers a rich set of messages and fields that this annex may use for interaction between Administrative Domains and between Peer Elements within a single Administrative Domain. Many of the messages and fields are optional and can be used in a variety of ways to implement different services or service options. This clause specifies implementation profiles that define the messages, fields and procedures that are required in order to claim compliance with a specific profile.
+
+#### G.8.1.1 Profile signalling and negotiation
+
+The H.323 generic extensible framework may be used by a Peer Element to signal to another Peer Element the set of profiles that it needs for a transaction to be successful, the set of profiles it desires to use, and the set of profiles it supports. This profile negotiation signalling may be done either in an individual message exchange (e.g., in an AccessRequest/AccessConfirmation exchange), or during the establishment of a service relationship. Note that the establishment of a service relationship between two Peer Elements may not be required by a profile.
+
+##### G.8.1.1.1 Processing by the requesting entity
+
+A requesting entity (a Peer Element) uses the elements in the **FeatureSet** structure to specify the various profiles it requires. It specifies the set of profiles that it needs using the **neededFeatures** field, the set of profiles that it desires using the **desiredFeatures** field, and the set of profiles that it supports in the **supportedFeatures** field. All three of these fields are in the **FeatureSet** structure.
+
+In response to its request, a requesting entity should receive either a confirmation or a rejection message.
+
+If the request is rejected, the responding entity may have included a set of **neededFeatures** that the requesting entity must support in order for the request to be successful. If this is the case and the requesting entity supports the needed features (e.g., a specific profile), the requesting entity may re-issue a request specifying support for the profile needed by the responding entity.
+
+If the request is accepted, special procedures need to be applied to ensure that the negotiation operates in a backwards-compatible manner. This is done by the requesting entity checking that the profile that it specified as needed are listed as **supportedFeatures** in the response. If a requesting entity does not observe the profiles it needs in the response message's **supportedFeatures** field, then it shall assume that the responding entity does not support the profiles that it needs. If the requesting entity determines that it cannot continue under these circumstances, then it shall undo the operation it was trying to perform (i.e., send a ServiceRelease message if it originally sent a ServiceRequest message), so that the state in the responding entity is rolled back.
+
+##### G.8.1.1.2 Processing by the responding entity
+
+The responding entity looks at the profiles specified in the **neededFeatures** field of the request to determine if it can accept the request. It also looks in the **neededFeatures**, **desiredFeatures** and **supportedFeatures** fields to determine whether the profiles needed by it are supported by the requesting entity.
+
+If the responding entity determines that the necessary sets of profiles are supported by both entities, then the responding entity may acknowledge the request. The responding entity lists the set of profiles that it chooses to support in the **supportedFeatures** field of its reply. If the request is accepted, then all of the **neededFeatures** from the request must be included in the **supportedFeatures** field of the reply. The responding entity may also include **desiredFeatures**.
+
+If the responding entity needs additional profiles to be supported by the requesting entity, it shall reject the request. If it wishes to declare which profiles must be supported for the request to be successful, this should be specified using the **neededFeatures** field of the reject message. The responding entity may also include any **desiredFeatures** and **supportedFeatures** in the reject message.
+
+##### G.8.1.1.3 Identifiers
+
+The following identifier is used within a FeatureDescriptor to specify that the FeatureDescriptor applies to Annex G profiles.
+
+| Value | Description |
+|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| idAnnexGProfiles | This identifier is used in the "id" field of a FeatureDescriptor to indicate that the FeatureDescriptor is describing the Annex G profiles needed/desired/supported. |
+
+The following table contains a list of the identifiers used within the generic extensibility framework that are relevant to this annex.
+
+| Standard INTEGER Value | Description |
+|------------------------|------------------------------------------------------------------------------------------------------------|
+| 0 | Identifier within a FeatureDescriptor indicating that the FeatureDescriptor is describing Annex G profiles |
+| 1 | Identifier within an EnumeratedParameter that identifies Annex G Profile "A" |
+
+### G.8.2 Profile "A": Interzone call routing to a trusted gatekeeper
+
+This profile specifies a simple intra-domain service – per-call queries to another trusted zone for endpoint determination where the Annex G signalling address of the trusted zones is statically provisioned. This is one of the simplest uses of this annex and is similar to the use of RAS LRQ to query another zone for an endpoint. The same profile may be used to query a trusted Peer Element, which returns routes from domain-wide knowledge or obtains them by further Annex G queries.
+
+#### G.8.2.1 Required messages
+
+Entities complying with this profile shall support the messages indicated as "Mandatory" in the following table:
+
+| Message | Transmit
(Mandatory, Optional,
Recommended) | Receive and act on
(Mandatory, Optional,
Recommended) |
+|-----------------------------|---------------------------------------------------|-------------------------------------------------------------|
+| ServiceRequest | O | M (Note 1) |
+| ServiceConfirmation | O | O |
+| ServiceRejection | M | O |
+| ServiceRelease | O | O |
+| DescriptorRequest | O | M (Note 1) |
+| DescriptorConfirmation | R (Note 2) | O |
+| DescriptorRejection | M | O |
+| DescriptorIdRequest | O | M (Note 1) |
+| DescriptorIdConfirmation | R (Note 2) | O |
+| DescriptorIdRejection | M | O |
+| DescriptorUpdate | O | M (Note 3) |
+| DescriptorUpdateAck | M | O |
+| AccessRequest | M | M |
+| AccessConfirmation | M | M |
+| AccessRejection | M | M |
+| RequestInProgress | M | M |
+| NonStandardRequest | O | M |
+| NonStandardConfirmation | O | O |
+| NonStandardRejection | M | O |
+| UnknownMessageResponse | M | M |
+| UsageRequest | O | M (Note 1) |
+| UsageConfirmation | O | O |
+| UsageRejection | M | O |
+| UsageIndication | O | M (Note 1) |
+| UsageIndicationConfirmation | O | O |
+| UsageIndicationRejection | M | O |
+| ValidationRequest | O | M (Note 1) |
+
+| Message | Transmit
(Mandatory, Optional,
Recommended) | Receive and act on
(Mandatory, Optional,
Recommended) |
+|------------------------|---------------------------------------------------|-------------------------------------------------------------|
+| ValidationConfirmation | O | O |
+| ValidationRejection | M | O |
+
+NOTE 1 – Shall be received and as a minimum rejected.
+NOTE 2 – It is recommended that an entity return as a minimum a single descriptor for a template with SendAccessRequest pointing to itself.
+NOTE 3 – Shall be received and acknowledged, but need not be processed.
+
+#### G.8.2.2 Required fields
+
+All fields defined as mandatory by Rec. ITU-T H.501 are also mandatory within this profile.
+
+Entities complying with this profile shall also support the fields specified in the following table.
+
+Other fields defined as optional by Rec. ITU-T H.501 may optionally be present.
+
+| Message or structure | Required field | Comment |
+|------------------------------|-------------------------|--------------------------------------------------------------------------------------------------|
+| AccessRequest message | destinationInfo | One address containing the fully-qualified E.164 address of the destination |
+| | sourceInfo | Includes the domainInfo and endpointType |
+| | callInfo | |
+| AccessConfirmation message | templates | If any templates are present, then there is one template per each termination gateway/gatekeeper |
+| | partialResponse | Set to FALSE |
+| AddressTemplate structure | pattern | One specific pattern is present containing the E.164 number |
+| | routeInfo | One instance present |
+| | timeToLive | |
+| RouteInformation structure | messageType | Present |
+| | callSpecific | Set to FALSE |
+| | contacts | One instance present |
+| | type | Must be present if messageType = sendSetup |
+| ContactInformation structure | transportAddress | The IP address of the gateway/gatekeeper |
+| | priority | |
+
+#### G.8.2.3 Required procedures
+
+In this profile, entities may use the static discovery procedures of this annex (see G.6.3.1) and so will have a configured list of Peer Elements or gatekeepers to which requests can be sent. This list may contain alternates to be used only when the primary element cannot be reached or may simply add the alternates (if any) to the list.
+
+Entities may also use the dynamic discovery procedures of this annex (see G.6.3.2).
+
+Entities shall send an AccessRequest message to a selected Peer Element or gatekeeper for each call. If more than one Peer Element or gatekeeper is available to be queried for a given call, it is not specified whether they must be queried in sequence or may be queried in parallel. This choice is left to the requesting entity.
+
+The reply will have zero or more templates. **timeToLive** may be set to 60 seconds or less to indicate that it may not be used for another call.
+
+To improve interoperation with more general peers, it is suggested that in the case that the Peer Element does not implement descriptor support, it should follow the following procedures:
+
+- If a DescriptorIDRequest message is received, the Peer Element should return a DescriptorIDConfirmation message containing a single **DescriptorInfo**. This **DescriptorInfo** describes a descriptor containing a single template specifying **sendAccessRequest** pointing to the Peer Element itself.
+- If a DescriptorRequest message is received, the Peer Element should return a DescriptorConfirmation message containing a single descriptor. This descriptor shall contain a single template specifying **sendAccessRequest** pointing to the Peer Element itself.
+
+#### G.8.2.4 Identifiers for Profile "A"
+
+The following identifier is used within an **EnumeratedParameter** to specify that the **EnumeratedParameter** specifies Annex G Profile A.
+
+| Value | Description |
+|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| idAnnexGProfileA | This identifier is used in the "id" field of an EnumeratedParameter to indicate that Annex G Profile A is needed/desired/supported.
Note that the "content" field of the EnumeratedParameter is not present. |
+
+# Annex H
+
+## H.225.0 message syntax (ASN.1)
+
+(This annex forms an integral part of this Recommendation.)
+
+This Recommendation defines protocols for RAS (essentially a gatekeeper protocol) and call signalling (essentially protocol data units which reside in a User-user information element). These protocols are defined together in the following ASN.1 tree. Semantic definitions for the messages and various elements appear in previous clauses.
+
+```
+H323-MESSAGES {itu-t(0) recommendation(0) h(8) h225-0(2250) version(0)
+ 8 h323-messages(0)} DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+IMPORTS
+
+ SIGNED{},
+ ENCRYPTED{},
+ HASHED{},
+ ChallengeString,
+ TimeStamp,
+ RandomVal,
+ Password,
+ EncodedPwdCertToken,
+ ClearToken,
+ CryptoToken,
+ AuthenticationMechanism
+ FROM H235-SECURITY-MESSAGES
+ DataProtocolCapability,
+ T38FaxProfile,
+ QOSCapability
+ FROM MULTIMEDIA-SYSTEM-CONTROL {itu-t(0) recommendation(0) h(8) h245(245)
+version(0) 15 multimedia-system-control(0)};
+H323-UserInfoInformation ::= SEQUENCE -- root for all H.225.0 call signalling
+messages
+{
+ h323-uu-pdu H323-UU-PDU,
+ user-data SEQUENCE
+ {
+ protocol-discriminator INTEGER (0..255),
+ user-information OCTET STRING (SIZE(1..131)),
+ ...
+ } OPTIONAL,
+ ...
+}
+
+H323-UU-PDU ::= SEQUENCE
+{
+ h323-message-body CHOICE
+ {
+ setup Setup-UIIE,
+ callProceeding CallProceeding-UIIE,
+ connect Connect-UIIE,
+ alerting Alerting-UIIE,
+ information Information-UIIE,
+ releaseComplete ReleaseComplete-UIIE,
+ facility Facility-UIIE,
+ ...
+ progress Progress-UIIE,
+ empty NULL, -- used when a Facility message is sent,
+ }
+}
+```
+
+```
+
+-- but the Facility-UUIE is not to be invoked
+-- (possible when transporting supplementary
+-- services messages in versions prior to
+-- H.225.0 version 4)
+status Status-UUIE,
+statusInquiry StatusInquiry-UUIE,
+setupAcknowledge SetupAcknowledge-UUIE,
+notify Notify-UUIE
+},
+nonStandardData NonStandardParameter OPTIONAL,
+...
+h4501SupplementaryService SEQUENCE OF OCTET STRING OPTIONAL,
+-- each sequence of octet string is defined as one
+-- H4501SupplementaryService APDU as defined in
+-- Table 3/H.450.1
+
+h245Tunnelling BOOLEAN,
+-- if TRUE, tunnelling of H.245 messages is enabled
+h245Control SEQUENCE OF OCTET STRING OPTIONAL,
+nonStandardControl SEQUENCE OF NonStandardParameter OPTIONAL,
+callLinkage CallLinkage OPTIONAL,
+tunnelledSignallingMessage SEQUENCE
+{
+ tunnelledProtocolID TunnelledProtocol, -- tunnelled signalling
+ -- protocol ID
+ messageContent SEQUENCE OF OCTET STRING, -- sequence of entire
+ -- message(s)
+ tunnellingRequired NULL OPTIONAL,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...
+} OPTIONAL,
+provisionalRespToH245Tunnelling NULL OPTIONAL,
+stimulusControl StimulusControl OPTIONAL,
+genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+StimulusControl ::= SEQUENCE
+{
+ nonStandard NonStandardParameter OPTIONAL,
+ isText NULL OPTIONAL,
+ h248Message OCTET STRING OPTIONAL,
+ ...
+}
+
+Alerting-UUIE ::= SEQUENCE
+{
+ protocolIdentifier ProtocolIdentifier,
+ destinationInfo EndpointType,
+ h245Address TransportAddress OPTIONAL,
+ ...
+ callIdentifier CallIdentifier,
+ h245SecurityMode H245Security OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ fastStart SEQUENCE OF OCTET STRING OPTIONAL,
+ multipleCalls BOOLEAN,
+ maintainConnection BOOLEAN,
+ alertingAddress SEQUENCE OF AliasAddress OPTIONAL,
+ presentationIndicator PresentationIndicator OPTIONAL,
+ screeningIndicator ScreeningIndicator OPTIONAL,
+ fastConnectRefused NULL OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+ capacity CallCapacity OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+}
+
+```
+
+```
+
+ displayName SEQUENCE OF DisplayName OPTIONAL
+ }
+
+ CallProceeding-UUIE ::= SEQUENCE
+ {
+ protocolIdentifier ProtocolIdentifier,
+ destinationInfo EndpointType,
+ h245Address TransportAddress OPTIONAL,
+ .../
+ callIdentifier CallIdentifier,
+ h245SecurityMode H245Security OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ fastStart SEQUENCE OF OCTET STRING OPTIONAL,
+ multipleCalls BOOLEAN,
+ maintainConnection BOOLEAN,
+ fastConnectRefused NULL OPTIONAL,
+ featureSet FeatureSet OPTIONAL
+ }
+
+ Connect-UUIE ::= SEQUENCE
+ {
+ protocolIdentifier ProtocolIdentifier,
+ h245Address TransportAddress OPTIONAL,
+ destinationInfo EndpointType,
+ conferenceID ConferenceIdentifier,
+ .../
+ callIdentifier CallIdentifier,
+ h245SecurityMode H245Security OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ fastStart SEQUENCE OF OCTET STRING OPTIONAL,
+ multipleCalls BOOLEAN,
+ maintainConnection BOOLEAN,
+ language SEQUENCE OF IA5String (SIZE (1..32)) OPTIONAL,
+ -- RFC 5646 language tag
+ connectedAddress SEQUENCE OF AliasAddress OPTIONAL,
+ presentationIndicator PresentationIndicator OPTIONAL,
+ screeningIndicator ScreeningIndicator OPTIONAL,
+ fastConnectRefused NULL OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+ capacity CallCapacity OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ displayName SEQUENCE OF DisplayName OPTIONAL
+ }
+
+ Information-UUIE ::= SEQUENCE
+ {
+ protocolIdentifier ProtocolIdentifier,
+ .../
+ callIdentifier CallIdentifier,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ fastStart SEQUENCE OF OCTET STRING OPTIONAL,
+ fastConnectRefused NULL OPTIONAL,
+ circuitInfo CircuitInfo OPTIONAL
+ }
+
+ ReleaseComplete-UUIE ::= SEQUENCE
+ {
+ protocolIdentifier ProtocolIdentifier,
+ reason ReleaseCompleteReason OPTIONAL,
+ .../
+ callIdentifier CallIdentifier,
+ }
+
+```
+
+```
+
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ busyAddress SEQUENCE OF AliasAddress OPTIONAL,
+ presentationIndicator PresentationIndicator OPTIONAL,
+ screeningIndicator ScreeningIndicator OPTIONAL,
+ capacity CallCapacity OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ destinationInfo EndpointType OPTIONAL,
+ displayName SEQUENCE OF DisplayName OPTIONAL
+}
+
+ReleaseCompleteReason ::= CHOICE
+{
+ noBandwidth NULL, -- bandwidth taken away or ARQ denied
+ gatekeeperResources NULL, -- exhausted
+ unreachableDestination NULL, -- no transport path to the destination
+ destinationRejection NULL, -- rejected at destination
+ invalidRevision NULL,
+ noPermission NULL, -- called party's gatekeeper rejects
+ unreachableGatekeeper NULL, -- terminal cannot reach gatekeeper
+ -- for ARQ
+
+ gatewayResources NULL,
+ badFormatAddress NULL,
+ adaptiveBusy NULL, -- call is dropping due to LAN crowding
+ inConf NULL, -- called party busy
+ undefinedReason NULL,
+ ...
+ facilityCallDeflection NULL, -- call was deflected using a Facility
+ -- message
+ securityDenied NULL, -- incompatible security settings
+ calledPartyNotRegistered NULL, -- used by gatekeeper when endpoint has
+ -- preGrantedARQ to bypass ARQ/ACF
+ callerNotRegistered NULL, -- used by gatekeeper when endpoint has
+ -- preGrantedARQ to bypass ARQ/ACF
+ newConnectionNeeded NULL, -- indicates that the Setup was not
+ -- accepted on this connection, but that
+ -- the Setup may be accepted on
+ -- a new connection
+
+ nonStandardReason NonStandardParameter,
+ replaceWithConferenceInvite ConferenceIdentifier, -- call dropped due to
+ -- subsequent invitation
+ -- to a conference
+ -- (see 8.4.3.8/H.323)
+
+ genericDataReason NULL,
+ neededFeatureNotSupported NULL,
+ tunnelledSignallingRejected NULL,
+ invalidCID NULL,
+ securityError SecurityErrors,
+ hopCountExceeded NULL
+}
+
+Setup-UUIE ::= SEQUENCE
+{
+ protocolIdentifier ProtocolIdentifier,
+ h245Address TransportAddress OPTIONAL,
+ sourceAddress SEQUENCE OF AliasAddress OPTIONAL,
+ sourceInfo EndpointType,
+ destinationAddress SEQUENCE OF AliasAddress OPTIONAL,
+ destCallSignalAddress TransportAddress OPTIONAL,
+ destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL,
+ destExtraCRV SEQUENCE OF CallReferenceValue OPTIONAL,
+ activeMC BOOLEAN,
+ conferenceID ConferenceIdentifier,
+}
+
+```
+
+```
+
+conferenceGoal CHOICE
+{
+ create NULL,
+ join NULL,
+ invite NULL,
+ ...,
+ capability-negotiation NULL,
+ callIndependentSupplementaryService NULL
+},
+callServices QseriesOptions OPTIONAL,
+callType CallType,
+...,
+sourceCallSignalAddress TransportAddress OPTIONAL,
+remoteExtensionAddress AliasAddress OPTIONAL,
+callIdentifier CallIdentifier,
+h245SecurityCapability SEQUENCE OF H245Security OPTIONAL,
+tokens SEQUENCE OF ClearToken OPTIONAL,
+cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+fastStart SEQUENCE OF OCTET STRING OPTIONAL,
+mediaWaitForConnect BOOLEAN,
+canOverlapSend BOOLEAN,
+endpointIdentifier EndpointIdentifier OPTIONAL,
+multipleCalls BOOLEAN,
+maintainConnection BOOLEAN,
+connectionParameters SEQUENCE -- additional gateway parameters
+{
+ connectionType ScnConnectionType,
+ numberOfScnConnections INTEGER (0..65535),
+ connectionAggregation ScnConnectionAggregation,
+ ...
+} OPTIONAL,
+language SEQUENCE OF IA5String (SIZE (1..32)) OPTIONAL,
+-- RFC 5646 language tag
+presentationIndicator PresentationIndicator OPTIONAL,
+screeningIndicator ScreeningIndicator OPTIONAL,
+serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+symmetricOperationRequired NULL OPTIONAL,
+capacity CallCapacity OPTIONAL,
+circuitInfo CircuitInfo OPTIONAL,
+desiredProtocols SEQUENCE OF SupportedProtocols OPTIONAL,
+neededFeatures SEQUENCE OF FeatureDescriptor OPTIONAL,
+desiredFeatures SEQUENCE OF FeatureDescriptor OPTIONAL,
+supportedFeatures SEQUENCE OF FeatureDescriptor OPTIONAL,
+parallelH245Control SEQUENCE OF OCTET STRING OPTIONAL,
+additionalSourceAddresses SEQUENCE OF ExtendedAliasAddress OPTIONAL,
+hopCount INTEGER (1..31) OPTIONAL,
+displayName SEQUENCE OF DisplayName OPTIONAL
+}
+
+ScnConnectionType ::= CHOICE
+{
+ unknown NULL, -- should be selected when connection type is unknown
+ bChannel NULL, -- each individual connection on the SCN is 64 kbit/s.
+ -- Note that where SCN delivers 56 kbit/s usable data,
+ -- the actual bandwidth allocated on SCN is still
+ -- 64 kbit/s.
+ hybrid2x64 NULL, -- each connection is a 128 kbit/s hybrid call
+ hybrid384 NULL, -- each connection is an H0 (384 kbit/s) hybrid call
+ hybrid1536 NULL, -- each connection is an H11 (1536 kbit/s) hybrid call
+ hybrid1920 NULL, -- each connection is an H12 (1920 kbit/s) hybrid call
+ multirate NULL, -- bandwidth supplied by SCN using multirate.
+ -- In this case, the information transfer rate octet
+ -- in the bearer capability shall be set to multirate
+ -- and the rate multiplier octet shall denote the
+
+```
+
+```
+
+-- number of B channels.
+...
+}
+
+ScnConnectionAggregation ::= CHOICE
+{
+ auto NULL, -- aggregation mechanism is unknown
+ none NULL, -- call produced using a single SCN connection
+ h221 NULL, -- use H.221 framing to aggregate the connections
+ bonded-model1 NULL, -- use ISO/IEC 13871 bonding mode 1.
+ -- Use bonded-model to signal a bonded call if the
+ -- precise bonding mode to be used is unknown.
+ bonded-mode2 NULL, -- use ISO/IEC 13871 bonding mode 2
+ bonded-mode3 NULL, -- use ISO/IEC 13871 bonding mode 3
+ ...
+}
+
+PresentationIndicator ::= CHOICE
+{
+ presentationAllowed NULL,
+ presentationRestricted NULL,
+ addressNotAvailable NULL,
+ ...
+}
+
+ScreeningIndicator ::= ENUMERATED
+{
+ userProvidedNotScreened (0),
+ -- number was provided by a remote user
+ -- and has not been screened by a gatekeeper
+ userProvidedVerifiedAndPassed (1),
+ -- number was provided by user
+ -- equipment (or by a remote network), and has
+ -- been screened by a gatekeeper
+ userProvidedVerifiedAndFailed (2),
+ -- number was provided by user
+ -- equipment (or by a remote network), and the
+ -- gatekeeper has determined that the
+ -- information is incorrect
+ networkProvided (3),
+ -- number was provided by a gatekeeper
+ ...
+}
+
+Facility-UUIE ::= SEQUENCE
+{
+ protocolIdentifier ProtocolIdentifier,
+ alternativeAddress TransportAddress OPTIONAL,
+ alternativeAliasAddress SEQUENCE OF AliasAddress OPTIONAL,
+ conferenceID ConferenceIdentifier OPTIONAL,
+ reason FacilityReason,
+ ...,
+ callIdentifier CallIdentifier,
+ destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL,
+ remoteExtensionAddress AliasAddress OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ conferences SEQUENCE OF ConferenceList OPTIONAL,
+ h245Address TransportAddress OPTIONAL,
+ fastStart SEQUENCE OF OCTET STRING OPTIONAL,
+ multipleCalls BOOLEAN,
+ maintainConnection BOOLEAN,
+ fastConnectRefused NULL OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+}
+
+```
+
+```
+
+ circuitInfo CircuitInfo OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ destinationInfo EndpointType OPTIONAL,
+ h245SecurityMode H245Security OPTIONAL
+ }
+
+ ConferenceList ::= SEQUENCE
+ {
+ conferenceID ConferenceIdentifier OPTIONAL,
+ conferenceAlias AliasAddress OPTIONAL,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...
+ }
+
+ FacilityReason ::= CHOICE
+ {
+ routeCallToGatekeeper NULL, -- call must use gatekeeper model
+ -- gatekeeper is alternativeAddress
+ callForwarded NULL,
+ routeCallToMC NULL,
+ undefinedReason NULL,
+ ...,
+ conferenceListChoice NULL,
+ startH245 NULL, -- recipient should connect to h245Address
+ noH245 NULL, -- endpoint does not support H.245
+ newTokens NULL,
+ featureSetUpdate NULL,
+ forwardedElements NULL,
+ transportedInformation NULL
+ }
+
+ Progress-UUIE ::= SEQUENCE
+ {
+ protocolIdentifier ProtocolIdentifier,
+ destinationInfo EndpointType,
+ h245Address TransportAddress OPTIONAL,
+ callIdentifier CallIdentifier,
+ h245SecurityMode H245Security OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ fastStart SEQUENCE OF OCTET STRING OPTIONAL,
+ ...,
+ multipleCalls BOOLEAN,
+ maintainConnection BOOLEAN,
+ fastConnectRefused NULL OPTIONAL
+ }
+
+ TransportAddress ::= CHOICE
+ {
+ ipAddress SEQUENCE
+ {
+ ip OCTET STRING (SIZE(4)),
+ port INTEGER(0..65535)
+ },
+ ipSourceRoute SEQUENCE
+ {
+ ip OCTET STRING (SIZE(4)),
+ port INTEGER(0..65535),
+ route SEQUENCE OF OCTET STRING (SIZE(4)),
+ routing CHOICE
+ {
+ strict NULL,
+ loose NULL,
+ ...
+ }
+ }
+ }
+
+```
+
+```
+
+ },
+ ...
+ },
+ ipxAddress SEQUENCE
+ {
+ node OCTET STRING (SIZE(6)),
+ netnum OCTET STRING (SIZE(4)),
+ port OCTET STRING (SIZE(2))
+ },
+ ip6Address SEQUENCE
+ {
+ ip OCTET STRING (SIZE(16)),
+ port INTEGER(0..65535),
+ ...
+ },
+ netBios OCTET STRING (SIZE(16)),
+ nsap OCTET STRING (SIZE(1..20)),
+ nonStandardAddress NonStandardParameter,
+ ...
+}
+
+Status-UUIE ::= SEQUENCE
+{
+ protocolIdentifier ProtocolIdentifier,
+ callIdentifier CallIdentifier,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ ...
+}
+
+StatusInquiry-UUIE ::= SEQUENCE
+{
+ protocolIdentifier ProtocolIdentifier,
+ callIdentifier CallIdentifier,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ ...
+}
+
+SetupAcknowledge-UUIE ::= SEQUENCE
+{
+ protocolIdentifier ProtocolIdentifier,
+ callIdentifier CallIdentifier,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ ...
+}
+
+Notify-UUIE ::= SEQUENCE
+{
+ protocolIdentifier ProtocolIdentifier,
+ callIdentifier CallIdentifier,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ ...
+ connectedAddress SEQUENCE OF AliasAddress OPTIONAL,
+ presentationIndicator PresentationIndicator OPTIONAL,
+ screeningIndicator ScreeningIndicator OPTIONAL,
+ destinationInfo EndpointType OPTIONAL,
+ displayName SEQUENCE OF DisplayName OPTIONAL
+}
+
+```
+
+-- Beginning of common message elements section
+
+```
+
+EndpointType ::= SEQUENCE
+{
+ nonStandardData NonStandardParameter OPTIONAL,
+ vendor VendorIdentifier OPTIONAL,
+ gatekeeper GatekeeperInfo OPTIONAL,
+ gateway GatewayInfo OPTIONAL,
+ mcu McuInfo OPTIONAL, -- mc must be set as well
+ terminal TerminalInfo OPTIONAL,
+ mc BOOLEAN, -- shall not be set by itself
+ undefinedNode BOOLEAN,
+ ...,
+ set BIT STRING (SIZE(32)) OPTIONAL,
+ -- shall not be used with mc, gatekeeper
+ -- code points for the various SET devices
+ -- are defined in the respective SET Annexes
+ supportedTunnelledProtocols SEQUENCE OF TunnelledProtocol OPTIONAL
+ -- list of supported tunnelled protocols
+}
+
+GatewayInfo ::= SEQUENCE
+{
+ protocol SEQUENCE OF SupportedProtocols OPTIONAL,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...
+}
+
+SupportedProtocols ::= CHOICE
+{
+ nonStandardData NonStandardParameter,
+ h310 H310Caps,
+ h320 H320Caps,
+ h321 H321Caps,
+ h322 H322Caps,
+ h323 H323Caps,
+ h324 H324Caps,
+ voice VoiceCaps,
+ t120-only T120OnlyCaps,
+ ...,
+ nonStandardProtocol NonStandardProtocol,
+ t38FaxAnnexbOnly T38FaxAnnexbOnlyCaps,
+ sip SIPCaps
+}
+
+H310Caps ::= SEQUENCE
+{
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix
+}
+
+H320Caps ::= SEQUENCE
+{
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix
+}
+
+H321Caps ::= SEQUENCE
+{
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+}
+
+```
+
+```
+
+ supportedPrefixes SEQUENCE OF SupportedPrefix
+ }
+
+ H322Caps ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix
+ }
+
+ H323Caps ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix
+ }
+
+ H324Caps ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix
+ }
+
+ VoiceCaps ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix
+ }
+
+ T120OnlyCaps ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix
+ }
+
+ NonStandardProtocol ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix,
+ ...
+ }
+
+ T38FaxAnnexbOnlyCaps ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix,
+ t38FaxProtocol DataProtocolCapability,
+ t38FaxProfile T38FaxProfile,
+ ...
+ }
+
+ SIPCaps ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ }
+
+```
+
+```
+
+ dataRatesSupported SEQUENCE OF DataRate OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix OPTIONAL,
+ ...
+ }
+
+ McuInfo ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ ... /
+ protocol SEQUENCE OF SupportedProtocols OPTIONAL
+ }
+
+ TerminalInfo ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...
+ }
+
+ GatekeeperInfo ::= SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...
+ }
+
+ VendorIdentifier ::= SEQUENCE
+ {
+ vendor H221NonStandard,
+ productId OCTET STRING (SIZE(1..256)) OPTIONAL, -- per vendor
+ versionId OCTET STRING (SIZE(1..256)) OPTIONAL, -- per product
+ ... /
+ enterpriseNumber OBJECT IDENTIFIER OPTIONAL
+ }
+
+ H221NonStandard ::= SEQUENCE
+ {
+ t35CountryCode INTEGER(0..255),
+ t35Extension INTEGER(0..255),
+ manufacturerCode INTEGER(0..65535),
+ ...
+ }
+
+ TunnelledProtocol ::= SEQUENCE
+ {
+ id CHOICE
+ {
+ tunnelledProtocolObjectID OBJECT IDENTIFIER,
+ tunnelledProtocolAlternateID TunnelledProtocolAlternateIdentifier,
+ ...
+ },
+ subIdentifier IA5String (SIZE (1..64)) OPTIONAL,
+ ...
+ }
+
+ TunnelledProtocolAlternateIdentifier ::= SEQUENCE
+ {
+ protocolType IA5String (SIZE (1..64)),
+ protocolVariant IA5String (SIZE (1..64)) OPTIONAL,
+ ...
+ }
+
+ NonStandardParameter ::= SEQUENCE
+ {
+ nonStandardIdentifier NonStandardIdentifier,
+ data OCTET STRING
+ }
+
+```
+
+```
+
+NonStandardIdentifier ::= CHOICE
+{
+ object OBJECT IDENTIFIER,
+ h221NonStandard H221NonStandard,
+ ...
+}
+
+AliasAddress ::= CHOICE
+{
+ dialledDigits IA5String (SIZE (1..128)) (FROM ("0123456789#*,")),
+ h323-ID BMPString (SIZE (1..256)), -- Basic ISO/IEC 10646 (Unicode)
+ ...,
+ url-ID IA5String (SIZE(1..512)), -- URL style address
+ transportID TransportAddress,
+ email-ID IA5String (SIZE(1..512)), -- rfc822-compliant email address
+ partyNumber PartyNumber,
+ mobileUIM MobileUIM,
+ isupNumber IsupNumber
+}
+
+AddressPattern ::= CHOICE
+{
+ wildcard AliasAddress,
+ range SEQUENCE
+ {
+ startOfRange PartyNumber,
+ endOfRange PartyNumber
+ },
+ ...
+}
+
+PartyNumber ::= CHOICE
+{
+ e164Number PublicPartyNumber,
+ -- the numbering plan is according to
+ -- ITU-T Recs E.163 and E.164.
+ dataPartyNumber NumberDigits,
+ -- not used, value reserved.
+ telexPartyNumber NumberDigits,
+ -- not used, value reserved.
+ privateNumber PrivatePartyNumber,
+ -- the numbering plan is according to
+ -- ISO/IEC 11571.
+ nationalStandardPartyNumber NumberDigits,
+ -- not used, value reserved.
+ ...
+}
+
+PublicPartyNumber ::= SEQUENCE
+{
+ publicTypeOfNumber PublicTypeOfNumber,
+ publicNumberDigits NumberDigits
+}
+
+PrivatePartyNumber ::= SEQUENCE
+{
+ privateTypeOfNumber PrivateTypeOfNumber,
+ privateNumberDigits NumberDigits
+}
+
+NumberDigits ::= IA5String (SIZE (1..128)) (FROM ("0123456789#*,"))
+
+DisplayName ::= SEQUENCE
+
+```
+
+```
+
+{
+ language IA5String OPTIONAL, -- RFC5646 language tag
+ name BMPString(SIZE(1..80))
+}
+
+PublicTypeOfNumber ::= CHOICE
+{
+ unknown NULL,
+ -- if used number digits carry prefix
+ -- indicating type
+ -- of number according to national
+ -- recommendations.
+
+ internationalNumber NULL,
+ nationalNumber NULL,
+ networkSpecificNumber NULL,
+ -- not used, value reserved
+
+ subscriberNumber NULL,
+ abbreviatedNumber NULL,
+ -- valid only for called party number at
+ -- the outgoing access, network
+ -- substitutes
+ -- appropriate number.
+
+ ...
+}
+
+PrivateTypeOfNumber ::= CHOICE
+{
+ unknown NULL,
+ level2RegionalNumber NULL,
+ level1RegionalNumber NULL,
+ pISNSpecificNumber NULL,
+ localNumber NULL,
+ abbreviatedNumber NULL,
+ ...
+}
+
+MobileUIM ::= CHOICE
+{
+ ansi-41-uim ANSI-41-UIM, -- Americas standards Wireless Networks
+ gsm-uim GSM-UIM, -- European standards Wireless Networks
+ ...
+}
+
+TBCD-STRING ::= IA5String (FROM ("0123456789#*abc"))
+
+ANSI-41-UIM ::= SEQUENCE
+{
+ imsi TBCD-STRING (SIZE (3..16)) OPTIONAL,
+ min TBCD-STRING (SIZE (3..16)) OPTIONAL,
+ mdn TBCD-STRING (SIZE (3..16)) OPTIONAL,
+ msisdn TBCD-STRING (SIZE (3..16)) OPTIONAL,
+ esn TBCD-STRING (SIZE (16)) OPTIONAL,
+ mscid TBCD-STRING (SIZE (3..16)) OPTIONAL,
+ system-id CHOICE
+ {
+ sid TBCD-STRING (SIZE (1..4)),
+ mid TBCD-STRING (SIZE (1..4)),
+ ...
+ },
+ systemMyTypeCode OCTET STRING (SIZE (1)) OPTIONAL,
+ systemAccessType OCTET STRING (SIZE (1)) OPTIONAL,
+ qualificationInformationCode OCTET STRING (SIZE (1)) OPTIONAL,
+ sesn TBCD-STRING (SIZE (16)) OPTIONAL,
+}
+
+```
+
+```
+
+soc TBCD-STRING (SIZE (3..16)) OPTIONAL,
+...
+-- IMSI refers to International Mobile Station Identification
+-- MIN refers to Mobile Identification Number
+-- MDN refers to Mobile Directory Number
+-- MSISDN refers to Mobile Station ISDN number
+-- ESN Refers to Electronic Serial Number
+-- MSCID refers to Mobile Switching Center number + Market ID or System ID
+-- SID refers to System Identification and MID refers to Market
+-- Identification
+-- SystemMyTypeCode refers to vendor identification number
+-- SystemAccessType refers to the system access type like power down
+-- registration or call
+-- origination or Short Message response etc.
+-- Qualification Information Code refers to the validity
+-- SESN Refers to SIM Electronic Serial Number for Security purposes of
+-- User Identification
+-- SOC refers to System Operator Code
+}
+
+GSM-UIM ::= SEQUENCE
+{
+ imsi TBCD-STRING (SIZE (3..16)) OPTIONAL,
+ tmsi OCTET STRING (SIZE (1..4)) OPTIONAL,
+ msisdn TBCD-STRING (SIZE (3..16)) OPTIONAL,
+ imei TBCD-STRING (SIZE (15..16)) OPTIONAL,
+ hplmn TBCD-STRING (SIZE (1..4)) OPTIONAL,
+ vplmn TBCD-STRING (SIZE (1..4)) OPTIONAL,
+ -- IMSI refers to International Mobile Station Identification
+ -- MSISDN refers to Mobile Station ISDN number
+ -- IMEI Refers to International Mobile Equipment Identification
+ -- VPLMN or HPLMN refers to Visiting or Home Public Land Mobile Network
+ -- number
+ ...
+}
+
+IsupNumber ::= CHOICE
+{
+ e164Number IsupPublicPartyNumber,
+ -- the numbering plan is according to
+ -- ITU-T Recs E.163 and E.164.
+ dataPartyNumber IsupDigits, -- not used, value reserved.
+ telexPartyNumber IsupDigits, -- not used, value reserved.
+ privateNumber IsupPrivatePartyNumber,
+ -- the numbering plan is according to
+ -- ISO/IEC 11571.
+ nationalStandardPartyNumber IsupDigits, -- not used, value reserved.
+ ...
+}
+
+IsupPublicPartyNumber ::= SEQUENCE
+{
+ natureOfAddress NatureOfAddress,
+ address IsupDigits,
+ ...
+}
+
+IsupPrivatePartyNumber ::= SEQUENCE
+{
+ privateTypeOfNumber PrivateTypeOfNumber,
+ address IsupDigits,
+ ...
+}
+
+```
+
+```
+
+NatureOfAddress ::= CHOICE
+{
+ unknown NULL,
+ subscriberNumber NULL,
+ nationalNumber NULL,
+ internationalNumber NULL,
+ networkSpecificNumber NULL,
+ routingNumberNationalFormat NULL,
+ routingNumberNetworkSpecificFormat NULL,
+ routingNumberWithCalledDirectoryNumber NULL,
+ ...
+}
+
+IsupDigits ::= IA5String (SIZE (1..128)) (FROM ("0123456789ABCDE"))
+ExtendedAliasAddress ::= SEQUENCE
+{
+ address AliasAddress,
+ presentationIndicator PresentationIndicator OPTIONAL,
+ screeningIndicator ScreeningIndicator OPTIONAL,
+ ...
+}
+
+Endpoint ::= SEQUENCE
+{
+ nonStandardData NonStandardParameter OPTIONAL,
+ aliasAddress SEQUENCE OF AliasAddress OPTIONAL,
+ callSignalAddress SEQUENCE OF TransportAddress OPTIONAL,
+ rasAddress SEQUENCE OF TransportAddress OPTIONAL,
+ endpointType EndpointType OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ priority INTEGER(0..127) OPTIONAL,
+ remoteExtensionAddress SEQUENCE OF AliasAddress OPTIONAL,
+ destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL,
+ ... ,
+ alternateTransportAddresses AlternateTransportAddresses OPTIONAL,
+ circuitInfo CircuitInfo OPTIONAL,
+ featureSet FeatureSet OPTIONAL
+}
+
+AlternateTransportAddresses ::= SEQUENCE
+{
+ annexE SEQUENCE OF TransportAddress OPTIONAL,
+ ... ,
+ sctp SEQUENCE OF TransportAddress OPTIONAL
+}
+
+UseSpecifiedTransport ::= CHOICE
+{
+ tcp NULL,
+ annexE NULL,
+ ... ,
+ sctp NULL
+}
+
+AlternateGK ::= SEQUENCE
+{
+ rasAddress TransportAddress,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ needToRegister BOOLEAN,
+ priority INTEGER (0..127),
+ ...
+}
+
+```
+
+```
+
+AltGKInfo ::=SEQUENCE
+{
+ alternateGatekeeper SEQUENCE OF AlternateGK,
+ altGKisPermanent BOOLEAN,
+ ...
+}
+
+SecurityServiceMode ::= CHOICE
+{
+ nonStandard NonStandardParameter,
+ none NULL,
+ default NULL,
+ ... -- can be extended with other specific modes
+}
+
+SecurityCapabilities ::= SEQUENCE
+{
+ nonStandard NonStandardParameter OPTIONAL,
+ encryption SecurityServiceMode,
+ authentication SecurityServiceMode,
+ integrity SecurityServiceMode,
+ ...
+}
+
+SecurityErrors ::= CHOICE
+{
+ securityWrongSyncTime NULL, -- either time server
+ -- problem or network delay
+ securityReplay NULL, -- replay attack encountered
+ securityWrongGeneralID NULL, -- wrong general ID
+ securityWrongSendersID NULL, -- wrong senders ID
+ securityIntegrityFailed NULL, -- integrity check failed
+ securityWrongOID NULL, -- wrong token OIDs or crypto alg
+ -- OIDs
+ securityDHmismatch NULL, -- mismatch of DH parameters
+ securityCertificateExpired NULL, -- certificate has expired
+ securityCertificateDateInvalid NULL, -- certificate is not yet valid
+ securityCertificateRevoked NULL, -- certificate was found revoked
+ securityCertificateNotReadable NULL, -- decoding error
+ securityCertificateSignatureInvalid NULL, -- wrong signature in the
+ -- certificate
+ securityCertificateMissing NULL, -- no certificate available
+ securityCertificateIncomplete NULL, -- missing expected certificate
+ -- extensions
+ securityUnsupportedCertificateAlgoOID NULL, -- crypto algs not understood
+ securityUnknownCA NULL, -- CA/root certificate could not
+ -- be found
+ ...
+}
+
+SecurityErrors2 ::= CHOICE
+{
+ securityWrongSyncTime NULL, -- either time server problem or network
+ -- delay
+ securityReplay NULL, -- replay attack encountered
+ securityWrongGeneralID NULL, -- wrong general ID
+ securityWrongSendersID NULL, -- wrong senders ID
+ securityIntegrityFailed NULL, -- integrity check failed
+ securityWrongOID NULL, -- wrong token OIDs or crypto alg OIDs
+ ...
+}
+
+H245Security ::= CHOICE
+{
+
+```
+
+```
+
+ nonStandard NonStandardParameter,
+ noSecurity NULL,
+ tls SecurityCapabilities,
+ ipsec SecurityCapabilities,
+
+}
+
+QseriesOptions ::= SEQUENCE
+{
+ q932Full BOOLEAN, -- if true, indicates full support for Q.932
+ q951Full BOOLEAN, -- if true, indicates full support for Q.951
+ q952Full BOOLEAN, -- if true, indicates full support for Q.952
+ q953Full BOOLEAN, -- if true, indicates full support for Q.953
+ q955Full BOOLEAN, -- if true, indicates full support for Q.955
+ q956Full BOOLEAN, -- if true, indicates full support for Q.956
+ q957Full BOOLEAN, -- if true, indicates full support for Q.957
+ q954Info Q954Details,
+
+}
+
+Q954Details ::= SEQUENCE
+{
+ conferenceCalling BOOLEAN,
+ threePartyService BOOLEAN,
+
+}
+
+GloballyUniqueID ::= OCTET STRING (SIZE(16))
+ConferenceIdentifier ::= GloballyUniqueID
+RequestSeqNum ::= INTEGER (1..65535)
+GatekeeperIdentifier ::= BMPString (SIZE(1..128))
+BandWidth ::= INTEGER (0..4294967295) -- in 100s of bits
+CallReferenceValue ::= INTEGER (0..65535)
+EndpointIdentifier ::= BMPString (SIZE(1..128))
+ProtocolIdentifier ::= OBJECT IDENTIFIER
+TimeToLive ::= INTEGER (1..4294967295) -- in seconds
+H248PackagesDescriptor ::= OCTET STRING -- This octet string contains ASN.1
+ -- PER encoded H.248
+ -- PackagesDescriptor
+
+H248SignalsDescriptor ::= OCTET STRING -- This octet string contains
+ -- ASN.1 PER encoded H.248
+ -- SignalsDescriptor.
+
+FeatureDescriptor ::= GenericData
+
+CallIdentifier ::= SEQUENCE
+{
+ guid GloballyUniqueID,
+
+}
+
+EncryptIntAlg ::= CHOICE
+{
+ -- core encryption algorithms for RAS message integrity
+ nonStandard NonStandardParameter,
+ isoAlgorithm OBJECT IDENTIFIER, -- defined in ISO/IEC 9979
+
+}
+
+NonIsoIntegrityMechanism ::= CHOICE
+{
+ -- HMAC mechanism used, no truncation, tagging may be necessary!
+ hMAC-MD5 NULL,
+ hMAC-iso10118-2-s EncryptIntAlg, -- according to ISO/IEC 10118-2 using
+ -- EncryptIntAlg as core block
+}
+
+```
+
+```
+
+ hMAC-isol0118-2-1 EncryptIntAlg,
+ -- encryption algorithm (short MAC)
+ -- according to ISO/IEC 10118-2 using
+ -- EncryptIntAlg as core block
+ -- encryption algorithm (long MAC)
+ hMAC-isol0118-3 OBJECT IDENTIFIER, -- according to ISO/IEC 10118-3 using
+ -- OID as hash function (OID is
+ -- SHA-1,
+ -- RIPE-MD160,
+ -- RIPE-MD128)
+ ...
+}
+
+IntegrityMechanism ::= CHOICE
+{
+ -- for RAS message integrity
+ nonStandard NonStandardParameter,
+ digSig NULL, -- indicates to apply a digital signature
+ iso9797 OBJECT IDENTIFIER, -- according to ISO/IEC 9797 using OID as
+ -- core encryption algorithm (X-CBC MAC)
+ nonIsoIM NonIsoIntegrityMechanism,
+ ...
+}
+
+ICV ::= SEQUENCE
+{
+ algorithmOID OBJECT IDENTIFIER, -- the algorithm used to compute the
+ -- signature
+ icv BIT STRING -- the computed cryptographic
+ -- integrity check value or signature
+}
+
+FastStartToken ::= ClearToken (WITH COMPONENTS { ..., timeStamp PRESENT, dhkey
+PRESENT, generalID PRESENT
+ -- set to "alias" -- })
+
+EncodedFastStartToken ::= TYPE-IDENTIFIER.&Type (FastStartToken)
+
+CryptoH323Token ::= CHOICE
+{
+ cryptoEPPwdHash SEQUENCE
+ {
+ alias AliasAddress, -- alias of entity generating hash
+ timeStamp TimeStamp, -- timestamp used in hash
+ token HASHED { EncodedPwdCertToken -- generalID set to
+ -- "alias" -- }
+ },
+ cryptoGKPwdHash SEQUENCE
+ {
+ gatekeeperId GatekeeperIdentifier, -- GatekeeperID of GK generating
+ -- hash
+ timeStamp TimeStamp, -- timestamp used in hash
+ token HASHED { EncodedPwdCertToken -- generalID set to
+ -- Gatekeeperid -- }
+ },
+ cryptoEPPwdEncr ENCRYPTED { EncodedPwdCertToken -- generalID set to
+ -- Gatekeeperid -- },
+ cryptoGKPwdEncr ENCRYPTED { EncodedPwdCertToken -- generalID set to
+ -- Gatekeeperid -- },
+ cryptoEPCert SIGNED { EncodedPwdCertToken -- generalID set to
+ -- Gatekeeperid -- },
+ cryptoGKCert SIGNED { EncodedPwdCertToken -- generalID set to alias --
+ },
+ cryptoFastStart SIGNED { EncodedFastStartToken },
+ nestedcryptoToken CryptoToken,
+ ...
+}
+
+```
+
+```
+
+DataRate ::= SEQUENCE
+{
+ nonStandardData NonStandardParameter OPTIONAL,
+ channelRate BandWidth,
+ channelMultiplier INTEGER (1..256) OPTIONAL,
+ ...
+}
+
+CallLinkage ::= SEQUENCE
+{
+ globalCallId GloballyUniqueID OPTIONAL,
+ threadId GloballyUniqueID OPTIONAL,
+ ...
+}
+
+SupportedPrefix ::= SEQUENCE
+{
+ nonStandardData NonStandardParameter OPTIONAL,
+ prefix AliasAddress,
+ ...
+}
+
+CapacityReportingCapability ::= SEQUENCE
+{
+ canReportCallCapacity BOOLEAN,
+ ...
+}
+
+CapacityReportingSpecification ::= SEQUENCE
+{
+ when SEQUENCE
+ {
+ callStart NULL OPTIONAL,
+ callEnd NULL OPTIONAL,
+ ...
+ },
+ ...
+}
+
+CallCapacity ::= SEQUENCE
+{
+ maximumCallCapacity CallCapacityInfo OPTIONAL,
+ currentCallCapacity CallCapacityInfo OPTIONAL,
+ ...
+}
+
+CallCapacityInfo ::= SEQUENCE
+{
+ voiceGwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ h310GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ h320GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ h321GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ h322GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ h323GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ h324GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ t120OnlyGwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ t38FaxAnnexbOnlyGwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ terminalCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ mcuCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL,
+ ...
+ sipGwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL
+}
+
+```
+
+```
+
+CallsAvailable ::= SEQUENCE
+{
+ calls INTEGER (0..4294967295),
+ group IA5String (SIZE (1..128)) OPTIONAL,
+ ...,
+ carrier CarrierInfo OPTIONAL
+}
+
+CircuitInfo ::= SEQUENCE
+{
+ sourceCircuitID CircuitIdentifier OPTIONAL,
+ destinationCircuitID CircuitIdentifier OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ ...
+}
+
+CircuitIdentifier ::= SEQUENCE
+{
+ cic CicInfo OPTIONAL, group GroupID OPTIONAL,
+ ...,
+ carrier CarrierInfo OPTIONAL
+}
+
+CicInfo ::= SEQUENCE
+{
+ cic SEQUENCE OF OCTET STRING (SIZE (2..4)),
+ pointCode OCTET STRING (SIZE (2..5)),
+ ...
+}
+
+GroupID ::= SEQUENCE
+{
+ member SEQUENCE OF INTEGER (0..65535) OPTIONAL,
+ group IA5String (SIZE (1..128)),
+ ...
+}
+
+CarrierInfo ::= SEQUENCE
+{
+ carrierIdentificationCode OCTET STRING (SIZE (3..4)) OPTIONAL,
+ carrierName IA5String (SIZE (1..128)) OPTIONAL,
+ ...
+}
+
+ServiceControlDescriptor ::= CHOICE
+{
+ url IA5String (SIZE(0..512)), -- indicates a URL-
+ -- referenced
+ -- protocol/resource
+
+ signal H248SignalsDescriptor,
+ nonStandard NonStandardParameter,
+ callCreditServiceControl CallCreditServiceControl,
+ ...
+}
+
+ServiceControlSession ::= SEQUENCE
+{
+ sessionId INTEGER (0..255),
+ contents ServiceControlDescriptor OPTIONAL,
+ reason CHOICE
+ {
+ open NULL,
+ refresh NULL,
+ close NULL,
+ }
+}
+
+```
+
+```
+
+ ...
+ },
+ ...
+}
+
+RasUsageInfoTypes ::= SEQUENCE
+{
+ nonStandardUsageTypes SEQUENCE OF NonStandardParameter,
+ startTime NULL OPTIONAL,
+ endTime NULL OPTIONAL,
+ terminationCause NULL OPTIONAL,
+ ...
+}
+
+RasUsageSpecification ::= SEQUENCE
+{
+ when SEQUENCE
+ {
+ start NULL OPTIONAL,
+ end NULL OPTIONAL,
+ inIrr NULL OPTIONAL,
+ ...
+ },
+ callStartingPoint SEQUENCE
+ {
+ alerting NULL OPTIONAL,
+ connect NULL OPTIONAL,
+ ...
+ } OPTIONAL,
+ required RasUsageInfoTypes,
+ ...
+}
+
+RasUsageInformation ::= SEQUENCE
+{
+ nonStandardUsageFields SEQUENCE OF NonStandardParameter,
+ alertingTime Timestamp OPTIONAL,
+ connectTime Timestamp OPTIONAL,
+ endTime Timestamp OPTIONAL,
+ ...
+}
+
+CallTerminationCause ::= CHOICE
+{
+ releaseCompleteReason ReleaseCompleteReason,
+ releaseCompleteCauseIE OCTET STRING (SIZE(2..32)),
+ ...
+}
+
+BandwidthDetails ::= SEQUENCE
+{
+ sender BOOLEAN, -- TRUE=sender, FALSE=receiver
+ multicast BOOLEAN, -- TRUE if stream is multicast
+ bandwidth BandWidth, -- Bandwidth used for stream
+ rtcpAddresses TransportChannelInfo, -- RTCP addresses for media stream
+ ...
+}
+
+CallCreditCapability ::= SEQUENCE
+{
+ canDisplayAmountString BOOLEAN OPTIONAL,
+ canEnforceDurationLimit BOOLEAN OPTIONAL,
+ ...
+}
+
+```
+
+```
+
+CallCreditServiceControl ::= SEQUENCE
+{
+ amountString BMPString (SIZE (1..512)) OPTIONAL, -- (Unicode)
+ billingMode CHOICE
+ {
+ credit NULL,
+ debit NULL,
+ ...
+ } OPTIONAL,
+ callDurationLimit INTEGER (1..4294967295) OPTIONAL, -- in seconds
+ enforceCallDurationLimit BOOLEAN OPTIONAL,
+ callStartingPoint CHOICE
+ {
+ alerting NULL,
+ connect NULL,
+ ...
+ } OPTIONAL,
+ ...
+}
+
+GenericData ::= SEQUENCE
+{
+ id GenericIdentifier,
+ parameters SEQUENCE (SIZE (1..512)) OF EnumeratedParameter
+ OPTIONAL,
+ ...
+}
+
+GenericIdentifier ::= CHOICE
+{
+ standard INTEGER (0..16383,...),
+ oid OBJECT IDENTIFIER,
+ nonStandard GloballyUniqueID,
+ ...
+}
+
+EnumeratedParameter ::= SEQUENCE
+{
+ id GenericIdentifier,
+ content Content OPTIONAL,
+ ...
+}
+
+Content ::= CHOICE
+{
+ raw OCTET STRING,
+ text IA5String,
+ unicode BMPString,
+ bool BOOLEAN,
+ number8 INTEGER (0..255),
+ number16 INTEGER (0..65535),
+ number32 INTEGER (0..4294967295),
+ id GenericIdentifier,
+ alias AliasAddress,
+ transport TransportAddress,
+ compound SEQUENCE (SIZE (1..512)) OF EnumeratedParameter,
+ nested SEQUENCE (SIZE (1..16)) OF GenericData,
+ ...
+}
+
+FeatureSet ::= SEQUENCE
+{
+ replacementFeatureSet BOOLEAN,
+}
+
+```
+
+```
+
+ neededFeatures SEQUENCE OF FeatureDescriptor OPTIONAL,
+ desiredFeatures SEQUENCE OF FeatureDescriptor OPTIONAL,
+ supportedFeatures SEQUENCE OF FeatureDescriptor OPTIONAL,
+ ...
+}
+
+TransportChannelInfo ::= SEQUENCE
+{
+ sendAddress TransportAddress OPTIONAL,
+ recvAddress TransportAddress OPTIONAL,
+ ...
+}
+
+RTPSession ::= SEQUENCE
+{
+ rtpAddress TransportChannelInfo,
+ rtcpAddress TransportChannelInfo,
+ cname PrintableString,
+ ssrc INTEGER (1..4294967295),
+ sessionId INTEGER (1..255),
+ associatedSessionIds SEQUENCE OF INTEGER (1..255),
+ ...,
+ multicast NULL OPTIONAL,
+ bandwidth BandWidth OPTIONAL
+}
+
+RehomingModel ::= CHOICE
+{
+ gatekeeperBased NULL,
+ endpointBased NULL
+}
+
+RasMessage ::= CHOICE
+{
+ gatekeeperRequest GatekeeperRequest,
+ gatekeeperConfirm GatekeeperConfirm,
+ gatekeeperReject GatekeeperReject,
+ registrationRequest RegistrationRequest,
+ registrationConfirm RegistrationConfirm,
+ registrationReject RegistrationReject,
+ unregistrationRequest UnregistrationRequest,
+ unregistrationConfirm UnregistrationConfirm,
+ unregistrationReject UnregistrationReject,
+ admissionRequest AdmissionRequest,
+ admissionConfirm AdmissionConfirm,
+ admissionReject AdmissionReject,
+ bandwidthRequest BandwidthRequest,
+ bandwidthConfirm BandwidthConfirm,
+ bandwidthReject BandwidthReject,
+ disengageRequest DisengageRequest,
+ disengageConfirm DisengageConfirm,
+ disengageReject DisengageReject,
+ locationRequest LocationRequest,
+ locationConfirm LocationConfirm,
+ locationReject LocationReject,
+ infoRequest InfoRequest,
+ infoRequestResponse InfoRequestResponse,
+ nonStandardMessage NonStandardMessage,
+ unknownMessageResponse UnknownMessageResponse,
+ ...,
+ requestInProgress RequestInProgress,
+ resourcesAvailableIndicate ResourcesAvailableIndicate,
+ resourcesAvailableConfirm ResourcesAvailableConfirm,
+ infoRequestAck InfoRequestAck,
+}
+
+```
+
+```
+
+ infoRequestNak InfoRequestNak,
+ serviceControlIndication ServiceControlIndication,
+ serviceControlResponse ServiceControlResponse,
+ admissionConfirmSequence SEQUENCE OF AdmissionConfirm
+}
+
+```
+
+GatekeeperRequest ::= SEQUENCE --(GRQ)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ protocolIdentifier ProtocolIdentifier,
+ nonStandardData NonStandardParameter OPTIONAL,
+ rasAddress TransportAddress,
+ endpointType EndpointType,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ callServices QseriesOptions OPTIONAL,
+ endpointAlias SEQUENCE OF AliasAddress OPTIONAL,
+ ...
+ alternateEndpoints SEQUENCE OF Endpoint OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ authenticationCapability SEQUENCE OF AuthenticationMechanism OPTIONAL,
+ algorithmOIDs SEQUENCE OF OBJECT IDENTIFIER OPTIONAL,
+ integrity SEQUENCE OF IntegrityMechanism OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ supportsAltGK NULL OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ supportsAssignedGK BOOLEAN,
+ assignedGatekeeper AlternateGK OPTIONAL
+}
+
+```
+
+GatekeeperConfirm ::= SEQUENCE --(GCF)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ protocolIdentifier ProtocolIdentifier,
+ nonStandardData NonStandardParameter OPTIONAL,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ rasAddress TransportAddress,
+ ...
+ alternateGatekeeper SEQUENCE OF AlternateGK OPTIONAL,
+ authenticationMode AuthenticationMechanism OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ algorithmOID OBJECT IDENTIFIER OPTIONAL,
+ integrity SEQUENCE OF IntegrityMechanism OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ assignedGatekeeper AlternateGK OPTIONAL,
+ rehomingModel RehomingModel OPTIONAL
+}
+
+```
+
+GatekeeperReject ::= SEQUENCE --(GRJ)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ protocolIdentifier ProtocolIdentifier,
+ nonStandardData NonStandardParameter OPTIONAL,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ rejectReason GatekeeperRejectReason,
+ ...
+ altGKInfo AltGKInfo OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+}
+
+```
+
+```
+
+ integrityCheckValue ICV OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+GatekeeperRejectReason ::= CHOICE
+{
+ resourceUnavailable NULL,
+ terminalExcluded NULL, -- permission failure, not a resource
+ -- failure
+ invalidRevision NULL,
+ undefinedReason NULL,
+ ...
+ securityDenial NULL,
+ genericDataReason NULL,
+ neededFeatureNotSupported NULL,
+ securityError SecurityErrors
+}
+
+RegistrationRequest ::= SEQUENCE -- (RRQ)
+{
+ requestSeqNum RequestSeqNum,
+ protocolIdentifier ProtocolIdentifier,
+ nonStandardData NonStandardParameter OPTIONAL,
+ discoveryComplete BOOLEAN,
+ callSignalAddress SEQUENCE OF TransportAddress,
+ rasAddress SEQUENCE OF TransportAddress,
+ terminalType EndpointType,
+ terminalAlias SEQUENCE OF AliasAddress OPTIONAL,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ endpointVendor VendorIdentifier,
+ ...
+ alternateEndpoints SEQUENCE OF Endpoint OPTIONAL,
+ timeToLive TimeToLive OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ keepAlive BOOLEAN,
+ endpointIdentifier EndpointIdentifier OPTIONAL,
+ willSupplyUUIEs BOOLEAN,
+ maintainConnection BOOLEAN,
+ alternateTransportAddresses AlternateTransportAddresses OPTIONAL,
+ additiveRegistration NULL OPTIONAL,
+ terminalAliasPattern SEQUENCE OF AddressPattern OPTIONAL,
+ supportsAltGK NULL OPTIONAL,
+ usageReportingCapability RasUsageInfoTypes OPTIONAL,
+ multipleCalls BOOLEAN OPTIONAL,
+ supportedH248Packages SEQUENCE OF H248PackagesDescriptor OPTIONAL,
+ callCreditCapability CallCreditCapability OPTIONAL,
+ capacityReportingCapability CapacityReportingCapability OPTIONAL,
+ capacity CallCapacity OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ restart NULL OPTIONAL,
+ supportsACFSequences NULL OPTIONAL,
+ supportsAssignedGK BOOLEAN,
+ assignedGatekeeper AlternateGK OPTIONAL,
+ transportQOS TransportQOS OPTIONAL,
+ language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL
+}
+
+RegistrationConfirm ::= SEQUENCE -- (RCF)
+{
+ requestSeqNum RequestSeqNum,
+
+```
+
+```
+
+protocolIdentifier ProtocolIdentifier,
+nonStandardData NonStandardParameter OPTIONAL,
+callSignalAddress SEQUENCE OF TransportAddress,
+terminalAlias SEQUENCE OF AliasAddress OPTIONAL,
+gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+endpointIdentifier EndpointIdentifier,
+...
+alternateGatekeeper SEQUENCE OF AlternateGK OPTIONAL,
+timeToLive TimeToLive OPTIONAL,
+tokens SEQUENCE OF ClearToken OPTIONAL,
+cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+integrityCheckValue ICV OPTIONAL,
+willRespondToIRR BOOLEAN,
+preGrantedARQ SEQUENCE
+{
+ makeCall BOOLEAN,
+ useGKCallSignalAddressToMakeCall BOOLEAN,
+ answerCall BOOLEAN,
+ useGKCallSignalAddressToAnswer BOOLEAN,
+ ...
+ irrFrequencyInCall INTEGER (1..65535) OPTIONAL, -- in seconds;
+ -- not present
+ -- if GK does
+ -- not want IRRs
+ totalBandwidthRestriction BandWidth OPTIONAL, -- total limit
+ -- for all
+ -- concurrent
+ -- calls
+ alternateTransportAddresses AlternateTransportAddresses OPTIONAL,
+ useSpecifiedTransport UseSpecifiedTransport OPTIONAL
+} OPTIONAL,
+maintainConnection BOOLEAN,
+serviceControl SEQUENCE OF ServiceControlSession
+OPTIONAL,
+supportsAdditiveRegistration NULL OPTIONAL,
+terminalAliasPattern SEQUENCE OF AddressPattern OPTIONAL,
+supportedPrefixes SEQUENCE OF SupportedPrefix OPTIONAL,
+usageSpec SEQUENCE OF RasUsageSpecification
+OPTIONAL,
+featureServerAlias AliasAddress OPTIONAL,
+capacityReportingSpec CapacityReportingSpecification OPTIONAL,
+featureSet FeatureSet OPTIONAL,
+genericData SEQUENCE OF GenericData OPTIONAL,
+assignedGatekeeper AlternateGK OPTIONAL,
+rehomingModel RehomingModel OPTIONAL,
+transportQOS TransportQOS OPTIONAL,
+language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL
+}
+
+RegistrationReject ::= SEQUENCE -- (RRJ)
+{
+ requestSeqNum RequestSeqNum,
+ protocolIdentifier ProtocolIdentifier,
+ nonStandardData NonStandardParameter OPTIONAL,
+ rejectReason RegistrationRejectReason,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ ...
+ altGKInfo AltGKInfo OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ assignedGatekeeper AlternateGK OPTIONAL
+}
+
+```
+
+```
+
+}
+
+RegistrationRejectReason ::= CHOICE
+{
+ discoveryRequired NULL,
+ invalidRevision NULL,
+ invalidCallSignalAddress NULL,
+ invalidRASAddress NULL, -- supplied address is invalid
+ duplicateAlias SEQUENCE OF AliasAddress,
+ -- alias registered to another
+ -- endpoint
+
+ invalidTerminalType NULL,
+ undefinedReason NULL,
+ transportNotSupported NULL, -- one or more of the transports
+ ...,
+ transportQOSNotSupported NULL, -- endpoint QoS not supported
+ resourceUnavailable NULL, -- gatekeeper resources exhausted
+ invalidAlias NULL, -- alias not consistent with
+ -- gatekeeper rules
+
+ securityDenial NULL,
+ fullRegistrationRequired NULL, -- registration permission has
+ -- expired
+
+ additiveRegistrationNotSupported NULL,
+ invalidTerminalAliases SEQUENCE
+ {
+ terminalAlias SEQUENCE OF AliasAddress OPTIONAL,
+ terminalAliasPattern SEQUENCE OF AddressPattern OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix OPTIONAL,
+ ...
+ },
+ genericDataReason NULL,
+ neededFeatureNotSupported NULL,
+ securityError SecurityErrors,
+ registerWithAssignedGK NULL
+}
+
+UnregistrationRequest ::= SEQUENCE -- (URQ)
+{
+ requestSeqNum RequestSeqNum,
+ callSignalAddress SEQUENCE OF TransportAddress,
+ endpointAlias SEQUENCE OF AliasAddress OPTIONAL,
+ nonStandardData NonStandardParameter OPTIONAL,
+ endpointIdentifier EndpointIdentifier OPTIONAL,
+ ...,
+ alternateEndpoints SEQUENCE OF Endpoint OPTIONAL,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ reason UnregRequestReason OPTIONAL,
+ endpointAliasPattern SEQUENCE OF AddressPattern OPTIONAL,
+ supportedPrefixes SEQUENCE OF SupportedPrefix OPTIONAL,
+ alternateGatekeeper SEQUENCE OF AlternateGK OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ assignedGatekeeper AlternateGK OPTIONAL
+}
+
+UnregRequestReason ::= CHOICE
+{
+ reregistrationRequired NULL,
+ ttlExpired NULL,
+ securityDenial NULL,
+ undefinedReason NULL,
+ ...
+}
+
+```
+
+```
+
+ maintenance NULL,
+ securityError SecurityErrors2,
+ registerWithAssignedGK NULL
+}
+
+UnregistrationConfirm ::= SEQUENCE -- (UCF)
+{
+ requestSeqNum RequestSeqNum,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ assignedGatekeeper AlternateGK OPTIONAL
+}
+
+UnregistrationReject ::= SEQUENCE -- (URJ)
+{
+ requestSeqNum RequestSeqNum,
+ rejectReason UnregRejectReason,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ altGKInfo AltGKInfo OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+UnregRejectReason ::= CHOICE
+{
+ notCurrentlyRegistered NULL,
+ callInProgress NULL,
+ undefinedReason NULL,
+ ...,
+ permissionDenied NULL, -- requesting user not allowed to
+ -- unregister specified user
+ securityDenial NULL,
+ securityError SecurityErrors2
+}
+
+AdmissionRequest ::= SEQUENCE -- (ARQ)
+{
+ requestSeqNum RequestSeqNum,
+ callType CallType,
+ callModel CallModel OPTIONAL,
+ endpointIdentifier EndpointIdentifier,
+ destinationInfo SEQUENCE OF AliasAddress OPTIONAL,
+ destCallSignalAddress TransportAddress OPTIONAL,
+ destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL,
+ srcInfo SEQUENCE OF AliasAddress,
+ srcCallSignalAddress TransportAddress OPTIONAL,
+ bandWidth BandWidth,
+ callReferenceValue CallReferenceValue,
+ nonStandardData NonStandardParameter OPTIONAL,
+ callServices QseriesOptions OPTIONAL,
+ conferenceID ConferenceIdentifier,
+ activeMC BOOLEAN,
+ answerCall BOOLEAN, -- answering a call
+ ...,
+ canMapAlias BOOLEAN, -- can handle alias address
+ callIdentifier CallIdentifier,
+}
+
+```
+
+```
+
+srcAlternatives SEQUENCE OF Endpoint OPTIONAL,
+destAlternatives SEQUENCE OF Endpoint OPTIONAL,
+gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+tokens SEQUENCE OF ClearToken OPTIONAL,
+cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+integrityCheckValue ICV OPTIONAL,
+transportQOS TransportQOS OPTIONAL,
+willSupplyUUIEs BOOLEAN,
+callLinkage CallLinkage OPTIONAL,
+gatewayDataRate DataRate OPTIONAL,
+capacity CallCapacity OPTIONAL,
+circuitInfo CircuitInfo OPTIONAL,
+desiredProtocols SEQUENCE OF SupportedProtocols OPTIONAL,
+desiredTunnelledProtocol TunnelledProtocol OPTIONAL,
+featureSet FeatureSet OPTIONAL,
+genericData SEQUENCE OF GenericData OPTIONAL,
+canMapSrcAlias BOOLEAN
+}
+
+CallType ::= CHOICE
+{
+ pointToPoint NULL, -- Point-to-point
+ oneToN NULL, -- no interaction (FFS)
+ nToOne NULL, -- no interaction (FFS)
+ nToN NULL, -- interactive (multipoint)
+ ...
+}
+
+CallModel ::= CHOICE
+{
+ direct NULL,
+ gatekeeperRouted NULL,
+ ...
+}
+
+TransportQOS ::= CHOICE
+{
+ endpointControlled NULL,
+ gatekeeperControlled NULL,
+ noControl NULL,
+ ...
+ qoSCapabilities SEQUENCE SIZE(1..256) OF QOSCapability
+}
+
+AdmissionConfirm ::= SEQUENCE -- (ACF)
+{
+ requestSeqNum RequestSeqNum,
+ bandWidth BandWidth,
+ callModel CallModel,
+ destCallSignalAddress TransportAddress,
+ irrFrequency INTEGER (1..65535) OPTIONAL,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...
+ destinationInfo SEQUENCE OF AliasAddress OPTIONAL,
+ destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL,
+ destinationType EndpointType OPTIONAL,
+ remoteExtensionAddress SEQUENCE OF AliasAddress OPTIONAL,
+ alternateEndpoints SEQUENCE OF Endpoint OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ transportQOS TransportQOS OPTIONAL,
+ willRespondToIRR BOOLEAN,
+ uuiesRequested UUIEsRequested,
+}
+
+```
+
+```
+
+language SEQUENCE OF IA5String (SIZE (1..32)) OPTIONAL,
+alternateTransportAddresses AlternateTransportAddresses OPTIONAL,
+useSpecifiedTransport UseSpecifiedTransport OPTIONAL,
+circuitInfo CircuitInfo OPTIONAL,
+usageSpec SEQUENCE OF RasUsageSpecification OPTIONAL,
+supportedProtocols SEQUENCE OF SupportedProtocols OPTIONAL,
+serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+multipleCalls BOOLEAN OPTIONAL,
+featureSet FeatureSet OPTIONAL,
+genericData SEQUENCE OF GenericData OPTIONAL,
+modifiedSrcInfo SEQUENCE OF AliasAddress OPTIONAL,
+assignedGatekeeper AlternateGK OPTIONAL
+}
+
+UUIEsRequested ::= SEQUENCE
+{
+ setup BOOLEAN,
+ callProceeding BOOLEAN,
+ connect BOOLEAN,
+ alerting BOOLEAN,
+ information BOOLEAN,
+ releaseComplete BOOLEAN,
+ facility BOOLEAN,
+ progress BOOLEAN,
+ empty BOOLEAN,
+ ...,
+ status BOOLEAN,
+ statusInquiry BOOLEAN,
+ setupAcknowledge BOOLEAN,
+ notify BOOLEAN
+}
+
+AdmissionReject ::= SEQUENCE --(ARJ)
+{
+ requestSeqNum RequestSeqNum,
+ rejectReason AdmissionRejectReason,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ altGKInfo AltGKInfo OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ callSignalAddress SEQUENCE OF TransportAddress OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ assignedGatekeeper AlternateGK OPTIONAL
+}
+
+AdmissionRejectReason ::= CHOICE
+{
+ calledPartyNotRegistered NULL, -- cannot translate address
+ invalidPermission NULL, -- permission has expired
+ requestDenied NULL,
+ undefinedReason NULL,
+ callerNotRegistered NULL,
+ routeCallToGatekeeper NULL,
+ invalidEndpointIdentifier NULL,
+ resourceUnavailable NULL,
+ ...,
+ securityDenial NULL,
+ qosControlNotSupported NULL,
+ incompleteAddress NULL,
+ aliasesInconsistent NULL, -- multiple aliases in request
+}
+
+```
+
+```
+
+ -- identify distinct people
+routeCallToSCN SEQUENCE OF PartyNumber,
+exceedsCallCapacity NULL, -- destination does not have the
+ -- capacity for this call
+collectDestination NULL,
+collectPIN NULL,
+genericDataReason NULL,
+neededFeatureNotSupported NULL,
+securityError SecurityErrors2,
+securityDHmismatch NULL, -- mismatch of DH parameters
+noRouteToDestination NULL, -- destination unreachable
+unallocatedNumber NULL, -- destination number unassigned
+registerWithAssignedGK NULL
+}
+
+```
+
+BandwidthRequest ::= SEQUENCE --(BRQ)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ endpointIdentifier EndpointIdentifier,
+ conferenceID ConferenceIdentifier,
+ callReferenceValue CallReferenceValue,
+ callType CallType OPTIONAL,
+ bandWidth BandWidth,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ callIdentifier CallIdentifier,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ answeredCall BOOLEAN,
+ callLinkage CallLinkage OPTIONAL,
+ capacity CallCapacity OPTIONAL,
+ usageInformation RasUsageInformation OPTIONAL,
+ bandwidthDetails SEQUENCE OF BandwidthDetails OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ transportQOS TransportQOS OPTIONAL
+}
+
+```
+
+BandwidthConfirm ::= SEQUENCE --(BCF)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ bandWidth BandWidth,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ capacity CallCapacity OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ transportQOS TransportQOS OPTIONAL
+}
+
+```
+
+BandwidthReject ::= SEQUENCE --(BRJ)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ rejectReason BandRejectReason,
+ allowedBandWidth BandWidth,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ altGKInfo AltGKInfo OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+}
+
+```
+
+```
+
+ genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+BandRejectReason ::= CHOICE
+{
+ notBound NULL, -- discovery permission has aged
+ invalidConferenceID NULL, -- possible revision
+ invalidPermission NULL, -- true permission violation
+ insufficientResources NULL,
+ invalidRevision NULL,
+ undefinedReason NULL,
+ ...,
+ securityDenial NULL,
+ securityError SecurityErrors2}
+
+LocationRequest ::= SEQUENCE --(LRQ)
+{
+ requestSeqNum RequestSeqNum,
+ endpointIdentifier EndpointIdentifier OPTIONAL,
+ destinationInfo SEQUENCE OF AliasAddress,
+ nonStandardData NonStandardParameter OPTIONAL,
+ replyAddress TransportAddress,
+ ...,
+ sourceInfo SEQUENCE OF AliasAddress OPTIONAL,
+ canMapAlias BOOLEAN, -- can handle alias address
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ desiredProtocols SEQUENCE OF SupportedProtocols OPTIONAL,
+ desiredTunnelledProtocol TunnelledProtocol OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ hopCount INTEGER (1..255) OPTIONAL,
+ circuitInfo CircuitInfo OPTIONAL,
+ callIdentifier CallIdentifier OPTIONAL,
+ bandWidth BandWidth OPTIONAL,
+ sourceEndpointInfo SEQUENCE OF AliasAddress OPTIONAL,
+ canMapSrcAlias BOOLEAN,
+ language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL
+}
+
+LocationConfirm ::= SEQUENCE --(LCF)
+{
+ requestSeqNum RequestSeqNum,
+ callSignalAddress TransportAddress,
+ rasAddress TransportAddress,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ destinationInfo SEQUENCE OF AliasAddress OPTIONAL,
+ destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL,
+ destinationType EndpointType OPTIONAL,
+ remoteExtensionAddress SEQUENCE OF AliasAddress OPTIONAL,
+ alternateEndpoints SEQUENCE OF Endpoint OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ alternateTransportAddresses AlternateTransportAddresses OPTIONAL,
+ supportedProtocols SEQUENCE OF SupportedProtocols OPTIONAL,
+ multipleCalls BOOLEAN OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ circuitInfo CircuitInfo OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+}
+
+```
+
+```
+
+ modifiedSrcInfo SEQUENCE OF AliasAddress OPTIONAL,
+ bandWidth BandWidth OPTIONAL,
+ language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL
+}
+
+LocationReject ::= SEQUENCE -- (LRJ)
+{
+ requestSeqNum RequestSeqNum,
+ rejectReason LocationRejectReason,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...
+ altGKInfo AltGKInfo OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession OPTIONAL
+}
+
+LocationRejectReason ::= CHOICE
+{
+ notRegistered NULL,
+ invalidPermission NULL, -- exclusion by administrator or feature
+ requestDenied NULL,
+ undefinedReason NULL,
+ ...
+ securityDenial NULL,
+ aliasesInconsistent NULL, -- multiple aliases in request
+ -- identify distinct people
+ routeCalltoSCN SEQUENCE OF PartyNumber,
+ resourceUnavailable NULL,
+ genericDataReason NULL,
+ neededFeatureNotSupported NULL,
+ hopCountExceeded NULL,
+ incompleteAddress NULL,
+ securityError SecurityErrors2,
+ securityDHmismatch NULL, -- mismatch of DH parameters
+ noRouteToDestination NULL, -- destination unreachable
+ unallocatedNumber NULL -- destination number unassigned
+}
+
+DisengageRequest ::= SEQUENCE -- (DRQ)
+{
+ requestSeqNum RequestSeqNum,
+ endpointIdentifier EndpointIdentifier,
+ conferenceID ConferenceIdentifier,
+ callReferenceValue CallReferenceValue,
+ disengageReason DisengageReason,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...
+ callIdentifier CallIdentifier,
+ gatekeeperIdentifier GatekeeperIdentifier OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ answeredCall BOOLEAN,
+ callLinkage CallLinkage OPTIONAL,
+ capacity CallCapacity OPTIONAL,
+ circuitInfo CircuitInfo OPTIONAL,
+ usageInformation RasUsageInformation OPTIONAL,
+ terminationCause CallTerminationCause OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+```
+
+```
+
+}
+
+DisengageReason ::= CHOICE
+{
+ forcedDrop NULL, -- gatekeeper is forcing the drop
+ normalDrop NULL, -- associated with normal drop
+ undefinedReason NULL,
+ ...
+}
+
+DisengageConfirm ::= SEQUENCE -- (DCF)
+{
+ requestSeqNum RequestSeqNum,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ capacity CallCapacity OPTIONAL,
+ circuitInfo CircuitInfo OPTIONAL,
+ usageInformation RasUsageInformation OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ assignedGatekeeper AlternateGK OPTIONAL
+}
+
+DisengageReject ::= SEQUENCE -- (DRJ)
+{
+ requestSeqNum RequestSeqNum,
+ rejectReason DisengageRejectReason,
+ nonStandardData NonStandardParameter OPTIONAL,
+ ...,
+ altGKInfo AltGKInfo OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+DisengageRejectReason ::= CHOICE
+{
+ notRegistered NULL, -- not registered with gatekeeper
+ requestToDropOther NULL, -- cannot request drop for others
+ ...,
+ securityDenial NULL,
+ securityError SecurityErrors2
+}
+
+InfoRequest ::= SEQUENCE -- (IRQ)
+{
+ requestSeqNum RequestSeqNum,
+ callReferenceValue CallReferenceValue,
+ nonStandardData NonStandardParameter OPTIONAL,
+ replyAddress TransportAddress OPTIONAL,
+ ...,
+ callIdentifier CallIdentifier,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ uuiesRequested UUIEsRequested OPTIONAL,
+ callLinkage CallLinkage OPTIONAL,
+ usageInfoRequested RasUsageInfoTypes OPTIONAL,
+ segmentedResponseSupported NULL OPTIONAL,
+ nextSegmentRequested INTEGER (0..65535) OPTIONAL,
+ capacityInfoRequested NULL OPTIONAL,
+}
+
+```
+
+```
+
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ assignedGatekeeper AlternateGK OPTIONAL
+}
+
+InfoRequestResponse ::= SEQUENCE -- (IRR)
+{
+ nonStandardData NonStandardParameter OPTIONAL,
+ requestSeqNum RequestSeqNum,
+ endpointType EndpointType,
+ endpointIdentifier EndpointIdentifier,
+ rasAddress TransportAddress,
+ callSignalAddress SEQUENCE OF TransportAddress,
+ endpointAlias SEQUENCE OF AliasAddress OPTIONAL,
+ perCallInfo SEQUENCE OF SEQUENCE
+ {
+ nonStandardData NonStandardParameter OPTIONAL,
+ callReferenceValue CallReferenceValue,
+ conferenceID ConferenceIdentifier,
+ originator BOOLEAN OPTIONAL,
+ audio SEQUENCE OF RTPSession OPTIONAL,
+ video SEQUENCE OF RTPSession OPTIONAL,
+ data SEQUENCE OF TransportChannelInfo OPTIONAL,
+ h245 TransportChannelInfo,
+ callSignalling TransportChannelInfo,
+ callType CallType,
+ bandWidth BandWidth,
+ callModel CallModel,
+ ...
+ callIdentifier CallIdentifier,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ substituteConfIDs SEQUENCE OF ConferenceIdentifier,
+ pdu SEQUENCE OF SEQUENCE
+ {
+ h323pdu H323-UU-PDU,
+ sent BOOLEAN -- TRUE is sent, FALSE is received
+ } OPTIONAL,
+ callLinkage CallLinkage OPTIONAL,
+ usageInformation RasUsageInformation OPTIONAL,
+ circuitInfo CircuitInfo OPTIONAL
+ } OPTIONAL,
+ ...
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ needResponse BOOLEAN,
+ capacity CallCapacity OPTIONAL,
+ irrStatus InfoRequestResponseStatus OPTIONAL,
+ unsolicited BOOLEAN,
+ genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+InfoRequestResponseStatus ::= CHOICE
+{
+ complete NULL,
+ incomplete NULL,
+ segment INTEGER (0..65535),
+ invalidCall NULL,
+ ...
+}
+
+InfoRequestAck ::= SEQUENCE -- (IACK)
+{
+
+```
+
+```
+
+ requestSeqNum RequestSeqNum,
+ nonStandardData NonStandardParameter OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ ...
+ }
+
+ InfoRequestNak ::= SEQUENCE -- (INAK)
+ {
+ requestSeqNum RequestSeqNum,
+ nonStandardData NonStandardParameter OPTIONAL,
+ nakReason InfoRequestNakReason,
+ altGKInfo AltGKInfo OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ ...
+ }
+
+ InfoRequestNakReason ::= CHOICE
+ {
+ notRegistered NULL, -- not registered with gatekeeper
+ securityDenial NULL,
+ undefinedReason NULL,
+ ...,
+ securityError SecurityErrors2
+ }
+
+ NonStandardMessage ::= SEQUENCE
+ {
+ requestSeqNum RequestSeqNum,
+ nonStandardData NonStandardParameter,
+ ...,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL
+ }
+
+ UnknownMessageResponse ::= SEQUENCE -- (XRS)
+ {
+ requestSeqNum RequestSeqNum,
+ ...,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ messageNotUnderstood OCTET STRING
+ }
+
+ RequestInProgress ::= SEQUENCE -- (RIP)
+ {
+ requestSeqNum RequestSeqNum,
+ nonStandardData NonStandardParameter OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ delay INTEGER(1..65535),
+ ...
+ }
+
+ ResourcesAvailableIndicate ::= SEQUENCE -- (RAI)
+
+```
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ protocolIdentifier ProtocolIdentifier,
+ nonStandardData NonStandardParameter OPTIONAL,
+ endpointIdentifier EndpointIdentifier,
+ protocols SEQUENCE OF SupportedProtocols,
+ almostOutOfResources BOOLEAN,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ ...
+ capacity CallCapacity OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+```
+
+ResourcesAvailableConfirm ::= SEQUENCE --(RAC)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ protocolIdentifier ProtocolIdentifier,
+ nonStandardData NonStandardParameter OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ ...
+ genericData SEQUENCE OF GenericData OPTIONAL
+}
+
+```
+
+ServiceControlIndication ::= SEQUENCE --(SCI)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ nonStandardData NonStandardParameter OPTIONAL,
+ serviceControl SEQUENCE OF ServiceControlSession,
+ endpointIdentifier EndpointIdentifier OPTIONAL,
+ callSpecific SEQUENCE
+ {
+ callIdentifier CallIdentifier,
+ conferenceID ConferenceIdentifier,
+ answeredCall BOOLEAN,
+ ...
+ } OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+ ...
+}
+
+```
+
+ServiceControlResponse ::= SEQUENCE --(SCR)
+
+```
+
+{
+ requestSeqNum RequestSeqNum,
+ result CHOICE
+ {
+ started NULL,
+ failed NULL,
+ stopped NULL,
+ notAvailable NULL,
+ neededFeatureNotSupported NULL,
+ ...
+ } OPTIONAL,
+ nonStandardData NonStandardParameter OPTIONAL,
+ tokens SEQUENCE OF ClearToken OPTIONAL,
+ cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL,
+ integrityCheckValue ICV OPTIONAL,
+}
+
+```
+
+```
+ featureSet FeatureSet OPTIONAL,
+ genericData SEQUENCE OF GenericData OPTIONAL,
+
+}
+
+END -- of ASN.1
+```
+
+# **Annex I**
+
+## **H.263+ video packetization**
+
+(This annex forms an integral part of this Recommendation.)
+
+IETF RFC 2429 specifies the RTP payload format for H.263 video bitstreams that contain the new "H.263+" features adopted in version 2 (dated 1998) of Rec. ITU-T H.263 (includes the features using PLUSTYPE or Annex I/H.263 through Annex T/H.263).
+
+The ability to support the H.263 payload format of RFC 2190 as specified in Annex E is required for H.263 bitstreams which do not use the new version 2 features of Rec. ITU-T H.263, because this support is needed for compatibility with prior implementations. However, the new payload format specified in RFC 2429 should be used even for bitstreams which do not contain the new version 2 features, provided the newer payload format is within the capabilities of the receiving terminals.
+
+# Appendix I
+
+## RTP/RTCP algorithms
+
+(This appendix does not form an integral part of this Recommendation.)
+
+The referenced informative material may be found in the following proposed Internet Standard:
+
+- SCHULZRINNE (H.), CASNER (S.), FREDERICK (R.) and JACOBSON (V.): RFC 3550, RTP: A Transport Protocol for Real-Time Applications, *Internet Engineering Task Force*, 2003.
+
+# **Appendix II**
+
+## **RTP profile**
+
+(This appendix does not form an integral part of this Recommendation.)
+
+The referenced informative material may be found in the following proposed Internet Standard:
+
+- SCHULZRINNE (H.), CASNER (S.): RFC 3551, RTP Profile for Audio and Video Conferences with Minimal Control, *Internet Engineering Task Force*, 2003.
+
+# Appendix III
+
+## H.261 packetization
+
+(This appendix does not form an integral part of this Recommendation.)
+
+The referenced informative material may be found in the following proposed Internet Standard:
+
+- Even, R.: RFC 4587, RTP Payload Format for H.261 Video Streams, *Internet Engineering Task Force*, 2006.
+
+# Appendix IV
+
+## H.225.0 operation on different packet-based network protocol stacks
+
+(This appendix does not form an integral part of this Recommendation.)
+
+This appendix provides additional details concerning the operation of H.225.0 on various actual packet-based network protocol stacks. Packet-based networks used in this Recommendation shall provide both reliable and unreliable modes of operation, including a means to distinguish packet boundaries.
+
+## IV.1 TCP/IP/UDP
+
+Note that UDP can fragment and reassemble large video packets, but that failure to perform MB packetization may lead to the loss of an entire GOB.
+
+IP multicast should be used for GRQ distribution as opposed to media access layer broadcast.
+
+| Unreliable delivery applications | Call signalling and H.245 channel |
+|----------------------------------|-----------------------------------|
+| UDP | TPKT
_____
TCP |
+| IP | |
+| Link Layer | |
+| Physical Layer | |
+
+A TPKT is a packet format as defined in IETF RFC 1006. It is used to delimit individual messages (PDUs) within the TCP stream, which itself provides a continuous stream of octets without explicit boundaries. A TPKT consists of a one-octet version number field, followed by a one-octet reserved field, followed by a two-octet length field, followed by the actual data. The version number field shall contain the value "3", the reserved field shall contain the value "0". The length field shall contain the length of the entire packet including the version number, the reserved and the length fields as a 16-bit big-endian word.
+
+### IV.1.1 Discovering the gatekeeper
+
+#### IV.1.1.1 Discovery using multicast address or well-known port
+
+Following the gatekeeper discovery and registration procedures described in clause 7/H.323, endpoints should use the following multicast address or well-known port when attempting to discover the gatekeeper as appropriate for their network configuration:
+
+- UDP Address for multicast communication with gatekeepers: 224.0.1.41
+- UDP port for multicast communication with gatekeepers: 1718
+- UDP port for unicast RAS communication where no "other agreement" exists: 1719
+
+Note that "other agreement" may include registration of an endpoint with a gatekeeper.
+
+Note that implementations should pay attention to the scope of the multicast so as not to flood the Internet with discovery messages.
+
+Assuming a gatekeeper has an IP address for example of 134.134.12.1, the following signalling may occur:
+
+- LRQ or GRQ arrives at 134.134.12.1: port 1719;
+- LRQ or GRQ arrives at 134.134.12.1: port 1718 (note that this may occur with v1 GKs);
+- LRQ or GRQ arrives at 224.0.1.41: port 1718.
+
+The gatekeeper may transmit an LRQ to the following addresses:
+
+- 224.0.1.41: port 1718 (multicast to all GKs);
+- X.X.X.X: port 1719 (to a specific GK).
+
+Port 1719 should only be used when a request is sent unicast. This allows the receiver to know whether it should send a reject (xRJ) to the sender (it should in all cases).
+
+Port 1718 should only be used when a request is sent multicast. The receiver should respond with the appropriate response, depending on the message. For LRQ no reject required, the receiver does not reply for multicast requests. For GRQ, a directed GRJ should be sent to the source of the GRQ.
+
+#### **IV.1.1.2 Discovery using DNS (informative)**
+
+##### **IV.1.1.2.1 A URL for gatekeepers**
+
+As a first step, note that a gatekeeper is identified by a transport address and a gatekeeperIdentifier, which is a string. A gatekeeper is a particular resource on the Internet, so it is reasonable to specify it in a Uniform Resource Locator (URL). The protocol spoken by the gatekeeper is RAS, so the URL for a gatekeeper could be given by:
+
+`ras://gkID@domainname`
+
+gkID is the gatekeeperIdentifier, and domainname is a DNS domain name which identifies the gatekeeper's domain. Note that this is not necessarily a Fully Qualified Domain Name (FQDN) with an A-record – it is not required that this domain name has a physical transport interface with an IP number recorded in the DNS. If it is a FQDN, however, it is reasonable to insist that its IP number is that of the gatekeeper to which the URL refers. In this case, it is allowed to add an optional port number to the URL:
+
+`ras://gkID@domainname:port_no.`
+
+If no port number is given, then the well-known value of 1719 is taken as a default.
+
+The more interesting case is when this is not an FQDN, and then the domain name does not refer to a transport address listed in the DNS. The domain name then can refer to a pure "gatekeeper zone of authority". The next clause explains how to find the gatekeeper in this case.
+
+##### **IV.1.1.2.2 Finding the URL**
+
+The URL does not solve the problem of locating the gatekeeper, it just gives a standard format for the information to find. The problem is how to produce a transport address and gatekeeperIdentifier for RAS signalling given the domain name of a gatekeeper.
+
+If the gatekeeper has an IETF RFC 822-compliant identifier, it is easy to extract a domain name from the IETF RFC 822-compliant identifier of a gatekeeper. In fact, it may be convenient to give IETF RFC 822-compliant identifiers to endpoints, and then to stipulate that the domain name part of the identifier refers to the gatekeeper domain.
+
+###### **IV.1.1.2.2.1 The SRV resource record query**
+
+The first solution uses the fact that the gatekeeper is basically a system service, and the transport address of a named system service can be extracted from DNS by using a query for a new type of DNS Resource Record, called SRV (for "service location record"). Given a domain name, an
+
+SRV record query will be made for the transport address of the RAS service for that domain. The domain name itself, or one returned in the SRV response, is used as the gatekeeperIdentifier. The SRV record and its use are defined in IETF RFC 2782.
+
+###### IV.1.1.2.2.2 The TXT record query
+
+All current DNS implementations support the TXT resource record. Basically this is some free text that can be returned for each domain name. It is possible to store many TXT resources for a single domain. The standard stipulates that all TXT records will be returned when a query is made for them.
+
+It is possible to use TXT queries if the SRV queries fail. Assume the same convention for extracting a domain name that was suggested above. Either IETF RFC 822 compliant strings (email "-like" names) or IETF RFC 1768 compliant strings (URLs) can be used for gatekeeperIdentifiers. In either case the domain name is used to make a DNS TXT query for the domain name. The returned resource records are lines of free text, and the terminal will then look for lines in the response of the form:
+
+ras [@][:] []
+
+The field is an optional gatekeeper ID which is separate from the domain name. If this field is missing, then the domain itself is assumed to be the gatekeeper ID.
+
+The field can be either the name of the A-record which contains the gatekeeper's IP address, or a raw IP address in dotted form. The domain name need not be fully qualified; if it is not, the subdomain in which the TXT record was found should be appended to it to form the fully qualified A-record name.
+
+The optional [:] can be used to specify a port number other than the standard RAS port.
+
+The optional [] field specifies the order in which the listed gatekeepers should be accessed for discovery or LRQ queries if there is more than one RAS TXT record. Lower numbers have higher priority.
+
+Note that this format, if the field is missing, assumes that the gatekeeper IDs are in fact legal domain names. However, if it is necessary for a single host to support multiple logical gatekeepers, each with a separate ID, the format will support this. This is because separate A-records can contain the same IP address.
+
+White spaces are used as delimiters between **ras** and **gk id** if present or **domain name**, and between **portno** and **priority**. White spaces consist of any number of spaces or tabs.
+
+Examples of valid gatekeeper TXT records:
+
+- ras gk1
+- ras gk1.company.com
+- ras gk1:1500 3
+- ras 172.11.22.33:1500 2
+
+The client parses the returned lines, and from them obtains the transport address of the gatekeeper within that domain to which it can send RAS messages.
+
+Since DNS requires a server to return all TXT records associated with a domain name, the client can filter out and process only those records which are useful to it. It also allows DNS to return an ordered list of gatekeepers which can serve as alternatives and back-ups as defined in Rec. ITU-T H.323.
+
+Note that the server returned in such a query might be an actual transport address in dotted decimal notation, or it could be an FQDN which itself requires an A-record query in DNS to determine the transport address. The advantage of using an FQDN is the usual hiding of actual IP numbers. The advantage of using IP numbers is that a second DNS query is avoided, thus speeding up this pre-call setup time.
+
+##### IV.1.1.2.3 Gatekeeper processing of email-IDs during ARQ and LRQ
+
+When the **destinationInfo** field of an ARQ or LRQ message contains an **email-ID** alias address, the gatekeeper should first check its registration database for the alias. If it cannot be resolved, the gatekeeper should parse the alias to recover its domain portion. If no domain is given, the gatekeeper may generate a default domain. The domain is then used to locate one or more gatekeepers, using the procedures in IV.1.1.2.2. The gatekeeper may then query all gatekeepers thus found with an LRQ/LCF/LRJ message exchange.
+
+Note that more than one gatekeeper may have corresponding TXT records in a single DNS domain. Consequently, a single DNS domain can "contain" more than one H.323 zone. Therefore, even if a gatekeeper cannot resolve an email-ID whose domain portion is one of its default domains, it may still query other zones in the same DNS domain.
+
+If the gatekeeper is presented with an unregistered alias which is an **h323-id** and the ID can be interpreted as a legal user portion of an IETF RFC 822 name, the gatekeeper may interpret the alias as if it were an email-ID in its default domain and attempt to locate the alias in some other gatekeeper. Similarly, an email-ID from an incoming LRQ may be stripped of its domain name by the gatekeeper so that it may be located as an h323-ID.
+
+### IV.1.2 Endpoint-to-endpoint communications
+
+Endpoints which wish to receive calls from endpoints outside the zone of their gatekeeper should use the following port for the Call Signalling channel:
+
+- Endpoint TCP Call Signalling Port 1720
+
+While it is permitted to use dynamic values for these ports to allow multiple endpoints in a single device, it must be understood that this will prevent interoperation with endpoints outside the zone of the gatekeeper except via a gateway in the zone.
+
+## IV.2 SPX/IPX
+
+Note that since there is no network reassembly of large packets, the use of MB fragmentation is essential.
+
+| Unreliable delivery applications | H.245 channel call signalling channel |
+|----------------------------------|---------------------------------------|
+| PXP | SPX |
+| IPX | |
+| Link Layer | |
+| Physical Layer | |
+
+### IV.2.1 Discovering the gatekeeper
+
+In IPX terminology, a "socket" is the equivalent of a "port" in IP and a "TSAP Identifier" in this Recommendation and in Rec. ITU-T H.323.
+
+On IPX-based networks, the gatekeepers should advertise the "gatekeeper service type" defined below to allow endpoints to locate them on a network. Likewise, endpoints should query for the "gatekeeper service type" to find the location of the nearest gatekeeper.
+
+- Gatekeeper Service Type FFS.
+
+NOTE – The service type is referred to as the SAP socket in some IPX documentation.
+
+### IV.2.2 Endpoint-to-endpoint communication
+
+Endpoints which wish to receive calls from endpoints outside the zone of their gatekeeper should use the following sockets for Call signalling.
+
+– Endpoint IPX Call Signalling Port FFS.
+
+While it is permitted to use dynamic values for these sockets to allow multiple endpoints in a single device, it must be understood that this will prevent interoperation with endpoints outside the zone of the gatekeeper except via a gateway in the zone.
+
+## IV.3 SCTP
+
+The protocol stack of H.323 over SCTP looks as follows:
+
+| | |
+|-----------------------------------------|----------------------------------------------------|
+| Unreliable delivery applications | Call signalling with tunnelled call control |
+| UDP | SCTP |
+| IP | |
+| Link Layer | |
+| Physical Layer | |
+
+Each H.225.0 call signalling message shall be transferred in separate SCTP DATA chunk. No headers shall be added (i.e., no TPKT). Ordered delivery shall be specified.
+
+### IV.3.1 Streams
+
+All messages of the same call shall use same SCTP stream. Implementation may use different streams for different calls.
+
+### IV.3.2 Payload protocol identifiers
+
+SCTP may be used with undefined payload protocol identifier (0) or with 13, which is the number assigned to H.323 by IANA.
+
+# Appendix V
+
+## ASN.1 usage in this Recommendation
+
+(This appendix does not form an integral part of this Recommendation.)
+
+This appendix lists the ASN.1 conventions that have been used in this Recommendation. Future revisions of this Recommendation should use only these constructs. Additional ASN.1 constructs will only be considered in exceptional circumstances.
+
+## V.1 Tagging
+
+All tags within this Recommendation are AUTOMATIC TAGS.
+
+## V.2 Types
+
+The following types may occur in the ASN.1 definitions of this Recommendation.
+
+| | | |
+|---------------|-------------------|--------------|
+| BIT STRING | IA5String | OCTET STRING |
+| BMPString | INTEGER | SEQUENCE |
+| BOOLEAN | NULL | SEQUENCE OF |
+| CHOICE | NumericString | SET |
+| GeneralString | OBJECT IDENTIFIER | SET OF |
+
+## V.3 Constraints and ranges
+
+This Recommendation uses size constraints ("SIZE") for strings, SET OF and SEQUENCE OF, value range constraints for integers, and permitted alphabets ("FROM").
+
+## V.4 Extensibility
+
+This Recommendation uses the extension marker (ellipsis "...").
+
+# Appendix VI
+
+## H.225.0 identifiers of tunnelled signalling protocols
+
+(This appendix does not form an integral part of this Recommendation.)
+
+This Recommendation supports the tunnelling of non-H.323 call signalling protocols, as described in 10.4/H.323. The Annex M/H.323 series of Recommendations (M.1/H.323, M.2/H.323, etc.) defines tunnelling for specific protocols. A tunnelled protocol in this Recommendation is identified by information in the **TunnelledProtocol** ASN.1 structure defined in 7.6 and in Annex H. This appendix provides a list of **TunnelledProtocol** identifiers that have been allocated to specific tunnelled protocols.
+
+Tunnelled protocols that are defined as of this Recommendation are shown in Tables VI.1 and VI.2. Note that tunnelling is not restricted to the protocols listed in these tables.
+
+**Table VI.1 – Tunnelled protocols identified by tunnelledProtocolObjectID**
+
+| Tunnelling specification | Protocol specification | tunnelledProtocolObjectID | subIdentifier |
+|--------------------------|-------------------------|------------------------------------------------------------------------------------|---------------|
+| M.1/H.323 | ISO/IEC 11572 and 11582 | {iso(1) identified-organization(3) icd-ecma(12) private-isdn-signalling-domain(9)} | (None) |
+| M.2/H.323 | Rec. ITU-T Q.763 (1988) | {itu-t(0) recommendation(0) q(17) 763} | "1988" |
+| M.2/H.323 | Rec. ITU-T Q.763 (1993) | {itu-t(0) recommendation(0) q(17) 763} | "1993" |
+
+**Table VI.2 – Tunnelled protocols identified by TunnelledProtocolAlternateIdentifier**
+
+| Tunnelling specification | Protocol specification | protocolType | protocolVariant | subIdentifier |
+|--------------------------|------------------------|--------------|-------------------------|---------------|
+| M.2/H.323 | ANSI T1.113-1988 | "isup" | "ANSI T1.113-1988" | "1988" |
+| M.2/H.323 | ETS 300 121 | "isup" | "ETS 300 121" | "121" |
+| M.2/H.323 | ETS 300 356 | "isup" | "ETS 300 356" | "356" |
+| M.2/H.323 | BELLCORE GR-317 | "isup" | "BELLCORE GR-317" | "317" |
+| M.2/H.323 | JT-Q761-4 (1987-1992) | "isup" | "JT-Q761-4 (1987-1992)" | "87" |
+| M.2/H.323 | JT-Q761-4 (1993) | "isup" | "JT-Q761-4 (1993)" | "93" |
+
+
+
+
+
+# SERIES OF ITU-T RECOMMENDATIONS
+
+| | |
+|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Series A | Organization of the work of ITU-T |
+| Series D | Tariff and accounting principles and international telecommunication/ICT economic and policy issues |
+| Series E | Overall network operation, telephone service, service operation and human factors |
+| Series F | Non-telephone telecommunication services |
+| Series G | Transmission systems and media, digital systems and networks |
+| Series H | Audiovisual and multimedia systems |
+| Series I | Integrated services digital network |
+| Series J | Cable networks and transmission of television, sound programme and other multimedia signals |
+| Series K | Protection against interference |
+| Series L | Environment and ICTs, climate change, e-waste, energy efficiency; construction, installation and protection of cables and other elements of outside plant |
+| Series M | Telecommunication management, including TMN and network maintenance |
+| Series N | Maintenance: international sound programme and television transmission circuits |
+| Series O | Specifications of measuring equipment |
+| Series P | Telephone transmission quality, telephone installations, local line networks |
+| Series Q | Switching and signalling, and associated measurements and tests |
+| Series R | Telegraph transmission |
+| Series S | Telegraph services terminal equipment |
+| Series T | Terminals for telematic services |
+| Series U | Telegraph switching |
+| Series V | Data communication over the telephone network |
+| Series X | Data networks, open system communications and security |
+| Series Y | Global information infrastructure, Internet protocol aspects, next-generation networks, Internet of Things and smart cities |
+| Series Z | Languages and general software aspects for telecommunication systems |
\ No newline at end of file
diff --git a/marked/H/T-REC-H.235.2-200509-I_PDF-E/raw.md b/marked/H/T-REC-H.235.2-200509-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..90d34812ca3d132cab42b5dbbb57e26d96d84543
--- /dev/null
+++ b/marked/H/T-REC-H.235.2-200509-I_PDF-E/raw.md
@@ -0,0 +1,761 @@
+
+
+International Telecommunication Union
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.235.2**
+
+(09/2005)
+
+SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS
+Infrastructure of audiovisual services – Systems aspects
+
+---
+
+**H.323 security: Signature security profile**
+
+ITU-T Recommendation H.235.2
+
+ITU-T
+
+
+
+The logo of the International Telecommunication Union (ITU) features a globe with a red lightning bolt striking it, symbolizing global communication. To the right of the globe, the text "International Telecommunication Union" is written in a blue, sans-serif font, with "ITU" in a larger, bold font above it.
+
+ITU logo
+
+# ITU-T H-SERIES RECOMMENDATIONS **AUDIOVISUAL AND MULTIMEDIA SYSTEMS**
+
+| | |
+|-------------------------------------------------------------------------------|--------------------|
+| CHARACTERISTICS OF VISUAL TELEPHONE SYSTEMS | H.100–H.199 |
+| INFRASTRUCTURE OF AUDIOVISUAL SERVICES | |
+| General | H.200–H.219 |
+| Transmission multiplexing and synchronization | H.220–H.229 |
+| Systems aspects | H.230–H.239 |
+| Communication procedures | H.240–H.259 |
+| Coding of moving video | H.260–H.279 |
+| Related systems aspects | H.280–H.299 |
+| Systems and terminal equipment for audiovisual services | H.300–H.349 |
+| Directory services architecture for audiovisual and multimedia services | H.350–H.359 |
+| Quality of service architecture for audiovisual and multimedia services | H.360–H.369 |
+| Supplementary services for multimedia | H.450–H.499 |
+| MOBILITY AND COLLABORATION PROCEDURES | |
+| Overview of Mobility and Collaboration, definitions, protocols and procedures | H.500–H.509 |
+| Mobility for H-Series multimedia systems and services | H.510–H.519 |
+| Mobile multimedia collaboration applications and services | H.520–H.529 |
+| Security for mobile multimedia systems and services | H.530–H.539 |
+| Security for mobile multimedia collaboration applications and services | H.540–H.549 |
+| Mobility interworking procedures | H.550–H.559 |
+| Mobile multimedia collaboration inter-working procedures | H.560–H.569 |
+| BROADBAND AND TRIPLE-PLAY MULTIMEDIA SERVICES | |
+| Broadband multimedia services over VDSL | H.610–H.619 |
+
+*For further details, please refer to the list of ITU-T Recommendations.*
+
+## **ITU-T Recommendation H.235.2**
+
+# **H.323 security: Signature security profile**
+
+## **Summary**
+
+This Recommendation describes an optional security profile for deploying digital signatures to secure the H.225.0 signalling.
+
+In earlier versions of the H.235 subseries, this profile was contained in Annex E/H.235. Appendices IV, V, VI to H.235.0 show the complete clause, figure, and table mapping between H.235 versions 3 and 4.
+
+### **Source**
+
+ITU-T Recommendation H.235.2 was approved on 13 September 2005 by ITU-T Study Group 16 (2005-2008) under the ITU-T Recommendation A.8 procedure.
+
+### **Keywords**
+
+Authentication, certificate, digital signature, encryption, integrity, key management, multimedia security, security profile.
+
+## FOREWORD
+
+The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications. The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU-T study groups which, in turn, produce Recommendations on these topics.
+
+The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
+
+In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
+
+### NOTE
+
+In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure e.g. interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
+
+## INTELLECTUAL PROPERTY RIGHTS
+
+ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
+
+As of the date of approval of this Recommendation, ITU had not received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementors are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database.
+
+© ITU 2006
+
+All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
+
+## CONTENTS
+
+###### Page
+
+| | | |
+|------|-------------------------------------------------------------------------------|----|
+| 1 | Scope ..... | 1 |
+| 2 | References..... | 1 |
+| 2.1 | Normative references..... | 1 |
+| 2.2 | Informative references..... | 2 |
+| 3 | Terms and definitions ..... | 2 |
+| 4 | Symbols and abbreviations ..... | 3 |
+| 5 | Conventions ..... | 4 |
+| 6 | Overview ..... | 5 |
+| 6.1 | H.323 requirements ..... | 7 |
+| 7 | Digital signatures with public/private key pairs details (procedure II) ..... | 8 |
+| 8 | Multipoint conferencing procedures..... | 9 |
+| 9 | End-to-end authentication (procedure III)..... | 9 |
+| 10 | Authentication-only ..... | 11 |
+| 11 | Authentication and integrity ..... | 12 |
+| 12 | Computation of the digital signature ..... | 12 |
+| 13 | Verification of the digital signature..... | 13 |
+| 14 | Handling of certificates..... | 13 |
+| 15 | Usage illustration for procedure II..... | 15 |
+| 15.1 | RAS message authentication, integrity and non-repudiation ..... | 15 |
+| 15.2 | RAS authentication only..... | 16 |
+| 15.3 | H.225.0 message authentication, integrity and non-repudiation ..... | 17 |
+| 15.4 | H.245 message authentication and integrity..... | 17 |
+| 16 | H.235 version 1 compatibility ..... | 18 |
+| 17 | Multicast behaviour ..... | 18 |
+| 18 | List of secure signalling messages..... | 18 |
+| 18.1 | H.225.0 RAS ..... | 18 |
+| 18.2 | H.225.0 call signalling..... | 19 |
+| 19 | Usage of sendersID and generalID ..... | 19 |
+| 20 | List of object identifiers..... | 20 |
+
+
+
+# H.323 security: Signature security profile
+
+# 1 Scope
+
+This Recommendation describes an optional security profile for deploying digital signatures to secure the H.225.0 signalling.
+
+# 2 References
+
+## 2.1 Normative references
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
+
+- ITU-T Recommendation H.225.0 (2003), *Call signalling protocols and media stream packetization for packet-based multimedia communication systems*.
+- ITU-T Recommendation H.235 (1998), *Security and encryption for H-series (H.323 and other H.245-based) multimedia terminals*.
+- ITU-T Recommendation H.235.0 (2005), *H.323 security: Framework for security in H-series (H.323 and other H.245-based) multimedia systems*.
+- ITU-T Recommendation H.235.1 (2005), *H.323 security: Baseline security profile*.
+- ITU-T Recommendation H.235.6 (2005), *H.323 security: Voice encryption profile with native H.235/H.245 key management*.
+- ITU-T Recommendation H.245 (2005), *Control protocol for multimedia communication*.
+- ITU-T Recommendation H.323 (2003), *Packet-based multimedia communications systems*.
+- ITU-T Recommendation Q.931 (1998), *ISDN user-network interface layer 3 specification for basic call control*.
+- ITU-T Recommendation X.509 (2005) | ISO/IEC 9594-8:2005, *Information technology – Open Systems Interconnection – The Directory: Public-key and attribute certificate frameworks*.
+- ITU-T Recommendation X.800 (1991), *Security architecture for Open Systems Interconnection for CCITT applications*.
+- ITU-T Recommendation X.803 (1994) | ISO/IEC 10745:1995, *Information technology – Open Systems Interconnection – Upper layers security model*.
+- ITU-T Recommendation X.810 (1995) | ISO/IEC 10181-1:1996, *Information technology – Open Systems Interconnection – Security frameworks for open systems: Overview*.
+- ITU-T Recommendation X.811 (1995) | ISO/IEC 10181-2:1996, *Information technology – Open Systems Interconnection – Security frameworks for open systems: Authentication framework*.
+
+- ISO/IEC 9798-3:1998, *Information technology – Security techniques – Entity authentication – Part 3: Mechanisms using digital signature techniques.*
+- IETF RFC 3280 (2002), *Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile.*
+
+## 2.2 Informative references
+
+- [ISO/IEC 14888-3] ISO/IEC 14888-3:1998, *Information technology – Security techniques – Digital signatures with appendix – Part 3: Certificate-based mechanisms.*
+- [PKCS] PKCS #1 v2.0: *RSA Cryptography Standard*; RSA Laboratories; October 1, 1998; .
+- [PKCS] PKCS #7: *Cryptographic Message Syntax Standard*, An RSA Laboratories Technical Note, version 1.5, Revised November 1, 1993;
+- [RFC1321] IETF RFC 1321 (1992), *The MD5 Message-Digest Algorithm.*
+- [RFC3447] IETF RFC 3447 (2003), *Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1.*
+
+# 3 Terms and definitions
+
+For the purposes of this Recommendation, the definitions given in clauses 3/H.323, 3/H.225.0 and 3/H.245 apply along with those in this clause. Some of the terms used in this Recommendation are also defined in ITU-T Recs X.800 | ISO 7498-2, X.803 | ISO/IEC 10745, X.810 | ISO/IEC 10181-1 and X.811 | ISO/IEC 10181-2.
+
+**3.1 certification authorities:** Certification Authorities (CAs), when used in the context of electronic signature, certify public verification keys by issuing "Certificates".
+
+**3.2 certificate repositories:** Certificate repositories (e.g., an X.500 Directory) hold user certificates and Certificate Revocation Lists (CRLs). They are trusted to make that information accessible but are not responsible for the content or accuracy of the information they receive from the CAs or the RAs.
+
+**3.3 digital signature:** Is a cryptographic transformation (using an asymmetric cryptographic technique) of the numerical representation of a data message, such that any person having the signed message and the relevant public key can determine that:
+
+- the transformation was created using the private key corresponding to the relevant public key; and
+- the signed message has not been altered since the cryptographic transformation.
+
+**3.4 on-line certificate status providers:** The On-line Certificate Status Protocol (OCSP) enables applications to determine the revocation state of an identified certificate. OCSP may be used to satisfy some of the operational requirements of providing revocation information in a more timely way than is possible with CRLs. On-line certificate status providers can be seen as an alternative to the use of off-line CRLs.
+
+**3.5 proxy:** The proxy is an intermediate H.323 entity similar to a gatekeeper. The proxy may be a separate network node or may be collocated with the functionality of an H.323 entity such as of the gatekeeper. The proxy may perform security tasks such as signature and certificate verification and access control.
+
+**3.6 registration authorities:** Registration authorities act as intermediaries between users and CAs. They receive requests from users and transmit them to the CAs in an appropriate form.
+
+**3.7 time stamping authorities:** Time stamping authorities are mandatory for non-repudiation in case of key loss or key compromise. In practice, they provide a counter-signature to anyone, including a reliable time, over a hash and a hash identifier.
+
+**3.8 trust service provider:** An entity, which can be used by other entities as a trusted intermediary in a communication or verification process, or as a trusted information service provider.
+
+This Recommendation uses the following terms for provisioning the security services.
+
+**3.9 authentication-only:** This security service of the signature security profile supports user authentication where the user authenticates when correctly digitally signing some piece of data by the private key. Note that this security service does not provide countermeasures against arbitrary cut and paste, message manipulation or tampering attacks. Authentication-only may be useful for security proxies that verify authenticity of the message (data origin authentication) when forwarding the message to another destination (e.g., Gatekeeper).
+
+NOTE – The forwarding usually changes certain parts of the message; thus end-to-end integrity cannot be realized.
+
+Nevertheless, authentication-only can be applied on a hop-by-hop basis as well. Procedure III specifies this security service for an end-to-end scenario while procedure II specifies this security service for the hop-by-hop case.
+
+**3.10 authentication and integrity:** This is a combined security service that supports message integrity in conjunction with user authentication. The user authenticates when correctly digitally signing some piece of data by the private key. In addition to that, the message is protected against tampering. Both security services are provided by the same security mechanism. Combined authentication and integrity is possible only on a hop-to-hop basis. Procedure II specifies this security service.
+
+NOTE – When digital signatures are applied, a non-repudiation security service may be supported; this depends also on the settings of the key usage bits of the signing key in the certificate (see also RFC 3280).
+
+# 4 Symbols and abbreviations
+
+This Recommendation uses the following abbreviations:
+
+| | |
+|-------|---------------------------------------|
+| ARQ | Admission Request |
+| ASN.1 | Abstract Syntax Notation One |
+| CA | Certification Authority |
+| CRL | Certificate Revocation List |
+| DH | Diffie-Hellman |
+| DNS | Domain Name Service |
+| EP | Endpoint |
+| EPID | Endpoint Identifier |
+| GK | Gatekeeper |
+| GKID | Gatekeeper Identifier |
+| GRQ | Gatekeeper Request |
+| ICV | Integrity Check Value |
+| IP | Internet Protocol |
+| ITU | International Telecommunication Union |
+
+| | |
+|------|----------------------------------------|
+| LDAP | Light-weight Directory Access Protocol |
+| LRQ | Location Request |
+| MCU | Multipoint Control Unit |
+| MD5 | Message Digest 5 |
+| NAT | Network Address Translation |
+| OID | Object Identifier |
+| OCSP | Online Certificate Status Protocol |
+| PKCS | Public-Key Crypto System |
+| RA | Registration Authority |
+| RAS | Registration, Admission and Status |
+| RSA | Rivest, Shamir, Adleman |
+| RTP | Real-Time Protocol |
+| SHA | Secure Hash Algorithm |
+| URL | Uniform Resource Locator |
+
+# 5 Conventions
+
+In this Recommendation the following conventions are used:
+
+- "shall" indicates a mandatory requirement.
+- "should" indicates a suggested but optional course of action.
+- "may" indicates an optional course of action rather than a recommendation that something take place.
+
+The signature security profile may use the **voice encryption security profile** of H.235.1 for achieving voice confidentiality if necessary.
+
+Procedures II and III specify how to implement the security services for different scenarios as hop-by-hop and end-to-end with different security mechanisms such as asymmetric cryptographic (digital signature) techniques.
+
+While the message integrity service always provides message authentication, the reverse is not always true. For the authentication-only mode, the integrity assured spans only a certain subset of message fields. This applies to integrity services realized by asymmetric means (e.g., digital signatures). Thus, in practice, a combined authentication and integrity service uses the same key material without introducing a security weakness.
+
+Moreover, all hop-by-hop security information is put into the **CryptoSignedToken** element. This information is recomputed at every hop according to procedure II.
+
+End-to-end security information on the other hand (only possible when using the H.323 proxy and procedure III), basically computes similar information as put in the **CryptoSignedToken**, but stores that information in a separate **CryptoToken** of the message. This information is not changed in transit. A separate object identifier allows distinguishing between hop-by-hop and end-to-end **CryptoTokens**.
+
+Asymmetric techniques using digital signatures may apply on a hop-by-hop and/or also on an end-to-end basis.
+
+# 6 Overview
+
+This Recommendation describes an optional security profile for deploying digital signatures to secure the H.225.0 signalling. H.323 security entities (terminals, gatekeepers, gateways, MCUs, etc.) may implement this signature security profile for improved security or whenever required.
+
+The signature security profile mandates the GK-routed model and is based upon the H.245 tunnelling techniques; support for non GK-routed models is for further study.
+
+The signature security profile is applicable for scaleable "global" IP telephony; this security profile overcomes the limitations of the simple, baseline security profile of H.235.1. For example, the signature security profile does not depend on the administration of mutual shared secrets of the hops in different domains. It provides tunnelling of H.245 messages for H.245 message integrity and also provisions for non-repudiation of messages. The signature security profile supports hop-by-hop security as well as true end-to-end authentication with simultaneous use of H.235 proxies or intermediate gatekeepers.
+
+The features provided by these profiles include, for RAS, H.225.0 and H.245 messages:
+
+- User authentication to a desired entity irrespective of the number of application level hops that the message traverses.
+
+NOTE 1 – "Hop" is understood here in the sense of a trusted H.235 network element (e.g., GK, GW, MCU, proxy, firewall). Thus, application level hop-by-hop security when used with symmetric techniques does not provide true end-to-end security between terminals.
+
+- Integrity of all or critical portions (fields) of messages arriving at an entity irrespective of the number of application level hops that the message traverses. Integrity of the message itself using a strongly generated random number is also optional.
+- Application level hop-by-hop message authentication, integrity and non-repudiation provide these security services for the entire message.
+- Non-repudiation of messages exchanged between two entities irrespective of the number of application level hops that the message traverses can also be provided. Specifically, the non-repudiation is provided for critical portions (fields) of the message. For instance, this may be the case when an EP sends a SETUP message to its GK and the two (EP and GK) are separated by one or more proxies.
+
+Several attacks are thwarted by providing the above security services in a suitable fashion. These include:
+
+- Denial-of-service attacks: Rapid checking of digital signatures can prevent such attacks.
+- Man-in-the-middle attacks: Application level hop-by-hop message authentication and integrity prevents against such attacks when the man in the middle is between an application level hop, say, a hostile router. When the man in the middle is an application level entity, such attacks are prevented by the presence of end-to-end user authentication and integrity for selected portions of the message.
+- Replay attacks: Use of timestamps and sequence numbers prevent such attacks.
+- Spoofing: User authentication prevents such attacks.
+- Connection hijacking: Use of authentication/integrity for each signalling message prevents such attacks.
+
+This security profile is applicable in environments with potentially many terminals where password/symmetric key assignment is not feasible, e.g., in large-scale or global-scale scenarios. The signature security profile provides additional security services for non-repudiation using digital signatures and certificates. The digital signatures could use SHA1 or MD5 hashing and provides authentication and/or integrity (see procedures II and III).
+
+H.323 entities using authentication and integrity, or authentication-only on a hop-by-hop basis, shall use procedure II. H.323 entities using just authentication-only would not implement integrity. The authentication-only H.323 entities shall use procedure III for true end-to-end authentication.
+
+This Recommendation may apply message integrity protection that spans the entire message. For H.225.0 RAS the integrity protection covers the entire RAS message; for call signalling this covers the entire H.225.0 call signalling message including the Q.931 headers.
+
+The signature security profile allows to securely tunnel H.245 call control PDUs within H.225.0 facility messages. The H.245 key update and synchronization mechanisms require tunnelling, e.g., useful for very long duration calls.
+
+NOTE 2 – Key-update for secure G.711 speech coding should occur latest after transmission of $2^{30}$ 64-bit blocks, i.e., more than 12 days of ongoing conversation.
+
+The vertically shaded area (blue in the electronic copy) in Table 1 represents the scope of the signature security profile. When omitting the integrity indicated by the horizontally shaded area (green in the electronic copy), the authentication-only security profile results. An option within the signature security profile is to choose between RSA-SHA1 or RSA-MD5 digital signatures. The voice encryption security profile of H.235.6 (see 6.1/H.235.6) could be optionally used in conjunction with the signature security profile.
+
+**Table 1/H.235.2 – Signature security profile**
+
+| Security services | Call functions | | | | | | RTP |
+|-------------------|------------------------|-----|------------------------|-----|-------------------|-----|-----|
+| | RAS | | H.225.0 | | H.245 (Note) | | |
+| Authentication | SHA1/ | MD5 | SHA1/ | MD5 | SHA1/ | MD5 | |
+| | digital signature | | digital signature | | digital signature | | |
+| Non-repudiation | SHA1/ | MD5 | SHA1/ | MD5 | SHA1/ | MD5 | |
+| | digital signature | | digital signature | | digital signature | | |
+| Integrity | SHA1/ | MD5 | SHA1/ | MD5 | SHA1/ | MD5 | |
+| | digital signature | | digital signature | | digital signature | | |
+| Confidentiality | | | | | | | |
+| Access control | | | | | | | |
+| Key management | certificate allocation | | certificate allocation | | | | |
+
+NOTE – Tunnelled H.245 or embedded H.245 inside H.225.0 fast connect.
+
+NOTE 3 – The signature security profile has to be supported also by other H.235 entities (e.g., gatekeepers, gateways and H.235 proxies).
+
+NOTE 4 – Available key usage bits in the certificate could also determine the security service provided by a terminal (e.g., non-repudiation asserted).
+
+For authentication, the user should use a public/private key signature scheme. Such a scheme usually provides for better integrity and non-repudiation of the call.
+
+This Recommendation does **not** describe procedures for:
+
+- Registration, certification and certificate allocation from a trust centre and private/public key assignment, directory services, specific CA parameters, certificate revocation, key pair update/recovery and other certificate operational or management procedures such as certificate or public/private key and certificate delivery and installation in terminals.
+
+Such procedures may happen by means that are not part of this Recommendation.
+
+The communication entities involved are able to implicitly determine usage of either the H.235.1 baseline security profiles or this signature security profile by evaluating the signalled security object identifiers in the messages (**tokenOID**, and **algorithmOID**; see also clause 20).
+
+The following procedures are described for use in this profile:
+
+Procedure II is based on digital signatures using a private/public key pair for providing authentication, integrity and non-repudiation of RAS, Q.931 and H.245 messages. Terminals may use this method if non-repudiation and sophisticated integrity is required.
+
+Depending on the security policy, authentication may be unilateral or mutual applying the authentication/integrity in the reverse direction as well and providing higher security thereby. The security policy of a terminal may allow "authentication-only" without computing cryptographic integrity (see clause 9).
+
+Gatekeepers detecting failed authentication and/or failed integrity validation in a RAS/call signalling message received from a terminal/peer gatekeeper respond with a corresponding reject message indicating security failure by setting the reject reason to **securityDenial** or other appropriate security error code according to 11.1/H.235.0. Depending on the ability to recognize an attack, and the most appropriate way to react to it, a gatekeeper receiving a secured **xRQ** with undefined object identifiers (**tokenOID**, **algorithmOID**) should respond with an unsecured **xRJ**, or may discard that message. The encountered security event should be logged. On the other hand, the endpoint shall discard the received unsecured message, time out and may retry once again by considering to choose different OIDs. Likewise, a gatekeeper receiving a secured H.225.0 SETUP message with undefined object identifiers (**tokenOID**, **algorithmOID**) should respond with an unsecured RELEASE COMPLETE and reason set to **securityDenied** or may discard that message. Similarly, the encountered security event should be logged.
+
+There is implicit H.235 signalling for indicating use of procedure II and the applied security mechanism based upon the value of the object identifiers (see also clause 20) and the message fields filled in. Object identifiers are referenced symbolically through letters (e.g., "A") in this text.
+
+This profile does not use the H.235 ICV fields; rather cryptographic integrity check values are put into the **signature** field of the **token** in the **cryptoSignedToken**.
+
+## 6.1 H.323 requirements
+
+H.323 entities that implement this signature profile are assumed to support the following H.323 features:
+
+- Fast connect;
+- GK-routed model.
+
+# 7 Digital signatures with public/private key pairs details (procedure II)
+
+The following procedures shall be adhered to if procedure II is employed for hop-by-hop security:
+
+- SHA1 or MD5 along with the RSA algorithm should be used to generate the digital signature. Adherence to PKCS #1 and PKCS #7 facilitates interoperability in this regard.
+
+The **CryptoH323Token** field in each RAS/H.225.0 message shall contain the following fields:
+
+- **nestedCryptoToken** containing a **CryptoToken** which itself contains the **cryptoSignedToken** containing the following fields:
+ - **tokenOID** set to:
+ - "A", indicating that the authentication/integrity computation includes all fields in the H.225.0 RAS or call signalling message (see clause 11);
+ - "B", indicating that the authentication/integrity computation includes only a subset of fields (see clause 10) in the RAS/H.225.0 message for authentication-only.
+ - **token** containing the fields:
+ - **toBeSigned** containing the **EncodedGeneralToken** which actually is a **ClearToken** with the following fields set:
+ - **tokenOID** set to "S", indicating that **ClearToken** is being used for message authentication/integrity/non-repudiation;
+ - **timeStamp** contains the time stamp;
+ - **random** contains a monotonically increasing sequence number;
+ - **generalID** contains the identifier of the recipient (only in case of unicast messages);
+ - **sendersID** contains the identifier of the sender;
+ - **dhkey**, used to pass the Diffie-Hellman parameters as specified in this Recommendation during **Setup to Connect**:
+ - **halfkey** contains the random public key of one party;
+ - **modsize** contains the DH-**prime** (see Table 4/H.235.6);
+ - **generator** contains the DH-group (see Table 4/H.235.6).
+
+NOTE 1 – When the signature security profile is used without the voice encryption security profile then no Diffie-Hellman parameters should be sent and **dhkey** should be absent; **halfkey**, **modsize** and **generator** may be set to {'0'B,'0'B,'0'B}.
+
+- **certificate** contains the digital certificate of the sender where type indicates the certificate type ("V" for MD5-RSA certificates or "W" for SHA1-RSA certificates) and **certificate** carries the actual certificate (see clause 14).
+- **algorithmOID** set to:
+ - "V" indicating the use of MD5-RSA signature;
+ - "W" indicating the use of SHA1-RSA signature.
+- **params** set to NULL.
+- **signature** containing the signature computed using SHA1 or MD5 RSA on all the fields (if **tokenOID** is "A", see clause 11) or certain critical fields (if **tokenOID** is "B", see clause 10) of the H.225.0 RAS or call signalling message.
+
+When **tokenOID** "A" is used for protection of tunnelled H323-UU-PDUs including all H.245 message contents, then the signature computation shall be done over the entire H.225.0 call signalling message with all fields according to the procedure described in clause 11. In case **tokenOID** "B" is used, authentication-only of the **CryptoToken** is achieved when applying the procedure III (see clause 10).
+
+- An entity (which may be one or more application hops away) for whom the signature is meant, verifies the signature.
+
+NOTE 2 – The recipient is able to detect usage of procedure II by evaluating the **algorithmOID** within the token of the **cryptoSignedToken** (detecting presence of "V" or "W").
+
+# 8 Multipoint conferencing procedures
+
+MCUs shall support secured distribution of certificates upon request from terminals by the tunnelled H.245 **ConferenceRequest** and **ConferenceResponse** commands as described in 8.8.1/H.235.6. This allows terminals to request certificates from other terminals in a multipoint conference environment and thereby obtain certainty about the other participants' identity in the conference.
+
+**ConferenceRequest** conveys **requestTerminalCertificate** of which the following fields are set:
+
+- **terminalLabel**: used as addressing means of the remote terminal through the MCU;
+- **certSelectionCriteria**: the sender may request certificates only of specific types;
+- **sRandom**: a random challenge generated by the requesting sender.
+
+**ConferenceResponse** conveys **terminalCertificateResponse** of which the following fields are set:
+
+- **terminalLabel**: allows association of the returned certificate to the terminal.
+- **CertificateResponse**: conveys the response from the MCU with fields set to:
+ - **terminalLabel**: identification of the remote terminal;
+ - **certificateResponse**: this is actually an octet string ASN.1 encoded from the **EncodedReturnSig** as:
+ - **generalID**: identification of the destination terminal;
+ - **responseRandom**: random challenge value generated by the MCU;
+ - **requestRandom**: **sRandom** played back;
+ - **certificate**: conveys the returned certificate where **type** indicates the certificate type as OID and **certificate** carries the digital certificate (see clause 14).
+
+# 9 End-to-end authentication (procedure III)
+
+Figure 1 shows a scenario with proxies separating GKs and EPs where two different **CryptoTokens** are used for hop-by-hop as well as end-to-end authentication and/or hop-by-hop integrity. The **CryptoToken** for hop-by-hop authentication applies only to the leg between two entities and has to be recomputed on every other leg. On the other hand, the **CryptoToken** for end-to-end authentication is generated just once by the sending endpoint and is not changed in transit by intermediate nodes. Intermediate nodes may validate signatures and certificates conveyed in end-to-end **CryptoTokens** and should forward the **CryptoToken** in transit.
+
+
+
+Diagram illustrating the simultaneous use of hop-by-hop and end-to-end authentication in H.235.2. The diagram shows a sequence of entities: EP (Endpoint), PXY (Proxy), GK (GK), GK, PXY, and EP. Arrows indicate the flow of messages between them. Above the sequence, 'CryptoToken 1 for hop-by-hop authentication/integrity' is shown with lines pointing to the PXY and GK entities. Below the sequence, 'CryptoToken 2 for end-to-end authentication-only' is shown with a line pointing to the EP entities. The label 'H.235.2\_F.1' is in the bottom right corner.
+
+**Figure 1/H.235.2 – Simultaneous use of hop-by-hop security and end-to-end authentication**
+
+NOTE 1 – The proxy may be a separate network node as shown in Figure 1 or may be collocated with the functionality of an H.323 entity, e.g., as part of the GK.
+
+NOTE 2 – Depending on the signalled **tokenOID**, the proxy is able to determine whether the received **CryptoToken** is destined for the proxy ("S") or some other recipient ("R").
+
+NOTE 3 – Due to the fact that intermediate entities change signalling message contents on every leg, end-to-end integrity is not possible.
+
+For true end-to-end authentication across H.323 proxies or intermediate network elements, the sending endpoint/terminal shall compute a digital signature as follows.
+
+The **CryptoH323Token** field in each RAS/H.225.0 message shall contain the following fields:
+
+- **nestedCryptoToken** containing a **CryptoToken** which itself contains the **cryptoSignedToken** containing the following fields:
+ - **tokenOID** set to:
+ - "A", indicating that the hop-by-hop authentication/integrity computation includes all fields in the RAS/H.225.0 message (see clause 11);
+ - "B", indicating that the authentication computation includes only a subset of fields (see clause 10) in the H.225.0 RAS or call signalling message for authentication only.
+- **token** containing the fields:
+ - **toBeSigned** containing the **ClearToken** field used with the following fields:
+ - **tokenOID** set to "R" indicating that **ClearToken** is being used for authentication-only/non-repudiation on an end-to-end basis;
+
+NOTE 4 – Which security service is actually being applied depends also on the key usage bits in the certificate.
+
+- **random** contains a monotonically increasing sequence number;
+- **timeStamp** optionally for enhanced security only when the terminating end entities are time synchronized;
+- **generalID** contains the endpoint identifier of the recipient (only in case of unicast). In case of hop-by-hop this is the identifier of the next hop; in case of end-to-end this is the far-end endpoint identifier;
+- **sendersID** contains the endpoint sender;
+- **certificate** contains the digital certificate of the sender where **type** indicates the certificate type ("V" for MD5-RSA certificates or "W" for SHA1-RSA certificates) and **certificate** carries the actual certificate (see clause 14);
+
+- **dhkey**, used to pass the Diffie-Hellman parameters as specified in this Recommendation during **Setup** to **Connect**:
+ - **halfkey** contains the random public key of one party;
+ - **modsize** contains the DH-prime (see Table 4/H.235.6);
+ - **generator** contains the DH-group (see Table 4/H.235.6).
+
+NOTE 5 – When the signature security profile is used without the voice encryption security profile, then no Diffie-Hellman parameters should be sent and **dhkey** should be absent; **halfkey**, **modsize** and **generator** may be set to {'0'B,'0'B,'0'B'}.
+
+- **algorithmOID** set to:
+ - "V", indicating the use of MD5-RSA signature;
+ - "W", indicating the use of SHA1-RSA signature.
+- **params** set to NULL.
+- **signature** containing the signature computed using SHA1-RSA or MD5-RSA on all the fields (if **tokenOID** is "A") or certain critical fields (if **tokenOID** is "B") of the H.225.0 RAS or call signalling message.
+
+The proxy may verify any obtained digital signature and/or certificate and may discard the message if not considered appropriate according to the local policy or the proxy shall forward the received **CryptoToken** further on. The proxy has to generate new H.235 signalling information elements for the hop-by-hop security according to procedures II or III.
+
+The entity terminating the leg (this could be a terminal), should verify received security information in the **CryptoToken** and depending on the presence of end-to-end security elements, may additionally evaluate the end-to-end **CryptoToken** information. The exact verification procedures in a terminal or an intermediate H.323 entity may vary according to local policy.
+
+# 10 Authentication-only
+
+Terminals may choose to implement authentication-only (using OID "B"). In this case, the authenticator is computed just over a subset (**ClearToken** inside **CryptoToken**) of the RAS/H.225.0 message. Authentication-only may be useful for true end-to-end authentication (see clause 9). The following fields in the **ClearToken** structure are used as the subset:
+
+- **tokenOID**: There is a separate token object identifier (tokenOID "B") for authentication-only implementation.
+- **random**: The monotonically increasing sequence number.
+- **timeStamp**: The time stamp.
+- **generalID**: The identifier of the recipient (only in case of unicast messages). In case of hop-by-hop, this is the identifier of the next hop; in case of end-to-end, this is the far-end endpoint identifier.
+- **sendersID**: The identifier of the sender.
+- **dhkey**: The Diffie-Hellman parameters. This field and subfields are used during **Setup** to **Connect** messages.
+
+The authenticator is computed over the **ClearToken** inside the **EncodedGeneralToken** (i.e., **ClearToken**) of the **token** of the **cryptoSignedToken**. The digital signature shall be computed over the ASN.1-encoded bitstring of **ClearToken**. Before computing the digital signature, the **tokenOID** in the **ClearToken** shall be set to {0 0}.
+
+# 11 Authentication and integrity
+
+For authentication and message integrity over all the ASN.1-coded message fields (using OID "A"), the procedure is the following.
+
+The sender of a message shall compute the signature as follows:
+
+- 1) Set the signature value to a specific default pattern with a fixed length (e.g., 1024 bits). This step shall reserve space for the maximum length of a digital signature, which is possible due to a given certificate. The exact bit pattern here does not matter, but a good choice is a unique bit pattern that does not occur in the remaining message.
+- 2) ASN.1 encodes the entire message; for RAS this shall include the entire H.225.0 RAS message; for call signalling this shall include the entire H.225.0 call signalling message.
+- 3) Locate the default pattern in the encoded message; overwrite the found bit pattern all with zero bits.
+
+NOTE 1 – This may involve some trial-and-error steps in the rare case when the default pattern occurs more than once in the message.
+
+- 4) Compute the digital signature upon the ASN.1-encoded message using the method indicated by the **algorithmOID** "V" or "W" (see clause 12).
+- 5) Substitute the default pattern in the encoded message with the computed digital signature value. In case the digital signature is shorter than the reserved space, leading zeros shall be put in front of the most significant bits of the signature value.
+
+The recipient receives the message and then proceeds as follows:
+
+- 1) ASN.1 decodes the message.
+- 2) Extract the received digital signature value and keep it in a local variable SV.
+- 3) Search and locate the signature value SV in the received encoded message.
+
+NOTE 2 – In rare circumstances where the signature value substring might occur several times in the entire message, steps 3-6 have to be iterated successively with a different starting search position.
+
+- 4) Overwrite the bit pattern in the encoded message all with zeros.
+- 5) Compute the digital signature upon the encoded message using the method indicated by the **algorithmOID** "V" or "W" (see clause 12).
+- 6) Compare SV with the computed signature value. The message is considered uncorrupted and authentic only if both signature values are equal; in this case, the authentication is successful and the procedure stops.
+- 7) Otherwise, repeat steps 3-7 by restoring SV to the previous location and search for another match. If none of the matches yield a correct signature value comparison, then the authentication has failed and the message has been altered (accidentally or intentionally) during transit, or for some other reason.
+
+# 12 Computation of the digital signature
+
+The input to the digital signature generation process is an ASN.1-encoded bit string and includes the result of the message digest calculation process and the signer's private key. The details of the digital signature generation depend on the signature algorithm employed; the certificate determines the signature algorithm to be applied; when the key usage extension in the certificate is present, the **digitalSignature** bit must be set for the key to be eligible for signing. The signature value generated by the signer is encoded as a bit string and carried in the **signature** field.
+
+The method described in [PKCS #1, section E.8.1.1] for computing an RSA-based digital signature with appendix (RSASSA-PKCS1-v1\_5-SIGN) along with the procedures OS2IP, RSASP1, I2OSP and the EMSA-PKCS1-v1\_5-ENCODE method shall be used.
+
+# 13 Verification of the digital signature
+
+The input to the signature verification process includes the result of the message digest calculation process and the signer's public key. The recipient may obtain the correct public key for the signer by any means, but the preferred method is from a certificate obtained from the **certificate** field and then validated using the hash of the signer's certificate. The validation of the signer's public key may be based on the certification path processing (RFC 3280). The details of the signature verification depend on the signature algorithm employed.
+
+The method described in [PKCS #1, section E.8.1.2] for verifying an RSA-based digital signature with appendix (RSASSA-PKCS1-v1\_5-VERIFY) along with the procedures OS2IP, RSAVP1, I2OSP and the EMSA-PKCS1-v1\_5-ENCODE method shall be used.
+
+# 14 Handling of certificates
+
+For verification of digital signatures, the receiving entity must have access to the sender's certificate that is signed by a recognized certification authority (CA). There are several possibilities as to how the recipient can access the sender's certificate:
+
+- The certificate is included in the message exchange as described by procedures II and III; in this case, **certificate** holds the actual certificate and **type** holds OID "V" or OID "W".
+- The recipient knows the certificate, possibly stored locally from an earlier exchange.
+- Instead of including the certificate itself, the sender provides a URL where the certificate can be found. For this, **certificate** contains the URL and **type** is set to OID "P".
+- The recipient obtains the certificate through some other means outside the scope of this Recommendation (e.g., LDAP directory lookup).
+
+Whenever a digital certificate is conveyed in a message, the receiving entity (gatekeeper, endpoint) shall check the identity of the sender (gatekeeper, endpoint) against the identity of the certificate in order to prevent man-in-the-middle attacks.
+
+For digitally signed messages sent from the gatekeeper to the endpoint, different possibilities exist for an endpoint to check the gatekeeper identity:
+
+- If the hostname is available, for example, in the common name attribute of the subject field or of the subjectAltName field in the certificate, the endpoint may check this hostname against the gatekeeper identifier. Additionally, the endpoint may use DNS to query the associated IP address and check it against the gatekeeper's IP address as presented in the gatekeeper's signed response message.
+- For example, the gatekeeper identifier may be constructed by the IP address (represented as a 4 byte value in network byte order) concatenated with other identifying information of the gatekeeper identifier, truncated to the maximum length of senders ID field, which carries the gatekeeper's identity. The endpoint may additionally check the IP address belonging to the hostname against the IP address presented in the IP header of the response of the gatekeeper.
+
+NOTE – This method would not work as expected when Network address translation (NAT) devices are involved.
+
+- If the hostname is not available in the certificate, the IP address, which would be part of the certificate (*iPAddress subjectAltName*), shall be taken directly to perform the checks stated above.
+
+Users should carefully examine the certificate presented by the gatekeeper to determine if it meets their expectations. If the endpoint has external information as to the expected identity of the gatekeeper, the hostname check may be omitted. For instance, an endpoint may be connecting to a gatekeeper whose address and hostname are dynamic but the endpoint knows the certificate that the gatekeeper will present. In such cases, it is important to narrow the scope of acceptable certificates as much as possible in order to prevent man-in-the-middle attacks. In special cases, it may be appropriate for the endpoint to simply ignore the gatekeeper's identity, but it must be understood that this leaves the connection open to active attacks.
+
+If the hostname does not match the identity in the certificate, user oriented endpoints shall either notify the user (endpoints may give the user the opportunity to continue with the connection in any case) or terminate the connection with a bad certificate error. Automated endpoints shall log the error to an appropriate audit log (if available) and should terminate the connection (with a bad certificate error).
+
+Automated endpoints may provide a configuration setting that disables this check, but shall provide a setting, which enables it.
+
+Likewise, it is recommended that the gatekeeper perform an identity check for any digitally signed messages sent from the endpoint to the gatekeeper. How exactly the gatekeeper would implement such a checking is considered as a local matter and should be subject to implementation of the gatekeeper's security policy. As an example, one may imagine that the user name conveyed within the certificate may also be part of the H.323 identifier. Further on, the gatekeeper may crosscheck such identity information against locally administered/configured user data if available and may base a policy decision upon that.
+
+If the gatekeeper has external information as to the expected identity of the endpoint, the hostname check may be omitted. For instance, a gatekeeper may be connecting to an endpoint whose address and hostname are dynamic, but the gatekeeper knows the certificate that the endpoint will present. In such cases, it is important to narrow the scope of acceptable certificates as much as possible in order to prevent man-in-the-middle attacks. In special cases, it may be appropriate for the gatekeeper to simply ignore the endpoint identity, but it must be understood that this leaves the connection open to active attack.
+
+If the hostname does not match the identity in the certificate, the gatekeeper shall log the error to an appropriate audit log (if available) and should terminate the connection (with a bad certificate error).
+
+If a subjectAltName extension of type dNSName is present, that shall be used as the identity. Otherwise, the (most specific) Common Name field in the Subject field of the certificate shall be used. Although the use of the Common Name is existing practice, it is deprecated and Certification Authorities are encouraged to use the dNSName instead.
+
+Matching shall be performed using the matching rules specified by RFC 3280. If more than one identity of a given type is present in the certificate (e.g., more than one dNSName name), a match in any one of the set is considered acceptable. Names may contain the wildcard character \* which is considered to match any single domain name component or component fragment. For example, \*.a.com matches foo.a.com but not bar.foo.a.com. f\*.com matches foo.com but not bar.com.
+
+Procedures II and III provide means to carry a digital certificate. For efficiency, the digital certificates of the entities need to be transmitted at most only once if they are not already available in the entities through other means outside of this Recommendation. The certificate exchange thus should occur only at the beginning of a communication establishment: for RAS, this occurs either during gatekeeper discovery or, if this phase is omitted, then during gatekeeper registration. Similarly, for fast connect, where the certificate may be included in the initial call signalling messages but can safely be omitted in later call signalling messages.
+
+For this security profile, an X.509v3 (1997) certificate shall be used. Other certificate formats are for further study.
+
+# 15 Usage illustration for procedure II
+
+Consider the case in Figure 2 where each entity has its own private-public key pair/certificate. An entity may also possess multiple key pairs. In the figure, an H.323 proxy separates EP1 from GK1.
+
+
+
+Legend:
+
+- H.225.0 RAS
+- - - - - H.225.0 Call signalling
+
+H.235.2\_F.2
+
+Diagram illustrating public-key usage in a GK-GK routed model. It shows two groups: the left group contains EP1 (key-pair1), a Proxy (key-pair2), and GK1 (key-pair3); the right group contains GK2 (key-pair4) and EP2 (key-pair5). Solid lines represent H.225.0 RAS messages, and dashed lines represent H.225.0 Call signalling. EP1 sends a dashed line to the Proxy, which sends a solid line to GK1. GK1 sends a solid line to GK2, which sends a dashed line to EP2.
+
+**Figure 2/H.235.2 – Illustrating public-key usage in a GK-GK routed model**
+
+The H.323 proxy acts in a dual behaviour. On the one hand, the proxy terminates the authentication and integrity on each of its legs. The proxy actively includes the freshly computed authentication/integrity information in the outgoing RAS messages in a similar manner as described in procedure I of H.235.1. On the other hand, the proxy lets the end-to-end security information pass unmodified. The proxy may, however, verify received certificates and/or digital signatures in transit.
+
+Below, we illustrate the procedure details for RAS, H.225.0 call signalling and H.245 message authentication, integrity and non-repudiation.
+
+## 15.1 RAS message authentication, integrity and non-repudiation
+
+Consider the case for a hop-to-hop communication where EP1 wishes to send a RAS message, say an **ARQ** message, to GK1. EP1 generates a timestamp and a sequence number and includes it in the **timeStamp** and **random** fields respectively, along with the proxy's alias in the **generalID** field and the **sendersID** of EP1. These fields are present in the **ClearToken** field of the **EncodedGeneralTokens** present in the **token** of the **cryptoSignedToken** of the **CryptoToken** field of the **cryptoH323Token** of the **ARQ** message. This **cryptoH323Token** is one of at least several tokens in the **cryptoTokens** sequence. The **tokenOID** within the **cryptoSignedToken** is set to "A", indicating that all the fields in the **ARQ** message are signed. The **token** in **cryptoSignedToken** has **algorithmOID** set to "V", indicating the use of MD5-RSA or **algorithmOID** set to "W", indicating the use of SHA1-RSA and **params** set to NULL. EP1 then computes the signature based on the given signature algorithm using its private key. The signature is computed over all the fields of the **ARQ** message when **tokenOID** is set to "A". EP1 includes the computed signature within **signature** in the **token** field of the **cryptoSignedToken** field of the **CryptoToken** present in the **cryptoH323Token** of the **ARQ** message and includes its certificate in the **certificate** field.
+
+Similarly, for the end-to-end communication through a proxy, EP1 generates another **CryptoToken** containing a digital signature that covers certain critical fields (see clause 9) in the **ClearToken** of the **ARQ** message. The **tokenOID** in the **CryptoSignedToken** is set to "B", indicating authentication-only of that **ClearToken**; sets **tokenOID** in the **ClearToken** to "R", indicating end-to-end authentication, also **timeStamp**, **random**, **sendersID**, **generalID** and in case it is a **SETUP/CONNECT** also **dhkey**, sets in **token** the following fields: **algorithmOID** to "V" or "W", indicating the signature algorithm, **params** to NULL, and **signature** to the computed digital signature over the **ClearToken** fields. The **certificate** carries the digital certificate of EP1. The **ARQ** message is then sent to the proxy.
+
+Upon receiving the **ARQ** message, the proxy verifies the signature of those tokens that are addressed to it (in this case, say, that with **tokenOID** "A"). This is based on several criteria that include:
+
+- liveness of the timestamp, uniqueness of the **random**;
+- identity of the **generalID** and own identifier;
+- access permissions for the **sendersID**;
+- matching of signature in **ARQ** message with that computed by GK1;
+- verification of Diffie-Hellman parameters, e.g., testing whether the 1024-bit prime and generator are correct. Testing of whether the DH-parameters are secure is a time-consuming process and may be done only when local policy requires it;
+- verification of the received certificate.
+
+If the signature is successfully verified, the proxy computes a new signature to insert (replace) in the **ARQ** message before forwarding it to GK1 as follows. The proxy replaces the **timeStamp**, **random**, **sendersID** and **generalID** fields in the **ClearToken** (**toBeSigned**) field using values relevant to the proxy-GK1 leg. The **timestamp** field contains the current timestamp, the **random** field contains the next monotonically increasing sequence number for the proxy-GK1 leg, the **sendersID** of the proxy and the **generalID** field contains the alias of GK1. The proxy then computes a new signature for this **ARQ** message using its private key and signature algorithm, inserts it in **signature** within **token** and adds its **certificate**. The proxy also includes the received end-to-end **CryptoToken** with its **ClearToken** in the new outgoing message and passes the **ARQ** message on to GK1. The signature, computed by EP1 based on selected fields of the **ARQ** message (**tokenOID** of "B") and which was not meant for the proxy, is also passed untouched in the **ARQ** message to GK1.
+
+Upon receiving the **ARQ** message, GK1 verifies the signatures, computes a new signature after modifying the **ClearToken** fields in **toBeSigned** suitably, inserts it in the **signature** field, adds its **certificate** and passes the **Setup** message on to EP2. Again, GK1 should forward any end-to-end information received in the separate **CryptoTokens** to the peer GK2 by including that information into a separate **CryptoToken** unmodified.
+
+## 15.2 RAS authentication only
+
+Consider the case for a hop-to-hop communication where EP1 wishes to send a RAS message, say an **ARQ** message, to GK1. EP1 generates a timestamp and a sequence number and includes it in the **timeStamp** and **random** fields respectively, along with the proxy's alias in the **generalID** field and the EP's id in the **sendersID**. These fields are present in the **ClearToken** field of **toBeSigned** present in the **token** in **cryptoSignedToken** of the **CryptoToken** field of the **cryptoH323Token** of the **ARQ** message. The **tokenOID** within the **cryptoSignedToken** is set to "B" indicating that only the specified subset fields in the **ClearToken** are signed. The **token** in **cryptoSignedToken** has **algorithmOID** set to "V" indicating use of MD5-RSA or "W" indicating use of the SHA1-RSA signature algorithm and **params** set to NULL. EP1 then computes the signature based on the signature algorithm using its private key. The signature is computed over the specified **ClearToken**
+
+fields of the **ARQ** message. EP1 includes the computed signature within **signature** in the **token** field of the **cryptoSignedToken** field of the **CryptoToken** present in the **cryptoH323Token** of the **ARQ** message and adds its **certificate**.
+
+Similarly, EP1 generates another digital signature for end-to-end authentication that covers certain **ClearToken** fields in a separate **CryptoToken** in the **ARQ** message. This digital signature (identified by **tokenOID** of "V" or "W") is included. The **ARQ** message is then sent to the proxy.
+
+Upon receiving the **ARQ** message, the proxy verifies the signature of those tokens that are addressed to it (in this case, say, that with **tokenOID** "B"). This is based on several criteria that include:
+
+- liveness of the **timestamp**, uniqueness of the **random**;
+- identity of the **generalID** and own identifier;
+- access permissions for the **sendersID**;
+- matching of signature in **ARQ** message with that computed by GK1;
+- verification of the received certificate.
+
+If the signature is successfully verified, the proxy computes a new signature to insert (replace) in the **ARQ** message before forwarding it to GK1 as follows. The proxy replaces the **timeStamp**, **random**, **sendersID** and **generalID** fields in the **ClearToken** field of **toBeSigned** using values relevant to the proxy-GK1 leg. The **timestamp** field contains the current timestamp, the **random** field contains the next monotonically increasing sequence number for the proxy-GK1 leg, and the **generalID** field contains the alias of GK1. The proxy then computes a new signature for this **ClearToken** using its private key and signature algorithm MD5-RSA or SHA1-RSA (**algorithmOID** ="V" or "W"), inserts it in **signature** within **token** of **cryptoSignedToken**, adds its **certificate** and passes the **ARQ** message on to GK1. The signature computed by EP1 based on selected **ClearToken** fields of the **ARQ** message (**tokenOID** of "B") and which was not meant for the proxy is also passed untouched in the **ARQ** message to GK1.
+
+Upon receiving the **ARQ** message, GK1 verifies the signature, computes a new signature after modifying the **ClearToken** fields in **toBeSigned** suitably, inserts it in the **signature** field and passes the **Setup** message on to EP2. The end-to-end signature information from EP1 is included untouched in the **Setup** message.
+
+## 15.3 H.225.0 message authentication, integrity and non-repudiation
+
+The procedure for H.225.0 messages is identical to that for RAS messages. The only difference is that the set of fields that need to be signed has to be identified for each H.225.0 call signalling message when the **tokenOID** is set to "B".
+
+## 15.4 H.245 message authentication and integrity
+
+Consider the case where EP1 wishes to send an H.245 message, say a **TerminalCapabilitySet** message, to EP2. EP1 checks to see if an H.225.0 message needs to be sent to the proxy. If so, then the H.245 message is tunnelled within that H.225.0 message. The fields within the H.225.0 message are set as described earlier for the transmission of a H.225.0 message. Since the H.245 message is tunnelled, the **h323-uu-pdu** in the **h323-UserInfo** message has its fields set as follows:
+
+- **h323-message-body** field is set to the H.225.0 message type that is being transmitted.
+- **h245Tunnelling** set to TRUE.
+- **h245Control** contains the H.245 PDU octet string.
+
+However, if no H.225.0 message transmission is pending, then the H.245 message is tunnelled within an ad hoc H.225.0 **facility** message. The **h323-uu-pdu** in the **h323-UserInfo** message has its fields set as follows:
+
+- **h323-message-body** field is set to **facility** which contains:
+ - **reason** set to **undefinedReason**;
+ - **tokens** and **cryptoTokens** set as for any H.225.0 message.
+- **h245Tunnelling** set to TRUE.
+- **h245Control** contains the H.245 PDU octet string.
+
+The **facility** message is then transmitted by EP1 to the proxy.
+
+In either case (whether a H.225.0 message transmission is pending or an ad hoc H.225.0 **facility** message is used), the proxy verifies the signature which is meant for it (in this case, depicted by **tokenOID** of "A") upon receiving the message. Then, if a H.225.0 message transmission is pending for the proxy-GK1 leg, the H.245 message is tunnelled within that message; otherwise, it is tunnelled within an ad hoc H.225.0 **facility** message. As in the case of transmission of any H.225.0 call signalling message, a new signature is computed for the H.225.0 message prior to its transmission from the proxy to GK1. The signature that was sent from EP1 to the proxy and that was not meant for the proxy is passed untouched by the proxy onto GK1.
+
+This clause provides a summary of how, and by which means, the signature profile secures the various H.323 signalling messages.
+
+# 16 H.235 version 1 compatibility
+
+While these security profiles are developed with H.235 version 2 (ITU-T Rec. H.235v2) in mind, it is also possible to apply the security profiles for H.235 version 1 (ITU-T Rec. H.235v1) with some minor modifications. A recipient is able to detect presence of the sender's H.235 protocol version by evaluating the security profile object identifiers (see clause 20).
+
+H.235 version 1 (ITU-T Rec. H.235v1) implementations:
+
+- do not set or evaluate the **sendersID** in the **ClearToken**.
+
+# 17 Multicast behaviour
+
+H.225.0 multicast messages such as **GRQ** or **LRQ** shall include a **CryptoToken** according to the procedures II and III where the **generalID** is not set. When such messages are sent unicast, then the message shall include a **CryptoToken**.
+
+# 18 List of secure signalling messages
+
+## 18.1 H.225.0 RAS
+
+| H.225.0 RAS message | H.235 signalling fields | Authentication-only | Authentication and integrity | Non-repudiation |
+|---------------------|-------------------------|---------------------|------------------------------|------------------|
+| Any | cryptoTokens | Procedure II/III | Procedure II/III | Procedure II/III |
+
+NOTE – For unicast messages, procedures II or III shall be applied with the security fields in the **CryptoToken** used.
+
+## 18.2 H.225.0 call signalling
+
+| H.225.0 call signalling message | H.235 signalling fields | Authentication-only | Authentication and integrity | Non-repudiation |
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|---------------------|------------------------------|------------------|
+| Alerting-UUIE,
CallProceeding-UUIE,
Connect-UUIE, Setup-UUIE,
Facility-UUIE,
Progress-UUIE,
Information-UUIE,
ReleaseComplete-UUIE,
Status-UUIE, StatusInquiry-UUIE,
SetupAcknowledge-UUIE, Notify-UUIE | cryptoTokens | Procedure II/III | Procedure II/III | Procedure II/III |
+
+# 19 Usage of sendersID and generalID
+
+The **ClearToken** holds **sendersID** and **generalID** fields. When identification information is available, the **sendersID** shall be set to the gatekeeper identifier (GKID) for the gatekeeper-initiated message and to the endpoint identifier (EPID) for the endpoint-initiated messages. When identification information is available, the **generalID** shall be set to the GKID for endpoint-initiated messages and to EPID for the gatekeeper-initiated messages. When the identification information is not available, or in case of broadcast/multicast is ambiguous, the field is missing or shall contain a null string. Table 2 summarizes the situation:
+
+**Table 2/H.235.2 – Usage of sendersID and GeneralID**
+
+| Message | sendersID | generalID |
+|----------------------------------------------------------------------------------------|-------------------------------------------------|-------------------------------------------------|
+| Unicast GRQ | EPID if available, otherwise NULL | GKID |
+| Multicast GRQ | EPID if available, otherwise NULL | |
+| GCF, GRJ | GKID | EPID if available, otherwise NULL |
+| Initial RRQ | | GKID |
+| RCF | GKID | EPID |
+| RRJ | GKID | |
+| URQ, UCF, URJ, BRQ, BCF, BRJ, DRQ, DCF, DRJ, NSM, RIP, SCI, SCR, XRS (EP-to-GK) | EPID | GKID |
+| URQ, UCF, URJ, BRQ, BCF, BRJ, DRQ, DCF, DRJ, NSM, RIP, SCI, SCR, XRS (GK-to-EP) | GKID | EPID |
+| ARQ, IRQ, RAI | EPID | GKID |
+| ACF, ARJ, BCF, LCF, LRJ, IRR, IRQ, RAC, LCF, LRJ, IACK, INAK | GKID | EPID |
+
+**Table 2/H.235.2 – Usage of sendersID and GeneralID**
+
+| Message | sendersID | generalID |
+|-------------------------------|------------------|------------------|
+| Unicast LRQ (EP-to-GK) | EPID | GKID |
+| Unicast LRQ (GK-to-GK) | GKID | GKID |
+| Multicast LRQ | EPID | |
+
+NOTE – GKID stands for gatekeeper identifier, EPID stands for endpoint identifier. Blank indicates a missing or null identification string.
+
+# 20 List of object identifiers
+
+Table 3 lists all the referenced OIDs (see also [OIW] and [WEBOIDs]). There are object identifiers for H.235v1 and for H.235v2.
+
+**Table 3/H.235.2 – Object identifiers**
+
+| Object identifier reference | Object identifier value(s) | Description |
+|------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| "A" | {itu-t (0) recommendation (0) h (8) 235 version (0) 2 1}
{itu-t (0) recommendation (0) h (8) 235 version (0) 1 1} | Used in procedure II for the CryptoToken-tokenOID indicating that the signature includes all fields in the H.225.0 RAS or call signalling message (authentication and integrity). |
+| "B" | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 2}
{itu-t (0) recommendation (0) h (8) 235 version (0) 2 2}
{itu-t (0) recommendation (0) h (8) 235 version (0) 1 2} | Used in procedure II for the CryptoToken-tokenOID indicating that the signature includes a subset of fields in the RAS/H.225.0 message (ClearToken) for authentication-only terminals without integrity.
Used in H.235.1 procedure IA for the CryptoToken-tokenOID indicating that the hash includes a subset of fields in the RAS/H.225.0 message (ClearToken) for authentication-only terminals without integrity |
+| "P" | {itu-t (0) recommendation (0) h (8) 235 version (0) 2 4}
{itu-t (0) recommendation (0) h (8) 235 version (0) 1 4} | Used in procedures II or III to indicate that certificate carries a URL. |
+| "R" | {itu-t (0) recommendation (0) h (8) 235 version (0) 2 3}
{itu-t (0) recommendation (0) h (8) 235 version (0) 1 3} | Used in procedure II for the ClearToken-tokenOID indicating that the ClearToken is being used for end-to-end authentication/integrity. |
+| "S" | {itu-t (0) recommendation (0) h (8) 235 version (0) 2 7}
{itu-t (0) recommendation (0) h (8) 235 version (0) 1 7} | Used in procedure II this token OID indicates message authentication, integrity and non-repudiation. |
+
+**Table 3/H.235.2 – Object identifiers**
+
+| Object identifier reference | Object identifier value(s) | Description |
+|------------------------------------|--------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
+| "V" | {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 4} | Used in procedure II or in procedure III as algorithm OID indicating use of MD5 RSA digital signature. |
+| "W" | {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 5} | Used in procedure II or in procedure III as algorithm OID indicating use of SHA1 RSA digital signature. |
+
+
+
+
+
+# SERIES OF ITU-T RECOMMENDATIONS
+
+| | |
+|-----------------|---------------------------------------------------------------------------------------------|
+| Series A | Organization of the work of ITU-T |
+| Series D | General tariff principles |
+| Series E | Overall network operation, telephone service, service operation and human factors |
+| Series F | Non-telephone telecommunication services |
+| Series G | Transmission systems and media, digital systems and networks |
+| Series H | Audiovisual and multimedia systems |
+| Series I | Integrated services digital network |
+| Series J | Cable networks and transmission of television, sound programme and other multimedia signals |
+| Series K | Protection against interference |
+| Series L | Construction, installation and protection of cables and other elements of outside plant |
+| Series M | Telecommunication management, including TMN and network maintenance |
+| Series N | Maintenance: international sound programme and television transmission circuits |
+| Series O | Specifications of measuring equipment |
+| Series P | Telephone transmission quality, telephone installations, local line networks |
+| Series Q | Switching and signalling |
+| Series R | Telegraph transmission |
+| Series S | Telegraph services terminal equipment |
+| Series T | Terminals for telematic services |
+| Series U | Telegraph switching |
+| Series V | Data communication over the telephone network |
+| Series X | Data networks, open system communications and security |
+| Series Y | Global information infrastructure, Internet protocol aspects and next-generation networks |
+| Series Z | Languages and general software aspects for telecommunication systems |
\ No newline at end of file
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/08dce7ad4c512fdf0c0cde60415fade6_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/08dce7ad4c512fdf0c0cde60415fade6_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..832c149073914ad550b554bc4fd4eda0f6155741
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/08dce7ad4c512fdf0c0cde60415fade6_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:52aa76f48c87dc590271a220d3c2a892ee0ae84e43812b73d03f550a7478db03
+size 181482
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/09955ff8214ffb6947951fc0f60eb6ab_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/09955ff8214ffb6947951fc0f60eb6ab_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c31661a1b61fb16e482486d71af77335aeb8d178
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/09955ff8214ffb6947951fc0f60eb6ab_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35e5e54e467f02f79769434e4235490135e8c68ff8a0d80d25e293a99edab6f2
+size 111762
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/2b3a967f6ce4f23649be995a353e39f8_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/2b3a967f6ce4f23649be995a353e39f8_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..e1a8476d9356ee4d00612fe2b4a735990a5ad154
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/2b3a967f6ce4f23649be995a353e39f8_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b6f9127dc9be6293832ff59725672bb2e3e56f81116fb91d50c521e87686b0e
+size 151753
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/76b0cd79baaedd942af4dc42f2e764b8_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/76b0cd79baaedd942af4dc42f2e764b8_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c4b019343ee9abd3afa44deccdf9655c2e8dca8f
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/76b0cd79baaedd942af4dc42f2e764b8_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95193810d2b19e1ad79cd2a2bfb931b2b002f2d3c0148e3b4c544fb785fd1ec4
+size 114067
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/7e1c9b51e067a48cd0fcc9748d8bd8d8_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/7e1c9b51e067a48cd0fcc9748d8bd8d8_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..15ecd1712fa551acf0842cbadffbeeccce336ccc
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/7e1c9b51e067a48cd0fcc9748d8bd8d8_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c2e29e2536fe8de8ddeb09a1a29731d167eebbbadd53d63d65953140eb0d4de9
+size 16298
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/84a1d09fb489061482111515543b60dc_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/84a1d09fb489061482111515543b60dc_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..35d080739dd40d3a774e0eb22c42d16e417ea49a
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/84a1d09fb489061482111515543b60dc_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:37391e71877b06c2c4ce6e4a5a4a2f55300c1d800b0363f7e92dfe256ea6e463
+size 8342
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/c494cd874a082a97b50b3c4d3938f467_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/c494cd874a082a97b50b3c4d3938f467_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..d5540ac9213c5a5666a4744c0b9102f4c7cc3a8e
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/c494cd874a082a97b50b3c4d3938f467_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54544cceed297f33c08f1878ab184f625e2b3a39d5a73df28142858dc318ec31
+size 143959
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/c5452f95f3b28f1bfe29e84fbc2e1267_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/c5452f95f3b28f1bfe29e84fbc2e1267_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..8c40f3221a1d84bb61f8f4712f9bac17baad9b83
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/c5452f95f3b28f1bfe29e84fbc2e1267_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9bba4966a59acd8ede68cf3506998d82020a801897f010c4e57a1e88762d13e2
+size 13300
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/fa859e4e468bfb2710a94527f2c504af_img.jpg b/marked/H/T-REC-H.235.3-200509-I_PDF-E/fa859e4e468bfb2710a94527f2c504af_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..40dcc7370b1567caf4d3eafda82859d31479d55b
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/fa859e4e468bfb2710a94527f2c504af_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d961dd841c4a204119d4a6acd011ef1d9b0178c546baff1334540271a96629e
+size 92194
diff --git a/marked/H/T-REC-H.235.3-200509-I_PDF-E/raw.md b/marked/H/T-REC-H.235.3-200509-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..c44aeccb2d0eb6fb57beac624eba9b9c5b8007ef
--- /dev/null
+++ b/marked/H/T-REC-H.235.3-200509-I_PDF-E/raw.md
@@ -0,0 +1,968 @@
+
+
+International Telecommunication Union
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.235.3**
+
+(09/2005)
+
+SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS
+Infrastructure of audiovisual services – Systems aspects
+
+---
+
+**H.323 security: Hybrid security profile**
+
+ITU-T Recommendation H.235.3
+
+ITU-T
+
+
+
+The logo of the International Telecommunication Union (ITU) features a globe with a red lightning bolt striking across it. To the right of the globe, the text "International Telecommunication Union" is written in blue, with "ITU" in a larger, bold font above the full name.
+
+ITU logo
+
+# ITU-T H-SERIES RECOMMENDATIONS **AUDIOVISUAL AND MULTIMEDIA SYSTEMS**
+
+| | |
+|-------------------------------------------------------------------------------|--------------------|
+| CHARACTERISTICS OF VISUAL TELEPHONE SYSTEMS | H.100–H.199 |
+| INFRASTRUCTURE OF AUDIOVISUAL SERVICES | |
+| General | H.200–H.219 |
+| Transmission multiplexing and synchronization | H.220–H.229 |
+| Systems aspects | H.230–H.239 |
+| Communication procedures | H.240–H.259 |
+| Coding of moving video | H.260–H.279 |
+| Related systems aspects | H.280–H.299 |
+| Systems and terminal equipment for audiovisual services | H.300–H.349 |
+| Directory services architecture for audiovisual and multimedia services | H.350–H.359 |
+| Quality of service architecture for audiovisual and multimedia services | H.360–H.369 |
+| Supplementary services for multimedia | H.450–H.499 |
+| MOBILITY AND COLLABORATION PROCEDURES | |
+| Overview of Mobility and Collaboration, definitions, protocols and procedures | H.500–H.509 |
+| Mobility for H-Series multimedia systems and services | H.510–H.519 |
+| Mobile multimedia collaboration applications and services | H.520–H.529 |
+| Security for mobile multimedia systems and services | H.530–H.539 |
+| Security for mobile multimedia collaboration applications and services | H.540–H.549 |
+| Mobility interworking procedures | H.550–H.559 |
+| Mobile multimedia collaboration inter-working procedures | H.560–H.569 |
+| BROADBAND AND TRIPLE-PLAY MULTIMEDIA SERVICES | |
+| Broadband multimedia services over VDSL | H.610–H.619 |
+
+*For further details, please refer to the list of ITU-T Recommendations.*
+
+# **ITU-T Recommendation H.235.3**
+
+## **H.323 security: Hybrid security profile**
+
+### **Summary**
+
+The purpose of this Recommendation is to describe an efficient and scalable, PKI-based hybrid security profile for version 2 or higher of ITU-T Rec. H.235.0. The hybrid security profile contained herein takes advantage of the security profiles in ITU-T Recs H.235.1 and H.235.2 by deploying digital signatures from ITU-T Rec. H.235.2 and deploying the baseline security profile from ITU-T Rec. H.235.1.
+
+In earlier versions of the H.235 sub-series, this profile was contained in Annex F/H.235. Appendices IV, V, VI to H.235.0 show the complete clause, figure, and table mapping between H.235 versions 3 and 4.
+
+### **Source**
+
+ITU-T Recommendation H.235.3 was approved on 13 September 2005 by ITU-T Study Group 16 (2005-2008) under the ITU-T Recommendation A.8 procedure.
+
+### **Keywords**
+
+Authentication, certificate, digital signature, encryption, integrity, key management, multimedia security, security profile.
+
+## FOREWORD
+
+The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications. The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU-T study groups which, in turn, produce Recommendations on these topics.
+
+The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
+
+In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
+
+### NOTE
+
+In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure e.g. interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
+
+### INTELLECTUAL PROPERTY RIGHTS
+
+ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
+
+As of the date of approval of this Recommendation, ITU had received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementors are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database.
+
+© ITU 2006
+
+All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
+
+## CONTENTS
+
+| | Page |
+|------------------------------------------------------------------|------|
+| 1 Scope ..... | 1 |
+| 2 References..... | 1 |
+| 2.1 Normative references..... | 1 |
+| 2.2 Informative references..... | 2 |
+| 3 Terms and definitions ..... | 2 |
+| 4 Symbols and abbreviations ..... | 2 |
+| 5 Conventions ..... | 3 |
+| 6 Overview ..... | 4 |
+| 6.1 H.323 requirements ..... | 6 |
+| 6.2 Authentication and integrity ..... | 7 |
+| 7 Procedure IV ..... | 7 |
+| 8 Security association for concurrent calls ..... | 9 |
+| 9 Key update ..... | 10 |
+| 10 Usage of elliptic curve techniques..... | 11 |
+| 11 Illustration examples..... | 11 |
+| 12 Multicast behaviour ..... | 14 |
+| 13 List of secure signalling messages..... | 14 |
+| 13.1 H.225.0 RAS ..... | 14 |
+| 13.2 H.225.0 call signalling (single administrative domain)..... | 14 |
+| 13.3 H.225.0 call signalling (multi-administrative domain) ..... | 15 |
+| 14 List of object identifiers..... | 15 |
+| Appendix I – H.235.3 enabled Gatekeeper Security Processor ..... | 16 |
+| I.1 Discovery of a gatekeeper security processor ..... | 18 |
+| I.2 Gatekeeper security processor operation..... | 19 |
+| I.3 Processor token..... | 20 |
+| I.4 GKSP illustration example ..... | 23 |
+| I.5 List of object identifiers..... | 28 |
+
+
+
+## H.323 security: Hybrid security profile
+
+# 1 Scope
+
+The purpose of this Recommendation is to describe an efficient and scalable, PKI-based hybrid security profile for version 2 and higher of ITU-T Rec. H.235.0. The hybrid security profile contained herein takes advantage of the security profiles in ITU-T Recs H.235.1 and H.235.2 by deploying digital signatures from ITU-T Rec. H.235.2 and deploying the baseline security profile from ITU-T Rec. H.235.1.
+
+# 2 References
+
+### 2.1 Normative references
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
+
+- ITU-T Recommendation H.225.0 (2003), *Call signalling protocols and media stream packetization for packet-based multimedia communication systems*.
+ - ITU-T Recommendation H.235, version 1 (1998), *Security and encryption for H-series (H.323 and other H.245-based) multimedia terminals*.
+ - ITU-T Recommendation H.235, version 2 (2000), *Security and encryption for H-series (H.323 and other H.245-Based) multimedia terminals*.
+ - ITU-T Recommendation H.235.0 (2005), *H.323 security: Framework for security in H-series (H.323 and other H.245-based) multimedia systems*.
+ - ITU-T Recommendation H.235.1 (2005), *H.323 security: Baseline security profile*.
+ - ITU-T Recommendation H.235.2 (2005), *H.323 security: Signature security profile*.
+ - ITU-T Recommendation H.235.6 (2005), *H.323 security: Voice encryption profile with native H.235/H.245 key management*.
+ - ITU-T Recommendation H.245 (2005), *Control protocol for multimedia communication*.
+ - ITU-T Recommendation H.323 (2003), *Packet-based multimedia communications systems*.
+ - ITU-T Recommendation Q.931 (1998), *ISDN user-network interface layer 3 specification for basic call control*.
+ - ITU-T Recommendation X.509 (2005) | ISO/IEC 9594-8:2005, *Information technology – Open Systems Interconnection – The Directory: Public-key and attribute certificate frameworks*.
+ - ITU-T Recommendation X.800 (1991), *Security architecture for Open Systems Interconnection for CCITT applications*.
+- ISO 7498-2:1989, *Information processing systems – Open Systems Interconnection – Basic Reference Model – Part 2: Security Architecture*.
+
+- ITU-T Recommendation X.803 (1994) | ISO/IEC 10745:1995, *Information technology – Open Systems Interconnection – Upper layers security model*.
+- ITU-T Recommendation X.810 (1995) | ISO/IEC 10181-1:1996, *Information technology – Open Systems Interconnection – Security frameworks for open systems: Overview*.
+- ITU-T Recommendation X.811 (1995) | ISO/IEC 10181-2:1996, *Information technology – Open Systems Interconnection – Security frameworks for open systems: Authentication framework*.
+- IETF RFC 3280 (2002), *Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile*.
+
+### 2.2 Informative references
+
+- [ISO|IEC 14888-3] ISO/IEC 14888-3:1998, *Information technology – Security techniques – Digital signatures with appendix; Part 3: Certificate-based mechanisms*.
+- [PKCS] PKCS #1 v2.0: *RSA Cryptography Standard*; RSA Laboratories; October 1, 1998; .
+- [PKCS] PKCS #7: *Cryptographic Message Syntax Standard*, An RSA Laboratories Technical Note, version 1.5, Revised November 1, 1993; .
+- [RFC1321] IETF RFC 1321 (1992), *The MD5 Message-Digest Algorithm*.
+
+# 3 Terms and definitions
+
+For the purposes of this Recommendation, the definitions given in clauses 3/H.323, 3/H.225.0 and 3/H.245 apply. Some of the terms used in this Recommendation are also as defined in ITU-T Recs X.800 | ISO 7498-2, X.803 | ISO/IEC 10745, X.810 | ISO/IEC 10181-1, X.811 | ISO/IEC 10181-2 and H.235.0.
+
+# 4 Symbols and abbreviations
+
+This Recommendation uses the following abbreviations:
+
+| | |
+|-------|-------------------------------|
+| ALG | Application Level Gateway |
+| ASN.1 | Abstract Syntax Notation One |
+| BRJ | Bandwidth Reject |
+| BRQ | Bandwidth Request |
+| CA | Certification Authority |
+| CRL | Certificate Revocation List |
+| DB | Database |
+| DH | Diffie-Hellman |
+| DN | Distinguished Name |
+| EP | Endpoint |
+| GCF | Gatekeeper Confirm |
+| GK | Gatekeeper |
+| GKID | Gatekeeper Identifier |
+| GKSP | Gatekeeper Security Processor |
+
+| | |
+|------|-------------------------------------------------|
+| GRJ | Gatekeeper Reject |
+| GRQ | Gatekeeper Request |
+| HMAC | Hashed Message Authentication Code |
+| ICV | Integrity Check Value |
+| ID | Identifier |
+| IP | Internet Protocol |
+| LDAP | Lightweight Directory Access Protocol |
+| LRQ | Location Request |
+| MCU | Multipoint Control Unit |
+| MD5 | Message Digest 5 |
+| NAT | Network Address Translation |
+| OID | Object Identifier |
+| PDU | Protocol Data Unit |
+| PKI | Public Key Infrastructure |
+| RAS | Registration, Admission and Status |
+| RCF | Registration Confirm |
+| RRJ | Registration Reject |
+| RRQ | Registration Request |
+| RSA | Rivest, Shamir and Adleman encryption algorithm |
+| RTP | Real-time Transport Protocol |
+| SHA | Secure Hash Algorithm |
+| UDP | User Datagram Protocol |
+| URQ | Unregistration Request |
+| VoIP | Voice-over-IP |
+
+# 5 Conventions
+
+In this Recommendation the following conventions are used:
+
+- "shall" indicates a mandatory requirement.
+- "should" indicates a suggested but optional course of action.
+- "may" indicates an optional course of action rather than a recommendation that something take place.
+
+The hybrid security profile uses terms and definitions from ITU-T Recs H.235.1 and H.235.2.
+
+While the message integrity service always provides message authentication, the reverse is not always true. For the authentication-only mode, the integrity assured only spans a certain subset of message fields. This applies to integrity services realized by asymmetric means (e.g., digital signatures). Thus, in practice, a combined authentication and integrity service uses the same key material without introducing a security weakness.
+
+This security profile is applicable in environments with potentially many terminals, where static password/symmetric key assignment is not feasible, e.g., in large-scale or global-scale scenarios.
+
+Instead, this security profile assumes availability of a public-key infrastructure with assigned certificates and private/public-keys, directories, etc. In addition, this security profile deploys symmetric crypto techniques where applicable.
+
+This security profile introduces the terms "first" message and "last" message sent. Security protection of the first message (and probably also for the last message) is different from security protection of the remaining other messages.
+
+The "first message" sent is understood as a message that flows between two H.323 entities and establishes a security context. It makes symmetric key material available to both entities and, for example, marks the beginning of a call. For H.225.0 RAS, the first message is the RRQ and the related response message. For H.225.0 call signalling using fast start, the first message is SETUP and CONNECT.
+
+The "last message" terminates the established security context. The established key material shall be destroyed. For H.225.0 RAS, the last message is the URQ and related response message, while for H.225.0 call signalling the last message is RELEASE-COMPLETE.
+
+# 6 Overview
+
+This Recommendation describes an efficient and scalable, PKI-based hybrid security profile deploying digital signatures from H.235.2 and deploying the baseline security profile from H.235.1. This Recommendation is suggested as an option. H.323 security entities (terminals, gatekeepers, gateways, MCUs, etc.) may implement this hybrid security profile for improved security or whenever required.
+
+The notion of "hybrid" in this text shall mean that security procedures from the signature profile in ITU-T Rec. H.235.2 are actually applied in a lightweight sense and the digital signatures still conform to the RSA procedures. However, digital signatures are deployed only where absolutely necessary while highly efficient symmetric security techniques from the baseline security profile in ITU-T Rec. H.235.1 are used otherwise.
+
+The hybrid security profile is applicable for scaleable "global" IP telephony. This security profile overcomes the limitations of the simple, baseline security profile of H.235.1 when strictly applying it. Furthermore, this security profile overcomes certain drawbacks of H.235.2, such as the need for higher bandwidth and increased performance needs for processing, when strictly applying it. For example, the hybrid security profile does not depend on the (static) administration of mutual shared secrets of the hops in different domains. Thus, users can more easily choose their VoIP provider. This security profile thus supports a certain kind of user mobility as well. It applies asymmetric cryptography with signatures and certificates only where necessary and otherwise uses simpler and more efficient symmetric techniques. It provides tunnelling of H.245 messages for H.245 message integrity and also implements some provisions for non-repudiation of messages.
+
+The hybrid security profile mandates the GK-routed model and is based upon the H.245 tunnelling techniques. Support for non GK-routed models is for further study.
+
+The features provided by this profile include:
+
+For RAS, H.225.0 and H.245 messages:
+
+- User authentication to a desired entity irrespective of the number of application level hops that the message traverses.
+
+NOTE 1 – Hop is understood here in the sense of a trusted H.235 network element (e.g., GK, GW, MCU, proxy, or firewall). Thus, application level hop-by-hop security when used with symmetric techniques does not provide true end-to-end security between terminals.
+
+- Integrity of all or critical portions (fields) of messages arriving at an entity irrespective of the number of application-level hops that the message traverses. Integrity of the message itself using a strongly generated random number is also optional.
+- Application-level hop-by-hop message authentication, integrity and (some) non-repudiation provide these security services for the entire message.
+- Using the available public-key infrastructure, users can choose their service provider. Key-management for session key distribution is well integrated in the hybrid security profile.
+
+Suitable provision of the above-described security services thwarts several types of attacks, including:
+
+- *Man-in-the-middle attacks*: Application-level hop-by-hop message authentication and integrity prevents against such attacks when the man-in-the-middle is in an application-level hop, say, a hostile router.
+- *Replay attacks*: Use of timestamps and sequence numbers prevent such attacks.
+- *Spoofing*: User authentication prevents such attacks.
+- *Connection hijacking*: Use of authentication/integrity for each signalling message prevents such attacks.
+
+This security profile assumes the GK-routed call model, where the fast connect call signalling method is applied. H.245 call control messages are securely tunnelled in H.225.0 call signalling messages and inherit thereby the H.225.0 security protection scheme.
+
+The signature security profile allows to securely tunnel H.245 call control PDUs within H.225.0 facility messages. The H.245 key update and synchronization mechanisms require tunnelling for key-update FACILITY message to be signalled and is useful, for example, for very long duration calls.
+
+The diagonally shaded area in Table 1 represents the security mechanisms that are used by the hybrid security profile.
+
+NOTE 2 – RSA certificates with MD5 ([RFC1321]) hashing are not part of this security profile.
+
+The voice encryption security profile of H.235.6 (see 6.1/H.235.6) could be optionally used in conjunction with the hybrid security profile. Its use is negotiated as part of the call set-up signalling.
+
+**Table 1/H.235.3 – Overview of the hybrid security profile**
+
+| Security services | Call functions | | | |
+|------------------------|-------------------------------------------|-------------------------------------------|------------------------------|-----|
+| | RAS | H.225.0 | H.245 (Note 3) | RTP |
+| Authentication | RSA digital signature (SHA1) | RSA digital signature (SHA1) | RSA digital signature (SHA1) | |
+| | HMAC-SHA1-96 | HMAC-SHA1-96 | HMAC-SHA1-96 | |
+| Non-repudiation | (possible only on first message) | (possible only on first message) | | |
+| Integrity | RSA digital signature (SHA1) | RSA digital signature (SHA1) | RSA digital signature (SHA1) | |
+| | HMAC-SHA1-96 | HMAC-SHA1-96 | HMAC-SHA1-96 | |
+| Confidentiality | | | | |
+| Access control | | | | |
+| Key management | certificate allocation | certificate allocation | | |
+| | authenticated Diffie-Hellman key-exchange | authenticated Diffie-Hellman key-exchange | | |
+
+NOTE 1 – The hybrid security profile has to be also supported by other H.235 entities (e.g., gatekeepers, gateways and H.235 proxies).
+
+NOTE 2 – Available key usage bits in the certificate could also determine the security service provided by a terminal (e.g., non-repudiation asserted).
+
+NOTE 3 – Tunnelled H.245 or embedded H.245 inside H.225.0 fast connect.
+
+This Recommendation may apply message integrity protection that spans the entire message. For H.225.0 RAS the integrity protection covers the entire RAS message; for call signalling this covers the entire H.225.0 call signalling message including the Q.931 headers.
+
+For authentication, the user should use a public/private key signature scheme. Such a scheme usually provides for better integrity.
+
+This Recommendation does not describe procedures for registration, certification and certificate allocation from a trust centre and private/public key assignment, directory services, specific CA parameters, certificate revocation, key pair update/recovery and other certificate operational or management procedures such as certificate or public/private key and certificate delivery and installation in terminals. Such procedures may happen by means that are not part of this Recommendation.
+
+The communication entities involved are able to implicitly determine usage of either the H.235.1 baseline security profiles, H.235.2 signature profile, or this hybrid security profile by evaluating the signalled security object identifiers in the messages (**tokenOID**, and **algorithmOID**; see also clause 10/H.235.2).
+
+### 6.1 H.323 requirements
+
+H.323 entities that implement this hybrid security profile are assumed to support the following H.323 features:
+
+- Fast connect;
+- H.245 tunnelling; and
+- GK-routed model.
+
+### 6.2 Authentication and integrity
+
+This Recommendation uses the following terms for provisioning the security services.
+
+**Authentication and integrity:** This is a combined security service that supports message integrity in conjunction with user authentication. The user authenticates when either correctly digitally signing some piece of data with the private key or when correctly applying a related, shared secret. In addition to that, the message is protected against tampering. Both security services are provided by the same security mechanism. Combined authentication and integrity is possible only on a hop-to-hop basis.
+
+NOTE – When digital signatures are applied, a non-repudiation security service may be supported. This also depends on the settings of the key usage bits of the signing key in the certificate (see also RFC 3280).
+
+The following procedures are described for use in this profile.
+
+Procedure IV is based on digital signatures using a private/public key pair and deploying symmetric crypto techniques for providing authentication and integrity of RAS, Q.931 and H.245 messages. Terminals may use this method if efficient, scalable security is required.
+
+Depending on the security policy, authentication may be unilateral or mutual (i.e., applying the authentication/integrity in the reverse direction as well, thereby providing higher security). The preferred security mode is to have mutual authentication.
+
+Gatekeepers detecting failed authentication and/or failed integrity validation in a RAS/call signalling message received from a terminal/peer gatekeeper will respond with a corresponding reject message indicating security failure. This is done by setting the reject reason to **securityDenial**, or other appropriate security error code according to 11.1/H.235.0. Depending on the ability to recognize an attack, and the most appropriate way to react to it, a gatekeeper receiving a secured **xRQ** with undefined object identifiers (**tokenOID**, **algorithmOID**) should respond with an unsecured **xRJ** and reject reason set to **securityDenial** or may discard that message. The endpoint shall discard the received unsecured message, time out and may retry once again by considering to choose different OIDs. Likewise, a gatekeeper receiving a secured H.225.0 call signalling SETUP message with undefined object identifiers (**tokenOID**, **algorithmOID**) should respond with an unsecured RELEASE COMPLETE and reject reason set to **securityDenied**, or it may discard that message whereas a gatekeeper receiving a secured H.225.0 FACILITY with undefined object identifiers (**tokenOID**, **algorithmOID**) should respond with an unsecured FACILITY and reason set to **undefinedReason**, or it may discard that message. Similarly, the encountered security event should be logged. As part of the returned response, the sender may provide a list of acceptable certificates in separate tokens, in order to facilitate selection of an appropriate one by the recipient.
+
+There is implicit H.235 signalling for indicating use of procedure IV and the applied security mechanism based upon the value of the object identifiers (see also clause 13) and the message fields filled-in. In this Recommendation, object identifiers are referenced symbolically through letters (e.g., "A").
+
+This profile does not use the H.235 ICV fields. Rather, cryptographic integrity check values are put into the **signature** field of the **token** in the **cryptoSignedToken** when referring to H.235.2, or the integrity check values are put in the hash fields of the **CryptoToken** when referring to H.235.1.
+
+# 7 Procedure IV
+
+The following procedures shall be adhered to if procedure IV is employed for hop-by-hop security. This procedure unites procedure I of clause 7/H.235.1 and procedure II of clause 7/H.235.2.
+
+For the first message, including corresponding response sent in each direction, H.235.2 procedure II (hop-by-hop authentication and integrity, see clause 7/H.235.2) shall be used with the following settings:
+
+- OID "A1" instead of OID "A" and OID "S1" instead of OID "S". Use of these OIDs allows identifying the hybrid security profile.
+- **algorithmOID** in **tokenOID** shall be set to "W" indicating use of RSA-SHA1 signature.
+- **signature** shall contain an ASN.1 encoded RSA signature (see clause 12/H.235.2).
+- **certificate** should contain the sender's user certificate if not available otherwise to the receiver; **type** shall hold OID "W" indicating an included RSA-SHA1 certificate or OID "P" (see clause 20/H.235.2) indicating that **certificate** holds an URL.
+
+In a single administrative domain scenario, "the first message/response" is defined to equal the initial H.225.0 RAS message/response; this is usually either GRQ/GCF or RRQ/RCF. In a multi-administrative domain scenario, the first message/response within each domain is defined as above; the first message between the domains is defined as SETUP.
+
+Whenever a digital certificate is conveyed in a message, the receiving entity shall check the identity of the sender against the identity of the certificate according to the procedure in clause 14/H.235.2 in order to prevent man-in-the-middle attacks.
+
+Sender and recipient exchange and compute an authenticated Diffie-Hellman secret bit string. Table 4/H.235.6 provides an example of Diffie-Hellman group parameters and recommends taking the 1024-bit prime whenever possible, for security reasons. The Diffie-Hellman secret shall be computed for each leg, regardless of whether the voice encryption profile is deployed or not.
+
+From the common bit string that both parties compute, both parties derive a 160-bit secret by taking the least significant 160 bits. The resulting 160-bit secret acts as the password/shared secret that is used in ITU-T Rec. H.235.1.
+
+In a scenario with gatekeepers in distinct administrative domains, sender and receiver shall use two tokens in each direction for H.225.0 call signalling:
+
+- One **ClearToken** inside **CryptoToken**, which is used to compute the media key that is shared among the terminals (see 8.5/H.235.6). This is only necessary if voice encryption is to be deployed.
+- A separate **ClearToken** is used to compute a link key that is shared among the sender and receiver entities for protection of the signalling link. This link key replaces the shared password among the gatekeepers in H.235.1. The **tokenOID** of that **ClearToken** shall be set to "Q", indicating use of Diffie-Hellman and hybrid security profile. Computation of the link key proceeds in the same manner as computation of the media key (see 8.5/H.235.6).
+
+NOTE 1 – For direct-routed environments, sender/receiver entities and terminals correspond. For GK-routed environments, the link key is shared hop-by-hop between each pair of peer gatekeepers, while the media key is shared on an end-to-end basis.
+
+In GK-routed environments, the GK shall forward the received Diffie-Hellman token from the endpoint to the next hop.
+
+For all but the very first message/response sent in each direction, H.235.1 procedure I (see clause 7/H.235.1) shall be used. This applies also in a scenario where multiple gatekeepers are located within an administrative domain. In this case, there is no need for asymmetric key management; instead, H.235.1 is sufficient.
+
+This Recommendation may be used with H.235 version 1 systems when taking care of restricted use of sendersID and generalID, as described in clause 19/H.235.2.
+
+It is anticipated that a gatekeeper should receive only a single **RRQ** including a DH-token with a digital signature from a particular fixed endpoint. However, lost or delayed **RCF/RRJ** messages may lead to retransmission using another signed **RRQ**.
+
+In the case of the untimely arrival of the corresponding registration response, at the endpoint, the endpoint may attempt another try. For this, the endpoint shall use the most recent DH token but use a new sequence number and a new timestamp.
+
+For a particular fixed endpoint, the gatekeeper shall use the most recently received signed **RRQ** message and derive the shared secret from that DH-token, regardless of whether or not the GK already has a shared secret available. Thus, the GK shall overwrite any existing shared secret with the newly derived secret. The GK shall respond with a signed **RCF** that holds the response DH-token. Preferably, the response DH token should be generated anew.
+
+NOTE 2 – The recommended and preferred method for key update is by using the FACILITY message as defined in clause 9. However, it is recognized that key update may be achieved using another additive signed **RRQ** with a new DH-token.
+
+NOTE 3 – A gatekeeper in possession of a shared secret shall respond to an HMAC-protected **RRQ** (according to ITU-T Rec. H.235.1) with an HMAC-protected response message.
+
+# 8 Security association for concurrent calls
+
+An optimization is provided for the case that a fixed pair of entities would process several independent calls in parallel using a single call signalling channel. Instead of establishing several link keys with Diffie-Hellman for each call, a security association is defined which spans multiple concurrent calls.
+
+More precisely, the security association spans all calls between a fixed pair of entities as long as the call signalling channel is alive. Entities use the **multipleCalls** flag within Setup to indicate the capability of signalling multiple calls over a single call signalling connection (see 7.3/H.323).
+
+If the single call signalling connection is used, then only one common link key needs to be established, see Figure 1.
+
+On the other hand, if the **multipleCalls** flag within SETUP is not set, then a link key shall be individually computed anew for each call.
+
+
+
+```
+
+sequenceDiagram
+ participant A
+ participant B
+ Note left of A: K_AB :=
+ Note right of B: K_AB :=
+ Note left of A: Security association
+ Note right of A: Call 1
+ Note right of B: Call 2
+
+ A->>B: SETUP (1): HMAC-SHA1(K_AB)
+ B-->>A: CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT (1): HMAC-SHA1(K_AB)
+ A->>B: SETUP (2): HMAC-SHA1(K_AB)
+ B-->>A: CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT (2): HMAC-SHA1(K_AB)
+ Note right of A: ....
+ B-->>A: RELEASE COMPLETE (2): HMAC-SHA1(K_AB)
+ Note right of A: ....
+ B-->>A: RELEASE COMPLETE (1): HMAC-SHA1(K_AB)
+
+```
+
+H.235.3\_F01
+
+Sequence diagram illustrating the security association for concurrent calls between entities A and B. The diagram shows two calls, Call 1 and Call 2, sharing a common security association. Both entities initialize their session key K\_AB. Call 1 involves a SETUP (1) from A to B, followed by a CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT (1) from B to A. Call 2 involves a SETUP (2) from A to B, followed by a CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT (2) from B to A. Both calls conclude with a RELEASE COMPLETE message (2 and 1 respectively) from B to A. The security association is maintained throughout both calls.
+
+**Figure 1/H.235.3 – Security association for concurrent calls**
+
+## 9 Key update
+
+An optional key update procedure allows either communication entity (GK or terminal) to refresh the currently-used session key with a new one. Such a key update should be initiated by whichever entity feels a need for it. A key update may be motivated by a compromised session key, the perception that the session key has or will become insecure, or other security policy criteria. These aspects are all outside the scope of this Recommendation.
+
+The initiator invokes the key update using the FACILITY message. The FACILITY message for key update conveys a new Diffie-Hellman token, an optional digital certificate, and a digital signature of the initiator. Upon reception of the FACILITY message, the recipient replies with a similar FACILITY message conveying his Diffie-Hellman token, an optional digital certificate, and a digital signature of the recipient. Upon completion of the key update procedure, initiator and responder shall use the computed new link key.
+
+- **tokenOID** of the **ClearToken** within FACILITY shall be set to "Q" indicating use of Diffie-Hellman and hybrid security profile. Computation of the link key proceeds in the same manner as computation of the media session key (see 8.5/H.235.6).
+
+The FACILITY message for key update purposes shall be protected according to H.235.2 procedure II. Any other FACILITY message without conveyed Diffie-Hellman token shall not be deployed for key update purposes and shall be protected according to clause 7/H.235.1 procedure I.
+
+# **10 Usage of elliptic curve techniques**
+
+This is for further study.
+
+# **11 Illustration examples**
+
+The flow diagrams in Figures 2 and 3 illustrate usage of this Recommendation in a basic message flow. Note that the diagrams do not show the complete message flow and that several messages are omitted for simplicity. Messages highlighted in light gray relate to the signature profile H.235.2, while dark gray messages relate to the baseline profile H.235.1. The figures emphasize the (most important) security parts of each message (H.235 CryptoTokens, Tokens) while omitting details.
+
+The flow diagram in Figure 2 illustrates the basic message flow in a scenario with one gatekeeper within a single administrative domain. Assuming that the gatekeeper certificate is known to all the terminals involved, and that the terminals know the gatekeeper certificate likewise, there is no need to transmit the certificates in-band during the registration procedure.
+
+
+
+```
+
+sequenceDiagram
+ participant TA as Terminal A
+ participant GB as GK B
+ participant TC as Terminal C
+ Note over TA, GB, TC: Domain
+
+ TA->>GB: RRQ: DH_A, (Cert_A), Sig_A
+ TC->>GB: RRQ: DH_C, (Cert_C), Sig_C
+ GB->>TA: RCF: DH_B, (Cert_B), Sig_B
+ GB->>TC: RCF: DH_B, (Cert_B), Sig_B
+ Note over TA, GB: K_AB :=
+ Note over GB, TC: K_BC :=
+ TA->>GB: ARQ: HMAC-SHA1(K_AB)
+ GB->>TA: ....
+ TA->>GB: SETUP: HMAC-SHA1(K_AB)
+ GB->>TC: SETUP: HMAC-SHA1(K_BC)
+ TC->>GB: CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT: HMAC-SHA1(K_AB)
+ GB->>TA: FACILITY: DH_A, (Cert_A), Sig_A
+ GB->>TC: FACILITY: HMAC-SHA1(K_BC)
+ TA->>GB: FACILITY: DH_B, (Cert_B), Sig_B
+ GB->>TA: ....
+ Note over TA, GB: K'_AB :=
+ TA->>GB: RELEASE COMPLETE: HMAC-SHA1(K'_AB)
+ GB->>TC: RELEASE COMPLETE: HMAC-SHA1(K_BC)
+
+```
+
+H.235.3\_F02
+
+Sequence diagram showing call signaling between Terminal A, GK B, and Terminal C within a Domain. The sequence includes RRQ, RCF, key updates (K\_AB, K\_BC), ARQ, SETUP, CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT, FACILITY (for key updates), and RELEASE COMPLETE messages.
+
+| | | | |
+|-----------------|------------------------------------|-------|--------------------|
+| Cert | User certificate | K, K' | symmetric link key |
+| DH A | Diffie-Hellman Token $g^a \bmod p$ | Sig | digital signature |
+| DH B | Diffie-Hellman Token $g^b \bmod p$ | | |
+| EP | Endpoint (Terminal) | | |
+| GK | Gatekeeper | | |
+
+**Figure 2/H.235.3 – Flow diagram in a single administrative domain**
+
+NOTE 1 – Figures 2 and 3 also cover the fast start procedure when the call signalling messages SETUP and CALL PROCEEDING/PROGRESS/ALERTING/CONNECT include the faststart token (see 8.1.7/H.323). Otherwise, non-faststart mode is assumed according to 7.3.1/H.323. Figure 2 shows also the key update procedure between Terminal A and Gatekeeper B using FACILITY.
+
+Figure 3 shows an example message flow in a scenario with different administrative domains. While the hybrid security profile is applied within each domain between terminal and gatekeeper as illustrated in Figure 2, the hybrid security profile may be applied also between both domains during the call establishment phase.
+
+NOTE 2 – Figure 3 omits any communication among border elements (BE) and any communication between GK-to-BE. Figure 3 also shows the key update procedure between both domains using FACILITY.
+
+
+
+The diagram illustrates a sequence of messages for call establishment across two administrative domains, Domain 1 and Domain 2.
+
+- Domain 1:** Terminal A sends an **RRQ** (DHA, (CertA), SigA) to GK/BE B. GK/BE B responds with an **RCF** (DHB, (CertB), SigB). Both parties derive a shared key $K_{AB} :=$ . Terminal A then sends an **ARQ** (HMAC-SHA1( $K_{AB}$ )). After some internal processing (indicated by '....'), Terminal A sends a **SETUP** (HMAC-SHA1( $K_{AB}$ )).
+- Inter-domain:** GK/BE B forwards the **SETUP** message to GK/BE C. GK/BE C responds with an **RCF** (DHB, (CertB), SigB). GK/BE C then sends a **CALL-PROCEEDING** (DHC, (CertC), SigC) back to GK/BE B. Both GK/BE B and GK/BE C derive a shared key $K_{BC} :=$ . GK/BE B sends a **FACILITY** (DHB, (CertB), SigB) to GK/BE C, which responds with a **FACILITY** (DHC, (CertC), SigC). Both parties then update their key to $K'_{BC} :=$ . After more internal processing (indicated by '....'), GK/BE B sends a **RELEASE COMPLETE** (HMAC-SHA1( $K'_{BC}$ )) to Terminal A.
+- Domain 2:** Terminal D sends an **RRQ** (DHD, (CertD), SigD) to GK/BE C. GK/BE C responds with an **RCF** (DHC, (CertC), SigC). Both parties derive a shared key $K_{CD} :=$ . GK/BE C sends a **SETUP** (HMAC-SHA1( $K_{CD}$ )) to Terminal D. Terminal D responds with a **CONNECT** (HMAC-SHA1( $K_{CD}$ )). After internal processing (indicated by '....'), Terminal D sends a **RELEASE COMPLETE** (HMAC-SHA1( $K_{CD}$ )) to GK/BE C, which then forwards it to GK/BE B.
+
+Sequence diagram illustrating a multi-administrative domain call establishment between Domain 1 (Terminal A, GK/BE B) and Domain 2 (GK/BE C, Terminal D).
+
+H.235.3\_F03
+
+Figure 3/H.235.3 – Flow diagram in a multi-administrative domain
+
+# 12 Multicast behaviour
+
+H.225.0 multicast messages such as **GRQ** or **LRQ** shall include a **CryptoToken** according to procedure II where the **generalID** is not set. When such messages are sent unicast, then the message shall include a **CryptoToken** with the **generalID** set.
+
+# 13 List of secure signalling messages
+
+Procedure IV deploys procedure I of H.235.1 or procedure II of H.235.2, depending on the scenario and on the actual message, as indicated below.
+
+## 13.1 H.225.0 RAS
+
+| H.225.0 RAS message | H.235 signalling fields | Authentication and integrity | Non-repudiation |
+|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|------------------------------|-----------------|
+| GatekeeperRequest, GatekeeperConfirm, GatekeeperReject if GK discovery is applied
RegistrationRequest, RegistrationConfirm, RegistrationReject if GK discovery is not applied | CryptoToken, ClearToken | Procedure II | Procedure II |
+| Any other RAS message (Note 2) | CryptoToken | Procedure I | |
+| NOTE 1 – For unicast messages, procedure II shall be applied with the security fields in the CryptoToken used. | | | |
+| NOTE 2 – GK discovery and multicast messages are not sent. | | | |
+
+### 13.2 H.225.0 call signalling (single administrative domain)
+
+| H.225.0 call signalling message | H.235 signalling fields | Authentication and integrity | Non-repudiation |
+|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|------------------------------|-----------------|
+| Setup-UUIE, Connect-UUIE (Note 1), Facility-UUIE (Note 2), Alerting-UUIE, CallProceeding-UUIE, Facility-UUIE, Progress-UUIE, Information-UUIE, ReleaseComplete-UUIE, Status-UUIE, StatusInquiry-UUIE, SetupAcknowledge-UUIE, Notify-UUIE | CryptoToken, ClearToken | Procedure I | |
+| Facility-UUIE (Note 3) | CryptoToken | Procedure II | Procedure II |
+| NOTE 1 – Assuming that either message is the first in each direction. | | | |
+| NOTE 2 – Not used for key update. | | | |
+| NOTE 3 – Used for key update. | | | |
+
+### 13.3 H.225.0 call signalling (multi-administrative domain)
+
+| H.225.0 call signalling message | H.235 signalling fields | Authentication and integrity | Non-repudiation |
+|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|------------------------------|-----------------|
+| Setup-UUIE, Connect-UUIE (Note 1), Alerting-UUIE (Note 2), CallProceeding-UUIE, Facility-UUIE (Note 3), Progress-UUIE, Information-UUIE, ReleaseComplete-UUIE | CryptoToken, ClearToken | Procedure II | Procedure II |
+| Alerting-UUIE (Note 4), CallProceeding-UUIE, Facility-UUIE (Note 5), Progress-UUIE, Information-UUIE, ReleaseComplete-UUIE, Status-UUIE, StatusInquiry-UUIE, SetupAcknowledge-UUIE, Notify-UUIE | CryptoToken, ClearToken | Procedure I | Procedure I |
+
+NOTE 1 – Assuming that either message is the first in each direction.
+NOTE 2 – Any of those messages occurs as first message in either direction.
+NOTE 3 – Used for key update.
+NOTE 4 – Any of those messages does not occur as the first message in either direction.
+NOTE 5 – Not used for key update.
+
+# 14 List of object identifiers
+
+Table 2 lists all the referenced OIDs.
+
+**Table 2/H.235.3 – Object identifiers**
+
+| Object identifier reference | Object identifier value(s) | Description |
+|-----------------------------|-----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| "A1" | {itu-t (0) recommendation (0) h (8) 235 version (0) 2 20} | Used as replacement for OID "A" in procedure II of ITU-T Rec. H.235.2 for the CryptoToken-tokenOID indicating that the RSA signature/hash includes all fields in the H.225.0 RAS or call signalling message (authentication and integrity). |
+| "S1" | {itu-t (0) recommendation (0) h (8) 235 version (0) 2 21} | Used as replacement for OID "S" in procedure II of ITU-T Rec. H.235.2 for the ClearToken-tokenOID indicating that the ClearToken is being used for message authentication and integrity. This OID in the end-to-end CryptoToken implicitly indicates also use of DH during fast start. |
+| "Q" | {itu-t (0) recommendation (0) h (8) 235 version (0) 2 22} | Used in procedure IV indicating that the ClearToken on the hop-by-hop link carries a Diffie-Hellman token. |
+| "W" | {itu-t (0) recommendation (0) h (8) 235 version (0) 2 23} | Used in procedure IV as algorithm OID indicating use of an RSA SHA1-based digital signature. |
+
+## Appendix I
+
+## H.235.3 enabled Gatekeeper Security Processor
+
+This informative appendix describes an implementation example for an H.235.3-enabled Gatekeeper Security Processor (GKSP) in conjunction with a gatekeeper. The purpose of the GKSP is to off-load certain H.235.3-specific security tasks such as execution of performance-expensive Diffie-Hellman operations, digital signature computations and verifications and X.509 certificate processing from a monolithic GK into a new and separate Gatekeeper Security Processor (GKSP) functional entity. There is at least one GKSP entity for each GK, yet one GK may serve also multiple GKSPs to increase scalability in the number of served endpoints and improve robustness of the entire system.
+
+Figure I.1 shows such a decomposed GK architecture where the GKSP holds the H.235.3 security functions.
+
+
+
+The diagram illustrates the architecture of an H.235.3-enabled Gatekeeper Security Processor (GKSP) across three security domains: Security Domain A, Security Domain B, and Security Domain C.
+
+- Security Domain A:** Contains multiple endpoints (EP1, EP2, EPn). Each endpoint is associated with a User/EP certificate and a User/EP private key. Arrows indicate bidirectional communication between these endpoints and the GKSP, labeled "H.225.0 w. H.235.3".
+- Security Domain B:** Contains a Gatekeeper (GK) and a User DB. The GK is associated with a User/EP credential, a GK certificate, and a GK private key. The User DB is connected to the GK via an LDAP connection. The GKSP communicates with the GK via two arrows labeled "H.225.0 with H.235.3/H.235.1 and processor token".
+- Security Domain C:** Contains another GKSP entity.
+- GKSP (Gatekeeper Security Processor):** A central component that handles security functions for endpoints in Security Domain A. It includes internal modules for "DH processing", "Digital signature processing", and "X.509 cert processing". It also has a "NAT/FW" (Network Address Translation/Firewall) module. The GKSP is associated with a GKSP certificate and a GKSP private key.
+- Connections:**
+ - Endpoints in Security Domain A connect to the GKSP with "H.225.0 w. H.235.3".
+ - The GKSP connects to the GK in Security Domain B with "H.225.0 with H.235.3/H.235.1 and processor token".
+ - The GK connects back to the GKSP with "H.225.0 with H.235.3/H.235.1 and processor token".
+ - The GK connects to the User DB via LDAP.
+ - The GKSP in Security Domain C is shown as a separate entity.
+- Legend:**
+ - Dynamic shared secret (H.235.3):** Indicated by a bracket under the connections between endpoints and the GKSP.
+ - Security trust association:** Indicated by a bracket under the connections between the GKSP and the GK. It includes "Static shared secret (H.235.1)" and "Dynamic Shared secret (H.235.3)".
+
+Diagram of Gatekeeper Security Processor architecture showing Security Domains A, B, and C, endpoints (EP1, EP2, EPn), the GKSP, the Gatekeeper (GK), and the User DB.
+
+Figure I.1/H.235.3 – Gatekeeper Security Processor architecture
+
+NOTE 1 – The GKSP may hold further useful functions such as for example a NAT (network address translation function), a firewall, an application-level gateway (ALG) etc.; such functions may be part of the security processing or may be kept as separate internal functions, yet such functions are not described in this clause and remain as for further study.
+
+The GKSP serves a certain number of endpoints within an administrative security domain A. The GKSP may also communicate with another GKSP in some other administrative security domain C (not shown).
+
+NOTE 2 – The three administrative security domains do not necessarily have to be distinct in practice. The GKSP may be placed entirely within administrative security domain B where the GK belongs to, or alternatively, the GKSP may be placed within security domain A, or within a separate, own security domain (not shown).
+
+Using the GKSP, the Gatekeeper would not need to get involved in executing computational-expensive security operations. The GK still determines authorization and admission by matching an appropriate credential (e.g., alias name/DN name/certificate serial number, X.509 certificate) against the (internal/external) database holding the subscribed users with their permissions and credentials. Clause I.3 defines suitable credentials for use by an H.235.3-enabled GKSP.
+
+NOTE 3 – A possible LDAP interface between the GK and subscriber/user database is not subject to this Recommendation. It is also left to the policy of the gatekeeper on which criteria and credentials (e.g., alias name/DN name/certificate serial number) to realize the access control decision. It is left to the discretion of such a user database, which credentials (alias name/DN name/certificate serial number) are stored therein.
+
+NOTE 4 – The GKSP does not need to get involved in any matters regarding configuration or administration of users, subscribers and the GKSP does not need to access a user database.
+
+NOTE 5 – Those endpoints which deploy H.235.3 and the GKSP typically also hold a root certificate (not shown in Figure I.1). The root certificate allows the entity to verify the certificate of the entity (EP, GKSP).
+
+Communication between the GKSP and its GK, or among two GKSPs, is secured. For example, H.235.1 is applied when a statically configured shared secret is assumed. H.235.3 is applied that allows establishing a dynamic shared secret. In either case, GK and GKSP are assumed to have established a mutual trust relationship, be it either a static or a dynamic security association. The trust relationship may be chained when multiple GKSPs are involved.
+
+Thus, the GK trusts the GKSP for executing the far-end authentication procedures and for correctly realizing the security procedures. The GKSP reports the outcome of its security processing in a simple security assertion using the processor token to the GK.
+
+It is assumed that each H.235.3-enabled EP and the GKSP hold a X.509 certificate that trustfully binds the identity of the legitimate owner of the public key and a corresponding private key for signing.
+
+NOTE 6 – The public key corresponding to the private key is not shown explicitly in Figure I.1; typically, the certified public key is conveyed within the X.509 user/EP certificate.
+
+NOTE 7 – Not all certificates/private keys are shown for all endpoints/GKSP.
+
+NOTE 8 – The GKSP certificate typically is a server certificate.
+
+The GK is required to hold a distinct, unique GK certificate and a private key only if the GK deploys H.235.3 for communication with the GKSP.
+
+The GKSP is a stateful proxy operating inbetween the endpoints and the GK, or inbetween two gatekeepers. There is at least one GKSP entity for each GK, yet one GK may also serve multiple GKSPs to increase scalability in the number of served endpoints, and to improve robustness of the entire system. It is possible to arrange linearly chained H.235.3-specific GKSP elements as shown in Figure I.2. It is possible to arrange H.235.3-specific GKSP elements in a hierarchical architecture as shown in Figure I.3.
+
+There is at least one generic GKSP entity for each GK, yet one GK may also serve multiple generic GKSPs to increase scalability in the number of served endpoints and to improve robustness of the entire system. There may be one or more generic GKSPs between an endpoint and a GK: thus, linear or hierarchical, cascading configurations of several GKSP should in principle be possible. An endpoint always establishes a trust relation with its associated GK through one or more GKSPs. A single GK may have multiple trust relationships with multiple EPs.
+
+Figure I.2 shows an architecture with linearly chained GKSP elements.
+
+
+
+A linear sequence of seven rectangular boxes connected by horizontal lines. The boxes are labeled from left to right: EP1, GKSP1, GKSP2, GK1, GKSP3, GKSP4, and GK2.
+
+Figure I.2/H.235.3 – Chained GKSP architecture diagram
+
+H.235.3\_F1.2
+
+**Figure I.2/H.235.3 – Chained GKSP architecture**
+
+In Figure I.2, GKSP1 authenticates the RRQ message received from EP1, while GK1 or GK2 decide upon the authorization of EP1. GKSP1, GKSP2 (resp. GKSP3 and GKSP4) rely H.323 signalling messages between EP1 and GK1 (resp. GK1 and GK2).
+
+Figure I.3 shows an architecture with hierarchical, cascaded GKSPs elements.
+
+
+
+A hierarchical diagram. At the top, four boxes are connected horizontally: EP1, GKSP1, GKSP2, and GK1. Below this, a second row contains two boxes: EP2 and GKSP3. A vertical line descends from the bottom of the GK1 box to the top of the GKSP3 box, indicating a hierarchical relationship where GKSP3 is connected to GK1.
+
+Figure I.3/H.235.3 – Hierarchical GKSP architecture diagram
+
+H.235.3\_F1.3
+
+**Figure I.3/H.235.3 – Hierarchical GKSP architecture**
+
+The GKSP has at least one IP address; typically a GKSP is an edge security device that is located at the border of two distinct administrative security domains. Thus, the GKSP may own two IP addresses, one IP address towards the H.323 endpoints/peer GKSP (administrative security domains A and C) and a different one internally towards the GK (administrative security domain B).
+
+### I.1 Discovery of a gatekeeper security processor
+
+It is assumed that an H.323 endpoint is not required to know of presence of a GKSP. The endpoint may have configured the IP address of the GKSP as the GK contact point. In a scenario with a GKSP present, the EP behaves exactly as in a scenario without a GKSP. The EP may use the GK discovery phase using **GRQ** to locate its serving GKSP.
+
+In the case where there is a GKSP that serves the requesting EP, the GKSP needs to find out if its GK supports a security processor.
+
+In the case where the GKSP intends to use H.235.1 towards the GK but a shared secret has not been configured between the GKSP and GK, the GKSP returns **GRJ** to the endpoint with **reason** set to **securityDenial/securityDenied**. Otherwise, the GKSP forwards the **GRQ** and includes a processor ClearToken and sets the profile element with element ID 0 as defined in Table I.1. Since, in this case, the GK supports the GKSP, the GK returns a **GCF/GRJ** and includes a processor token.
+
+In the case where the GKSP intends to use H.235.3 towards the GK, the GKSP forwards **GRQ** to the GK with the inclusion of a processor ClearToken and sets the profile element with element ID 0 as defined in Table I.1. A GKSP-enabled GK supporting this appendix responds by **GCF** and the inclusion of a processor ClearToken.
+
+A GK that does not support a security processor or a GK that has not implemented this appendix would ignore the conveyed processor token and would respond by **GCF/GRJ**. The GKSP is able to recognize this situation, as the received **GRQ/GRJ** does not convey a processor token. The GKSP then sends a **GRJ** to the endpoint with **reason** set to **securityDenial/securityDenied**.
+
+A GK that has received a **GRQ** from an endpoint directly without relay through a GKSP, and where the GK is aware of a GKSP, responds with an **GRJ** with **reason** set to **securityDenial/securityDenied** (without inclusion of a processor token).
+
+### I.2 Gatekeeper security processor operation
+
+The GK security processor performs at least the following functions:
+
+- Terminates the H.235.3 protocol to the H.323 endpoints, or to the peer GKSP, as defined by procedure IV.
+- Runs the Diffie-Hellman H.235.3 protocol towards the H.323 endpoints/peer GKSP; i.e. performs the Diffie-Hellman modular-exponentiation operations.
+- Performs verification of digital signatures received from H.323 endpoints or peer GKSP in H.235.3 secured messages.
+- Security checks of received X.509 digital certificates: path verification, validity check, CRL check, etc.
+- For message forwarding from the GKSP to the GK or to another GKSP, the GKSP generates new H.235 tokens (H.235.1 or H.235.3). The GKSP uses its GKSP identifier as **sendersID** and uses the gatekeeper identifier (GKID) as **generalID** in the baseline H.235 ClearToken.
+- For messages received from the H.323 endpoint, the GKSP includes a processor token. For the initial **RRQ/GRQ** message, the processor token holds a security profile element with ElementID 0 that indicates the encountered authentication method. The GKSP may include a security profile element with ElementID 0 in any other H.225.0 RAS and/or Call Signalling message too.
+
+Further, the processor token holds one or more security profile elements that convey the credentials.
+
+Suitable credentials in the context of this appendix are:
+
+- ElementID 1 for providing the subject found in an X.509 certificate;
+- ElementID 2 for providing the subjectAltName found in an X.509 certificate;
+- ElementID 3 for providing the serial number found in an X.509 certificate;
+- ElementID 4 for providing the issuer name found in an X.509 certificate;
+- ElementID 5 for providing the endpoint identifier of the H.323 terminal.
+
+NOTE – The GK may additionally interpret the H.323 alias element in H.225.0 messages as a credential. Since the alias element is present anyway in messages, there is no need to define a separate alias element within a security profile element.
+
+GKSP also includes a security profile element with ElementID 6 to indicate an encountered error. If the authentication between H.323 endpoint and GKSP has been successful, then the GKSP may include a security profile element with ElementID 6 to indicate that no security error has been encountered.
+
+- In the case where the GKSP encounters security errors (digital signature wrong, certificate validation failed, etc.) in a message received from the H.323 endpoint or from the peer GKSP, the GKSP logs the error and forwards the message to the GK, includes a processor token with a security profile element of type ElementID 6 by indicating the type of error and lets the GK decide and react accordingly.
+- In the case where the GKSP encounters security errors in a message received from the GK or from another GKSP, the GKSP logs the error and discards the message.
+- Computes digital signatures for outgoing H.235.3 messages to the H.323 endpoints or peer GKSP.
+
+- Relays any H.225.0 messages between H.323 endpoint and gatekeeper or GKSP back and forth and performs the following operations on tokens:
+ - Communicates with its gatekeeper using the H.225.0 protocol where the H.235.3 tokens, received from the H.323 endpoints or from peer GKSP in the 1st handshake, are stripped off.
+ - Verifies embedded H.235.1 tokens received from H.323 endpoints, or from a peer GKSP, and strips them off for further relay of messages to the gatekeeper.
+ - Terminates H.235.1/H.235.3 protocol to its gatekeeper.
+ - Includes H.235.1/H.235.3 tokens towards the H.323 endpoints or towards peer GKSP for outgoing messages.
+ - Leaves the received H.225.0 messages received from H.323 EPs or GK basically intact; only rewrites tokens as defined above.
+ - The H.225.0 protocol between GKSP and its GK is secured using either H.235.1 baseline security profile or H.235.3 hybrid security profile.
+- In the case where GKSP and GK or the GKSP and another GKSP deploy the H.235.3 hybrid security profile, the GKSP either:
+ - a) runs the H.235.3 protocol towards the GK or GKSP for establishing a new dynamic key upon reception of the first message from the first endpoint or peer GKSP; or
+ - b) initiates the H.235.3 protocol towards the GK or GKSP for establishing a new dynamic key before any other H.323 endpoint or peer GKSP have started communication. This would permit a dynamic shared secret to be in place, ready for application to protect the first handshake messages received from an H.323 terminal or peer GKSP; this would further shorten the overall security association setup time.
+- The GKSP does not forward any H.235.3-specific FACILITY messages for key update.
+- In the case where GKSP and GK or the GKSP and another GKSP deploy the H.235.1 baseline security profile, the GKSP applies the static shared key for protection of the H.225.0 RAS and/or Call Signalling messages.
+- Keeps track of security associations; i.e., establishes the DH shared secret; maintains the dynamic shared secrets. Depending on its security policy, the GKSP may invoke re-keying for the maintained dynamic shared secret(s) using FACILITY messages. Once the H.323 terminal or peer GKSP has de-registered, the GKSP should discard the dynamic shared key and consider no security association in place.
+- Maps transport ports (EP-GKSP and GKSP-GK) for H.225.0 RAS and/or Call Signalling protocols one-to-one.
+
+### I.3 Processor token
+
+Upon reception of an H.235.3 secured H.225.0 RAS and/or Call Signalling message with a conveyed X.509 certificate and digital signature, the GKSP removes the H.235.3 tokens and includes a separate processor token to the forwarded message to its GK or next GKSP (if any).
+
+With the processor token, the GKSP reports the encountered authentication method, the encountered endpoint identifier, the encountered name in the certificate (name or subjectAltName), the encountered serial number in the X.509 certificate, the encountered issuer name in the X.509 certificate or an error indication. The processor token plays the role of a simple security assertion testifying to the asserted security relationship (successful or failed) between the GKSP and the H.323 endpoints towards the GK.
+
+The GK is able to detect the presence of a GKSP by inspecting the received message and recognizing an included processor token. The GK interprets the absence of any processor token to indicate absence of any GKSP.
+
+The processor token is a ClearToken with the following fields used:
+
+- **tokenOID** holds an OID for "PT"; see Table I.2.
+- **generalID** holds either:
+ - the endpoint identifier of the H.323 endpoint in the case of a received H.235 secured message from an H.323 endpoint or holds;
+ - the GK identifier in the case of a received H.235 secured message from the GK.
+- **certificate** may optionally hold the received H.235.2/H.235.3 certificate received from the H.323 endpoint or peer GKSP. If this feature is implemented, the GKSP forwards the certificate to the GK.
+
+The usage of the subject/subjectAltName, or of the endpoint ID or of the certificate serial number or other lightweight credential should be preferred over including the entire certificate within the **certificate** field. This is because X.509 certificates tend to be a bigger piece of data and because of the potential problem of message fragmentation when certificates are included in UDP transported H.225.0 messages.
+
+- **profileInfo** holds at least one profile element.
+
+The processor token may hold several profile elements; among them as listed in Table I.1:
+
+Any other fields within GK security processor ClearToken remain unused.
+
+**Table I.1/H.235.3 – Specification of profile elements**
+
+| ElementID value | Description | Specification |
+|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 0 | Indicates a profile element that conveys the authentication method.
The usage of this profile element is mandatory for the initial handshake (GRQ or RRQ) and optional otherwise. | - • Params remains unused.
- • Element holds an Element where integer is set to one of the following values to indicate the encountered authentication method at the H.323 endpoint or peer GKSP:
- 1) other, unspecified and non-standard authentication method;
- 2) none (i.e. no authentication);
- 3) H.235.1 shared secret, (undefined by this appendix);
- 4) H.235.2;
- 5) H.235.3;
- 6) H.235.5, (undefined by this appendix);
- 7) H.235.4, (undefined by this appendix);
- 8) H.530, (undefined by this appendix).
|
+
+**Table I.1/H.235.3 – Specification of profile elements**
+
+| ElementID value | Description | Specification |
+|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 1 | Indicates a profile element that holds the subject of the received certificate.
The usage of this profile element is optional. | - • ParamS remains unused.
- • Element holds an Element where name or octets holds the subject of the received certificate.
NOTE – The GKSP may need to re-encode the subject from the X.509 Name representation into an octets string or BMP name representation.
|
+| 2 | Indicates a profile element that holds the subjectAltName of the received certificate.
The usage of this profile element is optional. | - • ParamS remains unused.
- • Element holds an Element where name or octets holds the subjectAltName of the received certificate.
NOTE – The GKSP may need to re-encode the subjectAltName from the X.509 Name representation into an octets string or BMP name representation.
|
+| 3 | Indicates a profile element that holds the serial number of the certificate.
The usage of this profile element is mandatory. | - • paramS remains unused.
- • element holds an Element where integer holds the CertificateSerialNumber of the received X.509 certificate.
|
+| 4 | Indicates a profile element that holds the issuer of the certificate.
The usage of this profile element is mandatory. | - • paramS remains unused.
- • element holds an Element where name or octets holds the issuer name of the received X.509 certificate.
NOTE – The GKSP may need to re-encode the issuer name from the X.509 Name representation into an octets string or BMP name representation.
|
+| 5 | Indicates a profile element that holds the endpoint ID of the originating endpoint/terminal.
The usage of this profile element is optional. | - • paramS remains unused.
- • element holds an Element where name holds the endpoint identifier of the originating endpoint/terminal.
|
+| 6 | Indicates a profile element that holds an error indication.
The usage of this profile element is mandatory in any error case (> 0) but optional to indicate no error (0). | - • paramS remains unused.
- • element holds an Element where integer holds one of the following encoded error values:
0: no error
1: securityDenied
2: securityWrongSyncTime
3: securityReplay
4: securityWrongGeneralID
5: securityWrongSendersID
6: securityMessageIntegrityFailed
7: securityWrongOID
8: securityDHmismatch
9: securityCertificateExpired
10: securityCertificateDateInvalid
|
+
+**Table I.1/H.235.3 – Specification of profile elements**
+
+| ElementID value | Description | Specification |
+|-----------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| | | 11: securityCertificateRevoked
12: securityCertificateNotReadable
13: securityCertificateSignatureInvalid
14: securityCertificateMissing
15: securityCertificateIncomplete
16: securityUnsupportedCertificateAlgOID
17: securityUnknownCA
18: unspecified security error
19: GKSP not supported. |
+
+### I.4 GKSP illustration example
+
+This clause shows example message flow diagrams (see Figures I.4 and I.5) for a GK security processor operating within an administrative security domain. Note, that Figures I.4 and I.5 only show those messages that are crucial for H.235.3; in practice there may be many more H.225.0 RAS and/or Call Signalling messages.
+
+In both figures, H.235.3-enabled H.323 terminal A and GKSP deploy the H.235.3 hybrid security profile; thus Terminal A and GKSP B do not share any static shared secret. In Figure I.4, GKSP and GK deploy the H.235.1 baseline security profile for protection of the H.225.0 RAS and Call Signalling messages. $K_{BC}$ represents the static shared secret that GKSP B and GK C share.
+
+Figure I.4 illustrates an entire call from terminal A through GKSP B and GK C. The call is GK-routed. At the beginning, terminal A and GKSP B negotiate a dynamic link key $K_{AB}$ according to H.235.3 during RAS registration. For this, Terminal A generates the **RRQ** message that conveys the Diffie-Hellman half-key $DH_A$ of A, holds A's certificate (optional), and A's digital signature upon all or parts of the **RRQ** message.
+
+GKSP B receives the **RRQ** and verifies the digital signature. This includes validation and verification of the conveyed digital X.509 certificate (if included) against A's root certificate, path verification, CRL checks etc.
+
+The GKSP forwards the **RRQ** message to GK C, adds a processor token (PT) including security profile elements:
+
+- 0 indicating H.235.3 (5);
+- 2 holding the subjectAltName of A's certificate;
+- 3 the serial number of A's certificate;
+- 5 the endpoint ID of A.
+
+and applies the H.235.1 baseline security profile with the shared key $K_{BC}$ ; the HMAC-SHA1 integrity check is computed either on the entire **RRQ** message or only on certain parts of it.
+
+In case the certificate validation or digital signature validation fails, GKSP B cannot authenticate and authorize Terminal A; GKSP then logs an error, and forwards the incorrect **RRQ** to GK C.
+
+Gatekeeper C receives the **RRQ** message, verifies the integrity check by applying $K_{BC}$ and processes the processor token PT with the included profile elements. If GK C is able to successfully validate the **RRQ**, GK C authorizes Terminal A. GK C then responds by an **RCF** that is sent to GKSP B.
+
+GKSP B receives the **RCF**, recognizes that GK C has successfully authorized Terminal A and forwards an **RCF** to Terminal A, by computing and including its Diffie-Hellman half-key $DH_B$ , its certificate (optional) and signs the **RRQ** (fully or partially) with its private key. Terminal A validates the authenticity of the received **RCF** message.
+
+In the case where GKSP B successfully authenticates and authorizes Terminal A, GKSP B and Terminal A compute the dynamic shared secret $K_{AB}$ . This dynamic shared secret represents the established trust relationship between Terminal A and GKSP B. Otherwise, and in the case where GK C does not authorize Terminal A, GKSP B forwards an **RCF** to Terminal A by computing and including its Diffie-Hellman half-key $DH_B$ , its certificate (optional) and signs the **RRQ** (fully or partially) with its private key. Since Terminal A is not authorized, GKSP B does not keep $K_{AB}$ any further. GKSP B may record the failed **RCF** in a log file.
+
+Terminal A and GKSP B use this dynamic shared secret $K_{AB}$ to further protect H.225.0 RAS and Call Signalling messages using H.235.1 baseline security profile. GKSP B and GK C use H.235.1 baseline security profile for protection of the all H.225.0 RAS and Call Signalling messages.
+
+In the case where Terminal A receives an **RCF**, Terminal A does not proceed with the call setup.
+
+Figure I.4 also shows an error case where terminal A (or someone else) sends an unprotected **BRQ** message to the GKSP; this message could also have been due to an attack where the attacker somehow removed or compromised the H.235.1 security protection. GKSP detects the failed integrity verification and forwards the **BRQ** message including a processor token to the GK, whereas the security profile element indicates `securityMessageIntegrityFailed` (6). The GK recognizes the security violation and does not authorize the bandwidth request by rejecting it with a **BRJ** reply.
+
+At some point in time after the call has been established, terminal A decides to refresh the key $K_{AB}$ by performing a key updating procedure for $K_{AB}$ with GKSP B; $K'_{AB}$ represents the new updated key. At the end of the call, it is terminated by GK C.
+
+
+
+```
+
+sequenceDiagram
+ participant Terminal A
+ participant GKSP as GK Security Processor B
+ participant Gatekeeper C
+
+ Terminal A->>GKSP: RRQ: DH_A, (Cert_A), Sig_A
+ GKSP->>Gatekeeper C: RRQ: PT(Eid0(5), Eid2, Eid3, Eid5), HMAC-SHA1(K_BC)
+ Gatekeeper C->>GKSP: RCF: HMAC-SHA1(K_BC)
+ GKSP->>Terminal A: RCF: DH_B, (Cert_B), Sig_B
+ Note over Terminal A, GKSP: K_AB :=
+ Terminal A->>GKSP: ARQ: HMAC-SHA1(K_AB)
+ Gatekeeper C->>GKSP: ARQ: PT(Eid6(0)), HMAC-SHA1(K_BC)
+ Gatekeeper C->>GKSP: BRQ: PT(Eid6(6)), HMAC-SHA1(K_BC)
+ Terminal A->>GKSP: BRQ:
+ Terminal A->>GKSP: BRJ: HMAC-SHA1(K_AB)
+ Gatekeeper C->>GKSP: BRJ: HMAC-SHA1(K_BC)
+ Note over Terminal A, GKSP:
+ Note over GKSP, Gatekeeper C:
+ Terminal A->>GKSP: SETUP: HMAC-SHA1(K_AB)
+ Gatekeeper C->>GKSP: SETUP: PT(Eid6(0)), HMAC-SHA1(K_BC)
+ Terminal A->>GKSP: CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT: HMAC-SHA1(K_AB)
+ Gatekeeper C->>GKSP: CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT: HMAC-SHA1(K_BC)
+ Terminal A->>GKSP: FACILITY: DH_A, (Cert_A), Sig_A
+ GKSP->>Terminal A: FACILITY: DH_B, (Cert_B), Sig_B
+ Note over Terminal A, GKSP: K'_AB :=
+ Note over GKSP, Gatekeeper C:
+ Terminal A->>GKSP: RELEASE COMPLETE: HMAC-SHA1(K'_AB)
+ Gatekeeper C->>GKSP: RELEASE COMPLETE: HMAC-SHA1(K_BC)
+
+```
+
+Sequence diagram showing call flow between Terminal A, GK Security Processor B, and Gatekeeper C. The diagram illustrates the exchange of messages for call setup and teardown, with security tokens and HMAC integrity checks.
+
+H.235.3\_F1.4
+
+| | | | |
+|-----------------|------------------------------------------------|-----------|--------------------------------|
+| Cert | User certificate | GKSP | Gatekeeper Security Processor |
+| DH A | Diffie-Hellman Token $g^a \bmod p$ | HMAC-SHA1 | Computed integrity check value |
+| DH B | Diffie-Hellman Token $g^b \bmod p$ | K, K' | Symmetric link key |
+| Eid n | Security Profile ElementID with value n | PT | Processor Token |
+| EP | Endpoint (Terminal) | Sig | Digital signature |
+| GK | Gatekeeper | | |
+
+**Figure I.4/H.235.3 – Call flow with GK-security processor and H.235.1 message protection (GKSP-to-GK)**
+
+In Figure I.5, GKSP and GK deploy the H.235.3 hybrid security profile for protection of the H.225.0 RAS and Call Signalling messages. $K_{BC}$ represents the dynamic shared secret that GKSP and GK first negotiate and then share for further use within H.235.1 baseline security profile for protection of the H.225.0 RAS and Call Signalling messages. Figure I.5 also shows a H.235.1-enabled H.323 terminal D that shares a static shared secret $K_{DB}$ with its GKSP B.
+
+Figure I.5 illustrates an entire call flow from terminal A through GKSP B and GK C. The call is GK-routed. In Figure I.5, it is assumed that terminal A is actually the first endpoint that registers at the GK through the GKSP.
+
+Terminal A and GKSP B use this dynamic shared secret $K_{AB}$ to protect further H.225.0 RAS and Call Signalling messages using H.235.1 baseline security profile. GKSP B and GK C use H.235.1 baseline security profile for protection of the further H.225.0 RAS and Call Signalling messages using the dynamic shared secret $K_{BC}$ .
+
+At the beginning, terminal A and GKSP B negotiate a dynamic link key $K_{AB}$ according to H.235.3. During the first **RRQ/RCF** handshake between terminal A and GKSP where both entities establish a dynamic shared secret $K_{AB}$ , the GKSP and the GK also deploy H.235.3 to establish a dynamic shared secret $K_{BC}$ .
+
+The GKSP forwards the **RRQ** message received from terminal A, adds a processor token including three security profile elements:
+
+- 0 indicating H.235.3 (5);
+- 3 the serial number of A's certificate;
+- 6 indicating no error (0),
+
+and applies the H.235.3 hybrid security profile. Since GKSP B and GK C do not yet share any shared secret, GKSP and GK run the H.235.3 protocol and establish a dynamic shared secret $K_{BC}$ .
+
+Sometime later, terminal D registers at the GKSP B using H.235.1-secured **RRQ**. GKSP B forwards this **RRQ** to the GK C and includes a processor token. The processor token conveys three security profile elements
+
+- 0 indicating H.235.1 (3);
+- 5 providing D's endpoint identifier;
+- 6 indicating no error (0),
+
+and applies the H.235.3 hybrid security profile. Since the H.235.3 dynamic shared secret $K_{BC}$ has already been established before, GKSP secures the forwarded **RRQ** message using H.235.1 by applying $K_{BC}$ . GK C authorizes terminal D and replies with an **RCF** that the GKSP forwards to terminal D.
+
+At some point in time after the call from terminal A has been established through GK C, GKSP B decides to refresh the key $K_{BC}$ by performing a key updating procedure for $K_{BC}$ with GK C; $K'_{BC}$ represents the new updated key.
+
+Figure I.5 also shows an error case where GKSP receives a **RELEASE-COMPLETE** message from the GK. GKSP B detects that integrity verification fails; this message does not use the current key. The message could have been replayed or manipulated by an attacker or the GK uses an old and expired key. GKSP B logs the security event and discards the message without forwarding it to terminal A.
+
+At the end of the call, it is terminated by GK C.
+
+
+
+```
+
+sequenceDiagram
+ participant D as Terminal D
+ participant A as Terminal A
+ participant B as GK Security Processor B
+ participant C as Gatekeeper C
+
+ A->>B: RRQ: DHA, (CertA), SigA
+ B->>C: RRQ: PT(Eid0(3), Eid5, Eid6(0)), DHB, (CertB), SigB
+ C->>B: RCF: DHC, (CertC), SigC
+ B->>A: RCF: DHB, (CertB), SigB
+ Note over A,B: KAB:=
+ A->>B: ARQ: HMAC-SHA1(KAB)
+ B->>C: ARQ: PT(Eid6(0)), HMAC-SHA1(KBC)
+ D->>B: RRQ: HMAC-SHA1(KDB)
+ B->>C: RRQ: PT(Eid0(3), Eid2, Eid6(0)), HMAC-SHA1(KBC)
+ B->>D: RCF: HMAC-SHA1(KDB)
+ B->>C: RCF: HMAC-SHA1(KBC)
+ Note over D,A: ....
+ Note over A,B: ....
+ Note over B,C: ....
+ A->>B: SETUP: HMAC-SHA1(KAB)
+ B->>C: SETUP: PT(Eid6(0)), HMAC-SHA1(KBC)
+ B->>A: CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT: HMAC-SHA1(KAB)
+ B->>C: CALL-PROCEEDING/PROGRESS/ALERTING/CONNECT: HMAC-SHA1(KBC)
+ B->>C: FACILITY: PT(Eid6(0)), DHB, (CertB), SigB
+ C->>B: FACILITY: DHC, (CertC), SigC
+ Note over B,C: K'BC:=
+ Note over B,C: ....
+ C->>B: RELEASE COMPLETE: HMAC-SHA1(KBC)
+ B->>A: RELEASE COMPLETE: HMAC-SHA1(K'AB)
+ B->>C: RELEASE COMPLETE: HMAC-SHA1(K'BC)
+
+```
+
+Sequence diagram showing call flow with GK-security processor and H.235.3 message protection. Lifelines: Terminal D, Terminal A, GK Security Processor B, Gatekeeper C. The diagram shows messages like RRQ, RCF, ARQ, SETUP, CALL-PROCEEDING, FACILITY, and RELEASE COMPLETE with HMAC-SHA1 integrity checks.
+
+H.235.3\_F1.5
+
+| | | | |
+|------------------|-------------------------------------------|-----------|--------------------------------|
+| Cert | User certificate | GK | Gatekeeper |
+| DH A | Diffie-Hellman Token $g^a \bmod p$ | GKSP | Gatekeeper Security Processor |
+| DH B | Diffie-Hellman Token $g^b \bmod p$ | HMAC-SHA1 | Computed integrity check value |
+| DH C | Diffie-Hellman Token $g^c \bmod p$ | K, K' | Symmetric link key |
+| Eid n | Security Profile ElementID with value $n$ | PT | Processor Token |
+| EP | Endpoint (Terminal) | Sig | Digital signature |
+
+**Figure I.5/H.235.3 – Call flow with GK-security processor and H.235.3 message protection (GKSP-to-GK)**
+
+### I.5 List of object identifiers
+
+Table I.2 lists the referenced OID that is to be used in conjunction with Table I.1.
+
+**Table I.2/H.235.3 – Object identifiers used by Appendix I**
+
+| Object identifier reference | Object identifier value(s) | Description |
+|------------------------------------|-----------------------------------------------------------|--------------------------------------------------------------------------------------|
+| "PT" | {itu-t (0) recommendation (0) h (8) 235 version (0) 4 15} | Used to indicate the GK processor Clear token for communication from a GKSP to a GK. |
+
+
+
+# SERIES OF ITU-T RECOMMENDATIONS
+
+| | |
+|-----------------|---------------------------------------------------------------------------------------------|
+| Series A | Organization of the work of ITU-T |
+| Series D | General tariff principles |
+| Series E | Overall network operation, telephone service, service operation and human factors |
+| Series F | Non-telephone telecommunication services |
+| Series G | Transmission systems and media, digital systems and networks |
+| Series H | Audiovisual and multimedia systems |
+| Series I | Integrated services digital network |
+| Series J | Cable networks and transmission of television, sound programme and other multimedia signals |
+| Series K | Protection against interference |
+| Series L | Construction, installation and protection of cables and other elements of outside plant |
+| Series M | Telecommunication management, including TMN and network maintenance |
+| Series N | Maintenance: international sound programme and television transmission circuits |
+| Series O | Specifications of measuring equipment |
+| Series P | Telephone transmission quality, telephone installations, local line networks |
+| Series Q | Switching and signalling |
+| Series R | Telegraph transmission |
+| Series S | Telegraph services terminal equipment |
+| Series T | Terminals for telematic services |
+| Series U | Telegraph switching |
+| Series V | Data communication over the telephone network |
+| Series X | Data networks, open system communications and security |
+| Series Y | Global information infrastructure, Internet protocol aspects and next-generation networks |
+| Series Z | Languages and general software aspects for telecommunication systems |
\ No newline at end of file
diff --git a/marked/H/T-REC-H.235.4-200509-I_PDF-E/10781f43062bf3e9601a1e086710556c_img.jpg b/marked/H/T-REC-H.235.4-200509-I_PDF-E/10781f43062bf3e9601a1e086710556c_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..1ac4a34e45e2ee12292b929444f5cdcb2cde403a
--- /dev/null
+++ b/marked/H/T-REC-H.235.4-200509-I_PDF-E/10781f43062bf3e9601a1e086710556c_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:490c59f5489090b81a35d32ed7c50db9930c700269dd87d4977cc1711e47d580
+size 205462
diff --git a/marked/H/T-REC-H.235.4-200509-I_PDF-E/a234352dfaccdc24745c88eef7724cc6_img.jpg b/marked/H/T-REC-H.235.4-200509-I_PDF-E/a234352dfaccdc24745c88eef7724cc6_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..0690accfffe91d5a88e2eee6a0be02b9c7997b23
--- /dev/null
+++ b/marked/H/T-REC-H.235.4-200509-I_PDF-E/a234352dfaccdc24745c88eef7724cc6_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:135f3cda9eab7487ad7442a8f1cc5a9966743d7392bbeab3b7281c56888f35bc
+size 29304
diff --git a/marked/H/T-REC-H.235.4-200509-I_PDF-E/a3dc41dc3df86ea68d266af2bf95cf5b_img.jpg b/marked/H/T-REC-H.235.4-200509-I_PDF-E/a3dc41dc3df86ea68d266af2bf95cf5b_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..9cf3a6acb906afef9031c3df7dce69a4bc265961
--- /dev/null
+++ b/marked/H/T-REC-H.235.4-200509-I_PDF-E/a3dc41dc3df86ea68d266af2bf95cf5b_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9c3f1d934cdce4b0667e41f30d17b50952418799b1ad17db8ae4b97a5ec72ba3
+size 3681
diff --git a/marked/H/T-REC-H.235.4-200509-I_PDF-E/bd671b21db63e6fdb2196e9b18502aac_img.jpg b/marked/H/T-REC-H.235.4-200509-I_PDF-E/bd671b21db63e6fdb2196e9b18502aac_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..2117ed1f28cb4792ee59ce08a81c451b55507e12
--- /dev/null
+++ b/marked/H/T-REC-H.235.4-200509-I_PDF-E/bd671b21db63e6fdb2196e9b18502aac_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:671b0e95f02238d7dd1049d9932a6e3892dc13914f2a7949fcbeffe98a5b87cc
+size 201128
diff --git a/marked/H/T-REC-H.235.4-200509-I_PDF-E/eb03559a4d92ea9ebd63ea9be663c50a_img.jpg b/marked/H/T-REC-H.235.4-200509-I_PDF-E/eb03559a4d92ea9ebd63ea9be663c50a_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..6e3f98abd18f927febc5d5e82ea7da3d0bdaac2a
--- /dev/null
+++ b/marked/H/T-REC-H.235.4-200509-I_PDF-E/eb03559a4d92ea9ebd63ea9be663c50a_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0ff7666e142ca0cbb1d6fe2d4152b570a37350c712e1365a09a955e2e400d5e4
+size 184842
diff --git a/marked/H/T-REC-H.235.4-200509-I_PDF-E/raw.md b/marked/H/T-REC-H.235.4-200509-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..a1b94c9ea8b803b963aec0d447227a7213e239b0
--- /dev/null
+++ b/marked/H/T-REC-H.235.4-200509-I_PDF-E/raw.md
@@ -0,0 +1,812 @@
+
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.235.4**
+
+(09/2005)
+
+SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS
+Infrastructure of audiovisual services – Systems aspects
+
+---
+
+**H.323 security: Direct and selective routed call
+security**
+
+ITU-T Recommendation H.235.4
+
+# ITU-T H-SERIES RECOMMENDATIONS **AUDIOVISUAL AND MULTIMEDIA SYSTEMS**
+
+| | |
+|-------------------------------------------------------------------------------|--------------------|
+| CHARACTERISTICS OF VISUAL TELEPHONE SYSTEMS | H.100–H.199 |
+| INFRASTRUCTURE OF AUDIOVISUAL SERVICES | |
+| General | H.200–H.219 |
+| Transmission multiplexing and synchronization | H.220–H.229 |
+| Systems aspects | H.230–H.239 |
+| Communication procedures | H.240–H.259 |
+| Coding of moving video | H.260–H.279 |
+| Related systems aspects | H.280–H.299 |
+| Systems and terminal equipment for audiovisual services | H.300–H.349 |
+| Directory services architecture for audiovisual and multimedia services | H.350–H.359 |
+| Quality of service architecture for audiovisual and multimedia services | H.360–H.369 |
+| Supplementary services for multimedia | H.450–H.499 |
+| MOBILITY AND COLLABORATION PROCEDURES | |
+| Overview of Mobility and Collaboration, definitions, protocols and procedures | H.500–H.509 |
+| Mobility for H-Series multimedia systems and services | H.510–H.519 |
+| Mobile multimedia collaboration applications and services | H.520–H.529 |
+| Security for mobile multimedia systems and services | H.530–H.539 |
+| Security for mobile multimedia collaboration applications and services | H.540–H.549 |
+| Mobility interworking procedures | H.550–H.559 |
+| Mobile multimedia collaboration inter-working procedures | H.560–H.569 |
+| BROADBAND AND TRIPLE-PLAY MULTIMEDIA SERVICES | |
+| Broadband multimedia services over VDSL | H.610–H.619 |
+
+*For further details, please refer to the list of ITU-T Recommendations.*
+
+## **ITU-T Recommendation H.235.4**
+
+## **H.323 security: Direct and selective routed call security**
+
+### **Summary**
+
+The purpose of this Recommendation is to provide recommendations of security procedures for using direct-routed call signalling in conjunction with H.235.1 and H.235.3 security profiles. This security profile is offered as an option and may complement the security profiles in ITU-T Recs H.235.1 and H.235.3. It also provides implementation details for clause 8.4/H.235.0 using symmetric key management techniques.
+
+In earlier versions of the H.235 subseries, this profile was contained in Annex I/H.235. Appendices IV, V, VI to H.235.0 show the complete clause, figure, and table mapping between H.235 versions 3 and 4.
+
+### **Source**
+
+ITU-T Recommendation H.235.4 was approved on 13 September 2005 by ITU-T Study Group 16 (2005-2008) under the ITU-T Recommendation A.8 procedure.
+
+### **Keywords**
+
+Authentication, direct-routed call security, encryption, integrity, key management, multimedia security, security profile, selective routed call security.
+
+### FOREWORD
+
+The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications. The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU-T study groups which, in turn, produce Recommendations on these topics.
+
+The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
+
+In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
+
+### NOTE
+
+In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure e.g. interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
+
+### INTELLECTUAL PROPERTY RIGHTS
+
+ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
+
+As of the date of approval of this Recommendation, ITU had not received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementors are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database.
+
+© ITU 2006
+
+All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
+
+### CONTENTS
+
+###### Page
+
+| | | |
+|------|-----------------------------------------------|----|
+| 1 | Scope ..... | 1 |
+| 2 | References..... | 1 |
+| 2.1 | Normative references..... | 1 |
+| 2.2 | Informative references..... | 1 |
+| 3 | Terms and definitions ..... | 2 |
+| 4 | Symbols and abbreviations ..... | 2 |
+| 5 | Conventions ..... | 2 |
+| 6 | Introduction ..... | 2 |
+| 7 | Overview ..... | 3 |
+| 8 | Limitations..... | 4 |
+| 9 | Procedure DRC1 (corporate environment)..... | 4 |
+| 9.1 | GRQ/RRQ phase ..... | 4 |
+| 9.2 | ARQ phase..... | 4 |
+| 9.3 | LRQ phase ..... | 4 |
+| 9.4 | LCF phase..... | 5 |
+| 9.5 | ACF phase ..... | 6 |
+| 9.6 | SETUP phase..... | 7 |
+| 10 | Procedure DRC2 (interdomain environment)..... | 9 |
+| 10.1 | GRQ/RRQ phase ..... | 9 |
+| 10.2 | ARQ phase..... | 9 |
+| 10.3 | LRQ phase ..... | 9 |
+| 10.4 | LCF phase..... | 9 |
+| 10.5 | ACF phase ..... | 10 |
+| 10.6 | SETUP phase..... | 12 |
+| 11 | Procedure DRC3 (interdomain environment)..... | 14 |
+| 11.1 | GRQ/RRQ phase ..... | 14 |
+| 11.2 | ARQ phase..... | 14 |
+| 11.3 | LRQ phase ..... | 14 |
+| 11.4 | LCF phase..... | 14 |
+| 11.5 | ACF phase ..... | 15 |
+| 11.6 | SETUP phase..... | 16 |
+| 12 | PRF-based key derivation procedure..... | 18 |
+| 13 | FIPS-140-based key derivation procedure..... | 18 |
+| 14 | List of object identifiers..... | 19 |
+
+
+
+## H.323 security: Direct and selective routed call security
+
+# 1 Scope
+
+The purpose of this Recommendation is to provide recommendations of security procedures for using direct-routed and selective routed call signalling in conjunction with H.235.1 and H.235.3 security profiles.
+
+This security profile is offered as an option and may complement the H.235.1 or H.235.3 security profiles. It also provides implementation details for clause 8.4/H.235.0 using symmetric key management techniques.
+
+# 2 References
+
+## 2.1 Normative references
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
+
+- ITU-T Recommendation H.225.0 (2003), *Call signalling protocols and media stream packetization for packet-based multimedia communication systems*.
+- ITU-T Recommendation H.235 (2003), *Security and encryption for H-series (H.323 and other H.245-based) multimedia terminals*, Corrigendum 1 (2005), plus Erratum 1 (2005).
+- ITU-T Recommendation H.235.0 (2005), *H.323 security: Framework for security in H-series (H.323 and other H.245-based) multimedia systems*.
+- ITU-T Recommendation H.235.1 (2005), *H.323 security: Baseline security profile*.
+- ITU-T Recommendation H.235.3 (2005), *H.323 security: Hybrid security profile*.
+- ITU-T Recommendation H.235.6 (2005), *H.323 security: Voice encryption profile with native H.235/H.245 key management*.
+- ITU-T Recommendation H.323 (2003), *Packet-based multimedia communications systems*.
+- ITU-T Recommendation X.800 (1991), *Security architecture for Open Systems Interconnection for CCITT applications*.
+- ISO/IEC 7498-2:1989, *Information processing systems – Open Systems Interconnection – Basic Reference model – Part 2: Security Architecture*.
+- ISO/IEC 10118-3:2004, *Information technology – Security techniques – Hash functions – Part 3: Dedicated hash-functions*.
+
+## 2.2 Informative references
+
+- ITU-T Recommendation H.235.2 (2005), *H.323 security: Signature security profile*.
+- IETF RFC 4120 (2005), *The Kerberos Network Authentication Service (V5)*.
+
+# 3 Terms and definitions
+
+For the purposes of this Recommendation the definitions given in clause 3 of ITU-T Recs H.323, H.225.0, H.235.0 and X.800 | ISO 7498-2 apply.
+
+# 4 Symbols and abbreviations
+
+This Recommendation uses the following abbreviations:
+
+| | |
+|-------------------------------------|--------------------------------------------------------------------------------------------------------------------|
+| CT | ClearToken |
+| DH | Diffie-Hellman |
+| DRC | Direct-Routed Call |
+| EK AG | The encryption key shared between EP A and GK G |
+| EK BH | The encryption key shared between EP B and GK H |
+| EK GH | The encryption key shared between GK G and GK H |
+| ENC K; S, IV (M) | EOFB Encryption of M using secret key K and secret salting key S and initial vector IV |
+| EPID | Endpoint Identifier |
+| GK | Gatekeeper |
+| GKID | Gatekeeper Identifier |
+| gx, gy | Diffie-Hellman half-key of GK G, GK H |
+| K AB | The encryption key shared between EP A and EP B |
+| K AG | Shared secret (H.235.1, H.235.3) between EP A and GK G |
+| K BH | Shared secret (H.235.1, H.235.3) between EP B and GK H |
+| K GH | Secret, secret (H.235.1, H.235.3) between GK G and GK H |
+| KS AG | Secret, shared salting key between EP A and GK G |
+| KS BH | Secret, shared salting key between EP B and GK H |
+| KS GH | Secret, shared salting key between GK G and GK H |
+| PRF | Pseudo-Random Function |
+
+# 5 Conventions
+
+In this Recommendation the following conventions are used:
+
+- "shall" indicates a mandatory requirement.
+- "should" indicates a suggested but optional course of action.
+- "may" indicates an optional course of action rather than a recommendation that something take place.
+
+The object identifiers are referenced through a symbolic reference in the text (e.g., "I11"), clause 14 lists the actual numeric values for the symbolic object identifiers, see also clause 5/H.235.0.
+
+# 6 Introduction
+
+H.323 is often deployed using the gatekeeper-routed model (for example, to take advantage of better billing functionalities). The widespread use of gatekeeper-routed call models is also the
+
+reason why different security profiles, focused exactly on this call model, are defined within ITU-T Rec. H.235.0 (such as H.235.1, H.235.2, H.235.3).
+
+However, with the need to support an increasing number of parallel channels, the direct-routed call model with a gatekeeper could yield better performance and scalability properties. The advantage of this mode is the utilization of a gatekeeper for registration, admission, address resolution, and bandwidth control, while performing the call establishment directly between the end points in an end-to-end fashion.
+
+This Recommendation describes the enhancements for the H.235.1 baseline and for H.235.3 hybrid security profiles to support direct-routed calls with gatekeeper(s).
+
+# 7 Overview
+
+The H.235.1 baseline, as well as the H.235.3 hybrid security profiles, apply a shared secret (after the first handshake) to assure message authentication and/or integrity in a hop-by-hop fashion using the gatekeeper as a trusted intermediate host. Using the direct-routed call model, a shared secret between two endpoints cannot be assumed. It is also not practical to use a pre-established shared secret to secure the communication since, in this case, all endpoints would have to know in advance which other endpoint will be called.
+
+ITU-T Rec. H.235.4 addresses the scenario shown in Figure 1, where endpoints are attached to a gatekeeper and deploy direct-routed call signalling. The scenario assumes an unsecured IP network in the gatekeeper zone.
+
+It is assumed that each endpoint has a communication relation and a security association with its gatekeeper, and that each endpoint has registered securely with the gatekeeper using either the baseline or the hybrid security profile.
+
+Hence, the gatekeeper of the initiating endpoint (DRC1) or the gatekeeper of the terminating endpoint (DRC2) is able to provide a shared secret for the directly communicating endpoints using a Kerberos-like approach (see RFC 4120).
+
+
+
+```
+graph TD
+ G[Gatekeeper G] <-->|H.225.0 RAS| H[Gatekeeper H]
+ A[Endpoint A] <-->|H.225.0 RAS| G
+ B[Endpoint B] <-->|H.225.0 RAS| H
+ A <-->|H.225.0/Q.931 Call Signalling| B
+ A -.->|RTP media| B
+ style G fill:#fff,stroke:#000
+ style H fill:#fff,stroke:#000
+ style A fill:#fff,stroke:#000
+ style B fill:#fff,stroke:#000
+```
+
+Diagram of a direct-routed call scenario (Figure 1/H.235.4). It shows two endpoints, A and B, connected to two gatekeepers, G and H. Endpoint A is connected to Gatekeeper G via an H.225.0 RAS message. Endpoint B is connected to Gatekeeper H via an H.225.0 RAS message. Gatekeeper G and Gatekeeper H are connected to each other via an H.225.0 RAS message. Endpoint A and Endpoint B are connected to each other via an H.225.0/Q.931 Call Signalling message. A dashed line between Endpoint A and Endpoint B represents the RTP media stream. The diagram is labeled H.235.4\_F01 at the bottom right.
+
+**Figure 1/H.235.4 – Direct-routed call scenario**
+
+This Recommendation features two procedures, DRC1 and DRC2, for different environments.
+
+Procedure DRC1 (see clause 9) is applicable in corporate environments where the gatekeepers are situated within different (local) sites but where the sites adhere to a common corporate security policy. In such an environment it is assumed acceptable that the originating gatekeeper G determines the effective security policy for a call to be established; thus the originating
+
+gatekeeper G selects and chooses the applied security parameters. The terminating gatekeeper H will accept the chosen security parameters.
+
+Procedures DRC2 (see clause 10) and DRC3 (clause 11) are applicable in interdomain environments where the gatekeepers are situated within different administrative domains where each domain may employ a different security policy.
+
+Procedure DRC2 is applicable in cases where the calling endpoint or the gatekeepers do not support the Diffie-Hellman algorithm. In such an environment it is assumed acceptable that the terminating gatekeeper H determines the effective security policy for a call to be established; thus the terminating gatekeeper H selects and chooses the applied security parameters. The originating gatekeeper G will accept the chosen security parameters.
+
+Procedure DRC3 is applicable in cases where the calling endpoint does not support the Diffie-Hellman algorithm while the Gatekeepers in the calling and called domain both support the Diffie-Hellman algorithm.
+
+At the beginning of call registration, the procedures provide signalling means to negotiate which of DRC1, DRC2 or DRC3 is to be applied.
+
+# 8 Limitations
+
+This Recommendation does not address direct-routed scenarios without any gatekeeper. This remains for further study.
+
+# 9 Procedure DRC1 (corporate environment)
+
+The procedure described in this clause is applicable in corporate environments where the gatekeepers are situated within different (local) sites but where the sites adhere to a common corporate security policy. In such an environment, it is assumed acceptable that the originating gatekeeper G determines the effective security policy for a call to be established; thus the originating gatekeeper selects and chooses the applied security parameters. The terminating gatekeeper H will accept the chosen security parameters.
+
+## 9.1 GRQ/RRQ phase
+
+Endpoints capable of supporting this security profile shall indicate this fact during **GRQ** and/or **RRQ** by including a separate ClearToken with **tokenOID** set to "I10"; any other fields in that ClearToken should not be used. The H.235.4-capable gatekeeper that is willing to provide this functionality shall reply with **GCF** or **RCF** with a separate ClearToken included with **tokenOID** set to "I10" and all other fields in the ClearToken unused.
+
+## 9.2 ARQ phase
+
+Before an endpoint A starts sending call signalling messages to another endpoint B directly, the endpoint A or B shall apply for admission at the gatekeeper G or H using **ARQ**. Endpoint A shall include within **ARQ** a separate ClearToken with **tokenOID** set to "I10" and all other fields in the ClearToken unused.
+
+## 9.3 LRQ phase
+
+This procedure covers the case of both a single, common gatekeeper to the endpoints and the case of multiple, chained gatekeepers. In the case of multiple involved gatekeepers, gatekeeper G, in which zone the call originates, should locate gatekeeper H using the (multicast) **LRQ** mechanism as described by ITU-T Rec. H.323 clause 8.1.6, "Optional called endpoint signalling". The communication between two gatekeepers shall be secured according to H.235.1. For this, it is assumed that a common shared secret $K_{GH}$ is available. Since **LRQ** among gatekeepers is typically
+
+a multicast message, the shared secret $K_{GH}$ typically cannot be a pair-wise shared secret but is assumed to be actually a group-based shared secret within the potential cloud of gatekeepers.
+
+NOTE – This assumption limits scalability in the general case, and does not allow source authentication. However, it is believed that in corporate networks, with a limited, small number of well-known gatekeepers, such constraint and security limitations are still acceptable. Securing inter-gatekeeper multicast communication using digital signatures could overcome those limitations: however, this remains for further study.
+
+If the **LRQ** mechanism is used to locate the far-end gatekeeper, then **LRQ** shall convey a separate ClearToken with **tokenOID** set to "I10"; any other fields in that ClearToken should not be used. For the multicast case, the **generalID** in the ClearToken of **LRQ** shall not be used. Intergatekeeper communication using H.501 and/or H.510 remains for further study.
+
+## 9.4 LCF phase
+
+$EK_{BH}$ denotes the encryption key and $KS_{BH}$ denotes the salting key that are shared between endpoint B and gatekeeper H. As is described below, both Gatekeeper H and endpoint B separately compute this keying material from the shared secret $K_{BH}$ using a PRF.
+
+Gatekeeper H shall generate a random Challenge-B, encryption key material $EK_{BH}$ and salting key material $KS_{BH}$ from the shared secret $K_{BH}$ using the PRF-based key derivation procedure as defined in clause 12 where Challenge-B is substituted as **challenge** and $CT_{HG} \rightarrow \mathbf{h235Key} \rightarrow \mathbf{secureSharedSecret} \rightarrow \mathbf{keyDerivationOID}$ shall hold "AnnexI-HMAC-SHA1-PRF", see clause 14.
+
+$EK_{GH}$ denotes the encryption key and $KS_{GH}$ denotes the salting key that are shared between gatekeeper G and gatekeeper H. Gatekeeper H shall generate one random Challenge-G. Gatekeeper H shall generate encryption key material $EK_{GH}$ and salting key material $KS_{GH}$ from the shared secret $K_{GH}$ using the PRF-based key derivation procedure as defined in clause 14 where Challenge-G is substituted for **challenge**. $CT_{HG} \rightarrow \mathbf{challenge}$ shall hold challenge-G, the endpoint ID of the endpoint B shall be set in $CT_{HG} \rightarrow \mathbf{h235Key} \rightarrow \mathbf{secureSharedSecret} \rightarrow \mathbf{generalID}$ .
+
+Gatekeeper H shall transmit the encrypted $EK_{BH}$ and the encrypted $KS_{BH}$ to gatekeeper G. The enhanced OFB (EOFB) encryption mode (see 8.4/H.235.6) shall be used with the secret, endpoint-specific salting key $KS_{GH}$ . Applicable encryption algorithms are (see Table 6/H.235.6):
+
+- DES (56 bit) in EOFB mode using OID "Y1": optional;
+- 3DES (168 bit) in outer-EOFB mode using OID "Z1": optional;
+- AES (128 bit) in EOFB mode using OID "Z2": default and recommended;
+- RC2-compatible (56 bit) in EOFB mode using OID "X1": optional.
+
+For the EOFB encryption mode, gatekeeper H shall generate a random initial value IV. For OID "X1", OID "Y1" and OID "Z1" the IV has 64 bits and shall be conveyed within $CT_{HG} \rightarrow \mathbf{h235Key} \rightarrow \mathbf{secureSharedSecret} \rightarrow \mathbf{params} \rightarrow \mathbf{iv8}$ ; whereas the IV has 128 bits for OID "Z2" and shall be conveyed within $CT_{HG} \rightarrow \mathbf{h235Key} \rightarrow \mathbf{secureSharedSecret} \rightarrow \mathbf{params} \rightarrow \mathbf{iv16}$ .
+
+Gatekeeper H shall include $ENC_{EK_{GH}, KS_{GH}, IV}(EK_{BH})$ and $ENC_{EK_{GH}, KS_{GH}, IV}(KS_{BH})$ in ClearToken $CT_{HG}$ with **tokenOID** set to "I13". The obtained ciphertext $ENC_{EK_{GH}, KS_{GH}, IV}(EK_{BH})$ shall be conveyed in $CT_{HG} \rightarrow \mathbf{h235Key} \rightarrow \mathbf{secureSharedSecret} \rightarrow \mathbf{encryptedSessionKey}$ ; the obtained ciphertext $ENC_{EK_{GH}, KS_{GH}, IV}(KS_{BH})$ shall be conveyed in $CT_{HG} \rightarrow \mathbf{h235Key} \rightarrow \mathbf{secureSharedSecret} \rightarrow \mathbf{encryptedSaltingKey}$ . The encryption algorithm shall be indicated in $CT_{HG} \rightarrow \mathbf{h235Key} \rightarrow \mathbf{algorithmOID}$ ("X1", "Y1", "Z1" or "Z2"). Challenge-B shall be placed within $CT_{HG} \rightarrow \mathbf{h235Key} \rightarrow \mathbf{secureSharedSecret} \rightarrow \mathbf{clearSaltingKey}$ . $CT_{HG} \rightarrow \mathbf{generalID}$ shall be set to the gatekeeper identifier G whereas $CT_{HG} \rightarrow \mathbf{sendersID}$ shall be set to the gatekeeper identifier H.
+
+Challenge-B shall be conveyed to endpoint B by inclusion of a **profileInfo** within the **ClearToken** $CT_{HG} \rightarrow \text{profileInfo} \rightarrow \text{elementID} = 0$ that identifies this particular profile element;
+
+$CT_{HG} \rightarrow \text{profileInfo} \rightarrow \text{paramS}$ left unused and $CT_{HG} \rightarrow \text{profileInfo} \rightarrow \text{element} \rightarrow \text{octets}$ shall hold Challenge-B.
+
+The **LCF** response shall hold the **ClearToken** $CT_{HG}$ .
+
+## 9.5 ACF phase
+
+The gatekeeper G, recognizing that endpoints A and B support this Recommendation, shall generate key material and **ClearTokens** as specified below.
+
+The gatekeeper is able to calculate a call-based shared secret $K_{AB}$ , besides the normal **ARQ** operation. This call-based shared secret is then propagated to both endpoints using **ClearTokens**. Those **ClearTokens** are conveyed within the **ACF** message and are sent back to the caller.
+
+Two **ClearTokens** shall be included, one $CT_A$ for the caller A and another one $CT_B$ for the callee B. Each **ClearToken** shall contain an OID ("I11" or "I12") within **tokenOID** that indicates whether the token is destined for the caller (OID "I11" for $CT_A$ ) or for the callee (OID "I12" for $CT_B$ ).
+
+GK G shall decrypt $CT_{HG} \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{encryptedSessionKey}$ to obtain $EK_{BH}$ and shall decrypt $CT_{HG} \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{encryptedSaltingKey}$ to obtain $KS_{BH}$ .
+
+The **ClearToken** as defined in this Recommendation may be used in conjunction with other security profiles such as with H.235.1 or with H.235.3 that deploy **ClearTokens** as well. In such a case, **ClearToken** from this Recommendation shall use those other **ClearToken** fields too. For example, in order to use this Recommendation in conjunction with ITU-T Rec. H.235.1, the fields **timestamp**, **random**, **generalID**, **sendersID**, and **dhkey** shall be present and shall be used, as described by the H.235.1 security profiles.
+
+The gatekeeper ID (GKID) of gatekeeper G shall be placed within $CT_A \rightarrow \text{sendersID}$ and within $CT_B \rightarrow \text{sendersID}$ whereas $CT_A \rightarrow \text{generalID}$ shall hold the endpoint identifier of endpoint A and $CT_B \rightarrow \text{generalID}$ the endpoint identifier of endpoint B.
+
+Gatekeeper G shall generate salting key material $KS_{GH}$ and encryption key material $EK_{GH}$ from $K_{GH}$ using the PRF-based key derivation procedure as defined in clause 12 with **challenge** substituted by $CT_{HG} \rightarrow \text{challenge}$ .
+
+The encryption keys $EK_{AG}$ and $EK_{BH}$ for the encrypted end-to-end key $K_{AB}$ shall be derived from the shared secret between the gatekeeper and the endpoints ( $EK_{AG}$ or $EK_{BH}$ ) using the PRF-based key derivation procedure as defined in clause 12 where both $CT_A \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{keyDerivationOID}$ and $CT_B \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{keyDerivationOID}$ shall hold "AnnexI-HMAC-SHA1-PRF", see clause 14 and $CT_A \rightarrow \text{challenge}$ shall hold Challenge-A.
+
+Gatekeeper G shall copy Challenge-B from $CT_{HG} \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{clearSaltingKey}$ into $CT_B \rightarrow \text{challenge}$ .
+
+$CT_B \rightarrow \text{profileInfo}$ shall hold the profile element that was conveyed in $CT_{HG}$ **profileInfo** such that in the end endpoint B obtains Challenge-B.
+
+This session secret $K_{AB}$ shall be encrypted by $EK_{AG}$ (for CT destined to endpoint A) or by $EK_{BH}$ (for the CT destined to endpoint B) using an encryption algorithm.
+
+The enhanced OFB (EOFB) encryption mode (see 8.4/H.235.6) shall be used with the secret, endpoint-specific salting key $KS_{AG}$ or $KS_{BH}$ . Applicable encryption algorithms are (see Table 6/H.235.6):
+
+- DES (56 bit) in EOFB mode using OID "Y1": optional;
+
+- 3DES (168 bit) in outer-EOFB mode using OID "Z1": optional;
+- AES (128 bit) in EOFB mode using OID "Z2": default and recommended;
+- RC2-compatible (56 bit) in EOFB mode using OID "X1": optional.
+
+For the EOFB encryption mode, the gatekeeper G shall generate a random initial value IV. For OID "X1", OID "Y1" and OID "Z1" the IV has 64 bits and shall be conveyed within $CT_A \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{params} \rightarrow \text{iv8}$ and within $CT_B \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{params} \rightarrow \text{iv8}$ ; whereas the IV has 128 bits for OID "Z2" and shall be conveyed within $CT_A \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{params} \rightarrow \text{iv16}$ and within $CT_B \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{params} \rightarrow \text{iv16}$ .
+
+The obtained ciphertext $\text{ENC}_{\text{EK}_{\text{AG}}, \text{KS}_{\text{AG}}, \text{IV}(\text{K}_{\text{AB}})}$ shall be conveyed in $CT_A \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{encryptedSessionKey}$ and $\text{ENC}_{\text{EK}_{\text{BH}}, \text{KS}_{\text{BH}}, \text{IV}(\text{K}_{\text{AB}})}$ shall then be conveyed in $CT_B \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{encryptedSessionKey}$ . The encryption algorithm shall be indicated in $CT_A \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{algorithmOID}$ and in $CT_B \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{algorithmOID}$ ("X1", "Y1", "Z1" or "Z2").
+
+For the ClearToken destined to endpoint A, the endpoint identifier of endpoint B ( $\text{EPID}_B$ ) shall be placed within $CT_A \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{generalID}$ . Likewise for the ClearToken destined to endpoint B, the endpoint identifier of endpoint A ( $\text{EPID}_A$ ) shall be placed within $CT_B \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{generalID}$ .
+
+For the EOFB encryption algorithms, **encryptedSaltingKey** shall not be used.
+
+The gatekeeper G shall include both ClearTokens $CT_A$ and $CT_B$ in the **ACF** towards endpoint A.
+
+## 9.6 SETUP phase
+
+Endpoint A shall identify $CT_A$ by inspection of the **tokenOID** "I11" within ClearToken.
+
+Endpoint A shall verify that the obtained $CT_A$ is fresh by checking the **timestamp**. Further security checks shall verify the **generalID** and **sendersID** of the ClearToken and **generalID** within **V3KeySyncMaterial**. If the received $CT_A$ was verified as being fresh, endpoint A shall retrieve the IV and compute $\text{EK}_{\text{AG}}$ and $\text{KS}_{\text{AG}}$ as described above for the gatekeeper G. Endpoint A shall decrypt the **encryptedSessionKey** information found within **secureSharedSecret** of $CT_A$ to obtain $\text{K}_{\text{AB}}$ .
+
+If the received $CT_A$ was verified as being fresh, endpoint A is able to send a SETUP message to endpoint B. This SETUP message includes $CT_B$ . The SETUP message shall be secured (authenticated and/or integrity protected) according to ITU-T Rec. H.235.1 or according to ITU-T Rec. H.235.3 using $\text{K}_{\text{AB}}$ as the applied shared secret. For this, **generalID** in the H.235.1 hashed ClearToken (not $CT_B$ !) shall not be used unless endpoint A has already an $\text{EPID}_B$ available (e.g., through configuration or memorized from former communication). If endpoint A uses an $\text{EPID}_B$ value for **generalID** in SETUP, then endpoint A shall accept the value of the **sendersID** in the returned call signalling message as the true $\text{EPID}_B$ .
+
+Endpoint B shall identify $CT_B$ by inspection of the **tokenOID** "I12" within ClearToken.
+
+Endpoint B shall verify that the obtained $CT_B$ is fresh by checking the **timestamp**. Further security checks shall verify the **sendersID** of the ClearToken and **generalID** within **secureSharedSecret**. If the received $CT_B$ was verified as being fresh, endpoint B shall retrieve Challenge-B from $CT_{\text{HG}} \rightarrow \text{profileInfo} \rightarrow \text{element} \rightarrow \text{octets}$ , and retrieve the IV and compute $\text{EK}_{\text{BH}}$ and $\text{KS}_{\text{BH}}$ , Challenge-B substituted as **challenge** in clause 12 as described above for the gatekeeper. Endpoint B shall decrypt the **encryptedSessionKey** information found within **secureSharedSecret** of $CT_B$ to obtain $\text{K}_{\text{AB}}$ .
+
+In the case where the $CT_B$ is verified as being fresh, endpoint B is able to proceed with the call signalling by replying with CALL-PROCEEDING, ALERTING or CONNECT etc., as appropriate. In the case where the $CT_B$ is found not to be fresh, or the security verification of the SETUP
+
+message failed, endpoint B shall reply with RELEASE-COMPLETE and the **ReleaseCompleteReason** set to a security error as defined by 11.1/H.235.0.
+
+When media security is to be deployed (see 6.1/H.235.6), endpoint A and endpoint B shall exchange Diffie-Hellman half-keys according to 8.5/H.235.6 and establish a dynamic session-based master key from which media-specific session keys can then be derived.
+
+Endpoint B shall include **generalID** set to $EPID_A$ and **sendersID** set to $EPID_B$ for protection of any H.225.0 Call signalling message destined to EP A (e.g., Call Proceeding, Alerting or Connect).
+
+Figure 2 shows the basic communication flow:
+
+
+
+H.235.1 Baseline or H.235.3 F Hybrid Security Profile deployed, by applying a shared secret $K_{AG}$ to the communication between endpoint A and the gatekeeper G.
+
+H.235.1 Baseline or H.235.3 Hybrid Security Profile deployed, by applying a shared secret $K_{GH}$ to the communication between gatekeeper G and the gatekeeper H.
+
+H.235.1 Baseline or H.235.3 Hybrid Security Profile deployed, by applying a shared secret $K_{BH}$ to the communication between endpoint B and the gatekeeper H.
+
+```
+
+sequenceDiagram
+ participant A as Endpoint A
+ participant G as Gatekeeper G
+ participant H as Gatekeeper H
+ participant B as Endpoint B
+
+ A->>G: RRQ, incl. ClearToken("I10")
+ G-->>A: RCF, incl. endpointIdentifier EPID_A, incl. ClearToken("I10")
+ A->>G: ARQ, incl. ClearToken("I10")
+ G->>H: LRQ, incl. ClearToken("I10")
+ Note over H: Generate salting key material KS_BH and encryption key material EK_BH from the shared secret K_BH using PRF.
+Generate salting key material KS_GH and encryption key material EK_GH from the shared secret K_GH using PRF.
+Include ENC_EKGH, KSGH, IV(EK_BH) and ENC_EKGH, KSGH, IV(KS_BH) in ClearToken CT_HG
+ H-->>G: LCF, incl. CT_HG("I13")
+ Note over G: Generate salting key material KS_AG and encryption key material EK_AG from the shared secret K_AG using PRF.
+Generate salting key material KS_GH and encryption key material EK_GH from the shared secret K_GH using PRF.
+Obtain EK_BH and KS_BH from CT_HG.
+Generate shared secret K_AB and two ClearTokens CT_A and CT_B where CT_A conveys ENC_EKAG, KSAG, IV(K_AB), EPID_A and GKID_G and CT_B conveys ENC_EKBH, KSBH, IV(K_AB), EPID_B and GKID_G.
+ G-->>A: ACF, incl. CT_A("I11") and CT_B("I12")
+ Note over A: Generate salting key material KS_AG and encryption key material EK_AG from the shared secret K_AG using PRF.
+Reception of CT_A to extract the EPID_B as well as decryption to obtain the shared secret K_AB to be applied to direct call signalling
+ A->>B: Setup integrity protected by K_AB containing hashed token, as defined for baseline and hybrid security profiles as well as the CT_B("I12")
+ Note over B: Generate salting key material KS_BH and encryption key material EK_BH from the shared secret K_BH using PRF.
+Reception of CT_B to extract the EPID_A as well as decryption to obtain the shared secret K_AB to be applied to direct call signalling, security check of the received setup message.
+ B-->>A: Call Proceeding, Alerting, or Connect integrity protected by K_AB containing hashed token, as defined for baseline and hybrid security profiles with the generalID set to EPID_A and sendersID set to EPID_B
+
+```
+
+Sequence diagram showing the basic communication flow (DRC1) between Endpoint A, Gatekeeper G, Gatekeeper H, and Endpoint B. The diagram illustrates the exchange of RRQ, RCF, ARQ, LRQ, LCF, and ACF messages, along with the generation of cryptographic keys and tokens for security protection.
+
+H.235.4\_F02
+
+Figure 2/H.235.4 – Basic communication flow (DRC1)
+
+# 10 Procedure DRC2 (interdomain environment)
+
+The procedure described in this clause is applicable in interdomain environments where the gatekeepers are situated within different administrative domains and where each domain may employ a different security policy. Procedure DRC2 is applicable in cases where the calling endpoint or the gatekeepers do not support the Diffie-Hellman algorithm.
+
+In such an environment, it is assumed acceptable that the terminating gatekeeper H determines the effective security policy for a call to be established; thus the terminating gatekeeper H selects and chooses the applied security parameters. The originating gatekeeper G will accept the chosen security parameters.
+
+## 10.1 GRQ/RRQ phase
+
+Endpoints capable of supporting this security profile shall indicate this fact during **GRQ** and/or **RRQ** by including a separate ClearToken with **tokenOID** set to "I20"; any other fields in that ClearToken should not be used. The H.235.4-capable gatekeeper that is willing to provide this functionality shall reply with **GCF** or **RCF** with a separate ClearToken included with **tokenOID** set to "I20" and all other fields in the ClearToken unused.
+
+## 10.2 ARQ phase
+
+Before an endpoint A starts sending call signalling messages to another endpoint B directly, the endpoint A or B shall apply for admission at the gatekeeper G or H using **ARQ**. Endpoint A shall include within **ARQ** a separate ClearToken with **tokenOID** set to "I20" and all other fields in the ClearToken unused.
+
+## 10.3 LRQ phase
+
+This procedure covers the case of both a single, common gatekeeper to the endpoints and the case of multiple, chained gatekeepers. In the case of multiple involved gatekeepers, gatekeeper G, in which zone the call originates, should locate gatekeeper H using the (multicast) **LRQ** mechanism as described by ITU-T Rec. H.323 clause 8.1.6, "Optional called endpoint signalling". The communication between two gatekeepers shall be secured according to ITU-T Rec. H.235.1. For this, it is assumed that a common shared secret $K_{GH}$ is available. Since **LRQ** among gatekeepers is typically a multicast message, the shared secret $K_{GH}$ typically cannot be a pair-wise shared secret but is assumed to be actually a group-based shared secret within the potential cloud of gatekeepers.
+
+NOTE – This assumption limits scalability in the general case, and does not allow source authentication. However, it is believed that in corporate networks with a limited, small number of well-known gatekeepers, such constraint and security limitations are still acceptable. Securing inter-gatekeeper multicast communication using digital signatures could overcome those limitations: however, this remains for further study.
+
+If the **LRQ** mechanism is used to locate the far-end gatekeeper, then **LRQ** shall convey a separate ClearToken with **tokenOID** set to "I20"; any other fields in that ClearToken should not be used. For the multicast case, the **generalID** in the ClearToken of **LRQ** shall not be used. Inter-gatekeeper communication using H.501 and/or H.510 remains for further study.
+
+## 10.4 LCF phase
+
+The gatekeeper H, recognizing that endpoints A and B support this Recommendation, shall generate key material and ClearTokens in **LCF** as specified below.
+
+$K_{BH}$ denotes the shared secret that is shared between endpoint B and gatekeeper H. $EK_{BH}$ denotes the encryption key and $KS_{BH}$ denotes the salting key that are shared between endpoint B and gatekeeper H. Gatekeeper H generates one random Challenge-B. Gatekeeper H shall generate encryption key material $EK_{BH}$ from the shared secret $K_{BH}$ using the PRF-based key derivation
+
+procedure with Challenge-B substituted as **challenge** as defined in clause 12 where $CT_B \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow keyDerivationOID$ shall hold "AnnexI-HMAC-SHA1-PRF", see clause 14.
+
+Gatekeeper H shall generate a salting key $KS_{BH}$ from $K_{BH}$ using the PRF-based key derivation procedure as defined in clause 12 with Challenge-B substituted as **challenge**.
+
+$EK_{GH}$ denotes the encryption key and $KS_{GH}$ denotes the salting key that are shared between gatekeeper G and gatekeeper H. Gatekeeper H generates one random Challenge-G. Gatekeeper H shall generate encryption key material $EK_{GH}$ from the shared secret $K_{GH}$ using the PRF-based key derivation procedure with Challenge-G substituted as **challenge** as defined in clause 12 where $CT_{HG} \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow keyDerivationOID$ shall hold "AnnexI-HMAC-SHA1-PRF", see clause 14.
+
+Gatekeeper H shall generate $KS_{GH}$ from the shared secret $K_{GH}$ using the PRF-based key derivation procedure with Challenge-G substituted as **challenge** as defined in clause 12.
+
+Gatekeeper H creates two ClearTokens in the **LCF** message. One $CT_{HG}$ for the Gatekeeper G and a $CT_B$ for the callee B. $CT_{HG} \rightarrow tokenOID$ shall contain an OID "I23" whereas $CT_B \rightarrow tokenOID$ shall contain OID "I12".
+
+Challenge-G shall be set in $CT_{HG} \rightarrow challenge$ , the gatekeeper ID of the Gatekeeper H shall be set in $CT_{HG} \rightarrow sendersID$ , the gatekeeper ID of the Gatekeeper G (copied from the **LRQ**) shall be set in $CT_{HG} \rightarrow generalID$ .
+
+Challenge-B shall be set in $CT_B \rightarrow challenge$ , the gatekeeper ID of the Gatekeeper H shall be set in $CT_B \rightarrow sendersID$ , the endpoint ID of the endpoint B shall be set in $CT_B \rightarrow generalID$ . If the **LRQ** has the endpoint ID of endpoint A in **LRQ**'s endpointIdentifier field, Gatekeeper H shall copy it into $CT_B \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow generalID$ , and shall also copy it into $CT_{HG} \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow generalID$ too.
+
+The **LCF** response shall hold the ClearToken $CT_{HG}$ and $CT_B$ if Gatekeeper H and endpoint B support DRC2 of this Recommendation too.
+
+Gatekeeper G having received the **LCF** message from Gatekeeper H, checks the ClearToken $CT_B$ and $CT_{HG}$ . Gatekeeper G uses Challenge-G as **challenge** and the PRF as in clause 12 to compute $KS_{GH}$ and $EK_{GH}$ from $K_{GH}$ and then to decrypt $CT_{HG} \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow encryptedSessionKey$ and obtains the $K_{AB}$ shared by endpoints A and B.
+
+## 10.5 ACF phase
+
+The gatekeeper H calculates a call-based shared secret $K_{AB}$ that is shared by endpoints A and B. This call-based shared secret is then propagated to both endpoints using ClearTokens. The ClearToken is first sent back to the originating gatekeeper G and then Gatekeeper G conveys the information within the **ACF** message back to the caller.
+
+Gatekeeper H shall encrypt the $K_{AB}$ by $EK_{GH}$ as $ENC_{EK_{GH}, KS_{GH}, IV(K_{AB})}$ and put the encrypted $K_{AB}$ into $CT_{HG} \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow encryptedSessionKey$ .
+
+The enhanced OFB (EOFB) encryption mode (see 8.4/H.235.6) shall be used with the secret, endpoint-specific salting key $KS_{GH}$ . Applicable encryption algorithms are (see Table 6/H.235.6):
+
+- DES (56 bit) in EOFB mode using OID "Y1": optional;
+- 3DES (168 bit) in outer-EOFB mode using OID "Z1": optional;
+- AES (128 bit) in EOFB mode using OID "Z2": default and recommended;
+- RC2-compatible (56 bit) in EOFB mode using OID "X1": optional.
+
+For the EOFB encryption mode, Gatekeeper H shall generate a random initial value IV. For OID "X1", OID "Y1" and OID "Z1" the IV has 64 bits and shall be conveyed within $CT_{HG} \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow params \rightarrow iv8$ ; whereas the IV has 128 bits for OID "Z2" and shall be conveyed within $CT_{HG} \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow params \rightarrow iv16$ .
+
+The encryption algorithm shall be indicated in $CT_{HG} \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow algorithmOID$ ("X1", "Y1", "Z1" or "Z2"). For the EOFB encryption algorithms, **encryptedSaltingKey** shall not be used.
+
+Likewise, Gatekeeper H shall encrypt the $K_{AB}$ by $EK_{BH}$ as $ENC_{EK_{BH}, KS_{BH}, IV(K_{AB})}$ and put that encrypted $K_{AB}$ into $CT_B \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow encryptedSessionKey$ .
+
+The enhanced OFB (EOFB) encryption mode (see 8.4/H.235.6) shall be used with the secret, endpoint-specific salting key $KS_{BH}$ for endpoint B ( $CT_B$ ). Applicable encryption algorithms are (see Table 6/H.235.6):
+
+- DES (56 bit) in EOFB mode using OID "Y1": optional;
+- 3DES (168 bit) in outer-EOFB mode using OID "Z1": optional;
+- AES (128 bit) in EOFB mode using OID "Z2": default and recommended;
+- RC2-compatible (56 bit) in EOFB mode using OID "X1": optional.
+
+For the EOFB encryption mode, Gatekeeper H shall generate a random initial value IV. For OID "X1", OID "Y1" and OID "Z1" the IV has 64 bits and shall be conveyed within $CT_B \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow params \rightarrow iv8$ ; whereas the IV has 128 bits for OID "Z2" and shall be conveyed within $CT_B \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow params \rightarrow iv16$ .
+
+The encryption algorithm shall be indicated in $CT_B \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow algorithmOID$ ("X1", "Y1", "Z1" or "Z2"). For the EOFB encryption algorithms, **encryptedSaltingKey** shall not be used.
+
+For the **ACF** response to endpoint A, two ClearTokens shall be included, one $CT_A$ for the caller A and another one $CT_B$ for the callee B. **ClearToken** $CT_A \rightarrow tokenOID$ shall contain an OID "I11".
+
+Gatekeeper G generates one Challenge-A, and generates encryption key material $EK_{AG}$ from the shared secret $K_{AG}$ using the PRF-based key derivation procedure with Challenge-A substituted as **challenge** using the PRF-based key derivation procedure as defined in clause 12 where $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow keyDerivationOID$ shall hold "AnnexI-HMAC-SHA1-PRF", see clause 14 and sets $CT_A \rightarrow challenge$ to Challenge-A.
+
+Gatekeeper G shall encrypt $K_{AB}$ by $EK_{AG}$ as $ENC_{EK_{AG}, KS_{AG}, IV(K_{AB})}$ using an encryption algorithm and put the encrypted $K_{AB}$ into $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow encryptedSessionKey$ .
+
+The enhanced OFB (EOFB) encryption mode (see 8.4/H.235.6) shall be used with the secret, endpoint-specific salting key $KS_{AG}$ . Applicable encryption algorithms are (see Table 6/H.235.6):
+
+- DES (56 bit) in EOFB mode using OID "Y1": optional;
+- 3DES (168 bit) in outer-EOFB mode using OID "Z1": optional;
+- AES (128 bit) in EOFB mode using OID "Z2": default and recommended;
+- RC2-compatible (56 bit) in EOFB mode using OID "X1": optional.
+
+For the EOFB encryption mode, the GK G shall generate a random initial value IV. For OID "X1", OID "Y1" and OID "Z1" the IV has 64 bits and shall be conveyed within $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow params \rightarrow iv8$ ; whereas the IV has 128 bits for OID "Z2" and shall be conveyed within $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow params \rightarrow iv16$ . The encryption algorithm shall be indicated in $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow algorithmOID$ ("X1", "Y1", "Z1" or "Z2").
+
+The gatekeeper ID of the Gatekeeper G shall be set in CTA→**sendersID**, the endpoint ID of the endpoint A shall be set in CTA→**generalID**. The endpoint ID of endpoint B shall be copied from CTB→**generalID** into CTA→**h235Key**→**secureSharedSecret**→**generalID**.
+
+If Gatekeeper G has not filled the endpoint ID of endpoint A in **LRQ's** endpointIdentifier field before, Gatekeeper G shall fill the endpoint ID of endpoint A into CTB→**h235Key**→**secureSharedSecret**→**generalID**.
+
+For the EOFB encryption algorithms, **encryptedSaltingKey** shall not be used.
+
+The **ClearToken**, as defined in this Recommendation, may be used in conjunction with other security profiles such as H.235.1 or H.235.3 that deploy ClearTokens as well. In such a case, the ClearToken of this Recommendation shall use those other **ClearToken** fields too. For example, in order to use this Recommendation in conjunction with ITU-T Rec. H.235.1, the fields **timestamp**, **random**, **generalID**, **sendersID**, and **dhkey** shall be presented and shall be used, as described by the H.235.1 security profiles.
+
+The gatekeeper ID (GKID) of gatekeeper G shall be placed within CTA→**sendersID** whereas CTA→**generalID** shall hold the endpoint identifier of endpoint A.
+
+Endpoint A shall identify CTA by inspection of the CTA→**tokenOID** "I21". Endpoint A shall verify that the obtained CTA is fresh by checking the **timestamp**. Further security checks shall verify the **generalID** and **sendersID** of the ClearToken and **generalID** within **secureSharedSecret**. If the received CTA was verified as being fresh, endpoint A shall retrieve the IV and compute EKAG and KSAG as described above for the gatekeeper G using CTA→**challenge** as Challenge-A substituted as **challenge** within clause 12. Endpoint A shall decrypt CTA→**h235Key**→**secureSharedSecret**→**encryptedSessionKey** to obtain KAB.
+
+## 10.6 SETUP phase
+
+Endpoint A shall identify CTA by inspection of the CTA→**tokenOID** "I11". Endpoint A shall verify that the obtained CTA is fresh by checking the **timestamp**. Further security checks shall verify the **generalID** and **sendersID** of the ClearToken and **generalID** within **secureSharedSecret**. If the received CTA was verified as being fresh, endpoint A shall retrieve the IV and compute EKAG and KSAG as described above for the gatekeeper G using CTA→**challenge** as Challenge-A. Endpoint A shall decrypt CTA→**h235Key**→**secureSharedSecret**→**encryptedSessionKey** to obtain KAG.
+
+If the received CTA is verified as being fresh, endpoint A is able to send a SETUP message to endpoint B. This SETUP message includes CTB. The SETUP message shall be secured (authenticated and/or integrity protected) according to ITU-T Rec. H.235.1 or ITU-T Rec. H.235.3 using KAB as the applied shared secret. For this, **generalID** in the H.235.1 hashed ClearToken (not CTB!) shall not be used unless endpoint A already has an EPIDB available (e.g., through configuration or memorized from former communication). If endpoint A uses an EPIDB value for **generalID** in SETUP, then endpoint A shall accept the value of the **sendersID** in the returned call signalling message as the true EPIDB.
+
+Endpoint B shall identify CTB by inspection of the **tokenOID** "I12" within ClearToken.
+
+Endpoint B shall verify that the obtained CTB is fresh by checking the **timestamp**. Further security checks shall verify the **sendersID** of the ClearToken and **generalID** within **secureSharedSecret**. If the received CTB was verified as being fresh, endpoint B shall retrieve the IV, compute EKBH and KSBH, using CTB→**challenge** as Challenge-B substituted as **challenge** in clause 12 as described above for the gatekeeper H. Endpoint B shall decrypt CTB→**h235Key**→**secureSharedSecret**→**encryptedSessionKey** to obtain KAB.
+
+In the case where the CTB is verified as being fresh, endpoint B is able to proceed the call signalling by replying with CALL-PROCEEDING, ALERTING or CONNECT etc., as appropriate. In the case where the CTB is found not to be fresh, or the security verification of the SETUP message fails,
+
+endpoint B shall reply with RELEASE-COMPLETE and the **ReleaseCompleteReason** set to a security error as defined by 11.1/H.235.0.
+
+When media security is to be deployed (see 6.1/H.235.6), endpoint A and endpoint B shall exchange Diffie-Hellman half-keys according to 8.5/H.235.6 and establish a dynamic session-based master key from which media-specific session keys can then be derived.
+
+Endpoint B shall include **generalID** set to EPIDA and **sendersID** set to EPIDB for protection of any H.225.0 Call signalling message destined to EP A (e.g., Call Proceeding, Alerting or Connect).
+
+Figure 3 shows the basic communication flow:
+
+
+
+The diagram illustrates the basic communication flow (DRC2) between Endpoint A, Gatekeeper G, Gatekeeper H, and Endpoint B. The sequence of messages and internal operations is as follows:
+
+- Endpoint A** sends an **RRQ** (incl. ClearToken("I20")) to **Gatekeeper G**.
+- Gatekeeper G** responds with an **RCF** (incl. endpointIdentifier *EPIDA*, incl. ClearToken("I20")) to **Endpoint A**.
+- Endpoint A** sends an **ARQ** (incl. ClearToken("I20")) to **Gatekeeper G**.
+- Gatekeeper G** sends an **LRQ** (incl. ClearToken("I20")) to **Gatekeeper H**.
+- Gatekeeper H** sends an **RRQ** (incl. ClearToken("I20")) to **Endpoint B**.
+- Endpoint B** responds with an **RCF** (incl. endpointIdentifier *EPIDB*, incl. ClearToken("I20")) to **Gatekeeper H**.
+- Gatekeeper H** sends an **LCF** (incl. CTB("I12"), CTHG("I23")) to **Gatekeeper G**.
+- Gatekeeper G** sends an **ACF** (incl. CTA("I11") and CTB("I12")) to **Endpoint A**.
+- Endpoint A** performs internal key derivation and message creation (detailed in a box).
+- Endpoint A** sends a **Setup** message (integrity protected by *KAB*) to **Endpoint B**.
+- Endpoint B** performs internal key derivation and security check (detailed in a box).
+- Endpoint B** sends a **Call Proceeding, Alerting, or Connect** message (integrity protected by *KAB*) to **Endpoint A**.
+
+Security profile notes at the top of the diagram:
+
+- Endpoint A / Gatekeeper G:** H.235.1 Baseline or H.235.3 Hybrid Security Profile deployed, by applying a shared secret *KAG* to the communication between endpoint A and the gatekeeper G.
+- Gatekeeper G / Gatekeeper H:** H.235.1 Baseline or H.235.3 Hybrid Security Profile deployed, by applying a shared secret *KGH* to the communication between gatekeeper G and the gatekeeper H.
+- Gatekeeper H / Endpoint B:** H.235.1 Baseline or H.235.3 Hybrid Security Profile deployed, by applying a shared secret *KBH* to the communication between endpoint B and the gatekeeper H.
+
+Internal operations for **Endpoint A** (receiving ACF):
+
+- Generate salting key material *KSGH* and encryption key material *EKGH* from the shared secret *KGH* using PRF.
+- Generate salting key material *KSAG* and encryption key material *EKAG* from the shared secret *KAG* using PRF.
+- Obtain *KAB* from CTHG.
+- Generate ClearToken CTA where CTA conveys ENCEKAG, KSAG, II(KAB), GKIDG and EPIDA.
+- Copy CTB from the LCF into ACF.
+
+Internal operations for **Endpoint A** (preparing Setup):
+
+- Generate salting key material *KSAG* and encryption key material *EKAG* from the shared secret *KAG* using PRF.
+- Reception of CTA to extract the EPIDB as well as decryption to obtain the shared secret *KAB* to be applied to direct call signalling.
+- Create Setup message with CTB in it.
+
+Internal operations for **Gatekeeper H** (receiving RCF):
+
+- Generate salting key material *KSBH* and encryption key material *EKBH* from the shared secret *KBH* using PRF.
+- Generate shared secret *KAB* and CTB where CTB conveys ENCEKBH, KSBH, II(KAB), EPIDB and GKIDH.
+- Generate salting key material *KSGH* and encryption key material *EKGH* from the shared secret *KGH* using PRF.
+- Generate CTHG where CTHG conveys ENCEKGH, KSGH, II(KAB), GKIDH and GKIDG.
+
+Internal operations for **Endpoint B** (receiving Setup):
+
+- Generate salting key material *KSBH* and encryption key material *EKBH* from the shared secret *KBH* using PRF.
+- Reception of CTB to extract the EPIDA as well as decryption to obtain the shared secret *KAB* to be applied to direct call signalling, security check of the received setup message.
+
+Sequence diagram showing the basic communication flow (DRC2) between Endpoint A, Gatekeeper G, Gatekeeper H, and Endpoint B. The diagram illustrates the exchange of messages for registration, key derivation, and call signaling under different security profiles.
+
+H.235.4\_F03
+
+Figure 3/H.235.4 – Basic communication flow (DRC2)
+
+# 11 Procedure DRC3 (interdomain environment)
+
+The procedure described in this clause is applicable in interdomain environments and where the calling endpoint does not support the Diffie-Hellman algorithm while the Gatekeepers in the calling and called domain both are capable of computing DH exchange. In such an environment, the session key is computed by exchanging DH parameters between originating gatekeeper and terminating gatekeeper.
+
+## 11.1 GRQ/RRQ phase
+
+The scenario covers multiple, chained gatekeepers. Endpoints capable of supporting this security profile shall indicate this fact during **GRQ** and/or **RRQ** by including a separate ClearToken with **tokenOID** set to "I30"; any other fields in that ClearToken are unused. The H.235.4-capable gatekeeper that is willing to provide this functionality shall reply with **GCF** or **RCF** with a separate ClearToken included with **tokenOID** set to "I30" and all other fields in the ClearToken unused.
+
+## 11.2 ARQ phase
+
+Before EP A calls EP B using DRC3, EP A sends an **ARQ** message to GK G and the **ARQ** message contains a separate ClearToken with **tokenOID** set to "I30" and other fields unused.
+
+## 11.3 LRQ phase
+
+On the reception of the **ARQ** message sent by EP A, GK G sends **LRQ** to GK H to inquire EP B's address since EP B does not belong to GK G's domain. GK G checks the ClearToken carried by the **ARQ** message finding that **tokenOID** is set to "I30", if GK G supports the DH algorithm, then it applies some pre-configured rules which determine that DRC3 should be chosen.
+
+Then GK G generates a **LRQ** message containing a ClearToken (within the CryptoHashedToken) with its **tokenOID** set to "I30" to indicate to GK H that a DH key negotiation is needed. The **dhkey** field of the ClearToken is filled with the caller's DH parameters ( $g, p, g^x$ ) generated by GK G and other fields are unused.
+
+GK G then sends this **LRQ** message to GK H. In the case of GK cloud, GK G sends the **LRQ** message to its immediately neighbouring GK which in turn forwards the **LRQ** message to its own immediately neighbouring GK. The forwarding process continues until the **LCF** message finally reaches GK H.
+
+For the multicast case, the **generalID** in the CryptoToken of **LRQ** shall not be used. If GK G was not able to locate the far-end endpoint B then GK G shall return **ARJ** to endpoint A. The communication between two gatekeepers shall be secured according to ITU-T Rec. H.235.1.
+
+If GK G does not support the profile, GK G is free to choose whether to fall back to DRC2, or return **ARJ** to endpoint A. If DRC2 is chosen, all subsequent phases including the **LRQ** phase are the same as those of DRC2.
+
+## 11.4 LCF phase
+
+After receiving the **LRQ** message from GK G, the GK H, recognizing that both endpoint A and B support this procedure, shall generate the session key $K_{AB}$ as specified below.
+
+Firstly, GK H produces a random Challenge-B, which shall be set to $CT_B \rightarrow \text{challenge}$ and $CT_B \rightarrow \text{h235Key} \rightarrow \text{secureSharedSecret} \rightarrow \text{keyDerivationOID}$ shall hold "AnnexI-HMAC-SHA1-PRF", and then uses the shared key $K_{GH}$ and the Challenge-B to derive the key material $EK_{GH}$ and the salting key $KS_{GH}$ using PRF-based key derivation procedure.
+
+Challenge-B shall be set in $CT_B \rightarrow \text{challenge}$ , the gatekeeper ID of the GK H shall be set in $CT_B \rightarrow \text{sendersID}$ , the endpoint ID of the EP B shall be set in $CT_B \rightarrow \text{generalID}$ . If **LRQ** has the endpoint ID of EP A in **LRQ**'s endpoint Identifier field, Gatekeeper H shall copy it into
+
+CTB→**h235Key**→**secureSharedSecret**→**generalID**, and shall also copy it into CTHG→**h235Key**→**secureSharedSecret**→**generalID** too.
+
+GK H then creates two ClearTokens in the **LCF** message. One CTHG for GK G whose **tokenOID** is set to "I33" and one CTB for EP B whose **tokenOID** is set to "I12". GK H generates the callee's DH parameters ( $g, p, g^y$ ). With the caller's DH parameters obtained from the **LRQ** message, GK H shall compute the session key $K_{AB} = g^{xy} \bmod p$ .
+
+Finally, GK H shall encrypt $K_{AB}$ using $EK_{BH}$ and $KS_{BH}$ as $ENC_{EK_{BH}, KS_{BH}, IV(K_{AB})}$ and put the encrypted $K_{AB}$ into CTB→**h235Key**→**secureSharedSecret**→**encryptedSessionKey**, and puts the callee's DH parameters into **dhkey** of CTHG.
+
+The enhanced OFB (EOFB) encryption mode (see 8.4/H.235.6) shall be used with the secret, endpoint-specific salting key $KS_{GH}$ . Applicable encryption algorithms are (see Table 6/H.235.6):
+
+- DES (56 bit) in EOFB mode using OID "Y1": optional;
+- 3DES (168 bit) in outer-EOFB mode using OID "Z1": optional;
+- AES (128 bit) in EOFB mode using OID "Z2": default and recommended;
+- RC2-compatible (56 bit) in EOFB mode using OID "X1": optional.
+
+For the EOFB encryption mode, Gatekeeper H shall generate a random initial value IV. For OID "X1", OID "Y1" and OID "Z1" the IV has 64 bits and shall be conveyed within CTB→**h235Key**→**secureSharedSecret**→**params**→**iv8**; whereas the IV has 128 bits for OID "Z2" and shall be conveyed within CTB→**h235Key**→**secureSharedSecret**→**params**→**iv16**.
+
+The encryption algorithm shall be indicated in CTB→**h235Key**→**secureSharedSecret**→**algorithmOID** ("X1", "Y1", "Z1" or "Z2"). For the EOFB encryption algorithms, **encryptedSaltingKey** shall not be used.
+
+GK H sends the **LCF** message to GK G. If GK cloud is present, the **LCF** message is transferred in a relay manner. Along this path, each GK receives the **LCF** message from its upstream immediate neighbour and checks the **LCF** message containing CTHG and forwards the **LCF** message to its downstream immediate neighbour.
+
+If GK H does not support the DH algorithm, or security policy is not allowed for DRC3, a fallback to DRC2 will occur. Therefore, the **LCF** phase and all the subsequent phases are the same as those of DRC2.
+
+## 11.5 ACF phase
+
+After receiving the **LCF** message, GK G, recognizing **tokenOID** in the separate ClearToken is set to "I33", obtains callee's DH and creates a ClearToken denoted CTA with its **tokenOID** set to "I11" by means specified below.
+
+Firstly, GK G produces a random Challenge-A, which shall be set to CTA→**challenge** and CTA→**h235Key**→**secureSharedSecret**→**keyDerivationOID** shall hold "AnnexI-HMAC-SHA1-PRF", and then uses the shared key $K_{AG}$ and the Challenge-A to derive the key material $EK_{AG}$ and the salting key $KS_{AG}$ using PRF-based key derivation procedure.
+
+Secondly, GK G uses caller's DH parameters which are retained in the **LRQ** phase and, in conjunction with callee's DH parameters, computes the session key $K_{AG} = g^{xy} \bmod p$ .
+
+Then GK G copies the ClearToken CTB from the **LCF** message to the **ACF** message whose **tokenOID** is set to "I12".
+
+Finally, GK G encrypts $K_{AB}$ using $EK_{AG}$ and $KS_{AG}$ as $ENC_{EK_{AG}, KS_{AG}, IV(K_{AB})}$ and puts the encrypted $K_{AB}$ into CTA→**h235Key**→**secureSharedSecret**→**encryptedSessionKey**, and copies CTB from the **LCF** message into the **ACF** message.
+
+The enhanced OFB (EOFB) encryption mode (see 8.4/H.235.6) shall be used with the secret, endpoint-specific salting key $KS_{AG}$ .
+
+Applicable encryption algorithms are (Table 6/H.235.6):
+
+- DES (56 bit) in EOFB mode using OID "Y1": optional;
+- 3DES (168 bit) in outer-EOFB mode using OID "Z1": optional;
+- AES (128 bit) in EOFB mode using OID "Z2": default and recommended;
+- RC2-compatible (56 bit) in EOFB mode using OID "X1": optional.
+
+For the EOFB encryption mode, the GK G shall generate a random initial value IV. For OID "X1", OID "Y1" and OID "Z1" the IV has 64 bits and shall be conveyed within $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow params \rightarrow iv8$ ; whereas the IV has 128 bits for OID "Z2" and shall be conveyed within $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow params \rightarrow iv16$ . The encryption algorithm shall be indicated in $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow algorithmOID$ ("X1", "Y1", "Z1" or "Z2").
+
+If it is found that the ClearToken (within **LCF**) **tokenOID** is "I23", it can be judged that a fallback to DRC2 has occurred, and GK G is free to choose whether to accept GK H's security policy. If it accepts, the **ACF** phase and the subsequent Setup phase will be the same as those of DRC2. Otherwise, respond with a corresponding reject message indicating security failure by setting the reject reason to **securityDenial**.
+
+GK G sends the **ACF** message to EP A.
+
+## 11.6 SETUP phase
+
+Endpoint A shall identify $CT_A$ by inspection of the $CT_A \rightarrow tokenOID$ "I11". Endpoint A shall verify that the obtained $CT_A$ is fresh by checking the timestamp. Further security checks shall verify the **generalID** and **sendersID** of the ClearToken and **generalID** within **secureSharedSecret**. If the received $CT_A$ is verified as being fresh, endpoint A shall retrieve the IV and compute $EK_{AG}$ and $KS_{AG}$ as described above for the gatekeeper G using $CT_A \rightarrow challenge$ as Challenge-A. Endpoint A shall decrypt $CT_A \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow encryptedSessionKey$ to obtain $K_{AG}$ .
+
+If the received $CT_A$ is verified as being fresh, endpoint A is able to send a SETUP message to endpoint B. This SETUP message includes $CT_B$ . The SETUP message shall be secured (authenticated and/or integrity protected) according to ITU-T Rec. H.235.1 or ITU-T Rec. H.235.3 using $K_{AB}$ as the applied shared secret. For this, **generalID** in the H.235.1 hashed ClearToken (not $CT_B$ !) shall not be used unless endpoint A already has an $EPID_B$ available (e.g., through configuration or memorized from former communication). If endpoint A uses an $EPID_B$ value for **generalID** in SETUP, then endpoint A shall accept the value of the **sendersID** in the returned call signalling message as the true $EPID_B$ .
+
+Endpoint B shall identify $CT_B$ by inspection of the **tokenOID** "I12" within ClearToken.
+
+Endpoint B shall verify that the obtained $CT_B$ is fresh by checking the timestamp. Further security checks shall verify the **sendersID** of the ClearToken and **generalID** within **secureSharedSecret**. If the received $CT_B$ is verified as being fresh, endpoint B shall retrieve the IV, compute $EK_{BH}$ and $KS_{BH}$ , using $CT_B \rightarrow challenge$ as Challenge-B. Endpoint B shall decrypt $CT_B \rightarrow h235Key \rightarrow secureSharedSecret \rightarrow encryptedSessionKey$ to obtain $K_{AB}$ .
+
+In the case where the $CT_B$ is verified as being fresh, endpoint B is able to proceed the call signalling by replying with CALL-PROCEEDING, ALERTING or CONNECT etc., as appropriate. In the case where the $CT_B$ is found not to be fresh, or the security verification of the SETUP message fails, endpoint B shall reply with RELEASE-COMPLETE and the **ReleaseCompleteReason** set to a security error as defined by 11.1/H.235.0.
+
+When media security is to be deployed (see 6.1/H.235.6), endpoint A and endpoint B shall exchange Diffie-Hellman half-keys according to 8.5/H.235.6 and establish a dynamic session-based master key from which media-specific session keys can then be derived.
+
+Endpoint B shall include **generalID** set to EPIDA and **sendersID** set to EPIDB for protection of any H.225.0 Call signalling message destined to EP A (e.g., Call Proceeding, Alerting or Connect).
+
+Figure 4 shows the basic communication flow:
+
+
+
+```
+
+sequenceDiagram
+ participant A as Endpoint A
+ participant G as Gatekeeper G
+ participant H as Gatekeeper H
+ participant B as Endpoint B
+
+ Note over A, G: H.235.1 Baseline or H.235.3 Hybrid Security Profile deployed, by applying a shared secret K_AG to the communication between endpoint A and the gatekeeper G.
+ Note over G, H: H.235.1 Baseline or H.235.3 Hybrid Security Profile deployed, by applying a shared secret K_GH to the communication between gatekeeper G and the gatekeeper H.
+ Note over H, B: H.235.1 Baseline or H.235.3 Hybrid Security Profile deployed, by applying a shared secret K_BH to the communication between endpoint B and the gatekeeper H.
+
+ A->>G: RRQ, incl. ClearToken("I30")
+ G-->>A: RCF, incl. endpointIdentifier EPID_A, incl. ClearToken("I30")
+ A->>G: ARQ, incl. ClearToken("I30")
+ Note right of G: Generate a DH-half-key(g^a mod p)
+Include g^a mod p in ClearToken("I30")
+ G->>H: LRQ, incl. ClearToken("I30")
+ Note right of H: Generate a DH-half-key(g, g^b mod p)
+Compute shared secret key K_AB = g^ab mod p
+Include ENC_EKBH, KSBH, IV(K_AB) in ClearToken CT_B
+Include g, g^b mod p in ClearToken CT_HG
+ H-->>G: LCF, incl. CT_B("I12"), CT_HG("I33")
+ Note right of G: Compute shared secret key K_AB = g^ab mod p
+Include ENC_EKAG, KSAG, IV(K_AB) in ClearToken CT_A
+Copy CT_B from the LCF into ACF
+and CT_B conveys ENC_EKBH, KSBH, IV(K_AB)
+ G-->>A: ACF, incl. CT_A("I11") and CT_B("I12")
+ Note left of A: Generate salting key material KS_AG and encryption key material EK_AG from the shared secret K_AG using PRF.
+Reception of CT_A to extract the EPID_B as well as decryption to obtain the shared secret K_AB to be applied to direct call signalling.
+Create Setup message with CT_B in it.
+ A->>B: Setup integrity protected by K_AB containing hashed token, as defined for baseline and hybrid security profiles as well as the CT_B("I12")
+ Note right of B: Generate salting key material KS_BH and encryption key material EK_BH from the shared secret K_BH using PRF.
+Reception of CT_B to extract the EPID_A as well as decryption to obtain the shared secret K_AB to be applied to direct call signalling, security check of the received setup message.
+ B->>A: Call Proceeding, Alerting, or Connect integrity protected by K_AB containing hashed token, as defined for baseline and hybrid security profiles with the generalID set to EPID_A and sendersID set to EPID_B
+
+```
+
+H.235.4\_F04
+
+Figure 4/H.235.4 – Communication flow in DRC3. A sequence diagram showing the interaction between Endpoint A, Gatekeeper G, Gatekeeper H, and Endpoint B. It details the exchange of registration and admission messages (RRQ, RCF, ARQ), location requests (LRQ, LCF), and admission confirmation (ACF) including Diffie-Hellman key exchange parameters and encrypted tokens. Finally, it shows the Setup and Call Proceeding messages between endpoints protected by the established session key K\_AB.
+
+Figure 4/H.235.4 – Communication flow in DRC3
+
+# 12 PRF-based key derivation procedure
+
+This clause describes a procedure that defines how to derive key material from the shared secret and other parameters.
+
+The procedure in this clause allows computing an encryption key and a salting key from a shared key. The procedure is uniform irrespective of the shared secret ( $K_{AG}$ , $K_{BH}$ or $K_{GH}$ ).
+
+In order to obtain the target keying material (e.g., $EK_{AG}$ ), the PRF (see clause 10/H.235.0) shall be used with the parameters taken from Table 1 where the *inkey* parameter is set to the corresponding shared key (e.g., $K_{AG}$ ), and *label* shall be set to the corresponding constant (e.g., 0x2AD01C64 || **challenge-A**) where || denotes concatenation. The *outkey\_len* shall be set to the length of the required length of the target key material which depends on the chosen encryption algorithm.
+
+NOTE – For $EK_{AG}$ , $KS_{AG}$ , $EK_{BH}$ and $KS_{BH}$ the 32-bit constant integers (i.e., 0x2AD01C64 etc.) are taken from the decimal digits of $e$ (i.e., 2.71828...), and for $EK_{GH}$ and $KS_{GH}$ , the 32-bit constants integers are taken from the decimal digits of $\pi$ (i.e., 3.14159...). For $EK_{AG}$ , $EK_{BH}$ , $KS_{AG}$ , and $KS_{BH}$ , the 32-bit integers are from blocks of 9 decimal digits, respectively the first, second, fourth and seventh blocks. The value for $EK_{GH}$ comes from the first 10 decimal digits of $\pi$ , while $KS_{GH}$ comes from the subsequent 8 decimal digits of $\pi$ .
+
+**Table 1/H.235.4 – Calculating encryption and salting keys from a shared secret**
+
+| Target Key | PRF inkey | Constant challenge |
+|------------|-----------|----------------------------------|
+| $EK_{AG}$ | $K_{AG}$ | 0x2AD01C64 Challenge-A |
+| $KS_{AG}$ | $K_{AG}$ | 0x150533E1 Challenge-A |
+| $EK_{BH}$ | $K_{BH}$ | 0x1B5C7973 Challenge-B |
+| $KS_{BH}$ | $K_{BH}$ | 0x39A2C14B Challenge-B |
+| $EK_{GH}$ | $K_{GH}$ | 0x54655307 Challenge-G |
+| $KS_{GH}$ | $K_{GH}$ | 0x35855C60 Challenge-G |
+
+# 13 FIPS-140-based key derivation procedure
+
+This clause may describe a procedure that defines how to derive key material from a shared secret and other parameters using a FIPS-140 compliant crypto module. This remains for further study.
+
+Table 2/H.235.4 – Object identifiers used by H.235.4
+
+| Object identifier reference | Object identifier value | Description |
+|-----------------------------|-----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| "I10" | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 48} | Used in procedure DRC1 during GRQ/RRQ and GCF/RCF and ARQ to let the EP/GK indicate support of DRC1. |
+| "I11" | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 49} | Used in procedures DRC1, DRC2 and DRC3 for the ClearToken tokenOID indicating that the ClearToken CT A holds an end-to-end key for the caller. |
+| "I12" | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 50} | Used in procedures DRC1, DRC2 and DRC3 for the ClearToken tokenOID indicating that the ClearToken CT B holds an end-to-end key for the callee. |
+| "I13" | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 52} | Used in procedure DRC1 for the inter-gatekeeper ClearToken tokenOID indicating that the ClearToken CT HG holds an encryption key for the originating gatekeeper. |
+| "I20" | {itu-t (0) recommendation (0) h (8) 235 version (0) 4 53} | Used in procedure DRC2 during GRQ/RRQ and GCF/RCF and ARQ to let the EP/GK indicate support of DRC2. |
+| "I23" | {itu-t (0) recommendation (0) h (8) 235 version (0) 4 56} | Used in procedure DRC2 for the inter-gatekeeper ClearToken CT HG tokenOID indicating that the ClearToken holds an encryption key for the originating gatekeeper. |
+| "I30" | {itu-t (0) recommendation (0) h (8) 235 version (0) 4 34} | For use in separate ClearToken in GRQ/RRQ, GCF/RCF, ARQ to indicate support for DRC3.
For use in separate ClearToken in LRQ to indicate carrying caller's DH parameters. |
+| "I33" | {itu-t (0) recommendation (0) h (8) 235 version (0) 4 37} | For use in separate ClearToken in LCF to indicate carrying callee's DH parameters. |
+| "Annex I -HMAC-SHA1-PRF" | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 51} | Used in procedures DRC1, DRC2 and DRC3 for keyDerivationOID within V3KeySyncMaterial to indicate the applied key derivation method in clause 12 using the HMAC-SHA1 pseudo-random function. |
+
+
+
+
+
+# SERIES OF ITU-T RECOMMENDATIONS
+
+| | |
+|-----------------|---------------------------------------------------------------------------------------------|
+| Series A | Organization of the work of ITU-T |
+| Series D | General tariff principles |
+| Series E | Overall network operation, telephone service, service operation and human factors |
+| Series F | Non-telephone telecommunication services |
+| Series G | Transmission systems and media, digital systems and networks |
+| Series H | Audiovisual and multimedia systems |
+| Series I | Integrated services digital network |
+| Series J | Cable networks and transmission of television, sound programme and other multimedia signals |
+| Series K | Protection against interference |
+| Series L | Construction, installation and protection of cables and other elements of outside plant |
+| Series M | Telecommunication management, including TMN and network maintenance |
+| Series N | Maintenance: international sound programme and television transmission circuits |
+| Series O | Specifications of measuring equipment |
+| Series P | Telephone transmission quality, telephone installations, local line networks |
+| Series Q | Switching and signalling |
+| Series R | Telegraph transmission |
+| Series S | Telegraph services terminal equipment |
+| Series T | Terminals for telematic services |
+| Series U | Telegraph switching |
+| Series V | Data communication over the telephone network |
+| Series X | Data networks, open system communications and security |
+| Series Y | Global information infrastructure, Internet protocol aspects and next-generation networks |
+| Series Z | Languages and general software aspects for telecommunication systems |
\ No newline at end of file
diff --git a/marked/H/T-REC-H.235.5-200509-I_PDF-E/raw.md b/marked/H/T-REC-H.235.5-200509-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..81f517847a5a2b725c23a1a19de4cdfd8ba396b4
--- /dev/null
+++ b/marked/H/T-REC-H.235.5-200509-I_PDF-E/raw.md
@@ -0,0 +1,508 @@
+
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.235.5**
+
+(09/2005)
+
+SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS
+Infrastructure of audiovisual services – Systems aspects
+
+---
+
+**H.323 security: Framework for secure
+authentication in RAS using weak shared
+secrets**
+
+ITU-T Recommendation H.235.5
+
+# ITU-T H-SERIES RECOMMENDATIONS **AUDIOVISUAL AND MULTIMEDIA SYSTEMS**
+
+| | |
+|-------------------------------------------------------------------------------|--------------------|
+| CHARACTERISTICS OF VISUAL TELEPHONE SYSTEMS | H.100–H.199 |
+| INFRASTRUCTURE OF AUDIOVISUAL SERVICES | |
+| General | H.200–H.219 |
+| Transmission multiplexing and synchronization | H.220–H.229 |
+| Systems aspects | H.230–H.239 |
+| Communication procedures | H.240–H.259 |
+| Coding of moving video | H.260–H.279 |
+| Related systems aspects | H.280–H.299 |
+| Systems and terminal equipment for audiovisual services | H.300–H.349 |
+| Directory services architecture for audiovisual and multimedia services | H.350–H.359 |
+| Quality of service architecture for audiovisual and multimedia services | H.360–H.369 |
+| Supplementary services for multimedia | H.450–H.499 |
+| MOBILITY AND COLLABORATION PROCEDURES | |
+| Overview of Mobility and Collaboration, definitions, protocols and procedures | H.500–H.509 |
+| Mobility for H-Series multimedia systems and services | H.510–H.519 |
+| Mobile multimedia collaboration applications and services | H.520–H.529 |
+| Security for mobile multimedia systems and services | H.530–H.539 |
+| Security for mobile multimedia collaboration applications and services | H.540–H.549 |
+| Mobility interworking procedures | H.550–H.559 |
+| Mobile multimedia collaboration inter-working procedures | H.560–H.569 |
+| BROADBAND AND TRIPLE-PLAY MULTIMEDIA SERVICES | |
+| Broadband multimedia services over VDSL | H.610–H.619 |
+
+*For further details, please refer to the list of ITU-T Recommendations.*
+
+## **ITU-T Recommendation H.235.5**
+
+## **H.323 security: Framework for secure authentication in RAS using weak shared secrets**
+
+## **Summary**
+
+This Recommendation provides the framework for mutual party authentication during H.225.0 RAS exchanges. The "proof-of-possession" methods described permit secure use of shared secrets such as passwords which, if used by themselves, would not provide sufficient security.
+
+Extensions to the framework to permit simultaneous negotiation of Transport Layer Security parameters for protection of a subsequent call signalling channel are also described.
+
+In earlier versions of the H.235 sub-series, this profile was contained in H.235 Annex H. Appendices IV, V, VI to H.235.0 show the complete clause, figure, and table mapping between H.235 versions 3 and 4.
+
+## **Source**
+
+ITU-T Recommendation H.235.5 was approved on 13 September 2005 by ITU-T Study Group 16 (2005-2008) under the ITU-T Recommendation A.8 procedure.
+
+## **Keywords**
+
+Authentication, passwords, security.
+
+## FOREWORD
+
+The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications. The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU-T study groups which, in turn, produce Recommendations on these topics.
+
+The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
+
+In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
+
+### NOTE
+
+In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure e.g. interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
+
+## INTELLECTUAL PROPERTY RIGHTS
+
+ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
+
+As of the date of approval of this Recommendation, ITU had received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementors are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database.
+
+© ITU 2006
+
+All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
+
+## CONTENTS
+
+###### Page
+
+| | | |
+|------|--------------------------------------------------------------------------|----|
+| 1 | Scope ..... | 1 |
+| 2 | References..... | 1 |
+| 2.1 | Normative references..... | 1 |
+| 2.2 | Informative references..... | 1 |
+| 3 | Definitions ..... | 2 |
+| 4 | Abbreviations..... | 2 |
+| 5 | Conventions ..... | 3 |
+| 6 | Basic framework..... | 3 |
+| 6.1 | Improved negotiation capabilities in H.235.0 ..... | 3 |
+| 6.2 | Use between endpoint and gatekeeper ..... | 3 |
+| 6.3 | Use of profile between gatekeepers..... | 6 |
+| 6.4 | Signalling channel encryption and authentication..... | 6 |
+| 7 | A specific security profile (SP1)..... | 6 |
+| 8 | An improved security profile (SP2)..... | 8 |
+| 8.1 | Call Signalling sequence number ..... | 9 |
+| 8.2 | Generation of Weak Encryption Key from password ..... | 9 |
+| 8.3 | Nonce size ..... | 9 |
+| 8.4 | Initialization vector salting ..... | 9 |
+| 8.5 | ClearToken encoding..... | 10 |
+| 9 | Extensions to the framework (Informative)..... | 10 |
+| 9.1 | Using the master key to secure the call signalling channel via TLS ..... | 10 |
+| 9.2 | Use of certificates to authenticate the gatekeeper ..... | 12 |
+| 9.3 | Use of alternative signalling security mechanisms ..... | 12 |
+| 10 | Threats (Informative)..... | 12 |
+| 10.1 | Passive attack..... | 12 |
+| 10.2 | Denial-of-Service attacks ..... | 12 |
+| 10.3 | Man-in-the-Middle attacks ..... | 13 |
+| 10.4 | Guessing attacks ..... | 13 |
+| 10.5 | Unencrypted gatekeeper half-key..... | 13 |
+
+# Introduction
+
+In many applications, an endpoint (or its user) and its gatekeeper may share only a "small" secret such as a password or a "personal identification number" (PIN). Such a secret (which we shall hereafter refer to as a "password"), and any encryption key derived from it, is cryptographically weak. The challenge/response authentication schemes, as described in clause 10, provide samples of plaintext and corresponding ciphertext and are, therefore, subject to a brute-force attack by an observer of the transaction when the authentications are keyed by simple passwords. Thus, the observer may recover the password or PIN and later pose as the endpoint to obtain service.
+
+A family of protocols under the generic heading of Encrypted Key Exchange use a shared secret to "obscure" a Diffie-Hellman key exchange in such a way that the attacker must solve a series of finite logarithm problems in order to validate a brute-force attack against the shared secret. In the Encrypted Key Exchange (EKE) of Bellovin and Merritt [B&M], the shared secret is used to encrypt the Diffie-Hellman public keys under a symmetric algorithm. In the Simple Password Exponential Key Exchange (SPEKE) method of Jablon [Jab], the shared secret is used to choose a different generator of the Diffie-Hellman group. These protocols combine the security of a strong Diffie-Hellman key exchange with use of the shared secret in such a way that an attacker cannot obtain known plaintext for use in a brute-force attack against the secret without solving the Diffie-Hellman finite logarithm problem. An advantage of such protocols is that they multiply the strengths of the Diffie-Hellman problem by the strength of the secret-key encryption (or vice versa). A potential disadvantage is that they are typically subject to patent protection.
+
+# ITU-T Recommendation H.235.5
+
+## H.323 security: Framework for secure authentication in RAS using weak shared secrets
+
+# 1 Scope
+
+This Recommendation is usable by any gatekeeper or endpoint using the H.225.0 RAS protocols.
+
+# 2 References
+
+## 2.1 Normative references
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation
+
+- ITU-T Recommendation H.225.0 (2003), *Call signalling protocols and media stream packetization for packet-based multimedia communication systems*.
+- ITU-T Recommendation H.235.0 (2005), *H.323 security: Framework for security in H-series (H.323 and other H.245-based) multimedia systems*.
+- ITU-T Recommendation H.235.1 (2005), *H.323 security: Baseline security profile*.
+- ITU-T Recommendation H.245 (2005), *Control protocol for multimedia communication*.
+- ITU-T Recommendation H.323 (2003), *Packet-based multimedia communications systems*.
+- Federal Information Processing Standard FIPS PUB 180-2, *Secure Hash Standard*, U.S. Department of Commerce, Technology Administration, National Institute of Standards and Technology, 1 August 2002.
+- NIST Special Publication 800-38A 2001, *Recommendation for Block Cipher Modes of Operation – Methods and Techniques*. .
+
+## 2.2 Informative references
+
+- [AES] IETF RFC 3268 (2002), *Advanced Encryption Standard (AES) Ciphersuites for Transport Layer Security*.
+- [B&M] BELLOVIN (S.), MERRITT (M.): U.S. Patent 5,241,599, August 31, 1993, originally assigned to AT&T Bell Laboratories, now assigned to Lucent Technologies.
+- [Jab] JABLON (D.): Strong Password-Only Authenticated Key Exchange, *Computer Communication Review*, ACM SIGCOMM, Vol. 26, No. 5, pp. 5-26, October 1996.
+- [NIST SP 800-57] NIST Draft Special Publication 800-57 (2005), *Recommendation for Key Management, Part 1: General Guideline*.
+- [RFC2104] IETF RFC 2104 (1997), *HMAC: Keyed-Hashing for Message Authentication*.
+
+- [RFC2412] IETF RFC 2412 (1998), *The OAKLEY Key Determination Protocol*.
+[RFC2246] IETF RFC 2246 (1999), *The TLS Protocol Version 1.0*.
+[RFC3546] IETF RFC 3546 (2003), *Transport Layer Security (TLS) Extensions*.
+
+# 3 Definitions
+
+None.
+
+# 4 Abbreviations
+
+This Recommendation uses the following abbreviations:
+
+| | |
+|------|------------------------------------|
+| ACF | Admission Confirm |
+| AES | Advanced Encryption Standard |
+| ARJ | Admission Reject |
+| ARQ | Admission Request |
+| CBC | Cipher Block Chaining |
+| CTR | Counter Mode (see NIST SP 800-38A) |
+| D-H | Diffie-Hellman |
+| EKE | Encrypted Key Exchange |
+| GCF | Gatekeeper Confirm |
+| GK | Gatekeeper |
+| GRJ | Gatekeeper Reject |
+| GRQ | Gatekeeper Request |
+| HMAC | Hashed Message Authentication Code |
+| ICV | Integrity Check Value |
+| ID | Identifier |
+| LCF | Location Confirm |
+| LRJ | Location Reject |
+| LRQ | Location Request |
+| MIM | Man-in-the-middle |
+| OID | Object Identifier |
+| PIN | Personal Identification Number |
+| PRF | Pseudo-Random Function |
+| RAS | Registration, Admission and Status |
+| RCF | Registration Confirm |
+| RFC | Request for Comments |
+| RRJ | Registration Reject |
+| RRQ | Registration Request |
+| SHA1 | Secure Hash Algorithm 1 |
+
+| | |
+|-------|------------------------------------------|
+| SPEKE | Simple Password Exponential Key Exchange |
+| TLS | Transport Layer Security |
+| UDP | User Datagram Protocol |
+
+# 5 Conventions
+
+In this Recommendation the following conventions are used:
+
+- "shall" indicates a mandatory requirement.
+- "should" indicates a suggested but optional course of action.
+- "may" indicates an optional course of action rather than a recommendation that something take place.
+
+For further conventions, refer to clause 5/H.235.0.
+
+# 6 Basic framework
+
+## 6.1 Improved negotiation capabilities in H.235.0
+
+ITU-T Rec. H.235.0 provides support for this security framework via the inclusion of the following generic element to the **ClearToken**:
+
+- **profileInfo** is a sequence of profile-specific elements, each identified by its own integer value as defined by the specific profile whose OID is carried in the **ClearToken.tokenOID**.
+
+In the following descriptions, several elements are passed in **profileInfo**; each of these elements will be given a name, rather than an identifying value, for ease of discussion.
+
+## 6.2 Use between endpoint and gatekeeper
+
+The basic framework, in which the requestor is an endpoint wishing to register with a gatekeeper, and the responder is that gatekeeper, proceeds in a straightforward manner. In the following, it is implicitly assumed that each **ClearToken** mentioned is identified with the **tokenOID** of the authentication profile. The **ClearToken** is assumed to be extended. The **random** and/or **random2** elements may be used by a profile in either of two ways: they may be included in the computation of the authentication key, and/or they may be included in a profile **ClearToken** in each subsequent RAS message (e.g., RRQ/RCF) to prevent replay. The endpoint registration exchange proceeds as follows:
+
+- 1) The endpoint announces its willingness to participate in one or more key negotiation and authentication schemes by including the appropriate object ID(s) for the desired profile(s) in **authenticationMechanism.keyExch** elements of the **authenticationCapability** element of the **GatekeeperReQuest**. It is assumed that each specific OID completely defines an authentication procedure in terms of public key system (e.g., Diffie-Hellman or Elliptic Curve) and specific group (e.g., one of the OAKLEY groups from RFC 2412), symmetric encryption algorithm (e.g., AES-128-CBC with ciphertext stealing), key derivation function (e.g., via the Pseudo-Random Function of clause 10/H.235.0), message authentication code (e.g., HMAC-SHA1-96 [RFC2104]), and the sequence in which they are used. The endpoint also includes one or more profile **ClearTokens** in the GRQ, each of which carries the OID for the specific profile offered and the necessary (encrypted) public key material in the following form:
+ - a) **tokenOID** carries the profile OID as offered in the **authenticationCapability** of the encapsulating GRQ.
+ - b) **timeStamp** may be used to assure currency and protect against replay.
+
+- c) **password** shall not be used for the actual password.
+ - d) **dhkey** carries the Diffie-Hellman key parameters, if used. The enclosed **halfkey** element is encrypted as specified by the selected profile.
+ - e) **challenge** is not required.
+ - f) **random** is supplied by the initiating party and is used to prevent replay attacks.
+ - g) **certificate** may be used if certificate exchange is part of the profile.
+ - h) **generalID** may be used if required by the profile.
+ - i) **eckasdhkey** carries the Elliptic Curve key parameters, if used by the profile. The enclosed **public-key** element should be encrypted as specified by the profile.
+ - j) **sendersID** may be used as specified by the profile.
+ - k) **profileInfo** element, **initVect**, may be supplied along with the (encrypted) public key material (**dhkey** or **eckasdhkey**) if the profile requires an initialization vector for decryption.
+ - l) If the initiator wishes to use key material derived from an earlier exchange, it shall include a **profileInfo** element, denoted **sessionID**, containing the identifier assigned during the earlier exchange. In this case, **dhkey**, **eckasdhkey** and/or **initVect** should not be included.
+ - m) If the initiator wishes to establish a TLS session for a call signalling connection, it may include one or more **profileInfo** elements containing TLS ciphersuites; the message shall contain only one ciphersuite (the one previously negotiated) if **sessionID** is present.
+ - n) If the initiator wishes to establish a TLS session for call signalling, it may include a **profileInfo** element containing a list of compression methods; only one compression method (the one previously negotiated) shall be included if **sessionID** is present.
+ - o) More **profileInfo** elements may be used for any additional parameters required for the procedures under the profile.
+- 2) Upon receiving the GRQ, the gatekeeper selects an **AuthenticationMechanism** profile from the offered list, generates a suitable private key, computes the corresponding public key, generates an initialization vector if needed for symmetric encryption using the password, encrypts the public key, generates a unique session ID, and generates a random quantity, all of which are encoded into a **ClearToken**. Depending on the profile, the following use is made of the ClearToken elements:
+- a) **tokenOID** carries the profile OID, as selected from the **authenticationMethod** of the encapsulating GCF.
+ - b) **timeStamp** may be used to assure currency and protect against replay.
+ - c) **password** shall not be used for the actual password.
+ - d) **dhkey** carries the Diffie-Hellman key parameters, if used. The enclosed **halfkey** element is encrypted as specified by the selected profile.
+ - e) **challenge** is used to carry an initialization vector, if required for key encryption as specified by the profile, or it may be used to carry a random string to be returned by the endpoint to prevent replay attacks.
+ - f) **random** may contain the unpredictable, unique value supplied by the requestor to prevent replay attacks.
+ - g) **certificate** may be used if certificate exchange is part of the profile.
+ - h) **generalID** may be used if required by the profile.
+
+- i) **eckasdhkey** carries the Elliptic Curve key parameters, if used by the profile. The enclosed **public-key** element should be encrypted as specified by the profile.
+- j) **sendersID** may be used as specified by the profile.
+- k) **random** (or an additional **profileInfo** element, denoted **random2**, if the profile requires both random numbers to remain in the message exchange) should contain an unpredictable, unique value supplied by the responder to protect against replay attacks.
+- l) **initVect** is supplied along with the (encrypted) public key material (**dhkey** or **eckasdhkey**) if the profile requires an initialization vector for decryption.
+- m) **sessionID** is a unique (to the gatekeeper) identifier used to identify this registration session. Under certain profiles, it may also be used as a TLS session ID for rapid establishment of a TLS-protected call signalling channel.
+- n) **profileInfo** may be used for any additional parameters required for the procedures under the profile.
+
+The gatekeeper then computes the shared secret or master key using its private key and the (decrypted) public key from the GCF, and derives from the master key the necessary encryption keys, authentication keys, or other material, according to the profile. The above-described **ClearToken** is placed within the **GatekeeperConFirm** message. The GCF shall be integrity checked/authenticated using the derived authentication key, then sent to the endpoint. The authentication/integrity check may be returned in one of several ways, as specified by the profile: via a profile-specific **profileInfo** element, or via one of the procedures specified in ITU-T Rec. H.235.1.
+
+- 3) The endpoint examines the selected **authenticationMechanism.keyExch** from the GCF and extracts the parameters from the **ClearToken** identified by the corresponding **tokenOID**. The endpoint then selects its private key, computes the corresponding public key, and selects any other parameters required by the profile. The endpoint then computes the shared secret or master key using its private key and the (decrypted) public key from the GCF, and derives the necessary encryption keys, authentication keys, or other material from it, according to the profile. The endpoint shall then verify the integrity of the GCF. If the GCF does not verify correctly, the endpoint shall discard it, along with all the key material derived from it, and continue waiting for a valid GRQ message. Standard RAS recovery will lead to a retransmission of the GRQ, and, presumably, receipt of an undamaged GCF. If a few retransmissions fail to produce a successful response, the endpoint should cease attempting to register and inform its user that something is amiss. Note that each GRQ sent gives a gateway imposter one more chance to guess the user's password and have its guess validated by acceptance of the GRQ. If the integrity check of the GCF succeeds, the endpoint has validated the gatekeeper, and may proceed to register, and, in the process, authenticate itself to the gatekeeper.
+- 4) The endpoint then populates a **ClearToken** with the profile **tokenOID** in a manner similar to that done by the gatekeeper as described above. Any fields from the GCF clear token that are considered as a challenge by the profile should be included in the **ClearToken**. If specified by the profile to avoid replay, the **ClearToken** shall include **random** and **random2** from the GCF received above. The **ClearToken** is then placed in a **Registration ReQuest** to be sent back to the gatekeeper. The endpoint should then authenticate the full RRQ message and send it to the gatekeeper. From this point onward, the endpoint should not accept, nor should it send, RAS messages that are not authenticated by the agreed-upon profile using the authentication key derived from the shared key material.
+- 5) The gatekeeper receives the RRQ, and shall use the shared key material to verify the integrity of the RRQ against the included authentication and integrity check. If the integrity check fails, the gatekeeper shall ignore the received RRQ, and wait for a verifiable RRQ. If none arrives, the endpoint will eventually abandon the registration attempt and return to the
+
+search for a gatekeeper. If the integrity check succeeds, the gatekeeper will prepare a Registration Confirm message to send back to the endpoint. Depending on the profile, this RCF may contain a **ClearToken** that includes the **random**, **random2**, and/or **challenge** elements from the authentication profile **ClearToken** provided in the RRQ. The RCF, and all subsequent RAS messages, shall contain a verifiable authentication and integrity check computed using the negotiated authentication key and algorithm.
+
+- 6) When the endpoint receives the RCF message, it verifies the integrity via the included authentication and integrity check element. If not verified, the RCF shall be discarded; if no valid RCF is received, even after the RRQ is retransmitted, then the session shall be abandoned and the endpoint shall return to seeking a new gatekeeper. If the RCF is verified, the session ID and selected ciphersuite, if present, may be extracted from its **ClearToken** for later use in the establishment of a secure call signalling channel.
+
+## 6.3 Use of profile between gatekeepers
+
+Essentially the same procedure may be used between gatekeepers in an LRQ/LCF exchange. In this situation, no explicit profile selection is possible; the originating gatekeeper shall offer one or more profiles by including the appropriate **ClearToken(s)** as described for the GRQ message, above. The responding gatekeeper may choose an offered profile and should return the corresponding **ClearToken** as described above for the GCF message. Note that, in this case, the calling gatekeeper does not authenticate itself to the responding gatekeeper until it establishes a call signalling channel to that gatekeeper.
+
+This procedure may be employed in a multicast mode if a group of gatekeepers share a single secret to be used for this purpose. The multicast LRQ will be based on that secret; those gatekeepers that reply with LCF will use that key to decode the offered Diffie-Hellman public key, and will each choose their own **nonce** and Diffie-Hellman private key for their reply. The resulting session keys will be unique to the final pair of gatekeepers.
+
+## 6.4 Signalling channel encryption and authentication
+
+If gatekeeper routing is supported by the gatekeeper, the newly-negotiated master key material and identified cryptographic parameters may be used to authenticate and secure the call signalling channel, e.g., by establishing a TLS session for call signalling. If TLS is to be used, the gatekeeper shall include the selected **cipherSuite** and **compress** elements in the returned profile **ClearToken**.
+
+# 7 A specific security profile (SP1)
+
+This clause provides a standard security profile which is expected to provide a shared secret estimated to be equivalent to an 80-bit random number (see [NIST SP 800-57]). The profile consists of the following:
+
+- Object ID for this profile (denoted "SP1") will be {itu-t (0) recommendation (0) h (8) 235 version (0) 3 60}.
+- Master key, $K_m$ , negotiation: Diffie-Hellman key exchange using the OAKLEY well-known group 2 [RFC 2412], followed by the SHA1 [FIPS PUB 180-1] hash reduction of the Diffie-Hellman secret: $K_m = \text{SHA1}(\text{Diffie-Hellman shared secret})$ .
+- Symmetric encryption algorithm: shall be AES-128 in segmented counter mode with a 2-octet party discriminator, $D$ , a 12-octet initialization vector, $IV$ , and a 2-octet counter field, $C$ , such that $\text{counter} = D \parallel IV \parallel C$ , and $C = 0$ initially. See [NIST SP 800-38A] for a description of CTR mode. The party discriminator, $D$ , is set to 0x3636 when the $IV$ is generated by the party which issued the GRQ/RRQ, or LRQ, and is set to 0x5c5c when the $IV$ is generated by the party which responded with GCF/RCF, or LCF. Each party must
+
+insure that each IV it generates is unique; it may use its own method to insure this uniqueness.
+
+- Diffie-Hellman key encryption: shall use the AES-128 segmented counter mode to encrypt the Diffie-Hellman public key (represented as an octet string in network byte order); the initialization vector shall be carried in **ClearToken.initVect**, and the 16-octet key, $K_p$ , shall be constructed as the high-order 128 bits of the SHA1 hash of the user password: $K_p = \text{Trunc}(\text{SHA1}(\text{user password}), 16)$ , where $\text{Trunc}(x,y)$ truncates octet string $x$ to $y$ octets. Note that this is typically considered a weak key.
+- Replay prevention: each party shall supply a 32-bit "random" number (which may contain a counter field to guarantee uniqueness); the random numbers are used explicitly in the computation of the derived keys, hence they each need only be transmitted once.
+- Authentication key, $K_a$ , derivation: using the PRF defined in clause 10/H.235.0, which we denote as $\text{PRF}(\text{in\_key}, \text{label}, \text{outkey\_len})$ with $\text{in\_key} = K_m$ , and $\text{label} = \text{"auth\_key"} \parallel R_e \parallel R_g$ , where $R_e$ is a **nonce** obtained from **ProfileElement** of the GRQ and $R_g$ is a **nonce** obtained from a **ProfileElement** of the GCF, and $\text{outkey\_len} = 128$ .
+- Message authentication and integrity function: using a **ClearToken** with **tokenOID** set to "SP1" and a **ProfileElement.octets** set to the HMAC-SHA1-96 hash value computed over the entire message as described in ITU-T Rec. H.225.0; this procedure shall be applied to all RAS and call signalling messages (except a GRQ, or LRQ, which does not contain a **sessionID**).
+- Element encryption key, $K_e$ : selected elements of call signalling messages (or elements tunnelled therein) may be encrypted using AES-128 in segmented counter mode using key $K_e = \text{PRF}(K_m, \text{"encrypt\_key"} \parallel R_e \parallel R_g, 128)$ . For example, this key may be used to encrypt media session keys for distribution in **h235Key** elements as used in Fast Connect and/or H.245. When used in this manner, "SP1" is used as the encryption algorithm OID.
+
+This profile makes use of the **ProfileElements** defined in Table 1. These elements are carried in a **ClearToken.profileInfo** element sequence as defined in ITU-T Rec. H.235.0.
+
+**Table 1/H.235.5 – Profile elements**
+
+| Element name
(used in text) | ElementID
Value | Element
choice (length) | Element description |
+|--------------------------------|--------------------|----------------------------|------------------------------------------|
+| initVect | 1 | Octets (12) | initialization vector for EKE encryption |
+| nonce | 2 | Octets (any) | an unpredictable, unique value |
+| cipherSuite | 3 | Octets (2) | a TLS ciphersuite |
+| compression | 4 | Octets (1) | a TLS compression algorithm |
+| sessionID | 5 | Octets (1..) | unique, may match a TLS session ID |
+| integrityCheck | 6 | Octets (12) | keyed checkvalue |
+
+The registration sequence shall consist of:
+
+- The endpoint shall send a GRQ with the **authenticationCapability** element containing an **AuthenticationMechanism.keyExch** containing OID "SP1" and a corresponding **ClearToken** with **tokenID** = "SP1" and **dhkey** containing a 1024-bit public key encrypted using **initVect** as the IV and the key derived from the user password, and **nonce** = a 32-bit random number selected by the endpoint.
+- The gatekeeper shall reply with a GCF with the **authenticationMode** element equal to an **AuthenticationMechanism.keyExch** containing OID "SP1", and a **ClearToken** with **tokenID** = "SP1" and **dhkey** containing an unencrypted 1024-bit public key, and **nonce** = a 32-bit random number selected by the gatekeeper, along with an **integrityCheck** containing
+
+the authentication hash value computed using the derived authentication key, $K_a$ . Note that it is not necessary for the gatekeeper to encrypt its Diffie-Hellman half-key in the GCF in this profile because it is the first party to authenticate itself by demonstrating its ability to authenticate the GCF using the derived authentication key. This mode permits the gatekeeper to reuse its Diffie-Hellman keys with more than one endpoint. See clause 10.5.
+
+- The endpoint shall reply with an RRQ with the authentication and integrity check value in a **ProfileElement** with **elementID** set to **integrityCheck**, and **element** set to the value computed using the derived authentication key, $K_a$ .
+- Subsequent RAS messages, including the RCF, shall be authenticated and integrity checked using the same procedure and key. H.225.0 Call Signalling messages (and tunnelled H.245 messages, if present) shall be authenticated using a **ClearToken**, with **tokenOID** set to "SP1", containing a **profileInfo ProfileElement** with **elementID** set to **integrityCheck** and **element** set to the computed value.
+- The encryption key, $K_e$ , and the encryption algorithm AES-128 in segmented counter mode may be used by the gatekeeper and the endpoint to encrypt selected information transported over RAS, call signalling, and/or H.245. For example, the gatekeeper may distribute media encryption keys secured under $K_e$ and the profile encryption algorithm.
+- If an endpoint is required to reregister, and it retains the original session ID and master secret, it should attempt to reregister using the original session ID and master secret by including the session ID explicitly in the GRQ (and not including a Diffie-Hellman half key) in its GRQ.
+- This profile shall be usable between gatekeepers (see 6.3).
+
+# 8 An improved security profile (SP2)
+
+This clause defines a new security profile based on the original profile, SP1. It is identified informally as SP2 and formally with OID {itu-t (0) recommendation (0) h (8) 235 version (0) 4 62}. This profile is identical to SP1, except as specified in the following subclauses. The specific improvements over SP1 include:
+
+- Improvements in the call signalling message sequence numbering to counter replay attacks.
+- Salting of the generation of the password-based encryption key using the endpoint alias in order to counter dictionary attacks.
+- The nonce size is increased and made variable.
+- A salting key is derived for use with the encryption initialization vector.
+- A more efficient transport of the profile **ClearToken** is provided using **genericData**.
+
+SP2 uses the Profile Elements of Table 1, as well as the additional Profile Elements described in Table 2:
+
+**Table 2/H.235.5 – Additional profile elements for SP2**
+
+| Element name
(used in text) | ElementID
value | Element choice
(length) | Element description |
+|--------------------------------|--------------------|----------------------------|--------------------------------------------------------------------------------------|
+| seqNumber | 7 | Octets (4) | 32-bit sequence number in network byte order |
+| connectID | 8 | Octets (2) | Signalling Connection Identifier.
(Optional, default = 0) |
+| endpointID | 9 | Octets (variable) | ASN.1-encoded AliasAddress associated with the endpoint and its password. (Optional) |
+
+## 8.1 Call Signalling sequence number
+
+H.225.0 Call Signalling messages do not contain a sequence number because they are transported over a reliable connection (TCP) which is responsible for sequencing. Nevertheless, lack of a unique message identifier at the application level does expose call signalling to replay or reflection attacks. This problem can be countered by adding a sequence number, and an optional connection identifier, to each call signalling message. Note that this technique does not completely prevent a replay or reflection attacks, but it severely reduces the attacker's chances of success.
+
+Sequence numbers must be unique in each direction to prevent reflection. This can be accomplished, within practical limits, by requiring the issuer of the GRQ (endpoint) or LRQ (gatekeeper) message to start its call signalling transmit sequence number at 0 (zero) and its receive sequence number at $2^{31}$ , with corresponding behaviour by the receiving gatekeeper. This provides a very large time before any overlap can occur (almost 600 hours at the quite unusual rate of one message per millisecond). Successive calls using the same SessionID should transmit with the next unused sequence number in each direction. (To allow for lost messages over failed connections, the receiver should accept messages within a small (e.g., 5-10) window following the last received sequence number, and proceed from there.) Devices that support multiple simultaneous call signalling connections under the same session ID, may use an optional **connectID** to identify separate sequence number spaces for the calls. If not specified, the **connectID** is presumed to be 0 (zero).
+
+## 8.2 Generation of Weak Encryption Key from password
+
+In order to prevent dictionary attacks in which a PIN is guessed, used to encrypt a D-H public key, and then applied successively to all known endpoint aliases, it is desirable to "salt" the encryption key with the alias itself. In particular, the password-based key, $K_p$ , shall be computed from the concatenation of the password and the supplied **endpointID**:
+
+$$K_p = \text{Trunc}(\text{SHA1}(\text{user password} \parallel \mathbf{endpointID}), 16)$$
+
+Typically, the **AliasAddress** in **endpointID** will be one of the aliases included in the GRQ **endpointAlias** element, but this is not necessary. For example, the **endpointID** may identify a gateway supporting many endpoints whose aliases are listed in **endpointType**.
+
+## 8.3 Nonce size
+
+Security Profile 1 requires each party to supply a 4-octet (32-bit) nonce as part of the key negotiation protocol. When supplied during the initial key negotiation, 32 bits is perhaps sufficient to insure freshness in those cases in which the responding gatekeeper reuses the same Diffie-Hellman public key but the requestor generates a fresh key. However, when negotiating new session keys from a previously-negotiated master key, the total of 64 unique bits may not provide sufficient difference between each set of derived keys. It is proposed that the nonce size be variable, with a minimum of 4 octets, and a maximum of 16.
+
+## 8.4 Initialization vector salting
+
+As an added obfuscation measure, a 112-bit session salting key, $K_s$ , is derived from the negotiated master key as:
+
+$$K_s = \text{PRF}(K_m, \text{"salting\_key"} \parallel R_e \parallel R_g, 112).$$
+
+Construction of the initial AES-128-CM counter for encryption and decryption is then carried out as follows:
+
+$$\text{Counter} = (K_s \wedge (D \parallel \text{IV})) \parallel C, \text{ where } C \text{ is the 16-bit counter field, initially zero.}$$
+
+## 8.5 ClearToken encoding
+
+Security profile 1 uses the **clearToken** sequence to carry the parameters of the profile. Every H.225.0 message contains a sequence of **ClearTokens**, except the **empty** choice of **h323-message-body**; all messages carry **genericData**. The structure of the SP1 procedures permit a rather regular structure for the **ClearToken**, which permits it to be ASN.1-encoded ahead of time, and carried as a **raw** parameter with **id.standard** set to 1 in a **GenericData** element identified by the SP2 OID. This form permits identification of the **clearToken** by the "null" OID {0,0}. Most importantly, it makes it easier to locate the token, and the check value within it, because the encoded form of the **ClearToken** alone becomes available as part of the normal encoding and decoding process. Thus it is faster to locate the integrityCheck element within the encoded clear token than within the entire encoded message.
+
+# 9 Extensions to the framework (Informative)
+
+The following elements may be incorporated into a security profile defined under this framework.
+
+## 9.1 Using the master key to secure the call signalling channel via TLS
+
+The key material negotiated during the RAS exchange may be used also to derive session keys for the protection of the call signalling channel under the TLS transport protocol ([RFC 2246], [RFC 3546]). In effect, the RAS negotiation replaces the initial TLS handshake protocol. This only makes sense, of course, if the call signalling will be gatekeeper-routed. This is especially useful for intergatekeeper authentication and signalling using the LRQ/LCF exchange. In this case, there is no third RAS message by which the calling gatekeeper can authenticate itself to the called gatekeeper using the negotiated key material, but the caller can be implicitly authenticated by its ability to establish the call signalling channel with the correct TLS session parameters. Figure 1 illustrates the flow of information involved: RAS is used to negotiate the session master key, the Session ID and the corresponding pre-master secret are distributed to the TLS software, and the Session ID is used by the call signalling layer to establish the call signalling channel over TLS. The means by which transfer of the secret is accomplished is implementation-dependent and beyond the scope of this Recommendation. Note that this Recommendation specifies port 1300 as the default TLS listen port for call signalling. The endpoint must, however, use one of the call signalling transport addresses supplied by the gatekeeper.
+
+
+
+Scope of H.235.0
+
+| | | | | | | | |
+|----------------------|----------------|---------------------------------|-------------------------------------------------|-------------------------|-------|-------|-------------------|
+| AV applications | | Terminal control and management | | | | | Data applications |
+| G.XXX | H.26X | RTCP | H.225.0 Terminal to gatekeeper signalling (RAS) | H.225.0 Call signalling | H.245 | T.124 | |
+| Encryption | | | | | | T.125 | |
+| RTP | Authentication | | | | | T.123 | |
+| Unreliable transport | | | Reliable transport | | | | |
+| Network security | | | Network layer | | | | |
+| | | | Link layer | | | | |
+| | | | Physical layer | | | | |
+
+H.235.5\_F1
+
+RAS Software transfer Call signalling
+ ← - - - - → ..... → ← - . - . →
+
+Diagram showing information flow for security profile and TLS across various layers and protocols. It includes AV applications (G.XXX, H.26X), Terminal control and management (H.225.0 RAS, Call signalling, H.245), and Data applications (T.124, T.125, T.123). Layers shown are Network security, Network layer, Link layer, and Physical layer. Transport layers are Unreliable and Reliable. Arrows indicate the flow of RAS, Software transfer, and Call signalling.
+
+**Figure 1/H.235.5 – Information flow for security profile and TLS**
+
+The following description makes reference to the steps of the basic framework in Figure 1.
+
+### 9.1.1 Endpoint registration
+
+An endpoint may test the ability of a gatekeeper to support TLS-protected call signalling by including one or more **cipherSuite** elements and one or more **compression** elements in the profile **ClearToken** in the GRQ message sent in step 1, above. If the endpoint wishes to use a previously-negotiated session, it shall also include the **sessionID** in the **ClearToken** (and shall specify only the single ciphersuite and the single compression method which match the requested session). If the negotiation is to be based on an existing TLS session, no cryptographic material is required in the profile **ClearToken**, other than **nonce**.
+
+If a requested session does not exist, the gatekeeper shall select another authentication profile (if offered) or it shall return a GRJ with **GatekeeperRejectReason.resourceUnavailable**. If the requested session does exist, the master key material is obtained from the TLS session, and used (along with **random** from the GRQ and a gatekeeper-generated **random2**) to compute the authentication key for the RAS exchange. The **sessionID**, the **cipherSuite**, the **compress** method, and the gatekeeper's **nonce** shall be returned in the profile **ClearToken** of a GCF.
+
+If the gatekeeper can support TLS session negotiation, it shall compute the master key material as specified by the profile, assign a new session ID and return it in the profile **ClearToken** in the
+
+**sessionID**. The profile **ClearToken** shall also contain the required security parameters from step 2, above, along with a single selected **cipherSuite**, a single selected **compress** method, and the non-zero **sessionID**. Note that the key exchange method of the selected ciphersuite is immaterial. If the gatekeeper agrees to TLS protection of call signalling, all call signalling transport addresses exchanged in the subsequent RRQ/RCF or ARQ/ACF messages shall be TLS-enabled.
+
+If TLS negotiation and/or gatekeeper routing are not supported by the gatekeeper, then no TLS parameters shall be returned, but the authentication procedures may continue from step 3, as described above. The endpoint shall decide if it is prepared to proceed without TLS protection of the call signalling; it may choose to do so and still make use of the authentication profile. Upon successful completion of the registration sequence, the TLS session is available for use in rapid establishment of one or more call signalling connections to the gatekeeper, without the need to renegotiate keying material via public-key methods.
+
+TLS sessions have finite lifetimes. Therefore, it may become necessary for an endpoint to renegotiate session parameters and obtain a new session ID. This may be accomplished by exchanging the necessary **ClearToken** elements as described above in a lightweight ("keepalive") registration sequence. Such a sequence shall not affect the RAS authentication key.
+
+## 9.2 Use of certificates to authenticate the gatekeeper
+
+Although it may be impractical to exchange verifiable certificate chains in RAS (due to UDP packet size limitations), it is possible to have a server authenticate itself to the endpoint if the endpoint can obtain a trusted copy of the server's public key via some other means. The server can simply include, in the GCF message, a **CryptoH323Token.cryptoGKCert** with the **ClearToken.tokenOID** set to the selected security profile OID.
+
+## 9.3 Use of alternative signalling security mechanisms
+
+The parameters negotiated as part of a security profile under this Recommendation may be employed in transport and/or application level security mechanisms as determined by the specific profile. The **profileInfo** sequence added to the H.235 **ClearToken** has been provided for such use, if needed.
+
+# 10 Threats (Informative)
+
+## 10.1 Passive attack
+
+At the present time, the scheme described above is not vulnerable to passive attack, subject to the provision that the Diffie-Hellman negotiation is not vulnerable to a passive attack.
+
+## 10.2 Denial-of-Service attacks
+
+This scheme is subject to an active Denial-of-Service attack in which a third party responds to the initial GRQ with a spurious GRJ. This type of attack may, or may not, be identifiable: if the rejecting gatekeeper is legitimate, and knows the shared secret (e.g., the gatekeeper is the endpoint's gatekeeper and the **rejectReason** is **resourceUnavailable**), then the gatekeeper could complete the key negotiation and authenticate the GRJ by returning, in the GRJ, the same elements described for the GCF (with the exception that the OID returned in **authenticationMode** of the GCF would be returned in a **ClearToken.profileInfo** element of the GRJ). This is left as part of the definition of a specific profile.
+
+If the GRJ is not authenticated, it could be from an attacker. Before acting on the GRJ (e.g., looking for an alternate gatekeeper), the endpoint should wait for possible receipt of another GRJ or an authenticated GCF from the proper gatekeeper. Otherwise, the endpoint should try each gatekeeper
+
+suggested in any **altGKInfo** received in all GRJs (one of which is, presumably, legitimate). In any case, only the proper gatekeeper (which knows the shared secret) can return an authenticated GCF.
+
+## 10.3 Man-in-the-Middle attacks
+
+It is tempting to consider the exchange using an unencrypted Diffie-Hellman key exchange, followed by use of the password or PIN to derive session keys from the Diffie-Hellman secret. However, this form of the exchange is subject to a Man-in-the-Middle attack that can be used to discover the "small" shared secret by brute force using the Integrity Check Value provided by the legitimate gatekeeper in the GCF message.
+
+Any MIM can, of course, manipulate any authenticated RAS message to insure that the message will be discarded due to integrity check failure. If all messages can be manipulated, service can be denied.
+
+## 10.4 Guessing attacks
+
+An attacker may pose as either a legitimate endpoint, a legitimate gatekeeper, or both (Man-in-the-Middle), and attempt to guess the shared secret by trial and error. For example, the attacker (who is presumed to know the details of the authentication profile, but not the shared secret) can guess a shared secret and attempt to register by sending a GRQ using this guess. In general, the gatekeeper will respond to this attempt with a GCF containing the GK's public key (encrypted using the real shared secret), and an ICV computed using the derived key which depends on the GK's decryption of the attacker's encrypted public key. The attacker can use this information to verify its guess of the shared secret. If the guess confirms the ICV of the GCF, then it is likely equal to the actual shared secret; this can be confirmed by continuing with the registration sequence. If the guess cannot be used to reproduce the ICV of the GCF, then the attacker must make another guess and try again. With a small keyspace for the shared secret, the number of guesses for a brute-force search may not be prohibitive. This attack requires the active participation of the gatekeeper (or the endpoint if the attacker is posing as the gatekeeper). The traditional method for countering such an attack is to monitor the number of unsuccessful attempts and, when a threshold is reached, treat all subsequent attempts as invalid (at least for a specified period) and raise an alarm, but such procedures are implementation dependent.
+
+## 10.5 Unencrypted gatekeeper half-key
+
+As mentioned above, the EKE exchange may remain secure, under certain conditions, if the responding gatekeeper does not encrypt its Diffie-Hellman half-key. In particular, the gatekeeper must be the first party to demonstrate its knowledge of the shared secret (PIN) via the ICV. If this is not the case, then the gatekeeper (or an interloper posing as the gatekeeper) could simply try all possible PINs to decrypt the endpoint's D-H half-key, compute the resulting D-H shared secret, derive the authentication key, and test it against the ICV supplied by endpoint. This is not possible if the endpoint can check the ICV supplied by the gatekeeper first, and refuse to continue with registration if the ICV is not as expected.
+
+The use of an unencrypted half-key is advantageous to the gatekeeper in that it can reuse its corresponding private key with multiple endpoints. This would not be possible if the same key were distributed encrypted under multiple shared secrets or PINs. A third-party observer could collect examples of the half-key encrypted under two different PINs, say, then could search through the possible combinations of two PINs to see which pair produced the same half-key when decrypted. If there are, say, $10^8$ possible PINs, then there are only $10^{16}$ possible combinations to try. This is a problem equivalent to searching for a 54-bit random number, which is not at all infeasible. Even if more than one possible solution is found, the correct one could be quickly determined by use of a third observation.
+
+
+
+
+
+# SERIES OF ITU-T RECOMMENDATIONS
+
+| | |
+|-----------------|---------------------------------------------------------------------------------------------|
+| Series A | Organization of the work of ITU-T |
+| Series D | General tariff principles |
+| Series E | Overall network operation, telephone service, service operation and human factors |
+| Series F | Non-telephone telecommunication services |
+| Series G | Transmission systems and media, digital systems and networks |
+| Series H | Audiovisual and multimedia systems |
+| Series I | Integrated services digital network |
+| Series J | Cable networks and transmission of television, sound programme and other multimedia signals |
+| Series K | Protection against interference |
+| Series L | Construction, installation and protection of cables and other elements of outside plant |
+| Series M | Telecommunication management, including TMN and network maintenance |
+| Series N | Maintenance: international sound programme and television transmission circuits |
+| Series O | Specifications of measuring equipment |
+| Series P | Telephone transmission quality, telephone installations, local line networks |
+| Series Q | Switching and signalling |
+| Series R | Telegraph transmission |
+| Series S | Telegraph services terminal equipment |
+| Series T | Terminals for telematic services |
+| Series U | Telegraph switching |
+| Series V | Data communication over the telephone network |
+| Series X | Data networks, open system communications and security |
+| Series Y | Global information infrastructure, Internet protocol aspects and next-generation networks |
+| Series Z | Languages and general software aspects for telecommunication systems |
\ No newline at end of file
diff --git a/marked/H/T-REC-H.235.7-200509-I_PDF-E/raw.md b/marked/H/T-REC-H.235.7-200509-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..a7cb14f98637481308323db5497ebeebea2321dc
--- /dev/null
+++ b/marked/H/T-REC-H.235.7-200509-I_PDF-E/raw.md
@@ -0,0 +1,1290 @@
+
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.235.7**
+
+(09/2005)
+
+SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS
+Infrastructure of audiovisual services – Systems aspects
+
+---
+
+**H.323 security: Usage of the MIKEY key
+management protocol for the Secure Real Time
+Transport Protocol (SRTP) within H.235**
+
+ITU-T Recommendation H.235.7
+
+# ITU-T H-SERIES RECOMMENDATIONS **AUDIOVISUAL AND MULTIMEDIA SYSTEMS**
+
+| | |
+|-------------------------------------------------------------------------------|--------------------|
+| CHARACTERISTICS OF VISUAL TELEPHONE SYSTEMS | H.100–H.199 |
+| INFRASTRUCTURE OF AUDIOVISUAL SERVICES | |
+| General | H.200–H.219 |
+| Transmission multiplexing and synchronization | H.220–H.229 |
+| Systems aspects | H.230–H.239 |
+| Communication procedures | H.240–H.259 |
+| Coding of moving video | H.260–H.279 |
+| Related systems aspects | H.280–H.299 |
+| Systems and terminal equipment for audiovisual services | H.300–H.349 |
+| Directory services architecture for audiovisual and multimedia services | H.350–H.359 |
+| Quality of service architecture for audiovisual and multimedia services | H.360–H.369 |
+| Supplementary services for multimedia | H.450–H.499 |
+| MOBILITY AND COLLABORATION PROCEDURES | |
+| Overview of Mobility and Collaboration, definitions, protocols and procedures | H.500–H.509 |
+| Mobility for H-Series multimedia systems and services | H.510–H.519 |
+| Mobile multimedia collaboration applications and services | H.520–H.529 |
+| Security for mobile multimedia systems and services | H.530–H.539 |
+| Security for mobile multimedia collaboration applications and services | H.540–H.549 |
+| Mobility interworking procedures | H.550–H.559 |
+| Mobile multimedia collaboration inter-working procedures | H.560–H.569 |
+| BROADBAND AND TRIPLE-PLAY MULTIMEDIA SERVICES | |
+| Broadband multimedia services over VDSL | H.610–H.619 |
+
+*For further details, please refer to the list of ITU-T Recommendations.*
+
+## **ITU-T Recommendation H.235.7**
+
+## **H.323 security: Usage of the MIKEY key management protocol for the Secure Real Time Transport Protocol (SRTP) within H.235**
+
+## **Summary**
+
+The purpose of this Recommendation is to describe security procedures for H.323/H.235-based systems for using the MIKEY key management protocol in conjunction with the Secure Real Time Transport Protocol.
+
+In earlier versions of the H.235 sub-series, this profile was contained in Annex G/H.235. Appendices IV, V, VI to H.235.0 show the complete clause, figure, and table mapping between H.235 versions 3 and 4.
+
+### **Source**
+
+ITU-T Recommendation H.235.7 was approved on 13 September 2005 by ITU-T Study Group 16 (2005-2008) under the ITU-T Recommendation A.8 procedure.
+
+### **Keywords**
+
+Media encryption, MIKEY key management, multimedia security, secure Real Time Transport Protocol, security profile, SRTP.
+
+## FOREWORD
+
+The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications. The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU-T study groups which, in turn, produce Recommendations on these topics.
+
+The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
+
+In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
+
+### NOTE
+
+In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure e.g. interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
+
+### INTELLECTUAL PROPERTY RIGHTS
+
+ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
+
+As of the date of approval of this Recommendation, ITU had not received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementors are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database.
+
+© ITU 2006
+
+All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
+
+## CONTENTS
+
+| | Page |
+|-----------------------------------------------------------------------|------|
+| 1 Scope ..... | 1 |
+| 2 References..... | 1 |
+| 2.1 Normative references..... | 1 |
+| 2.2 Informative references and Bibliography ..... | 2 |
+| 3 Definitions ..... | 2 |
+| 4 Symbols and abbreviations ..... | 2 |
+| 5 Conventions ..... | 3 |
+| 6 Introduction ..... | 4 |
+| 7 Overview and scenarios..... | 5 |
+| 7.1 MIKEY operation at "session level" ..... | 6 |
+| 7.2 MIKEY operation at "media level" ..... | 7 |
+| 7.3 MIKEY capability negotiation ..... | 8 |
+| 8 Security profile using symmetric security techniques ..... | 9 |
+| 8.1 Terminating a H.323 call..... | 14 |
+| 8.2 TGK re-keying and CSB updating ..... | 15 |
+| 8.3 H.245 tunnelling support..... | 16 |
+| 8.4 SRTP algorithms ..... | 16 |
+| 8.5 List of object identifiers..... | 17 |
+| 9 Security profile using asymmetric security techniques ..... | 17 |
+| 9.1 Terminating a H.323 call..... | 21 |
+| 9.2 TGK re-keying and CSB updating ..... | 21 |
+| 9.3 H.245 tunnelling support..... | 23 |
+| 9.4 SRTP algorithms ..... | 23 |
+| 9.5 List of object identifiers..... | 23 |
+| Appendix I – MIKEY-DHHMAC option ..... | 23 |
+| I.1 Terminating a H.323 call..... | 27 |
+| I.2 TGK re-keying and CSB updating ..... | 28 |
+| Appendix II – Using H.235.4 for establishing a pre-shared secret..... | 30 |
+| II.1 Terminating a H.323 call..... | 32 |
+| II.2 TGK re-keying and CSB updating ..... | 32 |
+
+## Introduction
+
+The purpose of this Recommendation is to provide recommendations of security procedures for H.323/H.235-based systems to use the IETF MIKEY key management protocol in conjunction with the IETF SRTP security protocol.
+
+This Recommendation is written as a security profile of ITU-T Rec. H.235 that is offered as an option and may complement the other media security features of ITU-T Rec. H.235.6.
+
+This Recommendation enables the deployment of SRTP media security where the MIKEY key management supplies the necessary keys and security parameters among the involved endpoints end-to-end. This Recommendation can be deployed within a H.323 domain among H.235.7-enabled H.323 systems. This Recommendation defines the security protocol extensions to H.225.0 RAS and Call Signalling as well as H.245, along with the corresponding procedures. Furthermore, this Recommendation provides the capabilities to support interworking with IETF SIP entities that have implemented the MIKEY key management and SRTP.
+
+## H.323 security: Usage of the MIKEY key management protocol for the Secure Real Time Transport Protocol (SRTP) within H.235
+
+# 1 Scope
+
+The purpose of this Recommendation is to provide recommendations of security procedures for H.323/H.235-based systems to use the MIKEY key management protocol in conjunction with the SRTP security protocol.
+
+This security profile is offered as an option and may complement the other media security features of H.235.6.
+
+# 2 References
+
+## 2.1 Normative references
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
+
+- ITU-T Recommendation H.225.0 (2003), *Call signalling protocols and media stream packetization for packet-based multimedia communication systems*.
+- ITU-T Recommendation H.235.0 (2005), *H. 323 security: Framework for security in H-series (H.323 and other H.245-based) multimedia systems*.
+- ITU-T Recommendation H.235.1 (2005), *H.323 security: Baseline security profile*.
+- ITU-T Recommendation H.235.3 (2005), *H.323 security: Hybrid security profile*.
+- ITU-T Recommendation H.235.4 (2005), *H.323 security: Direct and selective routed call security*.
+- ITU-T Recommendation H.245 (2005), *Control protocol for multimedia communication*.
+- ITU-T Recommendation H.323 (2003), *Packet-based multimedia communication systems*.
+- ITU-T Recommendation X.800 (1991), *Security Architecture for Open Systems Interconnection for CCITT applications*.
+- ISO/IEC 10118-3:2004, *Information Technology – Security techniques – Hash functions – Part 3: Dedicated hash functions*.
+- IETF RFC 3550 (2003), *RTP: A Transport Protocol for Real-Time Applications*.
+- IETF RFC 3711 (2004), *The Secure Real Time Transport Protocol (SRTP)*.
+- IETF RFC 3830 (2004), *MIKEY: Multimedia Internet KEYing*.
+
+## 2.2 Informative references and Bibliography
+
+- IETF RFC 1305 (1992), *Network Time Protocol (Version 3) Specification, Implementation and Analysis*.
+- IETF RFC 2327 (1999), *SDP: Session description protocol*.
+- IETF RFC 2631 (1999), *Diffie-Hellman Key Agreement Method*.
+- IETF RFC 3261 (2002), *SIP: Session Initiation Protocol*.
+- IETF RFC 3264 (2002), *An Offer/Answer Model with the Session Description Protocol (SDP)*.
+- IETF RFC ssss (2005), M. Handley, Van Jacobson, C. Perkins: *SDP: Session Description Protocol*, draft-ietf-mmusic-sdp-new-24.txt.
+- IETF RFC wwww (2005), J. Arkko, E. Carrara et al: *Key Management Extensions for Session Description Protocol (SDP) and Real Time Streaming Protocol (RTSP)*, Internet Draft draft-ietf-mmusic-kmgmt-ext-14.txt, Work in Progress.
+- IETF RFC zzzz (2005), M. Echner: *HMAC-authenticated Diffie-Hellman for MIKEY*, Internet Draft draft-ietf-msec-MIKEY-DHHMAC-11.txt, Work in Progress.
+
+# 3 Definitions
+
+None.
+
+# 4 Symbols and abbreviations
+
+This Recommendation uses the following abbreviations:
+
+| | |
+|--------------|--------------------------------------------------------------------|
+| $a, b, e, d$ | private DH key of EP A, EP B, GK E, GK D |
+| Cert | digital certificate (see RFC 3830) |
+| CP/C | CallProceeding-to-Connect |
+| CSB | Crypto Session Bundle (see RFC 3830) |
+| $CT_B, CT_A$ | ClearToken for endpoint B, ClearToken for endpoint A (see H.235.4) |
+| DRC1 | Direct-routed Call (see H.235.4) |
+| $ENC_k(x)$ | Encryption of $X$ using key $k$ |
+| env_key | Envelope key (RFC 3830) between endpoint B and endpoint A |
+| EP | Endpoint |
+| ESC | H.245 EndSessionCommand |
+| DH | Diffie-Hellman |
+| $DH_A$ | DH half-key of endpoint A |
+| $DH_B$ | DH half-key of endpoint B |
+| $g^a, g^b$ | Diffie-Hellman half-key of EP A, EP B |
+| $g^e, g^d$ | Diffie-Hellman half-key of GK E, GK D |
+| GK | Gatekeeper |
+| HDR | MIKEY header payload (see RFC 3830) |
+| $ID_A, ID_B$ | Identity (i.e., endpoint ID) of endpoint A, Identity of endpoint B |
+
+| | |
+|----------------------------|------------------------------------------------------------------------------|
+| IETF | Internet Engineering Task Force |
+| Imsg | MIKEY message of the initiator (see RFC 3830) |
+| KEMAC | MIKEY KEMAC payload message (see RFC 3830) |
+| MAC( k , x ) | Keyed MAC on x using key k |
+| Ma | MIKEY authentication key (see RFC 3830) |
+| Me | MIKEY encryption key (see RFC 3830) |
+| MIKEY | Multimedia Internet Keying |
+| NTP | Network Time Protocol |
+| PKE | MIKEY PKE payload message (see RFC 3830) |
+| PKI | Public-Key Infrastructure |
+| PRF | Pseudo-Random Function (MIKEY-PRF, see RFC 3830 sections 4.1.2-4.1.4) |
+| Rand | random nonce (see RFC 3830) |
+| Rmsg | MIKEY message of the responder (see RFC 3830) |
+| rand() | random value |
+| RSA | Rivest, Shamir and Adleman (public key algorithm) |
+| sa , sb | shared secret among endpoint A and GK, shared secret among endpoint B and GK |
+| sl | shared secret among gatekeepers |
+| SDP | Session Description Protocol |
+| SHA1 | Secure Hash Algorithm 1 (ISO/IEC 10118-3) |
+| SIP | Session Initiation Protocol |
+| SP | Security Policy (see RFC 3830) |
+| SRTCP | Secure Real-time Transport Control Protocol |
+| SRTP | Secure Real-time Transport Protocol (see RFC 3711) |
+| SSRC | Synchronization source (RTP) |
+| T | Timestamp (see RFC 3830) |
+| TGK | Traffic Generating Key (see RFC 3830) between endpoint A and endpoint B |
+| V | Verification message field (see RFC 3830) |
+| ZZ AB | dynamic shared H.323 secret ZZ AB |
+| {} | Zero, one or more occurrences |
+| [] | Optional element |
+
+# 5 Conventions
+
+The object identifiers are referenced through a symbolic reference in the text (e.g., "G1"), clauses 8.5 and 9.5 list the actual numeric values for the symbolic object identifiers, for further information see also clause 5/H.235.0.
+
+Table 1 defines the five MIKEY key management protocols that are being referenced throughout this Recommendation:
+
+**Table 1/H.235.7 – MIKEY key management protocols**
+
+| MIKEY protocol | Description | OID value | Parameter identifier | Implementation |
+|----------------|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------|----------------------|-------------------------|
+| MIKEY | Any MIKEY protocol | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 76} | 76 | Mandatory to implement |
+| MIKEY-PS | Symmetric key distribution protocol using pre-shared symmetric keys and HMACs, (see RFC 3830). | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 72} | 72 | Mandatory to implement |
+| MIKEY-DHHMAC | Diffie-Hellman key agreement protocol using pre-shared symmetric keys and HMACs; (see RFC zzzz). | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 73} | 73 | Optional |
+| MIKEY-PK-SIGN | (RSA-based) public-key distribution protocol using digital signatures; (see RFC 3830). | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 74} | 74 | Mandatory to implement. |
+| MIKEY-DH-SIGN | Diffie-Hellman key agreement protocol using digital signatures; (see RFC 3830). | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 75} | 75 | Optional |
+
+MIKEY (cf. 1st row of Table 1) refers to the MIKEY protocol family generally without indicating specifically any particular MIKEY key management protocol variant such as MIKEY-PS, MIKEY-DHHMAC, MIKEY-PK-SIGN or MIKEY-DH-SIGN. The related implementation of MIKEY shall encompass processing of the MIKEY messages such as MIKEY common header payload (RFC 3830 section 6.1), but does not necessarily require any implementation of a particular MIKEY key management protocol or implementation of a particular MIKEY information payload. The corresponding OID and parameter identifier shall be used in those cases where an H.323 endpoint does not know the actually used MIKEY protocol variant. In any other cases, it is recommended to use the specific OID and parameter identifier of the actual MIKEY key management protocol variant instead.
+
+# 6 Introduction
+
+There has been interest in using the security features of IETF SRTP "Secure Real-time Protocol" from ITU-T Rec. H.235. While former versions of H.235 already offer various media security features such as voice encryption using block ciphers and some limited RTP authentication (anti spam option), there are strong reasons to deploy SRTP:
+
+- use a stream cipher for improved performance, robustness and security;
+- be interoperable with other SRTP terminals; such as SIP-based media terminals.
+
+NOTE – This Recommendation does not specify procedures for security interworking with SIP (RFC 3261); this remains for further study;
+
+- yield the improved security for RTCP protection;
+- obtain improved integrity spanning the entire RTP/RTCP packet;
+- deploy state-of-the art AES encryption algorithm;
+- use session encryption/authentication keys derived from a pseudo-random function at both ends.
+
+Further on, a need has been identified to provide an RSA-based key management in addition to the Diffie-Hellman key agreement schemes provided by H.235. Likewise, non-PKI-based key management techniques are felt to be useful in the case where public-key infrastructures are considered not to be the choice. There is also interest to address the issues of lawful interception in the context of key management.
+
+The IETF has also made efforts to define a real-time capable key management scheme MIKEY (RFC 3830). This generic key management scheme interfaces well with SRTP and is able to provide master keys (TGKs) as well as session traffic keys either end-to-end or possibly end-to-middle/hop-by-hop. MIKEY is an optimized key management protocol that completes within at most two messages, making it ideal for fast start call setup in H.323.
+
+This Recommendation provides security procedures to deploy the MIKEY key management protocols from within H.323/H.235 in order to support SRTP media security. It is noted that there might be other alternative ways by which SRTP could be supported within H.323/H.235 but such measures are not addressed in this Recommendation and remain for further study.
+
+This Recommendation deploys the MIKEY key management protocols in a manner that is conceptually similar to the approach described in RFC wwwww where SIP (RFC 3261) carries MIKEY within SDP (RFC 2327, RFC ssss and RFC 3264).
+
+This Recommendation provides two security profiles with security procedures for two very distinct security infrastructures:
+
+- symmetric key-based security infrastructure supporting multiple gatekeepers (see clause 8); and
+- asymmetric key-based security infrastructure (PKI) supporting multiple gatekeepers (see clause 9).
+
+# 7 Overview and scenarios
+
+Figure 1 shows the general scenario that this Recommendation addresses. At least two distinct H.323 endpoints A and B are part of this scenario. These endpoints may be H.323 terminals or H.323 media gateways, the latter with potential interface to other packet- or non-packet-based networks. In addition, at least one gatekeeper is assumed to be part of the environment. In case, there is only a single gatekeeper available, it is assumed that all H.323 endpoints are within that single gatekeeper zone only. In case multiple, chained gatekeepers exist, H.323 endpoints may be placed within different gatekeeper zones. It is further assumed that H.323 endpoints communicate directly end-to-end using the RTP media protocol.
+
+
+
+```
+
+graph LR
+ subgraph H.323_Domain
+ GK_prime[GK']
+ GK[GK]
+ end
+ EPA[H.323 EP A] -- H.323 --> GK_prime
+ GK_prime -- H.323 --> GK
+ GK -- H.323 --> EPB[H.323 EP B]
+ EPA <--> |RTP| EPB
+
+```
+
+Figure 1/H.235.7 – Scenario: A network diagram showing an H.323 Domain. It includes two endpoints, H.323 EP A on the left and H.323 EP B on the right. Between them are two gatekeepers: GK' (dashed box) and GK (shaded box). H.323 signaling arrows connect EP A to GK', GK' to GK, and GK to EP B. A direct bidirectional arrow labeled RTP connects EP A and EP B. The diagram is labeled H.235.7\_F01.
+
+**Figure 1/H.235.7 – Scenario**
+
+Figure 2 shows the general security scenario indicating the usage of the MIKEY key management protocols and the SRTP media security protocol. The MIKEY key management protocols run between the H.323 endpoints A and B; the MIKEY key management protocols are encapsulated within containers within the H.245 signalling handshakes (Terminal Capability Set, Request Mode, Open Logical Channel handshakes and MiscellaneousCommand) and are transparent to any intermediate Gatekeeper(s).
+
+It is noted that an H.323 endpoint may actually be a gateway. For example, such a gateway may provide an interworking function to interface with SIP-based systems. In this case, the gateway may not necessarily terminate MIKEY but may further relay MIKEY and extend MIKEY for truly end-to-end key management among the involved multimedia terminals, thereby supporting end-to-end media security with SRTP. This approach would support security interworking between H.323/H.235 and SIP-based systems. The exact interworking functionality or specification of such gateways is not the subject of this Recommendation and remains for further study.
+
+
+
+```
+
+graph LR
+ subgraph H.323_Domain
+ GK_prime[GK']
+ GK[GK]
+ end
+ EPA[H.323 EP A] -- H.323 --> GK_prime
+ GK_prime -- H.323 --> GK
+ GK -- H.323 --> EPB[H.323 EP B]
+ EPA <--> |MIKEY| EPB
+ EPA <--> |SRTP| EPB
+
+```
+
+Figure 2/H.235.7 – Security scenario with MIKEY and SRTP: This diagram is similar to Figure 1 but adds security protocols. H.323 signaling flows through GK' and GK. A bidirectional arrow labeled MIKEY connects EP A and EP B, passing through the gatekeepers. Another bidirectional arrow labeled SRTP connects EP A and EP B directly. The diagram is labeled H.235.7\_F02.
+
+**Figure 2/H.235.7 – Security scenario with MIKEY and SRTP**
+
+All the key management protocols described in this Recommendation proceed in two stages:
+
+- Stage 1 occurs during the H.225.0 RAS and Call Signalling phase. For the symmetric-key MIKEY protocols (MIKEY-PS or MIKEY-DHHMAC) this stage establishes an end-to-end shared $ZZ_{AB}$ between the endpoints A and B that is deployed as a pre-shared secret for MIKEY. For the asymmetric MIKEY protocols (MIKEY-PK-SIGN and MIKEY-DH-SIGN) this stage establishes dynamic shared secrets between the endpoint and its next hop (typically its serving gatekeeper); the dynamic shared secret is not related to MIKEY but serves to secure the H.225.0 Call Signalling between the endpoint and its next hop.
+- Stage 2 occurs during the H.225.0 Call Signalling/H.245 protocol phases. This stage negotiates and runs the MIKEY protocol (MIKEY-PS, MIKEY-DHHMAC, MIKEY-PK-SIGN or MIKEY-DH-SIGN) between the endpoints A and B and establishes the MIKEY TGK. During stage 2, the MIKEY endpoints may also run the MIKEY re-keying and key update protocol to refresh or update the TGK. Terminating a call and discarding key material (TGK) may further occur during stage 2.
+
+## 7.1 MIKEY operation at "session level"
+
+The MIKEY key management protocols may operate on a "session-level"; i.e., the MIKEY TGK is applied for more than one media stream. It is recommended to run MIKEY at "session level" during the **TerminalCapability** handshake.
+
+**TerminalCapabilitySet** shall use **h235SecurityCapability** where **genericH235SecurityCapability** is used within **encryptionAuthenticationAndIntegrity** as follows:
+
+- **capabilityIdentifier** shall hold one of the MIKEY OIDs within **standard**;
+- **maxbitRate** and **collapsing** remain unused;
+- **nonCollapsing** with the following **GenericParameters** set when MIKEY is executed at a "session level" for all logical channels:
+ - **parameterIdentifier**: in **standard** using the value 0 to indicate MIKEY at "session level".
+ - **parameterValue** with the MIKEY (I or R) binary-encoded message within **octetString**.
+ - **supersedes** remains empty/unused.
+- **nonCollapsingRaw** remains unused;
+- **transport** (unused or default transport parameters).
+
+**OpenLogicalChannel** and **OpenLogicalChannelAck** shall not use **encryptionSync** for MIKEY operating at "session level". Likewise, **RequestMode** shall not use **genericModeParameters** of **ModeElement** for MIKEY when MIKEY is operating at "session level".
+
+**MiscellaneousCommand** shall use **encryptionUpdate** where **genericParameter** is used as follows:
+
+- **parameterIdentifier**: in **standard** using the value of 0 to indicate MIKEY TGK re-keying and CSB updating at "session level".
+- **parameterValue** with the MIKEY (I or R) binary-encoded message within **octetString**.
+- **supersedes** remains empty/unused.
+
+**LogicalChannelNumber** shall be ignored for MIKEY at session level and may hold any value.
+
+**RequestMode** shall use **capabilityIdentifier** within **genericModeParameters** of **ModeElement** as follows:
+
+- **capabilityIdentifier** shall hold one of the MIKEY OIDs within **standard**;
+- **maxbitRate** and **collapsing** remain unused;
+- **nonCollapsing** with the following **GenericParameters** set when MIKEY is executed at a "session level" for a particular logical channel:
+ - **parameterIdentifier**: in **standard** using the value 0 to indicate MIKEY at "session level".
+ - **parameterValue** with the MIKEY (I or R) binary encoded message within **octetString**.
+ - **supersedes** remains empty/unused.
+- **nonCollapsingRaw** remains unused;
+- **transport** (unused or default transport parameters).
+
+## 7.2 MIKEY operation at "media level"
+
+Likewise, the MIKEY key management protocols may alternatively operate on a "media-level"; i.e., the MIKEY TGK is applied only for a specific logical channel on a media stream. The **TerminalCapability** handshake should be used to negotiate the MIKEY protocol while **OpenLogicalChannel/Ack** should be used to transport the encoded MIKEY message.
+
+**TerminalCapabilitySet** shall use **h235SecurityCapability** where **genericH235SecurityCapability** is used within **encryptionAuthenticationAndIntegrity** as follows:
+
+- **capabilityIdentifier** shall hold one of the MIKEY OIDs within **standard**;
+- **maxbitRate**, **nonCollapsing** and **collapsing** remain unused;
+- **nonCollapsingRaw** remains unused;
+- **transport** (unused or default transport parameters).
+
+**OpenLogicalChannel** or **OpenLogicalChannelAck** shall use the **genericParameter** within **encryptionSync** as follows:
+
+- **parameterIdentifier**: in **standard** using the value of the parameter identifier (see Table 1) corresponding to the negotiated MIKEY protocol;
+- **parameterValue** with the MIKEY (I or R) binary-encoded message within **octetString**;
+- **supersedes** remains empty/unused;
+- **synchFlag** in **encryptionSync** shall be set to the dynamic payload number. **h235key** shall not be used by this Recommendation and shall be an empty octet string. **escrowentry** shall not be used.
+
+**MiscellaneousCommand** shall use **encryptionUpdate** where **genericParameter** within **encryptionSync** is used as follows:
+
+- **parameterIdentifier**: in **standard** using the value of the parameter identifier (see Table 1) corresponding to the negotiated MIKEY protocol;
+- **parameterValue** with the MIKEY (I or R) binary-encoded message within **octetString**;
+- **supersedes** remains empty/unused.
+
+**RequestMode** shall use **capabilityIdentifier** within **genericModeParameters** of **ModeElement** as follows:
+
+- **capabilityIdentifier** shall hold one of the MIKEY OIDs within **standard**;
+- **maxbitRate** and **collapsing** remain unused;
+- **nonCollapsing** with the following **GenericParameters** set when MIKEY is executed at a "media level" for a particular logical channel:
+ - **parameterIdentifier**: in **standard** using the value of the parameter identifier (see Table 1) corresponding to the negotiated MIKEY protocol.
+ - **parameterValue** with the MIKEY (I or R) binary-encoded message within **octetString**.
+ - **supersedes** remains empty/unused.
+- **nonCollapsingRaw** remains unused;
+- **transport** (unused or default transport parameters).
+
+## 7.3 MIKEY capability negotiation
+
+If MIKEY protocols are conveyed both in Terminal Capability Set/Request Mode and Open Logical Channel handshake, then the MIKEY in the Open Logical Channel handshake shall take precedence and overwrite prior key management information gained during Terminal Capability Set/Request Mode.
+
+Since endpoints may not implement the full set of all MIKEY key management protocols, or may even not have implemented any of them (i.e., endpoints potentially do not support this Recommendation at all), calling endpoints may not know about the supported MIKEY capabilities
+
+at the called endpoint. Therefore, it is recommended that the MIKEY key management capability be negotiated using Terminal Capability Set handshakes.
+
+During terminal capability negotiation, the calling endpoint should indicate its supported and acceptable MIKEY key management protocols. For this, the calling endpoint should indicate its supported MIKEY security capabilities. Within **genericH235SecurityCapability**, the calling endpoint shall set **capabilityIdentifier** to the OID value (see Table 1) according to the preferred security profile and MIKEY key management. The calling endpoint is also encouraged to supply other supported MIKEY protocols, in decreasing preference order according to its security policy and constraints.
+
+A called endpoint that does not support this Recommendation shall reject the call using **ReleaseComplete** with **ReleaseCompleteReason** set to **securityDenied** or may continue unsecured if allowed by its security policy rules. The caller is able to deduce that the callee does not support the requested MIKEY capability by inspecting the returned capability that does not convey a MIKEY capability.
+
+A called endpoint that supports this Recommendation but does not support a requested MIKEY protocol capability shall indicate its supported and acceptable MIKEY protocols during the Terminal Capability Set negotiation handshake.
+
+A called endpoint that supports this Recommendation and a requested MIKEY protocol, but does not support a particular combination of MIKEY/SRTP security algorithms and parameters (i.e., MIKEY security policy, SP), shall convey a MIKEY error message as response (see RFC 3830 sections 5.1.1, 5.1.2 and 6.1.2). The called endpoint should include its supported and acceptable MIKEY security policy (SP) with MIKEY/SRTP security algorithms and parameters.
+
+This Recommendation shall use tunnelling of H.245 messages within H.225.0 Call Signalling for the purpose of securing the H.225.0 Call Signalling messages. This Recommendation may even use non-tunnelling of H.245 message but then it is required that at least an integrity-protected secured transport (TLS, IPsec) be used to secure the H.245 messages. This variant is not further detailed in this Recommendation.
+
+This Recommendation should also preferably use fast connect where the tunnelled H.245 messages are encapsulated within H.225.0 Call Signalling Setup and CallProceeding-to-Connect. This would allow completing the MIKEY handshakes within two roundtrips at most.
+
+In order to protect against down-grade attacks during capability negotiation, an endpoint conforming to this specification shall adhere to the procedure described in RFC 3830 section 6.15 where the caller constructs a list of offered MIKEY key management protocol identifiers (KMIDs); see RFC 3830 section 8.3, and includes this list within the MIKEY general extension payload of each offered MIKEY protocol.
+
+For a full-duplex channel, SRTP is instantiated twice, once in each direction; while only one dynamic MIKEY master key (TGK) is negotiated between the H.323 endpoints. The endpoints instantiate directional SRTP session keys by applying distinct MIKEY crypto session identifiers to the MIKEY and SRTP key derivation function.
+
+# 8 Security profile using symmetric security techniques
+
+This clause describes a security profile of this Recommendation where only symmetric security techniques are deployed.
+
+Figure 3 shows a scenario that assumes (administered or configured) hop-by-hop shared secrets among the H.323 entities in the H.323 domain (*sa*, *sb* and *sl*); thereby permitting the deployment of H.235.1 baseline security (message authentication and/or integrity) of the H.225.0 RAS and Call signalling protocols. For ensuring authenticity (i.e., integrity) of the signalling messages exchanged
+
+between EP B and EP A, it is required that H.235.1 baseline security is deployed in a hop-to-hop fashion.
+
+Endpoint B is assumed to be loosely time-synchronized with the other H.323 endpoints; otherwise MIKEY is not able to run securely.
+
+NOTE – This Recommendation does not describe any means for (securely) synchronizing time clocks among the involved entities. It is generally assumed that such time synchronization can be achieved within corporate networks.
+
+
+
+Diagram of Figure 3/H.235.7 – Hop-by-Hop scenario only with shared secrets. The diagram shows two H.323 endpoints, A and B, connected via two gatekeepers, GK D and GK E. H.323 signaling flows from EP A to GK D, then to GK E, and finally to EP B. SRTP data flows from EP B to GK E, then to GK D, and finally to EP A. Above the endpoints, three shared secrets are indicated: 'Shared-secret sa' between EP A and GK D, 'Shared-secret sl' between GK D and GK E, and 'Shared-secret sb' between GK E and EP B. A bracket labeled 'Dyn. DH shared-secret ZZ\_AB' spans from EP A to EP B. Another bracket labeled 'Dyn. MIKEY TGK' also spans from EP A to EP B. Below the diagram, three 'H.235.1 Baseline security profile' labels are shown, each with a corresponding hatched pattern box. The label 'H.235.7\_F03' is in the bottom right corner.
+
+**Figure 3/H.235.7 – Hop-by-Hop scenario only with shared secrets**
+
+The basic approach to this scenario is that the MIKEY-PS key distribution protocol (symmetric using pre-shared secrets), or if perfect forward secrecy is of concern, the MIKEY-DHHMAC key agreement protocol (Diffie-Hellman using HMAC), is being deployed in the H.323 domain. RFC zzzz is offered as an option complementing MIKEY, see Appendix I.
+
+For EP B (MIKEY initiator) calling EP A (MIKEY responder), a dynamic shared secret $ZZ_{AB}$ is established between EP A and EP B as part of H.225.0 RAS and Setup for a call. The $ZZ_{AB}$ dynamic shared secret is used as the MIKEY pre-shared secret further on, from which MIKEY in EP A and in EP B derives symmetric encryption and authentication keys (not shown in this figure).
+
+The calling EP B generates the MIKEY *TGK* (this is actually a master key) for the peer EP A. EP B builds the MIKEY protocol messages and encapsulates the entire MIKEY message in a container within the tunnelled **TerminalCapabilitySet/OpenLogicalChannel** message. GK E in a GK-routed environment would simply forward the MIKEY container to the other endpoint A without any decoding of MIKEY itself. EP A terminates the MIKEY protocol in the H.323 domain.
+
+Thus, EP B and EP A establish a *TGK*.
+
+The MIKEY-PS or MIKEY-DHHMAC protocol runs between EP B and EP A. In this way, the endpoints obtain the *TGK* and are able to derive the SRTP/SRTCP session keys. SRTP and SRTCP protocols apply these session keys end-to-end.
+
+NOTE 1 – MIKEY provides all the necessary parameters for SRTP (algorithms, key lengths, key lifetime, etc.) as part of the conveyed MIKEY policies.
+
+The gatekeepers are not actively involved in MIKEY processing and act as a store and forwarding relay of the encapsulated MIKEY messages.
+
+For a call setup originating from the EP A, the procedure is similar in the reverse direction with EP A being the initiator and EP B the recipient.
+
+NOTE 2 – The scenario shown in Figure 3 also supports the direct-routed call signalling model with non-routing gatekeeper(s). In such a direct-routed environment, the H.225.0 call signalling messages (Setup etc.)
+
+would be sent end-to-end within the H.323 domain without being relayed by the gatekeeper. See Appendix II for illustrations on how to use H.235.4 for that purpose.
+
+NOTE 3 – MIKEY uses timestamps within the security protocol as a means to ensure replay protection of the key management message. This demands that the clocks of the endpoints are loosely time-synchronized (within some acceptable clock skew). It is believed that such time-synchronization can be achieved using manually configured time clocks or some network time synchronization protocol (e.g., NTP RFC 1305). As such, time synchronization within the H.323 domain should be feasible at least for corporate networks; see also RFC 3830 sections 5.4 and 9.3
+
+NOTE 4 – The combination of fast start and early media in conjunction with the MIKEY-DHHMAC protocol is not recommended. If fast start and early media is required then endpoints shall not use MIKEY-DHHMAC but rather apply MIKEY-PS.
+
+NOTE 5 – A scenario with only a single gatekeeper is a special case of the shown scenario with multiple gatekeepers. In this case, far-end gatekeeper/endpoint discovery is not necessary using LRQ/LCF.
+
+The following provides more detailed message flows of the scenario in Figure 3. This scenario assumes one or more routing gatekeepers within the H.323 domain where H.245 messages are being tunnelled within H.225.0 and fast start is applied.
+
+NOTE 6 – The flow diagrams also cover a direct-routed case (with non-routing gatekeepers) where H.225.0 call signalling messages are being exchanged directly between the endpoints without being forwarded by any gatekeeper, see Appendix II.
+
+The procedure described in this clause establishes an end-to-end shared secret $ZZ_{AB}$ among the H.323 endpoints EP A and EP B during stage 1 using Diffie-Hellman key agreement. This Diffie-Hellman key agreement occurs during the H.225.0 RAS registration and admission phase and, in case of multiple gatekeepers, during the inter-gatekeeper **LRQ/LCF**. The generated Diffie-Hellman shared secret serves as an end-to-end authentication key and lasts during the call. The MIKEY-PS (or MIKEY-DHHMAC) protocol occurs during stage 2 call establishment separately and establishes the MIKEY call-based secrets for the bearer channel.
+
+Appendix II describes an alternative and optional procedure using the DRC1 procedure of H.235.4 to let the gatekeeper generate and distribute a shared secret to EP A and EP B.
+
+The diagram in Figure 4 also shows the H.235.1 baseline security profile where each message is being secured entirely (authentication and integrity). Yet, similar message flows result when the authentication-only option of the baseline security profile is being applied (not shown). In this case, the HMAC shall not be computed over the entire message but rather only upon a subset (**ClearToken** inside **CryptoToken**) of the RAS/H.225.0 message.
+
+The example message flow shows the case for EP B (MIKEY initiator) calling EP A (MIKEY responder) using fast start (see Figure 4). The H.323 endpoints A and B initially register with the gatekeeper using **RRQ** and submit their DH half-key ( $g^a$ and $g^b$ ). The **ClearToken** (within the **CryptoHashedToken**) shall be used to convey the Diffie-Hellman half-key during **RRQ** and **ACF**. For this reason, the **challenge** field shall not be used.
+
+The Diffie-Hellman half-key shall be conveyed in **dhkey** as part of the **ClearToken**. The **ClearToken** shall use OID "TG" (see 8.5) instead of the baseline H.235.1 **ClearToken** OID "T", indicating that this security profile is being used in conjunction with H.235.1. The gatekeeper shall keep each half-key as long as the endpoint is registered. Endpoints when executing keep-alives or using lightweight re-registration (re-RRQ) shall not include any DH half-key. The **RCF** shall use the "TG" OID in the **ClearToken** to indicate that the gatekeeper supports this security profile.
+
+EP B trying to call EP A, asks for admission from the gatekeeper D (**ARQ**). The **ARQ** shall use the "TG" OID in the **ClearToken**. The OID "TG" shall be used in any other RAS messages within the **ClearToken** too.
+
+The scenario covers multiple, chained gatekeepers but may equally also support only a single gatekeeper. Discovery of the far-end endpoint should be accomplished according to 8.1.6/H.323
+
+"Optional called endpoint signalling" using **LRQ/LCF**. This is how the initiating endpoint locates the far-end GK zone and thereby obtains the Diffie-Hellman half-key of the targeted called endpoint. If GK E needs to locate the far-end GK zone, then GK E shall send a **LRQ** message. For the multicast case, the **generalID** in the CryptoToken of **LRQ** shall not be used. If GK D does not support this profile, then GK D shall return **LRJ**. Otherwise, GK D shall return **LCF** that includes the Diffie-Hellman half-key of EP A. GK E shall then reply with **ACF** including the Diffie-Hellman half-key of EP A. If GK E was not able to locate the far-end endpoint A then GK E shall return **ARJ**.
+
+The communication between two gatekeepers shall be secured according to H.235.1. For this, it is assumed that a common shared secret *sl* is available. Since **LRQ** among gatekeepers is typically a multicast message, the shared secret *sl* typically cannot be a pair-wise shared secret but is assumed to be actually a group-based shared secret within the potential cloud of gatekeepers. This assumption limits scalability in the general case, and does not provide source authentication. However, it is believed that in corporate networks with a limited, small number of well-known gatekeepers, such constraint and security limitations are still acceptable. Securing inter-gatekeeper multicast communication using digital signatures could overcome these limitations; yet this remains for further study.
+
+EP B obtains the Diffie-Hellman half-key of EP A (**ACF**). The **ACF** shall hold the Diffie-Hellman key of the called endpoint within **dhkey** within the baseline **ClearToken** of H.235.1 but using OID "TG" instead of "T". Any other fields within the **ClearToken** shall not be modified by this security profile.
+
+NOTE 7 – The endpoints operate with a DH half-key that is static during the overall registration time and for all calls. This should not be a security weakness as long as each endpoint applies truly random half-keys.
+
+However, the endpoints shall provide a fresh 512 bit random value (i.e., 64 octets) within **challenge** along with their DH half-key, (see RFC 2631, section 2.3). These **challenge** values are call-based and introduce the necessary randomness and timeliness in the DH key generation.
+
+The originating EP B is then able to compute $g^{ab}$ and then the dynamic shared secret $ZZ_{AB}$ using a random **challenge** with the result obtained from MIKEY-PRF( $g^{ab}$ , 0x12F905FE || **challenge**) (see RFC 3830 sections 4.1.2-4.1.4). MIKEY is then able to derive the encryption (*Me*) and authentication keys (*Ma*) using the MIKEY-PRF (see RFC 3830 sections 4.1.2-4.1.4).
+
+During stage 2, the originating EP B shall generate a fresh MIKEY *TGK* and then shall build the MIKEY I\_message Imsg according to the MIKEY-PS protocol using *Me* and *Ma*; also the SRTP session keys can be derived from the *TGK* as described by RFC 3711, section 4.3 (not shown in the figures).
+
+The MIKEY I\_message shall be binary-encoded.
+
+The originating EP B should always include its DH half-key within **dhkey** in a **ClearToken**, thereby also enabling the GK-supported direct-routed model. The **ClearToken** shall be included as part of the Setup message and shall be sent towards the peer EP A. A routing gatekeeper shall forward the conveyed **ClearToken** (without modification of the MIKEY messages) to the next hop.
+
+The receiving EP A then computes $g^{ab}$ and the dynamic shared secret $ZZ_{AB}$ from MIKEY-PRF( $g^{ab}$ , 0x12F905FE || **challenge**) (see RFC 3830, sections 4.1.2-4.1.4). Then MIKEY derives the encryption (*Me*) and authentication keys (*Ma*) using the MIKEY-PRF (see RFC 3830, sections 4.1.2-4.1.4). Then the conveyed *TGKs* can be retrieved.
+
+From the *TGK* the receiving EP A is then able to derive the SRTP session keys as described by RFC 3711 section 4.3 (not shown in the figures).
+
+EP A may build a similar R\_message Rmsg but shall build that R\_message only when requested by EP B or if necessary (DH). That R\_message is being conveyed within the CallProceeding-to-Connect message (CP/C).
+
+The CallProceeding-to-Connect message (CP/C) is sent towards EP B.
+
+
+
+dyn. shared H.323 secret $ZZ_{AB} = \text{MIKEY-PRF}(g^{ab}, 0x12F905FE \parallel \text{challenge})$ ,
+ dyn. shared MIKEY encryption key $Me$ ,
+ dyn. shared MIKEY authentication key $Ma$
+
+Dyn. shared TGK (MIKEY)
+
+shared secret $sa$ Shared secret $sl$ shared secret $sb$
+
+**Stage 1:**
+
+- EP A: $a := \text{rand}()$
+- EP A → GK D: RRQ("TG", $g^a$ , $\text{HMAC}_{sa}(\text{RRQ})$ )
+- GK D → EP A: RCF("TG", $\text{HMAC}_{sa}(\text{RCF})$ )
+- EP B: $b := \text{rand}()$
+- EP B → GK E: RRQ("TG", $g^b$ , $\text{HMAC}_{sb}(\text{RRQ})$ )
+- GK E → EP B: RCF("TG", $\text{HMAC}_{sb}(\text{RCF})$ )
+- EP B → GK E: ARQ("TG", IDA, $\text{HMAC}_{sb}(\text{ARQ})$ )
+- GK E → EP B: ACF("TG", $g^a$ , $\text{HMAC}_{sb}(\text{ACF})$ )
+- EP B → GK E: Setup("TG", Imsg, $g^b$ , challenge, $\text{HMAC}_{sb}(\text{Setup})$ )
+- GK E → GK D: Setup("TG", Imsg, $g^b$ , challenge, $\text{HMAC}_{sl}(\text{Setup})$ )
+- GK D → EP A: Setup("TG", Imsg, $g^b$ , challenge, $\text{HMAC}_{sa}(\text{Setup})$ )
+
+**Stage 2:**
+
+- EP A → GK D: ARQ("TG", $\text{HMAC}_{sa}(\text{ARQ})$ )
+- GK D → EP A: ACF("TG", $\text{HMAC}_{sa}(\text{ACF})$ )
+- EP A → GK D: CP/C("TG", Rmsg, $\text{HMAC}_{sa}(\text{CP/C})$ )
+- GK D → GK E: CP/C("TG", Rmsg, $\text{HMAC}_{sl}(\text{CP/C})$ )
+- GK E → EP B: CP/C("TG", Rmsg, $\text{HMAC}_{sb}(\text{CP/C})$ )
+
+See Figure 5
+
+See Figure 6
+
+H.235.7\_F04
+
+Sequence diagram showing the interaction between H.323 EP A, GK D, GK E, and H.323 EP B. The diagram is divided into Stage 1 and Stage 2. Stage 1 involves key exchange and challenge-response. Stage 2 involves setup, ARQ, ACF, and CP/C messages. The diagram also shows the derivation of shared secrets sa, sl, and sb from a dynamic shared TGK.
+
+**Figure 4/H.235.7 – Example endpoint B calling endpoint A (GK-routed) with MIKEY-preshared**
+
+| |
+|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| $ \left. \begin{aligned} & \text{challenge} := \text{rand}() \\ & ZZ_{AB} = \text{MIKEY-PRF}(g^{ab}, 0x12F905FE \parallel \text{challenge}) \\ & Me := \text{PRF}(ZZ_{AB}, \dots), Ma := \text{PRF}(ZZ_{AB}, \dots) \\ & TGK := \text{rand}() \\ & I := \text{HDR}, T, \text{challenge}, [ID_B], \{SP\}, \text{ENC}_{Me}(TGK) \\ & \text{Imsg} := I, \text{MAC}(Ma, I) \end{aligned} \right\} \text{MIKEY} $ |
+|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+
+**Figure 5/H.235.7 – MIKEY-preshared processing by EP B**
+
+| |
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| $ \left. \begin{aligned} & ZZ_{AB} = \text{MIKEY-PRF}(g^{ab}, 0x12F905FE \parallel \text{challenge}) \\ & Me := \text{PRF}(ZZ_{AB}, \dots) \quad Ma := \text{PRF}(ZZ_{AB}, \dots) \\ & \text{retrieve } TGK \\ & \text{Rmsg} := \text{HDR}, T, [ID_A], \text{MAC}(Ma, \text{Rmsg} \parallel ID_B \parallel ID_A \parallel T) \end{aligned} \right\} \text{MIKEY} $ |
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+
+**Figure 6/H.235.7 – MIKEY-preshared processing by EP A**
+
+## 8.1 Terminating a H.323 call
+
+Since the involved endpoints maintain the state for MIKEY and SRTP, a proper termination procedure is vital. Figure 7 shows example message flows in case EP B (MIKEY initiator) terminates a call. Basically, the flow is according to 8.5/H.323 "Phase E – Call termination".
+
+NOTE – Figure 7 also shows optional disengage procedures for the case, when the endpoints completely de-register. The endpoints should then also discard the private DH-key ( $a$ or $b$ ) and the public DH half-key ( $g^a$ or $g^b$ ).
+
+Since the procedure for terminating a call is independent of this security profile, any applicable OID of the underlying security profile (H.235.1, H.235.3 etc.) may be used; thus, Figure 7 does not show any OID.
+
+If the endpoint registers again with the gatekeeper, then new DH half-keys shall be generated. However, complete de-registration is not necessary in any circumstance just for terminating the call. If the endpoint decides to stay registered with the gatekeeper, then the static DH half-keys may continue to be used.
+
+In case the endpoints stay registered and disengage is not being applied, the endpoints shall discard just the call-related information including the peer DH half-key, the **challenge**, the MIKEY keys $Me$ , $Ma$ , $TGK$ and related SRTP session information.
+
+
+
+dyn. shared H.323 secret $ZZ_{AB} = \text{MIKEY-PRF}(g^{ab}, 0x12F905FE \parallel \text{challenge})$ ,
+dyn. shared MIKEY encryption key $Me$ ,
+dyn. shared MIKEY authentication key $Ma$
+
+Dyn. shared $TGK$ (MIKEY)
+
+Shared secret $sa$ Shared secret $sl$ Shared secret $sb$
+
+```
+
+sequenceDiagram
+ participant EP_A as H.323 EP A
+ participant GK_D as GK D
+ participant GK_E as GK E
+ participant EP_B as H.323 EP B
+
+ Note right of EP_A: dyn. shared H.323 secret ZZ_AB = MIKEY-PRF(g^ab, 0x12F905FE || challenge),
+dyn. shared MIKEY encryption key Me,
+dyn. shared MIKEY authentication key Ma
+ Note right of EP_A: Dyn. shared TGK (MIKEY)
+ Note right of EP_A: Shared secret sa
+ Note right of GK_D: Shared secret sl
+ Note right of EP_B: Shared secret sb
+
+ EP_B->>GK_E: Facility("TG", ESC, HMAC_sb(Facility))
+ GK_E->>GK_D: Facility("TG", ESC, HMAC_sl(Facility))
+ GK_D->>EP_A: Facility("TG", ESC, HMAC_sa(Facility))
+ EP_A->>GK_D: Facility("TG", ESC, HMAC_sa(Facility))
+ GK_D->>GK_E: Facility("TG", ESC, HMAC_sl(Facility))
+ GK_E->>EP_B: Facility("TG", ESC, HMAC_sb(Facility))
+ EP_B->>GK_E: ReleaseComplete("TG", HMAC_sb(ReleaseComplete))
+ GK_E->>GK_D: ReleaseComplete("TG", HMAC_sl(ReleaseComplete))
+ GK_D->>EP_A: ReleaseComplete("TG", HMAC_sa(ReleaseComplete))
+ EP_A->>GK_D: ReleaseComplete("TG", HMAC_sa(ReleaseComplete))
+ Note left of EP_A: Discard:
+challengeString, ZZ_AB, g^b,
+Me, Ma, TGK_BA
+ EP_A->>GK_D: DRQ("TG", HMAC_sa(DRQ))
+ GK_D->>EP_A: DCF("TG", HMAC_sa(DCF))
+ Note left of EP_A: Discard:
+a, g^a
+ EP_B->>GK_E: DRQ("TG", HMAC_sb(DRQ))
+ GK_E->>EP_B: DCF("TG", HMAC_sb(DCF))
+ Note right of EP_B: Discard:
+challengeString, ZZ_AB, g^a,
+Me, Ma, TGK
+ Note right of EP_B: Discard:
+b, g^b
+
+```
+
+H.235.7\_F07
+
+Sequence diagram showing the termination of a call by endpoint B. The diagram involves H.323 EP A, GK D, GK E, and H.323 EP B. It shows the exchange of Facility, ReleaseComplete, DRQ, and DCF messages, with corresponding HMAC calculations and discarding of old keys.
+
+**Figure 7/H.235.7 – Example endpoint B terminates a call**
+
+## 8.2 TGK re-keying and CSB updating
+
+MIKEY has built-in support for TGK re-keying and/or CSB information updating. The profile of this Recommendation shall use the MIKEY-PS procedure in RFC 3830, section 4.5, or if perfect forward secrecy is of concern, RFC zzzz, section 3.1 for this purpose that allows updating the TGK before expiration, or to update other information without changing the TGK.
+
+The TGK re-keying and CSB updating mechanism is useful to protect a bundle of logical channels under the same security policy. For this, it is recommended running the (full) MIKEY-preshared protocol as described in clause 8 just for the first logical channel. Any subsequent logical channel that is to apply the same MIKEY security policy or the same TGK, should use the CSB updating mechanism without the TGK re-keying mechanism in this clause by making reference to the initial CSB-ID and by omitting updated TGK data. This allows setting up logical channels or MIKEY crypto sessions more efficiently than by running the full MIKEY protocol on each logical channel.
+
+The MIKEY TGK re-keying or CSB updating messages shall be encapsulated and conveyed in a **MiscellaneousCommand** within a Facility message. The **tokenOID** of the **ClearToken** shall be set to "TG".
+
+If MIKEY is run at "media level", EP B has to determine for which logical channel the TGK re-keying and/or CSB updating should apply. EP A as the responder would equally use the **MiscellaneousCommand** within Facility to convey the MIKEY R\_message (if any).
+
+For TGK re-keying (see Figure 8), the EP B as the MIKEY initiator shall generate a new TGK.
+
+EP A as the responder may confirm the obtained TGK re-keying message if necessary as requested by EP B. EP A builds similar R\_messages. EP B sends the R\_message within the Facility message towards EP A.
+
+For CSB update, the above procedure is similar except that the MIKEY message shall not hold any TGK.
+
+
+
+The diagram illustrates the sequence of messages for updating a key. At the top, a hierarchy of shared keys is shown using brackets and labels:
+
+- dyn. shared MIKEY encryption key $Me$ ,
+- dyn. shared MIKEY authentication key $Ma$
+- Dyn. shared TGK (MIKEY)
+- Shared secret $sa$
+- Shared secret $sl$
+- Shared secret $sb$
+
+The sequence of entities is: H.323 EP A, GK D, GK E, and H.323 EP B, connected by H.323 links.
+
+- EP B generates: $TGK := rand()$ , $I := HDR, T, [ID_B], \{SP\}, [ENC_{Me}(TGK)]$ , $Imsg := I, MAC(Ma, I)$ .
+- EP B sends to GK E: Facility("TG", Imsg), $HMAC_{sb}(Facility)$ .
+- GK E forwards to GK D: Facility("TG", Imsg), $HMAC_{sl}(Facility)$ .
+- GK D forwards to EP A: Facility("TG", Imsg), $HMAC_{sa}(Facility)$ .
+- EP A performs: [retrieve TGK], $R := HDR, T, [ID_A], V$ , $Rmsg := R, MAC(Ma, R)$ .
+- EP A sends to GK D: Facility("TG", Rmsg), $HMAC_{sa}(Facility)$ .
+- GK D forwards to GK E: Facility("TG", Rmsg), $HMAC_{sl}(Facility)$ .
+- GK E forwards to EP B: Facility("TG", Rmsg), $HMAC_{sb}(Facility)$ .
+
+The diagram is labeled H.235.7\_F08 at the bottom right.
+
+Sequence diagram for Figure 8/H.235.7 showing endpoint B updating a key. The diagram illustrates the exchange of Facility messages between H.323 EP A, GK D, GK E, and H.323 EP B. EP B initiates the process by generating a new TGK and sending an Imsg. EP A responds with an Rmsg. The diagram also shows the hierarchy of shared keys: dyn. shared MIKEY encryption key Me, dyn. shared MIKEY authentication key Ma, Dyn. shared TGK (MIKEY), Shared secret sa, Shared secret sl, and Shared secret sb.
+
+**Figure 8/H.235.7 – Example endpoint B updating a key**
+
+NOTE – The confirming Facility from EP A to EP B is optional and only necessary when EP B also requests a verification message (MIKEY R\_message) using the V flag in MIKEY HDR.
+
+This Recommendation does not define any procedures for TGK re-keying and/or CSB updating invoked by the responder; this remains for further study.
+
+## 8.3 H.245 tunnelling support
+
+If further logical channels are to be added during a session, H.245 tunnelling mode shall be deployed where the tunnelled H.245 messages are being carried within a Facility message.
+
+## 8.4 SRTP algorithms
+
+This security profile shall use the truncated HMAC-SHA1-32 with an authentication tag length $n\_tag$ equal to 32 bits as the default authentication algorithm for RTP. Other authentication tag lengths as those defined by RFC 3711 shall also be supported and shall be negotiated through the MIKEY security policy (SP) parameter as appropriate.
+
+## 8.5 List of object identifiers
+
+| | | |
+|------|-----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| "TG" | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 70} | Indicates a baseline ClearToken for H.235.1 in the context of this Recommendation. This OID also indicates that the MIKEY-PRF is used for computing the shared secret $ZZ_{AB}$ . |
+|------|-----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+
+# 9 Security profile using asymmetric security techniques
+
+This clause describes a security profile of this Recommendation that deploys asymmetric security techniques. Such a scenario provides most scalability.
+
+The existence of intermediate entities (i.e., gatekeepers) being able to intercept the MIKEY TGK and/or SRTP session keys may not always be acceptable. Figure 9 shows a scenario that deploys Public-Key Infrastructure (PKI) for establishing SRTP media keys fully end-to-end.
+
+Assumptions: It is assumed that both EP A and EP B possess a private key ( $SK$ ) as well as a certified public key ( $cert$ ). Nevertheless, EP A and GK E as well as EP B and GK D may share (administered/configured) shared secrets in case H.225.0 RAS and call signalling are being secured using H.235.1. It is further assumed that EP A and EP B be loosely time-synchronized, otherwise MIKEY is not able to run securely.
+
+Message authentication/integrity may be achieved either using pre-configured hop-by-hop shared secrets ( $sa$ , $sb$ and $sl$ ) and the H.235.1 baseline security profile or, in a more general case, using PKI to establish dynamic shared secrets with the H.235.3 hybrid Security profile.
+
+
+
+```
+
+graph LR
+ subgraph "Dyn shared-secret ZZ_AD"
+ EPA["H.323 EP A
+SK_A, cert_A"]
+ GKD["GK D
+SK_D, cert_D"]
+ end
+ subgraph "(Dyn) Shared-secret sl"
+ GKD --- GKE["GK E
+SK_E, cert_E"]
+ end
+ subgraph "Dyn shared-secret ZZ_BE"
+ GKE --- EPB["H.323 EP B
+SK_B, cert_B"]
+ end
+ EPA <--> |H.323| GKD
+ GKD <--> |H.323| GKE
+ GKE <--> |H.323| EPB
+ EPA <--> |SRTP| EPB
+ EPA -.-> |MIKEY-PK-SIGN or MIKEY-DH-SIGN| EPB
+
+```
+
+The diagram illustrates a network architecture for secure communication. At the far left is 'H.323 EP A' and at the far right is 'H.323 EP B'. Between them are two gatekeepers, 'GK D' and 'GK E'. Above each entity is its cryptographic material: $SK_A, cert_A$ for EP A, $SK_D, cert_D$ for GK D, $SK_E, cert_E$ for GK E, and $SK_B, cert_B$ for EP B. Above the diagram, three shared secrets are indicated with brackets: 'Dyn shared-secret $ZZ_{AD}$ ' between EP A and GK D, '(Dyn) Shared-secret $sl$ ' between GK D and GK E, and 'Dyn shared-secret $ZZ_{BE}$ ' between GK E and EP B. Below the diagram, three security profiles are indicated with brackets: 'H.235.3 hybrid security profile' for the EP A to GK D segment, 'H.235.1 or H.235.3 hybrid security profile' for the GK D to GK E segment, and 'H.235.3 hybrid security profile' for the GK E to EP B segment. Arrows show H.323 signaling and SRTP media flows between EP A and GK D, GK D and GK E, and GK E and EP B. A label 'H.235.7\_F09' is in the bottom right corner.
+
+Diagram of an end-to-end scenario using PKI with multiple gatekeepers (GKs).
+
+Figure 9/H.235.7 – End-to-end scenario using PKI (multiple GKs)
+
+EP A and EP B run MIKEY-PK-SIGN or MIKEY-DH-SIGN end-to-end and thereby establish the MIKEY TGK from which the end systems derive the SRTP session keys.
+
+NOTE 1 – MIKEY-PK-SIGN satisfies the requirement of an RSA-based key management.
+
+NOTE 2 – Using PKI techniques, the more general H.323 environment featuring multiple, chained gatekeepers in a row should quite certainly be better covered than with less scaleable, and limited architectures using symmetric security techniques.
+
+NOTE 3 – The combination of fast start and early media in conjunction with the MIKEY-DH-SIGN protocol is not recommended. If fast start and early media is required, then endpoints shall not use MIKEY-DH-SIGN but rather apply MIKEY-PK-SIGN.
+
+The following paragraphs provide more detailed message flows of the scenario in Figure 9. This scenario shows multiple gatekeepers within the H.323 domain.
+
+The following figures further assume a routing gatekeeper (GK-routed model) where H.245 messages are being tunnelled within H.225.0 (Fast start).
+
+NOTE 4 – The flow diagrams also cover a direct-routed case (with a non-routing gatekeeper) where H.225.0 call signalling messages are being exchanged directly between the endpoints without being forwarded by any gatekeeper.
+
+The diagrams also show the H.235.3 hybrid security profile where the initial RAS messages are being secured entirely (authentication and integrity) using digital signatures and optional certificates. This is to establish dynamic shared secrets $ZZ_{BE}$ and $ZZ_{AD}$ between the endpoints and the next hop gatekeeper, thereby making static shared secrets superfluous. Yet, similar message flows result when the authentication-only option of the signature security profile is being applied (not shown).
+
+The example message flow shows the case for EP B (MIKEY initiator) calling EP A (MIKEY responder) (see Figure 10).
+
+During stage 1, H.323 endpoints initially register with the next-hop gatekeeper and submit their DH half-key ( $g^a$ and $g^b$ ).
+
+EP B, trying to call EP A, asks for admission at the gatekeeper E. EP B may request the peer certificate *certC* by including a security profile element in the **ClearToken** in case certificate information is not yet available to the EP. This security profile element shall use the following fields:
+
+- **elementID** set to 7 indicating a certificate request element; Figure 10 shows this as **certFlag**;
+- **paramS** remains unused;
+- **element** holds an Element where **flag** is set to TRUE.
+
+The ARQ and any following RAS and H.225.0 Call signalling messages are secured by the dynamic shared secret $ZZ_{BE}$ using H.235.1 baseline security profile. In case EP B requested certificate lookup, the GK E fetches *certC* from a local or other certificate repository and supplies the result(s) as part of the ACF within **certificate** of the **ClearToken** and includes a security profile element. This security profile element shall use the following fields:
+
+- **elementID** set to 8 indicating a certificate response element; Figure 10 shows this as **certFlag**;
+- **paramS** remains unused;
+- **element** holds an Element where **flag** is set to TRUE.
+
+In case the gatekeeper obtains multiple certificates for a peer endpoint/UA, ACF would actually hold multiple **ClearTokens**, each conveying a single certificate within **certificate**. The endpoint then chooses the appropriate one. However, it may occur that the certificate lookup takes too long; perhaps for example when contacting external repositories. If the gatekeeper is not able to supply the certificate(s) in time, or not at all, ACF is returned with an empty **certificate** in the **ClearToken** that holds a security profile element where:
+
+- **elementID** set to 8 indicating a certificate response element;
+- **paramS** remains unused;
+- **element** holds an Element where **flag** is set to FALSE.
+
+It is then the task of the endpoint to abort and attempt to locate the appropriate certificate by means not specified by this Recommendation. In case the gatekeeper is able to obtain the certificate outside the necessary response time boundary, the gatekeeper should indicate this situation by leaving **certificate** empty and including a security profile element within the **ClearToken** where:
+
+- **elementID** set to 8 indicates a certificate response element;
+
+- **paramS** remains unused;
+- **element** holds an Element where **flag** is set to TRUE.
+
+In this case, the GK shall return this ClearToken within ACF.
+
+During stage 2, the originating EP B (MIKEY initiator) is then able to generate the fresh MIKEY TGK, and compute the related MIKEY I\_message Imsg by applying the MIKEY-PK-SIGN key management protocol (see Figures 11 and 12); or, if perfect forward secrecy is of concern, the MIKEY-DH-SIGN key agreement protocol (Diffie-Hellman using digital signatures). MIKEY-DH-SIGN is offered as an option.
+
+The SRTP session keys can be derived from the TGK as described by RFC 3711, section 4.3 (not shown in the figures).
+
+NOTE 5 – Figures 11 and 12 do not show every detail of MIKEY, some parts are not shown in the picture.
+
+The MIKEY I\_message is binary-encoded and is then being encapsulated in the H.245 **OpenLogicalChannel**.
+
+The **ClearToken** is enclosed as part of the Setup message and is sent towards EP A. A routing gatekeeper forwards the conveyed MIKEY I\_message (without modification of the MIKEY message) to the next hop.
+
+In case there are multiple routing gatekeepers, the call signalling messages among the gatekeepers may be secured by applying an administered shared secret and using H.235.1 or H.235.3 and private/public keys.
+
+From the TGK, EP A is then able to derive the SRTP session keys as described by RFC 3711, section 4.3 (not shown in the figures).
+
+EP A as the MIKEY responder is able to compile the MIKEY R\_message Rmsg using the MIKEY *Ma* key and include the MIKEY R\_message within the CallProceeding-to-Connect message (CP/C).
+
+
+
+Dyn. shared *TGK* (MIKEY)
+
+dyn shared secret $ZZ_{AD} = g^{ad}$ Shared secret *sl* dyn shared secret $ZZ_{EB} = g^{eb}$
+
+$SK_A, cert_A$ $SK_D, cert_D$ $SK_E, cert_E$ $SK_B, cert_B$
+
+H.323 EP A
+H.323
+GK D
+H.323
+GK E
+H.323
+H.323 EP B
+
+Stage 1
+
+Stage 2
+
+H.235.7\_F10
+
+Sequence diagram showing H.323 call flow between EP A, GK D, GK E, and EP B. Stage 1 involves registration and key exchange (RRQ, RCF, ARQ, ACF). Stage 2 involves call setup and control (Setup, ARQ, ACF, CP/C).
+
+**Figure 10/H.235.7 – Example EP B calls EP A (multiple GK-routed) with MIKEY-PK-SIGN**
+
+```
+
+TGK := rand()
+env-key := rand()
+Me, Ma := PRF(env-key, ... || Rand)
+PKE := ENCPK-A(env-key, ... || Rand)
+K := ENCMe(IDB || [TGK])
+KEMAC := ENCMe(IDB || [TGK])
+M := HMAC-SHA1(Ma, K)
+I := HDR, T, rand(), [IDB | CertB], {SP}, [chash], KEMAC, PKE
+Imsg := I, SignSK-B(I)
+
+```
+
+**Figure 11/H.235.7 – MIKEY-PK-SIGN processing by EP B**
+
+```
+
+Retrieve env-key, TGK
+Ma := PRF(env-key, ... || Rand),
+Rmsg := HDR, T, [IDA], HMAC-SHA1(Ma, Rmsg || IDA || IDB || T)
+
+```
+
+**Figure 12/H.235.7 – MIKEY-PK-SIGN processing by EP A**
+
+A scenario with only a single gatekeeper is a special case of the shown scenario with multiple gatekeepers. In this case, far-end gatekeeper/endpoint discovery is not necessary using LRQ/LCF.
+
+## 9.1 Terminating a H.323 call
+
+Since the involved endpoints maintain the state for MIKEY and SRTP, a proper termination procedure is vital. Figure 13 shows an example of message flows in case EP B (MIKEY initiator) terminates a call. Basically, the flow is according to 8.5/H.323 "Phase E – Call termination".
+
+NOTE – Figure 13 also shows optional disengage procedures for the case, when the endpoints completely de-register. The endpoints should then also discard the private DH-key ( $a$ or $b$ ) and the public DH half-key ( $g^a$ or $g^b$ ).
+
+Since the procedure for terminating a call is independent of this security profile, any applicable OID of the underlying security profile may be used; thus, Figure 13 does not show any OID.
+
+If the endpoint registers again with the gatekeeper, then new DH half-keys shall be generated. However, complete de-registration is not necessary in any circumstance just for terminating the call. If the endpoint decides to stay registered with the gatekeeper, then the static DH half-keys may continue to be used.
+
+In case the endpoints stay registered, and disengage is not being applied, the endpoints shall discard just the call-related information including the peer DH half-key, the **challenge**, the MIKEY keys $Me$ , $Ma$ , $TGK$ and related SRTP session information.
+
+
+
+The diagram illustrates the message flow for terminating an H.323 call when endpoint B is the MIKEY initiator. At the top, a bracket labeled "Dyn. shared TGK (MIKEY)" spans across the GK. Below it, two brackets labeled "Shared secret $sa$ " and "Shared secret $sb$ " are positioned over the GK, indicating the shared secrets used for HMAC calculations. The sequence of messages is as follows:
+
+- H.323 EP B sends a **Facility(ESC, HMACsb(Facility))** message to the GK.
+- The GK forwards this as **Facility(ESC, HMACsa(Facility))** to H.323 EP A.
+- H.323 EP A responds with **Facility(ESC, HMACsa(Facility))** to the GK.
+- The GK forwards this as **Facility(ESC, HMACsb(Facility))** to H.323 EP B.
+- H.323 EP B then sends a **ReleaseComplete(HMACsb(ReleaseComplete))** message to the GK.
+- The GK forwards this as **ReleaseComplete(HMACsa(ReleaseComplete))** to H.323 EP A.
+- Both endpoints then execute a **Discard: env-key, Me, Ma, TGK** operation.
+- H.323 EP A sends a **DRQ(HMACsa(DRQ))** message to the GK.
+- The GK forwards this as **DRQ(HMACsb(DRQ))** to H.323 EP B.
+- H.323 EP B responds with **DCF(HMACsb(DCF))** to the GK.
+- The GK forwards this as **DCF(HMACsa(DCF))** to H.323 EP A.
+- Finally, both endpoints execute a **Discard: a, ga** (for EP A) and **Discard: b, gb** (for EP B) operation.
+
+H.235.7\_F13
+
+Sequence diagram showing the termination of an H.323 call by endpoint B. The diagram illustrates message exchanges between H.323 EP A, GK, and H.323 EP B, including Facility, ReleaseComplete, DRQ, and DCF messages with HMAC calculations. It also shows the discarding of keys and session information at the endpoints.
+
+Figure 13/H.235.7 – Example endpoint B terminates a call
+
+## 9.2 TGK re-keying and CSB updating
+
+MIKEY has built-in support for TGK re-keying and/or CSB information updating. This Recommendation shall use the MIKEY-PK-SIGN procedure in RFC 3830, section 4.5 for this purpose that allows updating the TGK before expiration, or to update other information (CSB) without changing the TGK.
+
+The TGK re-keying and CSB updating mechanism is useful to protect a bundle of logical channels under the same security policy. To this end, it is recommended running the (full) MIKEY-PK-SIGN protocol as described in clause 8 just for the first logical channel. Any subsequent logical channel that is to apply the same MIKEY security policy, or the same TGK, should use the CSB updating mechanism without the TGK re-keying mechanism in this clause by making reference to the initial CSB-ID and by omitting updated TGK data. This allows setting up logical channels or MIKEY crypto sessions more efficiently than by running the full MIKEY protocol on each logical channel.
+
+The MIKEY TGK re-keying or CSB updating messages shall be enclosed within a **MiscellaneousCommand** of a Facility message. The **tokenOID** of the **ClearToken** shall be set to "SG".
+
+For MIKEY at "media level", EP B has to determine for which logical channel the TGK re-keying and/or CSB updating should apply. EP A as the responder would equally use the **MiscellaneousCommand** within Facility to convey the MIKEY R\_message (if any).
+
+For TGK re-keying (see Figure 14), EP B as the MIKEY initiator shall generate a new TGK. mikey shall hold the corresponding MIKEY I\_message.
+
+The responder (EP A) may confirm the obtained TGK re-keying message if necessary as requested by EP B. EP A builds similar R\_message Rmsg. This R\_message is being conveyed within the Facility message. Rmsg is the corresponding MIKEY response message and shall be conveyed within **octetString** of the **GenericParameter**. EP A sends the Facility message towards EP B.
+
+For an initiator-initiated CSB update, the above procedure is similar except that the MIKEY message shall not hold any TGK (see Figure 14).
+
+
+
+Sequence diagram illustrating EP B (Initiator) initiated TGK re-keying and key update. The diagram shows four entities: H.323 EP A, GK D, GK E, and H.323 EP B. Above them, a bracket labeled 'New dyn. shared TGK (MIKEY)' spans across all entities. Below this, three sub-brackets indicate shared secrets: 'dyn shared secret ZZ\_AD = g^ad' for EP A and GK D, '(dyn) Shared secret sl' for GK D and GK E, and 'dyn shared secret ZZ\_EB = g^cb' for GK E and EP B. Each entity has associated keys and certificates: SK\_A, cert\_A for EP A; SK\_D, cert\_D for GK D; SK\_E, cert\_E for GK E; and SK\_B, cert\_B for EP B. The sequence of messages is: 1. EP B sends a Facility message to GK E containing 'Facility(\
+
+**Figure 14/H.235.7 – Example EP B (Initiator) initiated TGK re-keying and key update**
+
+NOTE – The confirming Facility from EP A to EP B is optional and only necessary when EP B also requested a verification message (MIKEY R\_message) using the V flag in MIKEY HDR.
+
+This Recommendation does not define any procedures for TGK re-keying and/or CSB updating invoked by the responder; this remains for further study.
+
+## 9.3 H.245 tunnelling support
+
+If during a session further logical channels are to be added, H.245 tunnelling mode shall be deployed where the tunnelled H.245 messages are being carried within a Facility message.
+
+## 9.4 SRTP algorithms
+
+This security profile shall use the truncated HMAC-SHA1-32 method with an authentication tag length *n\_tag* equal to 32 bits as the default authentication algorithm for RTP. Other authentication tag lengths, as those defined by RFC 3711, shall also be supported and shall be negotiated through the MIKEY security policy (SP) parameter as appropriate.
+
+## 9.5 List of object identifiers
+
+| | | |
+|------|-----------------------------------------------------------|------------------------------------------------------------------------------------|
+| "SG" | {itu-t (0) recommendation (0) h (8) 235 version (0) 3 71} | Indicates a baseline ClearToken for H.235.3 in the context of this Recommendation. |
+|------|-----------------------------------------------------------|------------------------------------------------------------------------------------|
+
+# Appendix I
+
+### MIKEY-DHHMAC option
+
+This appendix describes how to deploy the MIKEY-DHHMAC key management option in this security profile.
+
+This key management option assumes only a security infrastructure where shared keys are available. MIKEY-DHHMAC (RFC zzzz) provides the security property of perfect-forward secrecy (PFS) due to the inherent capability of the Diffie-Hellman mechanism. Thus, this key management option is applicable when PFS is required and PKI or digital certificates are not available.
+
+This scenario assumes gatekeepers within the H.323 domain.
+
+The procedure described in this clause establishes an end-to-end shared secret among the H.323 endpoints EP A and EP B using a Diffie-Hellman key agreement scheme. This Diffie-Hellman key agreement occurs during the H.225.0 RAS registration and admission phase and, in the case of multiple gatekeepers, during the inter-gatekeeper LRQ/LCF. The generated Diffie-Hellman shared secret serves as an end-to-end authentication key and lasts during the call. The MIKEY-DHHMAC protocol occurs during call establishment separately and establishes the MIKEY call-based secrets for the bearer channel.
+
+Figure I.1 illustrates an example where endpoint B is calling endpoint A through a routing GK. The flow is similar to Figure 4 except that the MIKEY-DHHMAC protocol is being deployed. The scenario assumes one or more routing gatekeepers (GK-routed model) where H.245 messages are being tunnelled within H.225.0 (Fast start). Call signalling may or may not pass through a gatekeeper; thus a routing gatekeeper is not necessary to support this scenario.
+
+NOTE 1 – The flow diagram also covers a direct-routed case (with a non-routing gatekeeper) where H.225.0 call signalling messages are exchanged directly between the endpoints without being forwarded by any gatekeeper.
+
+The diagram in Figure I.1 also shows the H.235.1 baseline security profile where each message is being secured entirely (authentication and integrity). Yet, similar message flows result when the authentication-only option of the baseline security profile is being applied (not shown). In this case, the HMAC shall not be computed over the entire message but rather only upon a subset (**ClearToken** inside **CryptoToken**) of the RAS/H.225.0 message.
+
+The example message flow shows the case for EP B (MIKEY initiator) calling EP A (MIKEY responder) using fast start (see Figure I.1). During stage 1, the H.323 endpoints A and B initially register with the gatekeeper using **RRQ** and submit their DH half-key ( $g^a$ and $g^b$ ). The **ClearToken** (within the **CryptoHashedToken**) shall be used to convey the Diffie-Hellman half-key during **RRQ** and **ACF**. For this reason, the **challenge** field shall not be used.
+
+The Diffie-Hellman half-key shall be conveyed in **dhkey** as part of the **ClearToken**. The **ClearToken** shall use OID "TG" (see 8.5) instead of the baseline H.235.1 **ClearToken** OID "T", indicating that this security profile is being used in conjunction with H.235.1. The gatekeeper shall keep each half-key as long as the endpoint is registered. Endpoints when executing keep-alives or using lightweight re-registration (re-RRQ) shall not include any DH half-key. The **RCF** shall use the "TG" OID in the **ClearToken** to indicate that the gatekeeper supports this security profile.
+
+EP B trying to call EP A, asks for admission from the gatekeeper D (**ARQ**). The **ARQ** shall use the "TG" OID in the **ClearToken**. The OID "TG" shall be used in any other RAS messages within the **ClearToken** too.
+
+The scenario covers multiple, chained gatekeepers. Discovery of the far-end endpoint should be accomplished according to 8.1.6/H.323 "Optional called endpoint signalling" using **LRQ/LCF**. This is how the initiating endpoint locates the far-end GK zone and thereby obtains the Diffie-Hellman half-key of the targeted called endpoint. If GK E needs to locate the far-end GK zone, then GK E shall send a **LRQ** message. For the multicast case, the generalID in the **CryptoToken** of **LRQ** shall not be used. If GK D does not support this profile, then GK D shall return **LRJ**. Otherwise, GK D shall return **LCF** that includes the Diffie-Hellman half-key of EP A. GK E shall then reply with **ACF** including the Diffie-Hellman half-key of EP A. If GK E was not able to locate the far-end endpoint A then GK E shall return **ARJ**.
+
+The communication between two gatekeepers shall be secured according to H.235.1. For this, it is assumed that a common shared secret $s_l$ is available. Since **LRQ** among gatekeepers is typically a multicast message, the shared secret $s_l$ typically cannot be a pair-wise shared secret but is assumed to be actually a group-based shared secret within the potential cloud of gatekeepers. This assumption limits scalability in the general case, and does not provide source authentication. However, it is believed that in corporate networks with a limited, small number of well-known gatekeepers, such constraint and security limitations are still acceptable. Securing inter-gatekeeper multicast communication using digital signatures could overcome those limitations; yet this remains for further study.
+
+EP B obtains the Diffie-Hellman half-key of EP A (**ACF**). The **ACF** shall hold the Diffie-Hellman key of the called endpoint within **dhkey** within the baseline **ClearToken** of H.235.1 but using OID "TG" instead of "T". Any other fields within the **ClearToken** shall not be modified by this security profile.
+
+NOTE 2 – The endpoints operate with a DH half-key that is static during the overall registration time and for all calls. This is not a security weakness as long as each endpoint applies truly random half-keys.
+
+However, the endpoints shall provide a fresh 512 bit random value (i.e., 64 octets) within **challenge** along with their DH half-key, (see RFC 2631, section 2.3). These **challenge** values are call-based and introduce the necessary randomness and timeliness in the DH key generation.
+
+The originating EP B is then able to compute $g^{ab}$ and then the dynamic shared secret $ZZ_{AB}$ using a random **challenge** with the result obtained from MIKEY-PRF( $g^{ab}$ , 0x12F905FE || **challenge**) (see RFC 3830, sections 4.1.2-4.1.4). Then MIKEY is able to derive the authentication key ( $Ma$ ) using the MIKEY-PRF (see RFC 3830, sections 4.1.2-4.1.4).
+
+During stage 2, the originating EP B shall generate fresh MIKEY random values $y$ with corresponding $g^y$ and then shall build the MIKEY I\_message Imsg according to the MIKEY-DHHMAC protocol using $Ma$ .
+
+The MIKEY I\_message shall be binary-encoded.
+
+The originating EP B should always include its DH half-key within **dhkey** in a **ClearToken**, thereby also enabling the GK-supported direct-routed model. The **ClearToken** shall be included as part of the Setup message and shall be sent towards the peer EP A. A routing gatekeeper shall forward the conveyed ClearToken (without modification of the MIKEY messages) to the next hop.
+
+The receiving EP A then computes $g^{ab}$ and the dynamic shared secret $ZZ_{AB}$ from $\text{MIKEY-PRF}(g^{ab}, 0x12F905FE \parallel \text{challenge})$ (see RFC 3830, sections 4.1.2-4.1.4). Then MIKEY derives the authentication key (*Ma*) using the MIKEY-PRF (see RFC 3830, sections 4.1.2-4.1.4). EP A then generates a MIKEY random value *w* and computes $g^w$ . Using the received DH half-keys, EP A computes *TGK*.
+
+From the *TGK*, the receiving EP A is then able to derive the SRTP session keys as described by RFC 3711, section 4.3 (not shown in the figure).
+
+EP A builds similar R\_message Rmsg. That R\_message is being conveyed within the CallProceeding-to-Connect message (CP/C). Rmsg is the corresponding MIKEY response message which is sent within a CallProceeding-to-Connect message (CP/C) towards EP B.
+
+The CallProceeding-to-Connect message (CP/C) is sent towards EP B.
+
+EP B retrieves the DH half-key and computes *TGK*. EP B then derives the SRTP session keys from the *TGKs* as described by RFC 3711, section 4.3 (not shown in the figure).
+
+
+
+dyn. shared H.323 secret $ZZ_{AB} = \text{MIKEY-PRF}(g^{ab}, 0x12F905FE \parallel \text{challenge})$ ,
+dyn. shared MIKEY authentication key $Ma$
+
+Dyn. shared $TGK$ (MIKEY)
+
+shared secret $sa$ (dyn) Shared secret $sl$ Shared secret $sb$
+
+**Stage 1**
+
+**Endpoint A:**
+
+- $a := \text{rand}()$
+- Sends: $\text{RRQ}("TG", g^a)$ , $\text{HMAC}_{sa}(\text{RRQ})$
+- Receives: $\text{RCF}("TG", \text{HMAC}_{sa}(\text{RCF}))$
+- Receives: $g^a$ (from GK D)
+- Sends: $\text{LRQ}("TG", \text{HMAC}_{sl}(\text{LRQ}))$
+- Receives: $\text{LCF}("TG", g^a, \text{HMAC}_{sl}(\text{LCF}))$
+
+**Gatekeeper D:**
+
+- Receives: $\text{RRQ}("TG", g^a)$ , $\text{HMAC}_{sa}(\text{RRQ})$
+- Sends: $g^a$ (to Endpoint A)
+- Receives: $\text{LRQ}("TG", \text{HMAC}_{sl}(\text{LRQ}))$
+- Sends: $\text{LCF}("TG", g^a, \text{HMAC}_{sl}(\text{LCF}))$
+
+**Gatekeeper E:**
+
+- Receives: $g^b$ (from Endpoint B)
+- Sends: $g^b$ (to Endpoint A)
+
+**Endpoint B:**
+
+- $b := \text{rand}()$
+- Sends: $\text{RRQ}("TG", g^b)$ , $\text{HMAC}_{sb}(\text{RRQ})$
+- Receives: $\text{RCF}("TG", \text{HMAC}_{sb}(\text{RCF}))$
+- Sends: $\text{ARQ}("TG", \text{HMAC}_{sb}(\text{ARQ}))$
+- Receives: $\text{ACF}("TG", g^a, \text{HMAC}_{sb}(\text{ACF}))$
+- Receives: $g^a$ (from GK E)
+
+**Stage 2**
+
+**Endpoint A:**
+
+- Sends: $\text{Setup}("TG", \text{Imsg}, g^a, \text{challenge})$ , $\text{HMAC}_{sa}(\text{Setup})$
+- Sends: $\text{ARQ}("TG", \text{HMAC}_{sa}(\text{ARQ}))$
+- Receives: $\text{ACF}("TG", \text{HMAC}_{sa}(\text{ACF}))$
+- Internal calculation:
+ - $w := \text{rand}()$
+ - $ZZ_{AB} = \text{SHA1}(g^{ab} \parallel \text{challenge})$
+ - $Ma := \text{PRF}(ZZ_{AB}, \dots)$ , $DH_A := g^w$
+ - retrieve $DH_B$
+ - $TGK := g^{wy}$
+ - $\text{Rmsg}_{\text{FWD}} := T, \text{challenge}, [ID_A], ID_B, DH_A, DH_B, \text{MAC}(Ma, \text{Rmsg})$
+- Sends: $\text{CP/C}("TG", \text{Rmsg}, \text{HMAC}_{sa}(\text{CP/C}))$
+
+**Gatekeeper D:**
+
+- Receives: $\text{Setup}("TG", \text{Imsg}, g^a, \text{challenge})$ , $\text{HMAC}_{sl}(\text{Setup})$
+- Sends: $\text{CP/C}("TG", \text{Rmsg}, \text{HMAC}_{sl}(\text{CP/C}))$
+
+**Gatekeeper E:**
+
+- Internal calculation:
+ - $\text{challenge} := \text{rand}()$ , $y := \text{rand}()$
+ - $ZZ_{AB} = \text{SHA1}(g^{ab} \parallel \text{challenge})$
+ - $Ma := \text{PRF}(ZZ_{AB}, \dots)$ , $DH_B := g^y$
+ - $\text{Imsg} := T, \text{challenge}, [ID_B], \{SP\}, DH_B, \text{MAC}(Ma, \text{Imsg})$
+- Sends: $\text{Setup}("TG", \text{Imsg}, g^a, \text{challenge})$ , $\text{HMAC}_{sb}(\text{Setup})$
+- Receives: $\text{CP/C}("TG", \text{Rmsg}, \text{HMAC}_{sb}(\text{CP/C}))$
+
+**Endpoint B:**
+
+- Internal calculation:
+ - retrieve $DH_A$
+ - $TGK := g^{wy}$
+
+H.235.7\_Fl.1
+
+Sequence diagram for H.323 MIKEY-DHHMAC key exchange between endpoints A and B via gatekeepers D and E. The diagram is divided into Stage 1 and Stage 2. Stage 1 involves RRQ, RCF, LRQ, and LCF messages. Stage 2 involves Setup, ARQ, ACF, and CP/C messages. Cryptographic operations involving random numbers, SHA1, PRF, and MAC are shown in boxes for endpoints A and B.
+
+**Figure I.1/H.235.7 – Example endpoint B calling endpoint A (GK-routed)
+with MIKEY-DHHMAC**
+
+### I.1 Terminating a H.323 call
+
+Since the involved endpoints maintain the state for MIKEY and SRTP, a proper termination procedure is vital. Figure I.2 shows an example of message flows in case EP B (MIKEY initiator) terminates a call. Basically, the flow is according to 8.5/H.323 "Phase E – Call termination".
+
+NOTE – Figure I.2 also shows optional disengage procedures for the case when the endpoints completely de-register. The endpoints should then also discard the private DH-key ( $a$ or $b$ ) and the public DH half-key ( $g^a$ or $g^b$ ).
+
+Since the procedure for terminating a call is independent of this security profile, any applicable OID of the underlying security profile (H.235.1, H.235.3, etc.) may be used; thus, Figure I.2 does not show any OID.
+
+If the endpoint registers again with the gatekeeper, then new DH half-keys shall be generated. However, complete de-registration is not necessary in any circumstance just for terminating the call. If the endpoint decides to stay registered with the gatekeeper, then the static DH half-keys may continue to be used.
+
+In case the endpoints stay registered and disengage is not being applied, the endpoints shall discard just the call-related information including the peer DH half-key, the **challenge**, the MIKEY keys $Me$ , $Ma$ , $TGK$ and related SRTP session information.
+
+
+
+dyn. shared H.323 secret $ZZ_{AB} = \text{MIKEY-PRF}(g^{ab}, 0x12F905FE \parallel \text{challenge})$ ,
+dyn. shared MIKEY encryption key $Me$ ,
+dyn. shared MIKEY authentication key $Ma$
+
+Dyn. shared $TGK$ (MIKEY)
+
+Shared secret $sa$ (dyn) shared secret $sl$ Shared secret $sb$
+
+```
+
+sequenceDiagram
+ participant EP_A as H.323 EP A
+ participant GK_D as GK D
+ participant GK_E as GK E
+ participant EP_B as H.323 EP B
+
+ Note over EP_A, EP_B: Shared secrets and keys established
+
+ EP_B->>GK_E: Facility("TG", ESC, HMAC_sb(Facility))
+ GK_E->>GK_D: Facility("TG", ESC, HMAC_sl(Facility))
+ GK_D->>EP_A: Facility("TG", ESC, HMAC_sa(Facility))
+
+ EP_A->>GK_D: Facility("TG", ESC, HMAC_sa(Facility))
+ GK_D->>GK_E: Facility("TG", ESC, HMAC_sl(Facility))
+ GK_E->>EP_B: Facility("TG", ESC, HMAC_sb(Facility))
+
+ EP_B->>GK_E: ReleaseComplete("TG", HMAC_sb(ReleaseComplete))
+ GK_E->>GK_D: ReleaseComplete("TG", HMAC_sl(ReleaseComplete))
+ GK_D->>EP_A: ReleaseComplete("TG", HMAC_sa(ReleaseComplete))
+
+ Note left of EP_A: Discard: challengeString, DH_A, Ma, TGK
+ Note right of EP_B: Discard: challengeString, DH_B, Ma, TGK
+
+ EP_A->>GK_D: DRQ("TG", HMAC_sa(DRQ))
+ GK_D->>EP_A: DCF("TG", HMAC_sa(DCF))
+ Note left of EP_A: Discard: a, g^a
+
+ EP_B->>GK_E: DRQ("TG", HMAC_sb(DRQ))
+ GK_E->>EP_B: DCF("TG", HMAC_sb(DCF))
+ Note right of EP_B: Discard: b, g^b
+
+```
+
+H.235.7\_FI.2
+
+Sequence diagram showing the termination of an H.323 call initiated by EP B. The diagram shows message exchanges between H.323 EP A, GK D, GK E, and H.323 EP B. It includes Facility, ReleaseComplete, DRQ, and DCF messages with HMAC calculations. At the bottom, boxes indicate discarded information like challengeString, DH keys, Ma, TGK, and private DH keys a and b.
+
+**Figure I.2/H.235.7 – Example endpoint B terminates a call**
+
+### I.2 TGK re-keying and CSB updating
+
+MIKEY has built-in support for TGK re-keying and/or CSB information updating. The profile of this Recommendation shall use the MIKEY-DHHMAC procedure in RFC zzzz, section 3.1 for this purpose that allows updating the TGK before expiration, or to update other information without changing the TGK.
+
+The TGK re-keying and CSB updating mechanism is useful to protect a bundle of logical channels under the same security policy. To this end, it is recommended running the (full) MIKEY-DHHMAC protocol as described above just for the first logical channel. Any subsequent logical channel that is to apply the same MIKEY security policy or the same TGK, should use the CSB updating mechanism without the TGK re-keying mechanism in this clause by making reference to the initial CSB-ID and by omitting updated Diffie-Hellman keys. This allows setting up logical channels or MIKEY crypto sessions more efficiently than by running the full MIKEY protocol on each logical channel.
+
+The MIKEY TGK re-keying or CSB updating messages shall be encapsulated and conveyed in a **MiscellaneousCommand** within a Facility message. The **tokenOID** of the **ClearToken** shall be set to "TG".
+
+For MIKEY at "media level", EP B has to determine for which logical channel the TGK re-keying and/or CSB updating should apply. EP A as the responder would equally use the **MiscellaneousCommand** within Facility to convey the MIKEY R\_message (if any).
+
+For TGK re-keying (see Figure I.3), the EP B as the MIKEY initiator shall generate a new TGK. **parameterValue** shall hold the corresponding binary-encoded MIKEY I\_message.
+
+EP A as the responder may confirm the obtained TGK re-keying message if necessary as requested by EP B. EP A builds a similar R\_message. This R\_message is being conveyed within the Facility message. EP B sends the Facility message towards EP A.
+
+For a CSB update, the above procedure is similar except that the MIKEY message shall not hold any TGK.
+
+
+
+dyn. shared MIKEY encryption key $Me$ ,
+dyn. shared MIKEY authentication key $Ma$
+
+Dyn. shared $TGK$ (MIKEY)
+
+Shared secret $sa$ (dyn) Shared secret $sl$ Shared secret $sb$
+
+H.235.7\_FI.3
+
+Sequence diagram showing the process of updating a key between H.323 EP A and H.323 EP B via Gatekeepers GK D and GK E. EP B initiates by generating x and DH\_B = g^x, then sends an Imsg through the GKs to EP A. EP A responds by generating y and DH\_A = g^y, then sends an Rmsg back through the GKs to EP B. Both endpoints then compute the new TGK = g^{xy}.
+
+**Figure I.3/H.235.7 – Example endpoint B updating a key**
+
+This Recommendation does not define any procedures for $TGK$ re-keying and/or $CSB$ updating invoked by the responder; this remains for further study.
+
+# Appendix II
+
+### Using H.235.4 for establishing a pre-shared secret
+
+This appendix defines how to deploy Procedure DRC1 of ITU-T Rec. H.235.4 for establishing a pre-shared secret $ZZ_{AB}$ among endpoint B and endpoint A, assuming that no such end-to-end secret exists *a priori*. The method described in this appendix is applicable for the scenario with a single gatekeeper or with multiple gatekeepers. The procedure in this appendix does not involve DH computations during RAS registration or admission but rather deploys symmetric cryptography.
+
+Figure II.1 shows an example of a flow diagram for endpoint B calling endpoint A.
+
+
+
+dyn. shared H.323 secret $ZZ_{AB} = \text{MIKEY-PRF}(g^{ab}, 0x12F905FE \parallel \text{challenge})$
+dyn. shared MIKEY authentication key $Ma$
+
+Dyn. shared $TGK$ (MIKEY)
+
+Shared secret $sa$ Shared secret $sl$ Shared secret $sb$
+
+H.323 EP A H.323 GK D H.323 GK E H.323 H.323 EP B
+
+Stage 1
+
+RRQ(incl. ClearToken("I0"), $\text{HMAC}_{sa}(\text{RRQ})$ )
+
+RCF(incl. $\text{EPID}_A$ , incl. ClearToken("I0"), $\text{HMAC}_{sa}(\text{RCF})$ )
+
+Generate encryption key material $K'_{AD}$ from the shared secret $sa$ .
+Include $\text{ENC}_{sa}(K'_{AD})$ in ClearToken $CT_{DE}$
+
+LRQ(incl. ClearToken("I0"), $\text{HMAC}_{sl}(\text{LRQ})$ )
+
+LCF(ClearToken("I0"), $CT_{DE}$ , $\text{HMAC}_{sl}(\text{LCF})$ )
+
+RRQ(incl. ClearToken("I0"), $\text{HMAC}_{sb}(\text{RRQ})$ )
+
+RCF(incl. $\text{EPID}_B$ , incl. ClearToken("I0"), $\text{HMAC}_{sb}(\text{RCF})$ )
+
+ARQ(incl. ClearToken("I0"), $\text{HMAC}_{sb}(\text{ARQ})$ )
+
+Generate encryption key material $K'_{BE}$ from the shared secret $sb$ .
+Generate shared secret $ZZ_{AB}$ and two ClearTokens $CT_A$ and $CT_B$ .
+
+ACF(incl. $CT_A$ and $CT_B$ , $\text{HMAC}_{sb}(\text{ACF})$ )
+
+challenge := rand() $Me := \text{PRF}(ZZ_{AB}, \dots)$ , $Ma := \text{PRF}(ZZ_{AB}, \dots)$
+ $TGK := \text{rand}()$
+ $I := \text{HDR}, T, \text{challenge}, [ID_B], \{SP\}$ ,
+ $\text{ENC}_{Me}(TGK)$
+ $\text{lmsg} := I, \text{MAC}(Ma, I)$
+
+Setup("TG", $CT_A$ ,
+generalID := $\text{EPID}_A$ ,
+ $\text{lmsg}$ ,
+ $\text{HMAC}_{ZZ_{AB}}(\text{Setup})$ )
+
+Stage 2
+
+ARQ("TG", $\text{HMAC}_{sa}(\text{ARQ})$ )
+
+ACF("TG", $\text{HMAC}_{sa}(\text{ACF})$ )
+
+$Me := \text{PRF}(ZZ_{AB}, \dots)$ $Ma := \text{PRF}(ZZ_{AB}, \dots)$
+retrieve $TGK$
+ $\text{Rmsg} := \text{HDR}, T, [ID_A]$ ,
+ $\text{MAC}(Ma, \text{Rmsg} \parallel ID_B \parallel ID_A \parallel T)$
+
+CP/C("TG", generalID := $\text{EPID}_B$ ,
+ $\text{Rmsg}$ ,
+ $\text{HMAC}_{ZZ_{AB}}(\text{CP/C})$ )
+
+H.235.7\_FII.1
+
+**Figure II.1/H.235.7 – Example endpoint B calling endpoint A (non-GK-routed) with MIKEY-preshared and H.235.4 DRC1**
+
+### **II.1 Terminating a H.323 call**
+
+The procedure for terminating a H.323 call shall proceed as described in 8.1.
+
+### **II.2 TGK re-keying and CSB updating**
+
+The procedure for TGK re-keying and/or CSB updating shall proceed as described in 8.2.
+
+
+
+# **SERIES OF ITU-T RECOMMENDATIONS**
+
+| | |
+|-----------------|---------------------------------------------------------------------------------------------|
+| Series A | Organization of the work of ITU-T |
+| Series D | General tariff principles |
+| Series E | Overall network operation, telephone service, service operation and human factors |
+| Series F | Non-telephone telecommunication services |
+| Series G | Transmission systems and media, digital systems and networks |
+| Series H | Audiovisual and multimedia systems |
+| Series I | Integrated services digital network |
+| Series J | Cable networks and transmission of television, sound programme and other multimedia signals |
+| Series K | Protection against interference |
+| Series L | Construction, installation and protection of cables and other elements of outside plant |
+| Series M | Telecommunication management, including TMN and network maintenance |
+| Series N | Maintenance: international sound programme and television transmission circuits |
+| Series O | Specifications of measuring equipment |
+| Series P | Telephone transmission quality, telephone installations, local line networks |
+| Series Q | Switching and signalling |
+| Series R | Telegraph transmission |
+| Series S | Telegraph services terminal equipment |
+| Series T | Terminals for telematic services |
+| Series U | Telegraph switching |
+| Series V | Data communication over the telephone network |
+| Series X | Data networks, open system communications and security |
+| Series Y | Global information infrastructure, Internet protocol aspects and next-generation networks |
+| Series Z | Languages and general software aspects for telecommunication systems |
\ No newline at end of file
diff --git a/marked/H/T-REC-H.241-201202-I_PDF-E/1174e0fd3f2c73de8e5c6ce8ea6bdda1_img.jpg b/marked/H/T-REC-H.241-201202-I_PDF-E/1174e0fd3f2c73de8e5c6ce8ea6bdda1_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..ecf24e1fb7b9d29933702bda661ef2c6aebecdc8
--- /dev/null
+++ b/marked/H/T-REC-H.241-201202-I_PDF-E/1174e0fd3f2c73de8e5c6ce8ea6bdda1_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fab9e00256b5f903cc31129106b7259b14d211df92bdc7f59e2badda8e266dec
+size 48483
diff --git a/marked/H/T-REC-H.241-201202-I_PDF-E/38cbce07f83fba6d5a7c46605bd5743f_img.jpg b/marked/H/T-REC-H.241-201202-I_PDF-E/38cbce07f83fba6d5a7c46605bd5743f_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..935237d9c32949e983077fa04d8ebd7f87ebadcc
--- /dev/null
+++ b/marked/H/T-REC-H.241-201202-I_PDF-E/38cbce07f83fba6d5a7c46605bd5743f_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dc61a5cc8e7aeb249ed01243526e3f3923aece46c1d6a71ca62568a84056aec5
+size 36244
diff --git a/marked/H/T-REC-H.241-201202-I_PDF-E/a3dc41dc3df86ea68d266af2bf95cf5b_img.jpg b/marked/H/T-REC-H.241-201202-I_PDF-E/a3dc41dc3df86ea68d266af2bf95cf5b_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..b310ac210c3a7914165adf06403f98576a85c994
--- /dev/null
+++ b/marked/H/T-REC-H.241-201202-I_PDF-E/a3dc41dc3df86ea68d266af2bf95cf5b_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0953d8a48897d2f76d40d07a4f72e9fd2630b3ba8f1e39b9ba5bc493583058ef
+size 3635
diff --git a/marked/H/T-REC-H.241-201202-I_PDF-E/a93de4c3f80bd4a972ab65510b09b68d_img.jpg b/marked/H/T-REC-H.241-201202-I_PDF-E/a93de4c3f80bd4a972ab65510b09b68d_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..7988afc8954695fa1f05df388d47499a4cd9d559
--- /dev/null
+++ b/marked/H/T-REC-H.241-201202-I_PDF-E/a93de4c3f80bd4a972ab65510b09b68d_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:61492373c5435e4ca6e5ca13f75c98412a9183783213cfe2fcd7b9118c7ca471
+size 15882
diff --git a/marked/H/T-REC-H.241-201202-I_PDF-E/ec3647789b5c38fb686f2a0833324e79_img.jpg b/marked/H/T-REC-H.241-201202-I_PDF-E/ec3647789b5c38fb686f2a0833324e79_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..986e6c0dd39ed2ef70b35d3dfe52102302d2269a
--- /dev/null
+++ b/marked/H/T-REC-H.241-201202-I_PDF-E/ec3647789b5c38fb686f2a0833324e79_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a5f4c5566ae95d6b1f93e000fad325f585b0a5be8db498eb6a775349ef64fb4
+size 38158
diff --git a/marked/H/T-REC-H.241-201202-I_PDF-E/raw.md b/marked/H/T-REC-H.241-201202-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..163afd8dce7746cd84162ef90d3faf3e4b8a36af
--- /dev/null
+++ b/marked/H/T-REC-H.241-201202-I_PDF-E/raw.md
@@ -0,0 +1,1941 @@
+
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.241**
+
+(02/2012)
+
+SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS
+
+Infrastructure of audiovisual services – Communication
+procedures
+
+---
+
+**Extended video procedures and control signals
+for ITU-T H.300-series terminals**
+
+Recommendation ITU-T H.241
+
+# ITU-T H-SERIES RECOMMENDATIONS **AUDIOVISUAL AND MULTIMEDIA SYSTEMS**
+
+| | |
+|-------------------------------------------------------------------------------|--------------------|
+| CHARACTERISTICS OF VISUAL TELEPHONE SYSTEMS | H.100–H.199 |
+| INFRASTRUCTURE OF AUDIOVISUAL SERVICES | |
+| General | H.200–H.219 |
+| Transmission multiplexing and synchronization | H.220–H.229 |
+| Systems aspects | H.230–H.239 |
+| Communication procedures | H.240–H.259 |
+| Coding of moving video | H.260–H.279 |
+| Related systems aspects | H.280–H.299 |
+| Systems and terminal equipment for audiovisual services | H.300–H.349 |
+| Directory services architecture for audiovisual and multimedia services | H.350–H.359 |
+| Quality of service architecture for audiovisual and multimedia services | H.360–H.369 |
+| Supplementary services for multimedia | H.450–H.499 |
+| MOBILITY AND COLLABORATION PROCEDURES | |
+| Overview of Mobility and Collaboration, definitions, protocols and procedures | H.500–H.509 |
+| Mobility for H-Series multimedia systems and services | H.510–H.519 |
+| Mobile multimedia collaboration applications and services | H.520–H.529 |
+| Security for mobile multimedia systems and services | H.530–H.539 |
+| Security for mobile multimedia collaboration applications and services | H.540–H.549 |
+| Mobility interworking procedures | H.550–H.559 |
+| Mobile multimedia collaboration inter-working procedures | H.560–H.569 |
+| BROADBAND, TRIPLE-PLAY AND ADVANCED MULTIMEDIA SERVICES | |
+| Broadband multimedia services over VDSL | H.610–H.619 |
+| Advanced multimedia services and applications | H.620–H.629 |
+| Ubiquitous sensor network applications and Internet of Things | H.640–H.649 |
+| IPTV MULTIMEDIA SERVICES AND APPLICATIONS FOR IPTV | |
+| General aspects | H.700–H.719 |
+| IPTV terminal devices | H.720–H.729 |
+| IPTV middleware | H.730–H.739 |
+| IPTV application event handling | H.740–H.749 |
+| IPTV metadata | H.750–H.759 |
+| IPTV multimedia application frameworks | H.760–H.769 |
+| IPTV service discovery up to consumption | H.770–H.779 |
+
+*For further details, please refer to the list of ITU-T Recommendations.*
+
+# Recommendation ITU-T H.241
+
+## Extended video procedures and control signals for ITU-T H.300-series terminals
+
+## Summary
+
+Recommendation ITU-T H.241 defines the use of advanced video codecs, including those based on Recommendation ITU-T H.264, in ITU-T H.300-series terminals, including ITU-T H.310, ITU-T H.320, ITU-T H.321, ITU-T H.322, ITU-T H.323 and ITU-T H.324 terminals. It also defines generic extended signalling for use with all video codecs in the ITU-T H.300-series terminals.
+
+This revised version introduces a number of enhancements and clarifications to the previous version. Clarification concerns primarily the description on the signalling for ITU-T H.264 Annex G Scalable Baseline and Scalable High Profiles, a procedure for selecting the operating point of a scalable video coding (SVC) video stream, and the Capability Class of ITU-T H.241 capabilities. This version incorporates clause 6.2.5 introduced in ITU-T H.241 (2006) Amd. 1 (2008), allowing for the negotiation of particular video submodes of ITU-T H.264 encoding. It also incorporates clause 8.3.2.14, defining a new optional ITU-T H.264 capability parameter (MaxFPS), and Appendix II which contains non-normative examples describing the use of clause 6.2.5. Clause 8.3.2.14 and Appendix II were both introduced in ITU-T H.241 (2006) Amd. 2 (2009).
+
+## History
+
+| Edition | Recommendation | Approval | Study Group |
+|---------|---------------------------|------------|-------------|
+| 1.0 | ITU-T H.241 | 2003-07-14 | 16 |
+| 1.1 | ITU-T H.241 (2003) Cor. 1 | 2004-03-15 | 16 |
+| 1.2 | ITU-T H.241 (2003) Amd. 1 | 2005-01-08 | 16 |
+| 2.0 | ITU-T H.241 | 2005-09-13 | 16 |
+| 3.0 | ITU-T H.241 | 2006-05-29 | 16 |
+| 3.1 | ITU-T H.241 (2006) Amd. 1 | 2008-06-13 | 16 |
+| 3.2 | ITU-T H.241 (2006) Amd. 2 | 2009-12-14 | 16 |
+| 3.3 | ITU-T H.241 (2006) Cor. 1 | 2011-05-14 | 16 |
+| 4.0 | ITU-T H.241 | 2012-02-29 | 16 |
+
+## FOREWORD
+
+The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications, information and communication technologies (ICTs). The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU-T study groups which, in turn, produce Recommendations on these topics.
+
+The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
+
+In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
+
+## NOTE
+
+In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure, e.g., interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
+
+## INTELLECTUAL PROPERTY RIGHTS
+
+ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
+
+As of the date of approval of this Recommendation, ITU had received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementers are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database at .
+
+© ITU 2012
+
+All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
+
+## Table of Contents
+
+| | Page |
+|---------------------------------------------------------------------------------------------------------|------|
+| 1 Scope ..... | 1 |
+| 2 References..... | 1 |
+| 3 Definitions ..... | 2 |
+| 3.1 Terms defined elsewhere ..... | 2 |
+| 3.2 Terms defined in this Recommendation..... | 2 |
+| 4 Abbreviations and acronyms ..... | 2 |
+| 5 Conventions ..... | 3 |
+| 5.1 System terminology..... | 3 |
+| 5.2 Message names..... | 3 |
+| 5.3 Requirement terminology..... | 4 |
+| 6 Commands and indications..... | 4 |
+| 6.1 Control and indication (C&I) applicable to all video codecs..... | 4 |
+| 6.2 C&I for use with ITU-T H.264..... | 4 |
+| 7 Transport of coded video in ITU-T H.300-series systems ..... | 18 |
+| 7.1 Transport of Recommendation ITU-T H.264 video streams..... | 18 |
+| 8 Capability exchange signalling..... | 21 |
+| 8.1 General ..... | 21 |
+| 8.2 Signalling of ITU-T H.245 generic parameters in BAS-based systems..... | 22 |
+| 8.3 ITU-T H.264 capabilities..... | 22 |
+| Annex A – ITU-T H.264 transport for ITU-T H.323..... | 37 |
+| Annex B – Reduced-complexity decoding operation (RCDO) for ITU-T H.264 Baseline Profile bitstreams..... | 38 |
+| B.1 Scope ..... | 38 |
+| B.2 Definitions ..... | 38 |
+| B.3 General ..... | 38 |
+| B.4 RCDO bitstreams..... | 38 |
+| B.5 OpenLogicalChannel signalling..... | 39 |
+| B.6 Procedures ..... | 39 |
+| Appendix I – ASN.1 OIDs defined in this Recommendation..... | 45 |
+| Appendix II – Examples of the set submode procedure ..... | 46 |
+| II.1 Optimization of the picture aspect ratio ..... | 46 |
+| II.2 Limiting the picture frame rate..... | 46 |
+| II.3 Eliminating the adverse effects of picture rescaling..... | 47 |
+| II.4 Improving bandwidth utilization by limiting maximum picture size..... | 48 |
+| Bibliography..... | 51 |
+
+
+
+# Recommendation ITU-T H.241
+
+## Extended video procedures and control signals for ITU-T H.300-series terminals
+
+# 1 Scope
+
+This Recommendation defines the procedures for use of advanced video codecs, including those based on [ITU-T H.264], in ITU-T H.300-series terminals, including ITU-T H.310, ITU-T H.320, ITU-T H.321, ITU-T H.322, ITU-T H.323 and ITU-T H.324 terminals. Such procedures include control, indication, capability exchange, and transport mechanisms.
+
+Additionally, this Recommendation defines generic extended video control, indication, and capability signalling, applicable for use with all video codecs used in ITU-T H.300-series multimedia terminals.
+
+Annex A specifies ITU-T H.264 transport for ITU-T H.323 systems, including Annex G of [ITU-T H.264] (Scalable Video Coding).
+
+Annex B specifies a reduced-complexity decoding process to be applied to ITU-T H.264 Baseline profile bitstreams when such use has been negotiated using [ITU-T H.241].
+
+# 2 References
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
+
+- [ITU-T H.221] Recommendation ITU-T H.221 (2009), *Frame structure for a 64 to 1 920 kbit/s channel in audiovisual teleservices*.
+- [ITU-T H.230] Recommendation ITU-T H.230 (2009), *Frame-synchronous control and indication signals for audiovisual systems*.
+- [ITU-T H.239] Recommendation ITU-T H.239 (2005), *Role management and additional media channels for H.300-series terminals*.
+- [ITU-T H.242] Recommendation ITU-T H.242 (2009), *System for establishing communication between audiovisual terminals using digital channels up to 2 Mbit/s*.
+- [ITU-T H.243] Recommendation ITU-T H.243 (2005), *Procedures for establishing communication between three or more audiovisual terminals using digital channels up to 1 920 kbit/s*.
+- [ITU-T H.245] Recommendation ITU-T H.245 (2011), *Control protocol for multimedia communication*.
+- [ITU-T H.261] Recommendation ITU-T H.261 (1993), *Video codec for audiovisual services at $p \times 64$ kbit/s*.
+- [ITU-T H.262] Recommendation ITU-T H.262 (2000), *Information technology – Generic coding of moving pictures and associated audio information: Video*.
+- [ITU-T H.263] Recommendation ITU-T H.263 (2005), *Video coding for low bit rate communication*.
+
+- [ITU-T H.264] Recommendation ITU-T H.264 (2011), *Advanced video coding for generic audiovisual services*.
+- [ITU-T H.310] Recommendation ITU-T H.310 (1998), *Broadband audiovisual communication systems and terminals*.
+- [ITU-T H.320] Recommendation ITU-T H.320 (2004), *Narrow-band visual telephone systems and terminal equipment*.
+- [ITU-T H.323] Recommendation ITU-T H.323 (2009), *Packet-based multimedia communications systems*.
+- [ITU-T H.324] Recommendation ITU-T H.324 (2009), *Terminal for low bit-rate multimedia communication*.
+- [IETF RFC 3550] IETF RFC 3550 (2003), *RTP: A Transport Protocol for Real-Time Applications*.
+- [IETF RFC 6184] IETF RFC 6184 (2011), *RTP Payload Format for H.264 Video*.
+- [IETF RFC 6190] IETF RFC 6190 (2011), *RTP Payload Format for Scalable Video Coding*.
+
+# 3 Definitions
+
+## 3.1 Terms defined elsewhere
+
+This Recommendation uses the following terms defined elsewhere:
+
+None.
+
+## 3.2 Terms defined in this Recommendation
+
+This Recommendation defines the following terms:
+
+**3.2.1 picture aspect ratio:** The ratio between the intended horizontal width and the intended vertical height of a displayed picture. Picture aspect ratio is expressed as h:v, where h is horizontal width and v is vertical height (in arbitrary units of spatial distance). For the purposes of this definition, a picture is the complete displayed image (including both fields in the case of interlaced-scan video). For example, the picture aspect ratio for a common intermediate format (CIF) picture according to [ITU-T H.263] is 4:3.
+
+**3.2.2 sample aspect ratio:** The ratio between the intended horizontal distance between the columns and the intended vertical distance between the rows of the luma sample array in a frame. Sample aspect ratio is expressed as h:v, where h is horizontal width and v is vertical height (in arbitrary units of spatial distance). For the purposes of this definition, a sample is an individual luma picture element (pixel) making up the complete displayed image (including both fields in the case of interlaced-scan video). For example, the sample aspect ratio for a CIF picture according to [ITU-T H.263] is 12:11.
+
+**3.2.3 terminal:** A terminal is any end point and may be a user's terminal or some other communication system such as a multipoint control unit (MCU) or an information server.
+
+# 4 Abbreviations and acronyms
+
+This Recommendation uses the following abbreviations and acronyms:
+
+| | |
+|--------|------------------------------------|
+| 4CIF | 4x Common Intermediate Format |
+| 4SIF | 4x Standard Interchange Format |
+| AL-SDU | Adaptation Layer Service Data Unit |
+
+| | |
+|-------|---------------------------------------|
+| ASN.1 | Abstract Syntax Notation One |
+| BAS | Bit-rate Allocation Signal |
+| C&I | Control and Indication |
+| CIF | Common Intermediate Format |
+| IDR | Instantaneous Decoding Refresh |
+| MBE | Multiple Byte Extension |
+| MCU | Multipoint Control Unit |
+| OID | Object Identifier |
+| PAR | Picture Aspect Ratio |
+| QCIF | Quarter Common Intermediate Format |
+| QVGA | Quarter VGA |
+| RCDO | Reduced Complexity Decoding Operation |
+| RTP | Real-time Transport Protocol |
+| SAR | Sample Aspect Ratio |
+| SEI | Supplemental Enhancement Information |
+| SIF | Standard Interchange Format |
+| SVC | Scalable Video Coding |
+| VUI | Video Usability Information |
+
+# 5 Conventions
+
+## 5.1 System terminology
+
+In order to simplify references, this Recommendation refers to two classes of signalling systems for ITU-T H.300-series terminals:
+
+- "BAS-based systems" refers to those systems that use signalling in the ITU-T H.221 bit-rate allocation system (BAS) channel; these include ITU-T H.320, ITU-T H.321 and ITU-T H.322 systems
+- "ITU-T H.245-based systems" refers to those systems that use signalling according to [ITU-T H.245]; these include ITU-T H.310, ITU-T H.323 and ITU-T H.324 systems.
+
+## 5.2 Message names
+
+In this Recommendation, signalling messages which are common to both ITU-T H.245 and BAS signalling systems are referred to by their names, as given in Annex A of [ITU-T H.245], except in cases where their use in the unique BAS signalling environment is described. Message names are presented in **bold font** to distinguish them from the other text of this Recommendation.
+
+Table 5-1 provides a reference for corresponding ITU-T H.245 and ITU-T H.242/ITU-T H.230 messages mentioned in this Recommendation.
+
+**Table 5-1 – Corresponding ITU-T H.245 and BAS video signals**
+
+| ITU-T H.245 name | ITU-T H.230 mnemonic |
+|------------------------------------------|--------------------------|
+| h263Options.customPictureClockFrequency | ØCPCF |
+| h263Options.customPictureFormat | ØCSFMT |
+| h263Options.customPictureFormat | ØCPAR |
+| h263VideoCapability.enhancementLayerInfo | ØSCLPREF |
+| lostPartialPicture | lostPartialPicture |
+| lostPicture | lostPicture |
+| recoveryReferencePicture | recoveryReferencePicture |
+| videoBadMBs | VB MBC |
+| videoFastUpdateGOB | videoFastUpdateGOB |
+| videoFastUpdateMB | videoFastUpdateMB |
+| videoFastUpdatePicture | VCU |
+| videoFreezePicture | VCF |
+| videoNotDecodedMBs | videoNotDecodedMBs |
+| videoSendSyncEveryGOB | ØGHOP |
+| videoSendSyncEveryGOBCancel | Øcancel-GHOP |
+
+## 5.3 Requirement terminology
+
+In this Recommendation the following conventions are used:
+
+- "shall" indicates a mandatory requirement
+- "should" indicates a suggested but optional course of action
+- "may" indicates an optional course of action rather than a recommendation that something take place.
+
+# 6 Commands and indications
+
+## 6.1 Control and indication (C&I) applicable to all video codecs
+
+For further study.
+
+## 6.2 C&I for use with ITU-T H.264
+
+The following C&I signals shall not be used with regard to any channel operating according to [ITU-T H.264]:
+
+- BAS signals ØCPCF, ØCSFMT, ØCPAR, ØSCLPREF
+- lostPartialPicture
+- lostPicture
+- recoveryReferencePicture
+- videoBadMBs
+- videoFastUpdateGOB
+- videoFastUpdateMB
+- videoNotDecodedMBs
+- videoSendSyncEveryGOB
+
+– **videoSendSyncEveryGOBCancel**.
+
+NOTE 1 – The above signals are either specific to [ITU-T H.263] or have parameters which do not correspond to ITU-T H.264 structures or value ranges. Replacement signals which could be used either with [ITU-T H.264] or in a generic form for any video codec are for further study.
+
+All other C&I not mentioned in this clause shall be used as specified elsewhere.
+
+NOTE 2 – For example, the use of **videoIndicateReadyToActivate** and corresponding BAS signal **VIR** is not affected by this Recommendation.
+
+### 6.2.1 **videoFreezePicture command in ITU-T H.264**
+
+When a video decoder according to [ITU-T H.264] receives a **videoFreezePicture** command, it shall freeze its displayed picture until one of the following events occurs:
+
+- a) a recovery point signalled in a recovery point service end interface (SEI) message (D.2.7 of [ITU-T H.264]) is reached
+- b) reception of an instantaneous decoding refresh (IDR) picture
+- c) A timeout period of at least six seconds has elapsed since the **videoFreezePicture** command was received.
+
+### 6.2.2 **videoFastUpdatePicture command in ITU-T H.264**
+
+When a video encoder according to [ITU-T H.264] receives a **videoFastUpdatePicture** command, the encoder shall enter the fast update mode by using one of the procedures specified in clause 6.2.2.1 or 6.2.2.2 below. The procedure in 6.2.2.1 is the preferred response in a lossless transmission environment. Both procedures satisfy the requirement to enter the fast update mode for ITU-T H.264 video encoding.
+
+NOTE 1 – The procedures re-initialize an ITU-T H.264 decoder completely so that valid video frames will be decoded. Such re-initialization is effective regardless of whether or not the decoder was previously decoding any video stream from any end point.
+
+The procedure should be accomplished as quickly as possible, but the re-initialization video stream shall be completely transmitted within three seconds of receiving the **videoFastUpdatePicture** command.
+
+NOTE 2 – The 3-second requirement is needed to avoid timeout of the six-second timer associated with the **videoFreezePicture** command, taking into account network and system latencies and possible cascaded MCUs. The **videoFreezePicture** command is used by multipoint control units (MCUs) as part of the video switching procedure (see clause 6.1.1 of [ITU-T H.243]).
+
+#### 6.2.2.1 **IDR procedure to respond to videoFastUpdatePicture**
+
+This clause gives one possible way to respond to **videoFastUpdatePicture**.
+
+The encoder shall, in the order presented here:
+
+- 1) immediately prepare to send an IDR picture (see clause 3 of [ITU-T H.264])
+- 2) send a ITU-T H.264 sequence parameter set corresponding to the IDR picture to be sent. The encoder may optionally also send other parameter sets
+- 3) send a ITU-T H.264 picture parameter set corresponding to the IDR picture to be sent. The encoder may optionally also send other parameter sets
+- 4) send the IDR picture
+- 5) from this point forward in time, send or re-send any other sequence or picture parameter sets, not sent in this procedure, prior to their reference by any ITU-T H.264 slice, regardless of whether such parameter sets were previously sent prior to receiving the **videoFastUpdatePicture** command. Such parameter sets may be sent all at once (within the limits of [ITU-T H.264]), one at a time as needed, or in any combination of these methods. Parameter sets may be re-sent at any time for redundancy.
+
+#### 6.2.2.2 Gradual recovery procedure to respond to **videoFastUpdatePicture**
+
+This clause gives one possible way to respond to **videoFastUpdatePicture**.
+
+The encoder shall, in the order presented here:
+
+- 1) send a recovery point (supplemental enhancement information (SEI) message (D.2.7 of [ITU-T H.264])).
+- 2) repeat any sequence and picture parameter sets that were sent before the recovery point SEI message, prior to their reference in a ITU-T H.264 slice.
+
+The encoder shall ensure that the decoder has access to all reference pictures, in output order, for inter prediction of pictures at or after the recovery point. For example, the encoder may mark all reference pictures as "unused for reference" by issuing a **memory\_management\_control\_operation** equal to 5 (see clause 8.2.5 of [ITU-T H.264]).
+
+The value of the **recovery\_frame\_cnt** syntax element in the recovery point SEI message shall be such that the time between reception of the **videoFastUpdatePicture** command and completing the transmission of the access unit, including the recovery point as specified in clause D.2.7 of [ITU-T H.264], is less than or equal to three seconds.
+
+Re-sending of parameter sets may be done all at once (within the limits of [ITU-T H.264]), one at a time as needed, or in any combination of these methods. Parameter sets may be re-sent at any time for redundancy.
+
+### 6.2.3 Recovery point SEI message
+
+ITU-T H.264 video decoders in ITU-T H.300-series terminals shall support reception of the recovery point SEI message (see clause D.2.7 of [ITU-T H.264]), and identify the signalled recovery point.
+
+Upon reception of a recovery point SEI message, the decoder shall continue to decode until the recovery point regardless of apparent errors in the stream, such as reference to absent pictures, and should not send a **videoFastUpdatePicture** command in response to such apparent error.
+
+If a **videoFreezePicture** is in force, the decoder shall not display the decoded pictures, and shall continue to display the previously frozen picture. If the **broken\_link\_flag** in the recovery point SEI message is set, the decoder may choose not to display decoded pictures until the recovery point is reached.
+
+If the decoder detects bitstream corruption between the SEI message and the recovery point in decoding order, a **videoFastUpdatePicture** command should be sent.
+
+### 6.2.4 ITU-T H.264-on BAS command
+
+For BAS-based systems, the ITU-T H.264-on BAS command defined in [ITU-T H.221] shall be used to signal that video according to [ITU-T H.264] is being transmitted. This command shall be used analogously to the BAS command ITU-T H.261-on. Video shall occupy the same capacity as stipulated in [ITU-T H.221] for the case of ITU-T H.261 video. The use of ITU-T H.264 Annex G scalable video coding (SVC) in BAS-based systems is for further study.
+
+### 6.2.5 Set submode procedure
+
+This clause defines a procedure that may be used by ITU-T H.320 and ITU-T H.245 systems to negotiate the use of a particular ITU-T H.264 video encoding submode. Such a submode may limit the ITU-T H.264 encoding to a specified group of sample aspect ratios (SARs), picture aspect ratios (PARs), and picture heights while it is in force. It may also reduce the **MaxMBPS** value in Table A.1 of [ITU-T H.264] (or its optional replacement **CustomMaxMBPS** in Table 8-5) to a lower value. Additionally, it may reduce the **MaxStaticMBPS** value in Table 8-9 to a lower value.
+
+Some examples illustrating the use of this procedure are given in Appendix II.
+
+#### 6.2.5.1 SetSubmode capability
+
+ITU-T H.320 and ITU-T H.245 systems may optionally support the set submode procedure.
+
+In [ITU-T H.320], this capability shall be signalled as a BAS message (see clause 3.1 of [ITU-T H.230]). is a BAS SBE message.
+
+In [ITU-T H.245], this capability shall be signalled in a generic capability message, as shown in Table 6-1.
+
+**Table 6-1 – ITU-T H.241 set submode capability identifier**
+
+| Capability name | ITU-T H.241 set submode capability |
+|-----------------------------|---------------------------------------------------------------------------------------------------------|
+| Capability identifier type | Standard |
+| Capability Class | Video |
+| Capability identifier value | {itu-t(0) recommendation(0) h(8) h241(241)
specificVideoCodecCapabilities(0) h264(0) set-submode(2)} |
+| maxBitRate | This field shall not be included. |
+| collapsing | This field shall not be included. |
+| nonCollapsing | This field shall not be included. |
+| nonCollapsingRaw | This field shall not be included. |
+| transport | This field shall not be included. |
+
+#### 6.2.5.2 C&I messages
+
+C&I messages are used in this clause to indicate sets of submodes that are supported by the sender of the ITU-T H.264 encoding for that specific encoding, to request a submode of that sender, and to positively or negatively acknowledge such a request.
+
+The C&I messages defined in this clause shall not be used if video sent on the channel associated with the signalled channelID AMC is not encoded with ITU-T H.264.
+
+All C&I messages defined in this clause shall be carried as follows.
+
+#### 6.2.5.3 Signalling of messages for the set submode procedure
+
+For ITU-T H.245, each message shall consist of a **GenericRequest**, **GenericResponse** or **GenericIndication** according to Table 6-2 containing **GenericMessage.messageIdentifier** with the set submode capability OID as defined in Table 6-1, and a **subMessageIdentifier**. Each particular **subMessageIdentifier** listed in Table 6-2 has an associated **messageContent** syntax given in the following clauses.
+
+For ITU-T H.320, each set submode message shall be carried by a separate MBE message (see clause 2.2.3 of [ITU-T H.230]) which shall contain the same **subMessageIdentifier** value and parameter sequence as its ITU-T H.245 equivalent, coded according to the procedures in Annex A of [ITU-T H.239]. This MBE message uses the BAS code (see Table 2 of [ITU-T H.230]). The MBE contents are in the format:
+
+{ Start-MBE / N / / subMessageIdentifier /
+zero or more message content bytes }
+
+ITU-T H.320-ITU-T H.245 gateways that signal the SetSubmode capability shall translate these messages between the ITU-T H.320 and ITU-T H.245 signalling systems as specified in Annex A of [ITU-T H.239].
+
+Except for ITU-T H.320/ITU-T H.245 gateways, devices that receive **MessageContent** containing an unrecognized **parameterIdentifier** shall ignore such **parameterIdentifiers** and any associated **parameterValues**.
+
+#### 6.2.5.4 SetSubmode messages
+
+Table 6-2 lists all messages defined in the SetSubmode procedure.
+
+**Table 6-2 – Set submode procedure messages**
+
+| subMessageIdentifier | Message name | Message type
(for ITU-T H.245) |
+|-----------------------------|-----------------------|-------------------------------------------|
+| 1 | setSubmodeRequest | GenericRequest |
+| 2 | setSubmodeResponse | GenericResponse |
+| 3 | setSubmodeIndication | GenericIndication |
+| 4 | cancelSubmodeRequest | GenericRequest |
+| 5 | cancelSubmodeResponse | GenericResponse |
+
+For each message, the clauses below present a table indicating the message content and syntax. The sequence of **GenericParameters** in the **messageContent** shall be transmitted in the order given in each table. The parameter names given in each table correspond to those in Table 6-2 above. Parameters shall be sent as indicated in the "required presence" column of each table.
+
+#### 6.2.5.5 Generic parameters used in SetSubmode messages
+
+Table 6-3 lists the **GenericParameters** used in all **messageContent** sequences in the SetSubmode messages.
+
+**Table 6-3 – Set submode message parameters**
+
+| Parameter identifier | Parameter name | Parameter type | Parameter value |
+|-----------------------------|-----------------------|-----------------------|------------------------|
+| 40 | channelID | unsignedMin | Integer (0..65535) |
+| 1 | par | booleanArray | Integer (0..255) |
+| 2 | parX | unsignedMin | Integer (0..65535) |
+| 41 | parY | unsignedMin | Integer (0..65535) |
+| 3 | sar | unsignedMin | Integer (0..255) |
+| 4 | sarX | unsignedMin | Integer (0..65535) |
+| 42 | sarY | unsignedMin | Integer (0..65535) |
+| 5 | submodeMaxMBPS | unsignedMin | Integer (0..65535) |
+| 6 | submodeMaxStaticMBPS | unsignedMin | Integer (0..65535) |
+| 7 | height | unsignedMin | Integer (0..65535) |
+| 8 | maximumHeight | unsignedMin | Integer (0..65535) |
+| 9 | minimumHeight | unsignedMin | Integer (0..65535) |
+| 128 | acknowledge | logical | None |
+| 129 | reject | logical | None |
+| 130 | allowAnyHeight | logical | None |
+
+##### 6.2.5.5.1 channelID
+
+The channelID parameter shall be the AMC channel ID on ITU-T H.230 systems in Table 9 of [ITU-T H.239]. On ITU-T H.245 systems, it shall be a **logicalChannelNumber**. Intermediary devices such as gateways and MCUs that forward these parameters shall convert the parameter value to the appropriate AMC channel ID or **logicalChannelNumber** for the device to which the message is forwarded.
+
+##### 6.2.5.5.2 par
+
+This value is a Boolean array of picture aspect ratios (PARs). The PAR is the ratio of picture width to picture height, measured in units of distance (not samples).
+
+If bit 2 (value 64) is 1, this indicates a PAR of 4:3.
+
+If bit 3 (value 32) is 1, this indicates a PAR of 16:9.
+
+If bit 4 (value 16) is 1, this indicates a PAR of 5:4.
+
+If bit 5 (value 8) is 1, this indicates a PAR of 16:10.
+
+All other bits are reserved, shall be set to 0, and shall be ignored by receivers.
+
+##### 6.2.5.5.3 parX
+
+The parX parameter is the numerator of a picture aspect ratio (computed as parX/parY). The parX parameter shall be immediately followed by the picture aspect ratio denominator parY. parX is an unsigned integer between 1 and 65535.
+
+##### 6.2.5.5.4 parY
+
+The parY parameter is the denominator of a picture aspect ratio. It is an unsigned integer between 1 and 65535. The values of parX and parY shall be relatively prime.
+
+##### 6.2.5.5.5 sar
+
+The value of this parameter indicates the sample aspect ratio (SAR). The sar is the ratio of sample width to sample height. It shall be the ITU-T H.264 **aspect\_ratio\_idc** values defined in Table E.1 of [ITU-T H.264], or the value 255.
+
+The value of 255 shall only be used in the setSetmodeIndication message. In that message, it signifies the set of all SARs that may be carried on the video channel.
+
+##### 6.2.5.5.6 sarX
+
+The sarX parameter is the numerator of a sample aspect ratio (computed as sarX/sarY). The sarX parameter shall be immediately followed by the sample aspect ratio denominator sarY. sarX is an unsigned integer between 1 and 65535.
+
+##### 6.2.5.5.7 sarY
+
+The sarY parameter is the denominator of a sample aspect ratio. It is an unsigned integer between 1 and 65535. The values of sarX and sarY shall be relatively prime.
+
+##### 6.2.5.5.8 submodeMaxMBPS
+
+The submodeMaxMBPS parameter is the maximum macroblock processing rate, in units of 500 macroblocks per second.
+
+##### 6.2.5.5.9 submodeMaxStaticMBPS
+
+The submodeMaxStaticMBPS parameter is the static macroblock processing rate, under the assumption that all macroblocks are static macroblocks, in units of 500 macroblocks per second.
+
+##### **6.2.5.5.10 height**
+
+This is the height of the picture in samples.
+
+##### **6.2.5.5.11 maximumHeight**
+
+This is the largest height of the picture in samples (used in a setSubmodeRequest message).
+
+##### **6.2.5.5.12 minimumHeight**
+
+This is the smallest supported picture height in samples (used in a setSubmodeResponse message).
+
+##### **6.2.5.5.13 acknowledge**
+
+This parameter, if present, indicates a positive acknowledgment of a request.
+
+##### **6.2.5.5.14 reject**
+
+This parameter, if present, indicates a rejection of a request.
+
+##### **6.2.5.5.15 allowAnyHeight**
+
+This parameter, if present, indicates that any requested picture height will be positively acknowledged for the specified combination of SARs and PARs.
+
+#### **6.2.5.6 setSubmodeIndication**
+
+This message indicates the combinations of SARs and PARs that are available for the ITU-T H.264 video encoding on a specified video channel. These combinations shall be sent as a series of one or more groups, each group comprising a SAR and one or more PARs. The full set of combinations that are available is the union of the combinations of all the groups in the message.
+
+The SAR shall be signalled as either a single sar parameter or as a single sarX, sarY parameter pair. A sar parameter value of 255 in a group shall indicate that all SARs that can be carried on the channel are combined with the PARs for that group.
+
+The PARs shall be signalled as either a single par parameter or as a list of one or more parX, parY parameter pairs. The par parameter may indicate more than one PAR. The omission of par or parX, parY from a group shall indicate that all the SARs in that group are combined with all possible PARs.
+
+The presence of the allowAnyHeight parameter from a group shall indicate that all picture heights that can be carried on the channel are available for each SAR and PAR combination that is included in that group.
+
+The absence of the allowAnyHeight parameter from a group shall indicate that one or more unspecified picture heights are available for each SAR and PAR combination that is included in that group. Those heights may differ for each combination.
+
+When a video channel is opened to a device which signals support for the set submode procedure, the device transmitting the video channel shall send the setSubmodeIndication. The setSubmodeIndication message shall also be sent whenever the available combinations of SARs and PARs change.
+
+On ITU-T H.320 connections, setSubmodeIndication shall be sent periodically.
+
+**Table 6-4 – setSubmodeIndication syntax**
+
+| GenericParameter order | Parameter name | Required presence | | |
+|------------------------|----------------|------------------------------------------------------------------|---------------------------------------------------------|--|
+| 1 | channelID | Mandatory | | |
+| 2 | sar | Either one sar or one sarX, sarY shall be present in each group. | This group of parameters may be present multiple times. | |
+| | sarX | | | |
+| | sarY | | | |
+| 3 | par | Either one par or multiple parX, parY pairs may be present. | | |
+| | parX | | | |
+| | parY | | | |
+| 4 | allowAnyHeight | allowAnyHeight may be present in each group. | | |
+
+##### 6.2.5.6.1 setSubmodeIndication examples (informative)
+
+This clause does not form an integral part of this Recommendation.
+
+For example:
+
+A setSubmodeIndication contains one group, with sar=255 and allowAnyHeight.
+
+This message indicates that the sender is capable of sending a picture of any size within its capability set with any sample aspect ratio and picture aspect ratio.
+
+For example:
+
+A setSubmodeIndication contains two groups. The first group has sar=1 and allowAnyHeight. The second group has sar=255, par=96.
+
+The first group indicates that the sender is capable of sending pictures with square samples at any PAR and any desired picture height. This is equivalent to saying that the sender is capable of sending pictures with square pixels of any size.
+
+The second group indicates that the sender is capable of sending pictures with any SAR as long as the overall picture aspect ratio is either 4:3 or 16:9. Since allowAnyHeight is not specified, only some picture sizes (perhaps only one size) are available for this group.
+
+A picture with a SAR of 1:1 and an aspect ratio of 4:3 is a member of both groups. Because one of the groups signals allowAnyHeight, such pictures are available at any size.
+
+For example:
+
+A setSubmodeIndication contains 4 groups. The first group has sar=1, par=120 and allowAnyHeight. The second group has sar=2 and par=64. The third group has sar=3 and par=64. The fourth group has sar=7 and par=64.
+
+The first group indicates the ability to send pictures with square samples at picture aspect ratios of 4:3, 16:9, 5:4 or 16:10. These pictures can be sent at any size.
+
+The second group indicates the ability to send pictures with the sample aspect ratio used for PAL with a picture aspect ratio of 4:3. Not all sizes are available, perhaps only QCIF and CIF.
+
+The third group indicates the ability to send pictures with the sample aspect ratio used for NTSC, with a picture aspect ratio of 4:3. Not all sizes are available, perhaps only QSIF and SIF.
+
+The last group indicates the ability to send pictures with the sample aspect ratio used for interlaced NTSC, with a picture aspect ratio of 4:3. Not all sizes are available, perhaps only 352×480.
+
+#### 6.2.5.7 setSubmodeRequest
+
+This message requests that the video encoding on the specified channel be changed to one of the submodes specified in the request.
+
+setSubmodeRequest shall include at least one of the following: SAR, PAR or picture height. It shall include at most one SAR, and at most one PAR, and at most one maximumHeight. It shall not include both maximumHeight and height.
+
+SAR, if present, shall be specified using either the sar parameter or a sarX, sarY pair. The sar parameter shall not signal the value of 255.
+
+PAR, if present, shall be specified using either the par parameter or a parX, parY pair. The par parameter shall only signal one PAR.
+
+The maximumHeight parameter, if present, shall specify that the set of submodes includes all picture heights less than or equal to the value carried by the parameter.
+
+One or more height parameters, if present, shall specify that the set of submodes includes the specific list of picture heights. The picture heights shall be listed in preference order, with the most desired height first.
+
+The submodeMaxMBPS parameter, if present, shall specify that the set of submodes is limited to modes in which the macroblock rate is less than or equal to the maximum number of macroblocks per second carried in the parameter value.
+
+The submodeStaticMaxMBPS parameter, if present, shall specify that the subset of submodes is limited to modes in which the static macroblock rate is less than or equal to the maximum number of static macroblocks per second carried in the parameter value.
+
+**Table 6-5 – setSubmodeRequest syntax**
+
+| GenericParameter order | Parameter name | Required presence |
+|------------------------|----------------------|-----------------------------------------------------------------------------------|
+| 1 | channelID | Mandatory |
+| 2 | sar | Optional |
+| | sarX | Either sar or sarX, sarY may be present. |
+| | sarY | |
+| 3 | par | Optional |
+| | parX | Either par or parX, parY may be present. |
+| | parY | |
+| 4 | height | Optional |
+| | maximumHeight | Either one or more height parameters or at most one maximumHeight may be present. |
+| 5 | submodeMaxMBPS | Optional |
+| 6 | submodeStaticMaxMBPS | Optional |
+
+##### 6.2.5.7.1 setSubmodeRequest examples (informative)
+
+This clause does not form an integral part of this Recommendation.
+
+For example:
+
+A device sends a setSubmodeRequest with par=64 and maximumHeight of 288.
+
+This request is satisfied by any submode with a picture aspect of 4:3, as long as the picture height does not exceed 288. Common intermediate format (CIF), standard interchange
+
+format (SIF) and quarter common intermediate format (QCIF) (among others) are all acceptable responses.
+
+For example:
+
+A device sends a setSubmodeRequest with par=64, and a height list of 288 and 144.
+
+This request is satisfied by any submode with a picture aspect ratio of 4:3, as long as the picture height is either 288 or 144 samples. CIF and QCIF are both acceptable responses, with CIF being preferred over QCIF.
+
+Since the SAR is omitted, there are other possible responses. For instance, the request is satisfied by a picture with square samples, a picture width of 384 and a picture height of 288.
+
+For example:
+
+A device sends a setSubmodeRequest with sar=1, par=32 and height=720.
+
+This request is only satisfied by a picture with a SAR of 1:1, a PAR of 16:9 and a picture size of 1280×720.
+
+In all cases, if the device receiving the request does not support a submode that satisfies the request, it rejects the request.
+
+#### 6.2.5.8 setSubmodeResponse
+
+The setSubmodeResponse message shall be sent in response to every received setSubmodeRequest message.
+
+The channelID parameter shall carry the same value as the channelID in the associated setSubmodeRequest.
+
+The setSubmodeResponse message shall not carry both the acknowledge and the reject parameter.
+
+##### 6.2.5.8.1 setSubmodeRequest acknowledge
+
+If the receiver of the setSubmodeRequest supports one or more submodes that satisfy the request on the specified channel, the setSubmodeResponse shall include the acknowledge parameter. The receiver shall select a submode from the set specified in the request. The SAR, PAR and picture height of the selected submode shall be sent in the setSubmodeResponse.
+
+An ITU-T H.264 video usability information (VUI) message signalling the SAR of the submode as specified in Annex E of [ITU-T H.264] shall be sent in the video bitstream.
+
+ITU-T H.245 receivers of the setSubmodeRequest should not close and reopen the video logical channel when switching to the new submode.
+
+Terminals may include the acknowledge parameter in their response even if multipoint mode symmetrize (MMS) according to [ITU-T H.243] is in effect, or **multipointModeCommand** according to [ITU-T H.245] is in effect.
+
+##### 6.2.5.8.2 setSubmodeRequest reject
+
+If the receiver of the setSubmodeRequest does not support any submodes that satisfy the request, the setSubmodeResponse shall include the reject parameter. The receiver shall not switch to a different submode.
+
+The response should include some indication of heights that are available with the requested SAR and PAR.
+
+Multiple instances of the height parameter may be present, containing heights that are available with the requested SAR and PAR
+
+If the setSubmodeRequest contained maximumHeight, a single instance of minimumHeight may be present, indicating the smallest available height that is available with the requested SAR and PAR.
+
+A setSubmodeResponse message shall not contain both minimumHeight and height.
+
+**Table 6-6 – setSubmodeResponse syntax**
+
+| GenericParameter order | Parameter name | Required presence |
+|------------------------|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 1 | channelID | Mandatory |
+| 2 | acknowledge | Either acknowledge or reject shall be present. |
+| | reject | |
+| 3 | sar | Either sar or sarX, sarY shall be present if acknowledge is present, and shall contain the selected SAR.
sar, sarX and sarY shall not be present if reject is present. |
+| | sarX | |
+| | sarY | |
+| 4 | par | Either par or parX, parY shall be present if acknowledge is present, and shall contain the selected PAR.
par, parX and parY shall not be present if reject is present. |
+| | parX | |
+| | parY | |
+| 5 | height | If acknowledge is present, a single instance of height parameter shall be present, and shall contain the selected picture height.
If reject is present, height or minimumHeight may be present. |
+| | minimumHeight | |
+
+##### 6.2.5.8.3 setSubmodeResponse examples (informative)
+
+This clause does not form an integral part of this Recommendation.
+
+For example:
+
+Device A sends a setSubmodeIndication containing one group, with sar=255 and allowAnyHeight.
+
+The receiver (device B) sends setSubmodeRequest sar=1 and height=480.
+
+Device A determines that the request can be satisfied by sending a 640x480 picture with a SAR of 1:1 and a PAR of 4:3.
+
+Device A sends a setSubmodeReponse of acknowledge, sar=1, par=64, height=480.
+
+For example:
+
+Device A sends a setSubmodeIndication containing two groups. The first group has sar=1 and allowAnyHeight. The second group has sar=255, par=96.
+
+The receiver (device B) sends setSubmodeRequest sar=1 and par=64
+
+Device A determines that the request can be satisfied by sending either a 640×480 or a 1 024×768 picture with a SAR of 1:1 and a PAR of 4:3. Device A chooses to send the 1 024×768 picture.
+
+Device A sends a setSubmodeReponse of acknowledge, sar=1, par=96, height=768.
+
+For example:
+
+Device A sends a setSubmodeIndication containing two groups, one with sar=1 and par=64, the other with sar=2, par=64.
+
+The receiver (device B) sends setSubmodeRequest with sar=2 and par=64 and height=576. Device A determines that the request cannot be satisfied because the picture size is too large. It supports heights of 288 and 144 for this SAR and PAR combination. Device A sends a setSubmodeReponse of reject, sar=1, height=288, height=144. Device B sends a second setSubmodeRequest with sar=2, par=64, height=288. Device A sends a setSubmodeResponse of acknowledge, sar=2, par=64, height=288.
+
+For example:
+
+Device A sends a setSubmodeIndication containing two groups, one with sar=1, par=64, the other with sar=2, par=64. The receiver (device B) sends setSubmodeRequest with sar=2, par=64 and maximumHeight=576. Device A determines that it supports heights of 288 and 144 for this SAR and PAR combination. Device A sends a setSubmodeResponse of acknowledge, sar=2, par=64, height=288.
+
+#### 6.2.5.9 cancelSubmodeRequest
+
+The cancelSubmodeRequest message indicates that the video encoding on the specified channel may revert to sending any video mode allowed by applicable procedures.
+
+Each received cancelSubmodeRequest shall be acknowledged by a cancelSubmodeResponse.
+
+**Table 6-7 – cancelSubmodeRequest syntax**
+
+| GenericParameter order | Parameter name | Required presence |
+|------------------------|----------------|-------------------|
+| 1 | channelID | Mandatory |
+
+#### 6.2.5.10 cancelSubmodeResponse
+
+The cancelSubmodeResponse message indicates that the cancelSubmodeRequest message was received.
+
+**Table 6-8 – cancelSubmodeResponse syntax**
+
+| GenericParameter order | Parameter name | Required presence |
+|------------------------|----------------|-------------------|
+| 1 | channelID | Mandatory |
+
+### 6.2.6 Set scalable video coding (SVC) mode procedure
+
+This clause defines a procedure that may be used by ITU-T H.245 systems to negotiate the use of a particular ITU-T H.264 SVC scalability mode. Such a scalability mode consists of a particular operation point that is selected by a receiver, and determined after a sender has provided a description of its available scalable encoding structure(s).
+
+The sender provides a description of its scalable video coding structure, including the different available operation points, using the "sprop-scalability-info" parameter as defined in 7.1 of [IETF RFC 6190]. The "sprop-scalability-info" parameter is the base64 encoding of the scalability information SEI message defined in clause G.13.1.1 of [ITU-T H.264].
+
+If the "sprop-scalability-info" is provided by a sender, a receiver can optionally select a particular operation point. If no such selection takes place, then the sender should transmit the full SVC stream.
+
+The use of this procedure in BAS-based systems is for further study.
+
+#### 6.2.6.1 SetSVCmode capability
+
+ITU-T H.245 systems may optionally support the set SVC mode procedure.
+
+In [ITU-T H.245], this capability shall be signalled in a generic capability message, as shown in Table 6-9.
+
+**Table 6-9 – ITU-T H.241 set SVC mode capability identifier**
+
+| Capability name | ITU-T H.241 set SVC mode capability |
+|-----------------------------|----------------------------------------------------------------------------------------------------------|
+| Capability identifier type | Standard |
+| Capability Class | Video |
+| Capability identifier value | {itu-t(0) recommendation(0) h(8) h241(241)
specificVideoCodecCapabilities(0) h264(0) set-SVCmode (3)} |
+| maxBitRate | This field shall not be included. |
+| collapsing | This field shall not be included. |
+| nonCollapsing | This field shall not be included. |
+| nonCollapsingRaw | This field shall not be included. |
+| transport | This field shall not be included. |
+
+#### 6.2.6.2 Control and Indication messages
+
+C&I messages are used in this clause to indicate the scalability modes that are supported by the sender of the ITU-T H.264 SVC encoding for that specific encoding, to request a scalability mode of that sender, and to positively or negatively acknowledge such a request.
+
+The C&I messages defined in this clause shall not be used if video sent on the channel associated with the signalled channelID AMC is not encoded with ITU-T H.264 SVC.
+
+All C&I messages defined in this clause shall be carried as follows.
+
+#### 6.2.6.3 Signalling of messages for the set SVC mode procedure
+
+For ITU-T H.245, each message shall consist of a GenericRequest, GenericResponse, or Generic Indication according to Table 6-10 containing GenericMessage.messageIdentifier with the set SVC mode capability OID as defined in Table 6-9, and a subMessageIdentifier. Each particular subMessageIdentifier listed in Table 6-10 has an associated messageContent syntax given in the following clauses.
+
+#### 6.2.6.4 SetSVCmode messages
+
+Table 6-10 lists all messages defined in the SetSVCmode procedure.
+
+**Table 6-10 – Set SVCmode procedure messages**
+
+| subMessageIdentifier | Message name | Message type
(for ITU-T H.245) |
+|----------------------|----------------------|-----------------------------------|
+| 1 | setSVCmodeRequest | GenericRequest |
+| 2 | setSVCmodeResponse | GenericResponse |
+| 3 | setSVCmodeIndication | GenericIndication |
+
+For each message, the clauses below present a table indicating the message content and syntax. The sequence of GenericParameters in the messageContent shall be transmitted in the order given in each table. The parameter names given in each table correspond to those in Table 6-10 above. Parameters shall be sent as indicated in the "required presence" column of each table.
+
+#### 6.2.6.5 Generic parameters used in SetSVCmode messages
+
+Table 6-11 lists the GenericParameters used in all messageContent sequences in the SetSVCmode messages.
+
+**Table 6-11 – Set SVCmode message parameters**
+
+| Parameter identifier | Parameter name | Parameter type | Parameter value |
+|----------------------|-------------------------|----------------|--------------------|
+| 40 | channelID | unsignedMin | Integer (0..65535) |
+| 43 | SSEI | octetString | |
+| 44 | layers_not_present | octetString | |
+| 45 | layer_dependency_change | octetString | |
+| 46 | scalable_layer_id | unsignedMin | Integer (0..255) |
+
+##### 6.2.6.5.1 channelID
+
+On ITU-T H.245 systems, channelID shall be a logicalChannelNumber.
+
+##### 6.2.6.5.2 SSEI
+
+This value shall be identical to the value of the parameter "sprop-scalability-info" as defined in [IETF RFC 6190] (i.e., the base64 encoding of the scalability information SEI message defined in [ITU-T H.264] Annex G). It contains the scalability information SEI message of the ITU-T H.264 SVC video.
+
+##### 6.2.6.5.3 layers\_not\_present
+
+This value shall be equal to the base64 encoding of the layers\_not\_present SEI message defined in clause G.13.1.5 of [ITU-T H.264]. This message is used to indicate that NAL units of a particular subset of layers (identified by their layer\_id) from the set of layers identified in the associated SSEI are not present in the bitstream.
+
+##### 6.2.6.5.4 layer\_dependency\_change
+
+This value shall be equal to the base64 encoding of the layer\_dependency\_change SEI message defined in clause G.13.1.6 of [ITU-T H.264]. This message is used to indicate that the interdependencies between particular scalable layers indicated by the associated SSEI message are changed.
+
+##### 6.2.6.5.5 scalable\_layer\_id
+
+The scalable\_layer\_id parameter identifies a particular layer within the data structure provided by the SSEI parameter, and is identical to the "scalable-layer-id" parameter defined in [IETF RFC 6190].
+
+#### 6.2.6.6 setSVCmodeIndication
+
+This message indicates the scalability information for the ITU-T H.264 SVC encoding on a specified video channel. If the sender has suspended transmission of layers of the SVC bitstream, then the optional parameter layers\_not\_present parameter shall be included as well. If the decoding dependency is different than what is described in the SSEI parameter, then the optional layer\_dependency\_change parameter shall be included as well.
+
+This message may be transmitted periodically to enable receivers to know the scalability structure after the connection is set up.
+
+**Table 6-12– setSVCmodeIndication syntax**
+
+| GenericParameter order | Parameter name | Required presence |
+|-------------------------------|-------------------------|--------------------------|
+| 1 | channelID | Mandatory |
+| 2 | SSEI | Mandatory |
+| 3 | layers_not_present | Optional |
+| 4 | layer_dependency_change | Optional |
+
+#### **6.2.6.7 setSVCmodeRequest**
+
+This message requests that scalable layers of the video encoding on the specified channel be changed to the mode specified in the request.
+
+setSVCModeRequest shall include a single scalable\_layer\_id indication.
+
+The value of the scalable\_layer\_id parameter shall be equal to one of the layer\_id values contained in the SSEI parameter that has been communicated in the associated setSVCmodeIndication message.
+
+The value of the scalable\_layer\_id parameter shall be equal to one of the layer\_id values contained in the SSEI parameter that has been communicated in the associated setSVCmodeIndication message.
+
+**Table 6-13– setSVCmodeRequest syntax**
+
+| GenericParameter order | Parameter name | Required presence |
+|-------------------------------|-----------------------|--------------------------|
+| 1 | channelID | Mandatory |
+| 2 | scalable_layer_id | Mandatory |
+
+#### **6.2.6.8 setSVCmodeResponse**
+
+The setSVCmodeResponse message shall be sent in response to every received setSVCmodeRequest message.
+
+The channelID and scalable\_layer\_id parameters shall carry the same value as the channelID and scalable\_layer\_id in the associated setSVCRequest.
+
+**Table 6-14– setSVCmodeResponse syntax**
+
+| GenericParameter order | Parameter name | Required presence |
+|-------------------------------|-----------------------|--------------------------|
+| 1 | channelID | Mandatory |
+| 2 | scalable_layer_id | Mandatory |
+
+# **7 Transport of coded video in ITU-T H.300-series systems**
+
+## **7.1 Transport of Recommendation ITU-T H.264 video streams**
+
+Regardless of which ITU-T H.300-series system is in use – ([ITU-T H.310], [ITU-T H.320], [ITU-T H.321], [ITU-T H.322], [ITU-T H.323], or [ITU-T H.324]) – all ITU-T H.264 encoders should take the maximum transmission unit (MTU) size of IP networks into account when choosing the maximum length of ITU-T H.264 NAL Units, as ITU-T H.323 gateways may be used to transport these streams on IP networks.
+
+To be transported in a maximum-length RTP packet according to [ITU-T H.323], ITU-T H.264 NAL Units should be less than 64 000 bytes long. This value allows a substantial margin for packet header information.
+
+To avoid IP-layer packet fragmentation (which may increase header overhead and the probability of loss due to errors), ITU-T H.264 NAL Units should be substantially shorter than the MTU size of the network. For example, on an Ethernet network with a 1 472 byte MTU, a 1 200 byte NAL Unit allows for addition of considerable header overhead without exceeding the MTU size of the network.
+
+### **7.1.1 Parameter set transmission**
+
+ITU-T H.264 parameter set information shall be transmitted in-band to the ITU-T H.264 video stream (see Note in 7.4.1.2.1 of [ITU-T H.264]).
+
+Terminals sending ITU-T H.264 video shall transmit each sequence or picture parameter set at a time prior to its reference by any ITU-T H.264 slice. These parameter sets may be re-sent at any time for redundancy.
+
+NOTE – There is no requirement that parameter sets must be transmitted each time they are about to be referenced by an ITU-T H.264 slice. The transmission may take place at any time prior to the reference. Ordinarily, many ITU-T H.264 slices will refer to the same parameter set, with the parameter set being sent only once.
+
+### **7.1.2 Use of ITU-T H.264 in BAS-based systems**
+
+When carried in a BAS-signalling-based system, the ITU-T H.264 video shall make use of the byte stream format given in Annex B of [ITU-T H.264].
+
+The resulting byte stream shall be transmitted using the framing and forward error correction method given in clause 5.4 of [ITU-T H.261]. This procedure is the same as that used for [ITU-T H.261] and [ITU-T H.263].
+
+Terminals encoding ITU-T H.264 video may insert fill bits using the fill indicator (Fi) as described in clause 5.4.3 of [ITU-T H.261].
+
+NOTE – Insertion of such fill may be useful, for example, to reduce the effective coded video data rate within the video channel to avoid exceeding an ITU-T H.264 decoder's maximum video bitrate (MaxBR) as given in Annex A of [ITU-T H.264].
+
+### **7.1.3 Transport of ITU-T H.264 streams in ITU-T H.310 systems**
+
+In ITU-T H.310 systems, the ITU-T H.264 video shall make use of the byte stream format given in Annex B of [ITU-T H.264]. ITU-T H.264 shall be used without BCH error correction and without error correction framing.
+
+### **7.1.4 Transport of ITU-T H.264 streams in ITU-T H.323 systems**
+
+In ITU-T H.323 systems, ITU-T H.264 shall be used without BCH error correction and without error correction framing. ITU-T H.323 systems shall not make use of the byte stream format given in Annex B of [ITU-T H.264].
+
+All ITU-T H.323 systems that support ITU-T H.264 shall support carriage of the ITU-T H.264 video stream according to Annex A, and shall signal this in their capability set by including `MediaPacketizationCapability.rtpPayload.Type.payloadDescriptor.oid`, with the OID having the value `{itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) iPPacketization(0) h241AnnexA(0)}` and a capability class of Video.
+
+ITU-T H.323 systems that support ITU-T H.264 should also support the non-interleaved mode of [IETF RFC 6184] and may support the interleaved mode of [IETF RFC 6184], in addition to Annex A.
+
+ITU-T H.323 systems that support ITU-T H.264 Annex G profiles shall support the non-interleaved mode of [IETF RFC 6184]. Furthermore, ITU-T H.323 systems that support ITU-T H.264 Annex G profiles shall support carriage of the ITU-T H.264 SVC stream with the single-session transmission mode of [IETF RFC 6190]. The use of the multi-session transmission mode of [IETF RFC 6190] in ITU-T H.323 systems is for further study.
+
+The capability of using the non-interleaved mode of [IETF RFC 6184] shall be signalled by including a MediaPacketizationCapability.rtpPayloadType.payloadDescriptor.oid, with the OID having the value {itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) iPpacketization(0) rfc6184NonInterleaved(1)} and a capability class of Video. The capability of using the interleaved mode of [IETF RFC 6184] shall be signalled by including a MediaPacketizationCapability.rtpPayloadType.payloadDescriptor.oid, with the OID having the value {itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) iPpacketization(0) rfc6184Interleaved(2)} and a capability class of Video.
+
+NOTE 1 – Since the single NAL unit mode of [IETF RFC 6184] and Annex A are technically identical, the codepoints above permit the use of all packetization modes of [IETF RFC 6184].
+
+A sender which signals one of these packetization modes in its Open Logical Channel message shall transmit video according to the corresponding mode of [IETF RFC 6184] or Annex A.
+
+In the interleaved mode of [IETF RFC 6184], senders and receivers need to have a common understanding of the required buffer sizes for the interleaving buffer. Unless signalled explicitly, these buffer sizes shall take the following values:
+
+- sprop-interleaving-depth 80
+- sprop-deint-buf-req 65 536
+
+The explicit signalling of these parameters is for further study.
+
+NOTE 2 – See IETF RFC 6184 section 8.1 for a description of both parameters. The values given are sufficient to support macroblock-line interleaved packetization of video signals with 1 080 lines at 8 Mbit/s. See clause III.2.3.1 of [ITU-T H.263] for a discussion of macroblock-line interleaved packetization.
+
+### 7.1.5 Transport of ITU-T H.264 streams in ITU-T H.324 systems
+
+In ITU-T H.324 systems, ITU-T H.264 shall be used without BCH error correction and without error correction framing, and shall make use of the byte stream format given in Annex B of [ITU-T H.264].
+
+ITU-T H.264 encoders shall align the Annex B of ITU-T H.264 start code prefix for the first NAL unit of each access unit with the start of an AL-SDU.
+
+### 7.1.6 Sample aspect ratios (informative)
+
+Transmission of the sample aspect ratio in the VUI parameters specified in Annex E of [ITU-T H.264] was not required in earlier versions of this Recommendation, and many older systems do not indicate the sample aspect ratio in the ITU-T H.264 video bitstream.
+
+In the absence of an ITU-T H.264 VUI parameter **aspect\_ratio\_idc** value in the received ITU-T H.264 bitstream, and in the case of an **aspect\_ratio\_idc** value equal to 0, the sample aspect ratio may be assumed to have a value according to Table 7-1 below:
+
+**Table 7-1 – Assumed sample aspect ratios**
+
+| Frame size
(luma width × luma height) | Sample aspect ratio |
+|------------------------------------------|------------------------------------------------------------|
+| 128 × 96 (SQCIF) | 12:11 |
+| 176 × 144 (QCIF) | 12:11 |
+| 352 × 288 (CIF) | 12:11 |
+| 704 × 576 (4CIF) | 12:11 |
+| 720 × 576 (625 ITU-R BT.601) | 12:11 |
+| 352 × 576 (625 HHR) | 24:11 |
+| 528 × 576 (625 3/4 HR) | 16:11 |
+| 480 × 576 (625 2/3 HR) | 18:11 |
+| 352 × 240 (525 SIF) | 10:11 |
+| 704 × 480 (525 4SIF) | 10:11 |
+| 720 × 480 (525 ITU-R BT.601) | 10:11 |
+| 352 × 480 (525 HHR) | 20:11 |
+| 528 × 480 (525 3/4 HR) | 40:33 |
+| 480 × 480 (525 2/3 HR) | 15:11 |
+| 320 × 240 (QVGA) | 1:1 |
+| 640 × 480 (VGA) | 1:1 |
+| 800 × 600 (SVGA) | 1:1 |
+| 1 024 × 768 (XGA) | 1:1 |
+| 1 280 × 1 024 (SXGA) | 1:1 |
+| 1 600 × 1 200 (UXGA) | 1:1 |
+| 1 280 × 720 (720 HD) | 1:1 |
+| 1 920 × 1 080 (1080 HD) | 1:1 |
+| 1 920 × 1 088 (1080 HD) | 1:1 |
+| other | the value which will produce a picture aspect ratio of 4:3 |
+
+NOTE – All systems which send ITU-T H.264 video should indicate the sample aspect ratio in the VUI parameters specified in Annex E of [ITU-T H.264].
+
+# 8 Capability exchange signalling
+
+## 8.1 General
+
+Terminals which display received video shall be capable of displaying any picture format and frame rate for which they signal the capability. The format used to display such received video streams is not required to match the exact format transmitted.
+
+NOTE – For example, a video conferencing system which decodes [ITU-T H.264] at a given Profile and Level must display any picture format and frame rate allowed by that Profile and Level.
+
+If during an ongoing connection a terminal which is transmitting video receives a changed capability set, the terminal shall adapt its video coding method to conform with all the limitations signalled in the received capability set.
+
+## 8.2 Signalling of ITU-T H.245 generic parameters in BAS-based systems
+
+This Recommendation signals a subset of ITU-T H.245 **GenericParameter** structures in BAS channel MBE messages. These messages shall be carried in BAS-based systems using the procedures of Annex A of [ITU-T H.239]. These procedures avoid emulation of the MBE BAS code.
+
+## 8.3 ITU-T H.264 capabilities
+
+### 8.3.1 General
+
+ITU-T H.300-series terminals may optionally support video according to [ITU-T H.264].
+
+The ITU-T H.264 capability set is structured as a list of one or more ITU-T H.264 capabilities, each of which includes:
+
+- Profile (mandatory)
+- Level (mandatory)
+- Zero or more optional parameters.
+
+These capabilities indicate the ability to decode using one or more ITU-T H.264 Profiles. The exact syntax and semantics are given in the clauses below. In the case of ITU-T H.245-based systems, each capability is contained in a **GenericCapability** structure. For BAS-based systems, all capabilities are carried in a single MBE message.
+
+The bitrate made available for a video stream by an ITU-T H.300-series system may be less than the maximum video bitrate which decoders are required to support by Annex A of [ITU-T H.264]. Terminals are not required to decode video streams which they do not receive.
+
+#### 8.3.1.1 Optional parameters
+
+For each [ITU-T H.264] capability, optional parameters may be signalled. These parameters permit a terminal to signal that, in addition to meeting the support requirements for the signalled Profile and Level, the terminal has additional capabilities or constraints.
+
+For ITU-T H.264 SVC, the optional parameters are also used to indicate that one of the scalable profiles is used. This is performed via the AdditionalModesSupported parameter as explained below.
+
+Terminals shall not signal a set of optional parameters indicating the practical capability to fully support a given Level, without also signalling support for that Level.
+
+The optional parameters are:
+
+- 1) CustomMaxMBPS – If present, indicates that the decoder has a higher processing rate capability.
+- 2) CustomMaxFS – If present, indicates that the decoder can decode larger picture (frame) sizes.
+- 3) CustomMaxDPB – If present, indicates that the decoder has additional decoded picture buffer memory.
+- 4) CustomMaxBRandCPB – If present, indicates that the decoder can decode a higher video bitrate and has a correspondingly larger coded picture buffer.
+- 5) MaxStaticMBPS – If present, indicates the maximum number of macroblocks per second that the decoder could process in the hypothetical case that all macroblocks are static macroblocks (see clause 8.3.2.8).
+- 6) max-rcmd-nal-unit-size – If present, indicates in bytes the maximum recommended NAL unit size. Encoders may exceed this size, but inefficiencies or an increased chance of loss due to errors might result (see clause 8.3.2.9).
+
+- 7) max-nal-unit-size – If present, indicates in bytes the maximum NAL unit size that the receiver can process. The encoder shall not exceed this size (see clause 8.3.2.10).
+- 8) SampleAspectRatiosSupported – If present, indicates the range of supported sample aspect ratios (see clause 8.3.2.11).
+- 9) AdditionalModesSupported – If present, indicates one or more additional ITU-T H.264 modes supported (see clause 8.3.2.12).
+- 10) AdditionalDisplayCapabilities – If present, indicates one or more additional display capabilities (see clause 8.3.2.13).
+- 11) MaxFPS – If present, indicates the maximum picture rate that can be efficiently received or the maximum picture rate that can be sent (see clause 8.3.2.14).
+
+If these parameters are present, the signalled values replace the MaxMBPS, MaxFS, MaxDPB, MaxBR, and MaxCPB values, respectively, in Table A.1 of [ITU-T H.264] for the given Profile and Level, and indicate that, in addition to fully conforming with the Profile and Level requirements, these additional capabilities are available at the decoder.
+
+These optional parameters permit, for example, support of $1\,024 \times 768 \times 3$ Hz while using Level 2 (CIF/30 Hz), a common mode for videoconferencing systems.
+
+NOTE – The use of these optional parameters to signal decoder capabilities does not alter the requirement of [ITU-T H.264] that the **level\_idc** syntax element, set by the encoder in the video bitstream, indicate an Annex A of [ITU-T H.264] Level with which the bitstream fully conforms. The use of these optional parameters permits the encoder to send bitstreams with a Level higher than the Level capability of the decoder, if the bitstream exceeds the decoder's Level capability only within the limits of these optional parameters. To maximize interoperability, encoders should set **level\_idc** to indicate the lowest Level of Annex A of [ITU-T H.264] that the bitstream fully conforms to.
+
+All ITU-T H.300-series systems which support ITU-T H.264 shall support Baseline Profile, Level 1, in addition to any other Profiles, Levels or optional parameters.
+
+### 8.3.2 ITU-T H.264 generic capabilities for ITU-T H.245
+
+This clause defines the generic capabilities for ITU-T H.264 in the ITU-T H.245 signalling system.
+
+If a terminal has the capability to decode according to more than one ITU-T H.264 Profile with different Levels capabilities (for example, Baseline Profile at Level 3 and Extended Profile at Level 2) or with different optional parameters for each Profile, this may be signalled by a separate Generic Capability for each supported Profile.
+
+NOTE – Parameter identifier value 0 is not defined, and should not be defined in the future. This value is reserved so that it can be used in the equivalent BAS-signalling-based system MBE message as a demarcation between separate capabilities within the single MBE message, as defined in Annex A of [ITU-T H.239].
+
+#### 8.3.2.1 ITU-T H.264 capability identifier
+
+See Table 8-1.
+
+**Table 8-1 – ITU-T H.264 capability identifier**
+
+| | |
+|-----------------------------|---------------------------------------------------------------------------------------------------------|
+| Capability name | ITU-T H.241 H.264 Video Capabilities |
+| Capability identifier type | standard |
+| Capability Class | Video |
+| Capability identifier value | {itu-t(0) recommendation(0) h(8) 241 specificVideoCodecCapabilities(0) h264(0) generic-capabilities(1)} |
+
+**Table 8-1 – ITU-T H.264 capability identifier**
+
+| | |
+|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| maxBitRate | This field shall be included, in units of 100 bit/s. This field represents the maximum bitrate of the ITU-T H.264 Type II bitstream as defined in Annex C of [ITU-T H.264]. |
+| collapsing | This field shall contain the ITU-T H.264 Capability Parameters as given below. |
+| nonCollapsing | This field shall not be included. |
+| nonCollapsingRaw | This field shall not be included. |
+| transport | This field shall not be included. |
+
+#### **8.3.2.2 ITU-T H.264 Profile parameter**
+
+See Table 8-2.
+
+**Table 8-2 – ITU-T H.264 capability parameter – Profile**
+
+| | |
+|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | Profile |
+| Parameter description | This parameter is a Boolean array.
If bit 2 (value 64) is 1, this indicates the Baseline Profile.
If bit 3 (value 32) is 1, this indicates the Main Profile.
If bit 4 (value 16) is 1, this indicates the Extended Profile.
If bit 5 (value 8) is 1, this indicates the High Profile.
If bit 6 (value 4) is 1, this indicates the High 10 Profile.
If bit 7 (value 2) is 1, this indicates the High 4:2:2 Profile.
If bit 8 (value 1) is 1, this indicates the High 4:4:4 Profile.
All other bits are reserved, shall be set to 0, and shall be ignored by receivers.
In a capability, for each bit set to 1, this means that the terminal is capable of using the indicated Profile(s) using the Level and other optional parameters in this Generic Capability.
In an OpenLogicalChannel message, for each bit set to 1, this means that the logical channel contents obey all constraints of the indicated Profile(s).
NOTE 1 – Additional Profiles and Additional modes can be signalled in separate parameters – for example, in the AdditionalModesSupported parameter.
NOTE 2 – Bit 1 remains reserved since if the three high-order bits of this parameter are set, this could create an unintentional emulation of the MBE BAS code in [ITU-T H.230].
|
+| Parameter identifier value | 41 |
+| Parameter status | Mandatory.
This parameter shall appear exactly once in each Generic Capability. |
+| Parameter type | booleanArray |
+| Supersedes | This field shall not be included. |
+
+Each ITU-T H.264 Generic Capability shall include the Profile parameter. If the capability signals support only Profiles or Additional Modes, which are not included in this parameter, then all bits in this Profile parameter shall be set to 0.
+
+##### 8.3.2.2.1 ITU-T H.264 Profile parameter examples (informative)
+
+For example, support of the Baseline Profile at Level 3 would be signalled with the following parameters:
+
+- Profile = value 64 (Baseline: bit 2 set);
+- Level = value 64 (Level 3, per Table 8-4).
+
+For example, support of the Baseline Profile at level 2 and RCDO at Level 4 would be signalled with two ITU-T H.264 Generic Capabilities, one with the parameters:
+
+- Profile = value 64 (Baseline: bit 2 set);
+- Level = value 43 (Level 2, per Table 8-4).
+
+and the other with parameters:
+
+- Profile = value 0 (no bits set);
+- Level = value 85 (Level 4, per Table 8-4);
+- AdditionalModesSupported = 64 (RCDO: bit 2 set per Table 8-13).
+
+For example, support of either the High 10 Profile, the Main Profile, or RCDO, all at Level 2.2 would be signalled with the parameters:
+
+- Profile = value 36 (Main: bit 3 set, and High 10: bit 6 set);
+- Level = value 57 (Level 2.2, per Table 8-4);
+- AdditionalModesSupported = 64 (RCDO – bit 2 set per Table 8-13).
+
+#### 8.3.2.3 ITU-T H.264 Level parameter
+
+The Level parameter signals the ITU-T H.264 Level.
+
+**Table 8-3 – ITU-T H.264 capability parameter – Level**
+
+| Parameter name | Level |
+|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter description | Signals a value according to Table 8-4, indicating the ITU-T H.264 Level. All other values are reserved and shall not be transmitted.
Terminals that receive this signal with a Level parameter value less than the lowest Level parameter value shown in Table 8-4, shall ignore this capability parameter.
NOTE – Such values are reserved for future use.
For all other received Level parameter values, the terminal shall interpret the signalled ITU-T H.264 Level number as the ITU-T H.264 Level number corresponding to the highest Level parameter value in Table 8-4 which is less than or equal to the received Level parameter value. |
+| Parameter identifier value | 42 |
+| Parameter status | Mandatory.
This parameter shall appear exactly once in each Generic Capability. |
+| Parameter type | unsignedMin |
+| Supersedes | This field shall not be included. |
+
+**Table 8-4 – Level parameter values**
+
+| Level parameter value | ITU-T H.264 Level number |
+|-----------------------|--------------------------|
+| 15 | 1 |
+| 19 | 1b |
+| 22 | 1.1 |
+| 29 | 1.2 |
+| 36 | 1.3 |
+| 43 | 2 |
+| 50 | 2.1 |
+| 57 | 2.2 |
+| 64 | 3 |
+| 71 | 3.1 |
+| 78 | 3.2 |
+| 85 | 4 |
+| 92 | 4.1 |
+| 99 | 4.2 |
+| 106 | 5 |
+| 113 | 5.1 |
+| 120 | 5.2 |
+
+NOTE 1 – Table 8-4 and this parameter description are constructed such that new ITU-T H.264 Levels defined in the future, which are strictly between or above existing Levels, may be inserted into Table 8-4 in the future. If new Levels are defined which do not meet these constraints, they may be inserted below the lowest existing Level. In that case, new rules for interpreting such Level parameter values will be needed.
+
+NOTE 2 – The MaxBR and MaxCBP units of Table A.1 of [ITU-T H.264] are considered as equal to 1 200 bit/s by implementers of [ITU-T H.310], [ITU-T H.320], [ITU-T H.323], and [ITU-T H.324], because these systems transport ITU-T H.264 Type II bitstreams as defined in Annex C of [ITU-T H.264].
+
+#### 8.3.2.4 ITU-T H.264 CustomMaxMBPS processing rate parameter
+
+The optional CustomMaxMBPS parameter permits a decoder to signal that it is capable of decoding video at a higher rate than required by the signalled Level. Encoders may use this knowledge to, for example, send pictures of a given size at a higher frame rate.
+
+**Table 8-5 – ITU-T H.264 capability parameter – CustomMaxMBPS**
+
+| | |
+|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | CustomMaxMBPS |
+| Parameter description | CustomMaxMBPS is the maximum macroblock processing rate, in units of 500 macroblocks per second.
This optional parameter, when present, may be considered by the encoder to replace the MaxMBPS value in Table A.1 of [ITU-T H.264] for the signalled Level. The value of (CustomMaxMBPS × 500) shall not be less than the value MaxMBPS for the Level given in Table A.1 of [ITU-T H.264]. |
+| Parameter identifier value | 3 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | unsignedMin |
+| Supersedes | This field shall not be included. |
+
+#### 8.3.2.5 ITU-T H.264 CustomMaxFS frame size parameter
+
+The optional CustomMaxFS parameter permits a decoder to signal that it is capable of decoding larger picture sizes than required by the signalled Level. Encoders may use this knowledge to, for example, send larger pictures at a proportionally lower frame rate.
+
+**Table 8-6 – ITU-T H.264 capability parameter – CustomMaxFS**
+
+| | |
+|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | CustomMaxFS |
+| Parameter description | CustomMaxFS is the maximum frame size, in units of 256 luma macroblocks.
This optional parameter, when present, shall be considered to replace the MaxFS value in Table A.1 of [ITU-T H.264] for the signalled Level. The value of $(\text{CustomMaxFS} \times 256)$ shall not be less than the value MaxFS for the Level given in Table A.1 of [ITU-T H.264]. |
+| Parameter identifier value | 4 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | unsignedMin |
+| Supersedes | This field shall not be included. |
+
+#### 8.3.2.6 ITU-T H.264 CustomMaxDPB memory parameter
+
+The optional CustomMaxDPB parameter permits a decoder to signal that it has more than the minimum amount of decoded picture buffer memory required by the signalled Level. Encoders may use this knowledge to construct coded video streams with improved compression.
+
+A system which signals CustomMaxDPB shall be capable of storing the value of $(\text{CustomMaxDPB} \times 256/3)$ macroblocks in its decoded picture buffer.
+
+**Table 8-7 – ITU-T H.264 capability parameter – CustomMaxDPB**
+
+| | |
+|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | CustomMaxDPB |
+| Parameter description | CustomMaxDPB is the maximum decoded picture buffer size, in units of 256/3 macroblocks.
This optional parameter, when present, shall be considered to replace the MaxDpbMbs value in Table A.1 of [ITU-T H.264] for the signalled Level. The value of $(\text{CustomMaxDPB} \times 256/3)$ shall not be less than the value (MaxDpbMbs) for the Level given in Table A.1 of [ITU-T H.264]. |
+| Parameter identifier value | 5 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | unsignedMin |
+| Supersedes | This field shall not be included. |
+
+#### 8.3.2.7 ITU-T H.264 CustomMaxBRandCPB bitrate and coded picture buffer size parameter
+
+The optional CustomMaxBRandCPB parameter permits a decoder to signal that it is capable of decoding video streams of higher bitrate, and that it has a correspondingly larger coded picture buffer, than required by the signalled Level. Encoders may use this knowledge to, for example, send higher bitrate video to achieve improved video quality.
+
+**Table 8-8 – ITU-T H.264 capability parameter – CustomMaxBRandCPB**
+
+| | |
+|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | CustomMaxBRandCPB |
+| Parameter description | CustomMaxBRandCPB is the maximum video bitrate. The maximum coded picture buffer (CPB) size is derived from the maximum video bitrate.
The units for maximum video bitrate are 25 000 bit/s for the VCL HRD parameters and 30 000 bit/s for the NAL HRD parameters.
NOTE – For transport of ITU-T H.264 bitstreams in ITU-T H.310, ITU-T H.320, ITU-T H.323, and ITU-T H.324 the appropriate video bitrate unit is 30 000 bit/s, because these systems transport Type II ITU-T H.264 bitstreams as defined in Annex C of [ITU-T H.264]. This parameter does not use units of cpbBrVclFactor and cpbBrNALFactor, (see Table A.1 of [ITU-T H.264] and Table A.2 of [ITU-T H.264]).
The CPB size shall be derived as equal to the MaxCPB for the signalled Level (see Table A.1 of [ITU-T H.264]), multiplied by the ratio of the signalled maximum bitrate to the MaxBR for the signalled level.
For example, if a terminal signals Level 1.2 with CustomMaxBRandCPB equal to 62, this indicates a maximum video bitrate of 1.550 Mbit/s for VCL HRD parameters, a maximum video bitrate of 1.860 Mbit/s for NAL HRD parameters, and a CPB size of 4 036 458 bits
.
This optional parameter, when present, shall be considered to replace the MaxBR and MaxCPB values in Table A.1 of [ITU-T H.264] for the signalled Level. The bit rate signalled by the CustomMaxBRandCPB parameter shall not be less than the maximum bit rate given in the MaxBR column of Table A.1 of [ITU-T H.264], for the Level signalled.
|
+| Parameter identifier value | 6 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | unsignedMin |
+| Supersedes | This field shall not be included. |
+
+#### 8.3.2.8 ITU-T H.264 MaxStaticMBPS processing rate parameter
+
+The optional MaxStaticMBPS parameter permits a decoder to signal that it is capable of decoding video containing static macroblocks at a higher rate than required by the signalled Level. Encoders may use this knowledge to, for example, send pictures of a given size at a higher frame rate.
+
+In the ITU-T H.264 context, static macroblocks are defined as macroblocks for which all of the following conditions are fulfilled:
+
+- 1) CodedBlockPatternLuma and CodedBlockPatternChroma, when assigned a value in ITU-T H.264, are both equal to 0; and
+- 2) either of the following conditions are fulfilled:
+ - a) mb\_type is equal to P\_Skip or P\_L0\_16x16 and weighted\_pred\_flag is not equal to 1; or
+ - b) mb\_type is equal to B\_Skip, B\_Direct\_16x16, B\_L0\_16x16, or B\_L1\_16x16 and weighted\_bipred\_idc is not equal to 1;
+- 3) only a single list X for X = 0 or 1 (List 0 or List 1) is used in the inter prediction process for the macroblock, within which the values of mvLX[0], mvLX[1], and refIdxLX are all equal to 0; and
+
+- 4) either of the following conditions are fulfilled:
+- a) the macroblock is a frame macroblock and the reference index value 0 refers to the immediately-preceding frame or complementary field pair in decoding order and the immediately-preceding picture in decoding order is not a non-paired field; or
+ - b) the macroblock is a field macroblock and the reference index value 0 refers to the immediately-preceding field of the same parity in decoding order.
+
+NOTE – The conditions specified above result in a decoding process for macroblocks consisting of copying samples from the same position as the current macroblock in the preceding reference picture in decoding order. The conditions specified above also identify only those macroblocks for which at most one motion vector difference is present in the bitstream.
+
+All other macroblocks are non-static macroblocks.
+
+**Table 8-9 – ITU-T H.264 capability parameter – MaxStaticMBPS**
+
+| | |
+|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | MaxStaticMBPS |
+| Parameter description | MaxStaticMBPS is the maximum number of static macroblocks per second the decoder can process under the assumption that all macroblocks are static macroblocks, in units of 500 macroblocks per second.
When this optional parameter is present the value of MaxMBPS in Table A.1 of [ITU-T H.264] for the signalled Level should be considered by the encoder to be equal to the result of the following procedure:
- 1) If the optional parameter CustomMaxMBPS is signalled, set a variable MaxMacroblocksPerSecond equal to the value (CustomMaxMBPS × 500). Otherwise, set MaxMacroblocksPerSecond equal to the value of MaxMBPS for the Level given in Table A.1 of [ITU-T H.264].
- 2) Set a variable Pnon-static to the proportion of non-static macroblocks in picture n.
- 3) Set a variable Pstatic to the proportion of static macroblocks in picture n.
- 4) The value of MaxMBPS in Table A.1 of [ITU-T H.264] for the signalled Level should be considered by the encoder to be equal to:
The encoder should recompute this value for each picture.
The value of (MaxStaticMBPS × 500) shall not be less than the value MaxMBPS for the Level given in Table A.1 of [ITU-T H.264], and if CustomMaxMBPS is signalled, shall not be less than the value (CustomMaxMBPS × 500).
The computed value of MaxMBPS should be used by the encoder to determine the minimum interval between picture n and picture n+1, as specified in the references to MaxMBPS in Annex A of [ITU-T H.264].
|
+| Parameter identifier value | 7 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | unsignedMin |
+| Supersedes | This field shall not be included. |
+
+##### 8.3.2.8.1 Use of ITU-T H.264 MaxStaticMBPS example (informative)
+
+This clause does not form an integral part of this Recommendation.
+
+For example, suppose a Level 1.2 capable decoder (MaxMBPS = 6 000) with a signalled MaxStaticMBPS value of 120 (a processing rate of 60 000 static macroblocks per second) is receiving XGA video (1 024 × 768 luma samples per picture), which contains 3 072 luma macroblocks per picture, and that only a mouse cursor is moving in the video scene. (This example assumes the decoder has a CustomMaxFS value that permits this picture size.)
+
+Suppose further that encoding the mouse cursor region requires only 4 macroblocks in a particular picture, so all other macroblocks can be static macroblocks. The procedure described above yields a MaxMBPS of 59 305 macroblocks per second ( $1 / ((4 / 3\,072) / 6\,000) + (((3\,072 - 4) / 3\,072) / 60\,000)$ ).
+
+This would permit the encoder to generate the next picture after an interval of 51.8 ms ( $3\,072 / 59\,305$ ), corresponding to an instantaneous frame rate of 19.3 Hz ( $59\,305 / 3\,072$ ), compared to an interval of 512 ms ( $3\,072 / 6\,000$ ), corresponding to an instantaneous frame rate of only 2.0 Hz without the use of MaxStaticMBPS.
+
+##### 8.3.2.8.2 Determination of ITU-T H.264 MaxStaticMBPS value (informative)
+
+This clause does not form an integral part of this Recommendation. It provides informative guidance regarding considerations for the determination of the MaxStaticMBPS value for a given decoder implementation.
+
+Practical decoder implementations make use of a wide variety of hardware and software architectures, and there may be no single method of determining a decoder's value of MaxStaticMBPS that is appropriate in all cases; determination of this value is left to the implementer.
+
+One possible method is described here solely as an example:
+
+- 1) Given an implementation which can decode sequences containing only non-static macroblocks at a rate of $R_{decode}$ macroblocks per second.
+- 2) An encoded test video sequence with a known number of macroblocks ( $N$ ), proportion of static macroblocks ( $P_{static}$ ), and of non-static macroblocks ( $P_{non-static} = 1 - P_{static}$ ) can be decoded, and the time required to decode either each picture or the entire sequence measured by experiment ( $T_{decode}$ in seconds).
+- 3) The rate at which static macroblocks can be decoded (StaticMBPS) can be calculated by:
+
+$$\text{StaticMBPS} = P_{static} / (T_{decode} / N - P_{non-static} / R_{decode})$$
+
+This procedure can be repeated with different test sequences containing different proportions of static and non-static macroblocks and different picture sizes.
+
+- 4) The values of StaticMBPS obtained can be plotted against varying values of $P_{static}$ and picture size tested, and interpolation applied between the test points. (Note that in many decoder implementation architectures, the plot of StaticMBPS versus picture size will form a curve.)
+- 5) The lowest value of StaticMBPS obtained on the plots could then be used as the value of MaxStaticMBPS.
+
+In some decoder implementation architectures, the decoding rate is affected by a deblocking filter computation where static and non-static macroblocks are adjacent to each other. To take account of this factor, worst-case test patterns of static and non-static macroblocks can be used.
+
+#### 8.3.2.9 ITU-T H.264 max-rcmd-nal-unit-size
+
+The value of this parameter indicates the largest NAL unit size in bytes that the receiver can handle efficiently. The parameter value is a recommendation, not a strict upper boundary. The sender may create larger NAL units but implementers should consider that inefficiencies or an increased chance of loss due to errors might result.
+
+**Table 8-10 – ITU-T H.264 capability parameter – max-rcmd-nal-unit-size**
+
+| | |
+|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | max-rcmd-nal-unit-size |
+| Parameter description | The value of this parameter indicates the largest NAL unit size in bytes that the receiver is able to handle efficiently. The parameter may have values in the range of 0 to 4 294 967 295, inclusive. |
+| Parameter identifier value | 8 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | Integer |
+| Supersedes | This field shall not be included. |
+
+#### 8.3.2.10 ITU-T H.264 max-nal-unit-size
+
+The value of this parameter indicates the largest NAL unit size in bytes that the receiver is able to handle at all. The sender shall not create NAL units larger than this size.
+
+In the absence of this signal, senders shall not create NAL units larger than 1 400 bytes when using the Interleaved or Non-Interleaved packetization modes. When operating in the Annex A packetization mode, senders should not create NAL units larger than 1 400 bytes.
+
+**Table 8-11 – ITU-T H.264 capability parameter – max-nal-unit-size**
+
+| | |
+|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | max-nal-unit-size |
+| Parameter description | The value of this parameter indicates the largest NAL unit size in bytes that the receiver can process. The parameter can have values in the range of 0 to 4 294 967 295, inclusive. |
+| Parameter identifier value | 9 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | unsigned32Min |
+| Supersedes | This field shall not be included. |
+
+#### 8.3.2.11 ITU-T H.264 SampleAspectRatiosSupported capability
+
+In a receive capability, the value of this parameter indicates the range of sample aspect ratios that the receiver is able to display without geometric (shape) distortion.
+
+In an ITU-T H.245 **OpenLogicalChannel** message, the value of this parameter indicates the range of sample aspect ratios that the Logical Channel will ever contain.
+
+**Table 8-12 – ITU-T H.264 capability parameter – SampleAspectRatiosSupported**
+
+| | |
+|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | SampleAspectRatiosSupported |
+| Parameter description | The value of this parameter indicates support of sample aspect ratios corresponding to ITU-T H.264 aspect_ratio_idc values in the range from 1 to N inclusive, where N is the value of this parameter (see Table E.1 of [ITU-T H.264]).
This parameter shall not take a value outside the range 1 to 254.
NOTE – Support of Table E.1 of ITU-T H.264 Extended_SAR (aspect_ratio_idc value 255) may be signalled using the AdditionalDisplayCapabilities parameter.
|
+| Parameter identifier value | 10 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability.
|
+| Parameter type | unsignedMin |
+| Supersedes | This field shall not be included. |
+
+Terminals that signal this parameter:
+
+- a) shall not send pictures using a sample aspect ratio outside the range signalled by the receiver in the SampleAspectRatiosSupported capability parameter; and
+- b) shall indicate in the VUI parameters specified in Annex E of [ITU-T H.264] the actual sample aspect ratio in any transmitted ITU-T H.264 video streams; and
+- c) shall consider the sample aspect ratio as a part of the video mode when Multipoint Mode Symmetrize (MMS) according to [ITU-T H.243] is in effect, or **multipointModeCommand** according to [ITU-T H.245] is in effect; and
+- d) shall signal a SampleAspectRatiosSupported value of 1 or greater in their receive capability set; and
+- e) should signal a SampleAspectRatiosSupported value of 3 or greater in their receive capability set; and
+- f) in the absence of a received SampleAspectRatiosSupported capability parameter, shall not send any pictures except for those with either:
+ - 1) a picture aspect ratio of 4:3; or,
+ - 2) a sample aspect ratio in the range of 10:11 to 12:11.
+
+NOTE 1 – The sample aspect ratio 12:11 is part of the definition of QCIF, CIF, and 4CIF format pictures.
+
+Terminals are not required to conform with b) above if they transmit a video stream derived from a source with a sample aspect ratio which is unknown.
+
+MCUs are not required to conform with a) and f) above if the SampleAspectRatiosSupported capabilities expressed by the connected receivers are not identical.
+
+NOTE 2 – In some multipoint conferences, a small minority of end points supports a more limited set of sample aspect ratios than the majority of end points. MCUs are not required to conform with a) and f) above, so that they are free in such cases to choose a video mode that is most appropriate for the majority of end points. In such cases, it should be noted that the provisions of clause 8.1 continue in force.
+
+#### 8.3.2.12 AdditionalModesSupported parameter
+
+The optional AdditionalModesSupported parameter permits a terminal to signal that it is capable of decoding using one or more additional video modes, aside from those defined by ITU-T H.264 Profiles. AdditionalModesSupported also permits a terminal to signal that it is capable of decoding one or more scalable profiles of ITU-T H.264 SVC.
+
+**Table 8-13 – ITU-T H.264 capability parameter – AdditionalModesSupported**
+
+| | |
+|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | AdditionalModesSupported |
+| Parameter description | This parameter is a Boolean array.
If bit 2 (value 64) is 1, this indicates support of the Reduced Complexity Decoding Operation (RCDO) as specified in Annex B/H.241.
If bit 3 (value 32) is 1, this indicates the Scalable Baseline profile as specified in Annex G of [ITU-T H.264].
If bit 4 (value 16) is 1, this indicates the Scalable High profile as specified in Annex G of [ITU-T H.264] .
All other bits are reserved, shall be set to 0, and shall be ignored by receivers.
In a decoder capability, for each bit set to 1, this means that the terminal is capable of decoding the indicated mode(s) using the Level and other optional parameters in this Generic Capability.
In an OpenLogicalChannel message, for each bit set to 1, this means that the logical channel contents obey all constraints of the indicated mode(s).
NOTE 1 – If more ITU-T H.264 additional modes are defined in the future than the number of reserved bits can accommodate, additional modes could be signalled by allocating another parameter for more modes.
NOTE 2 – Bit 1 is reserved since, if the three high-order bits of this parameter are set, the procedures of Annex A of [ITU-T H.239] will produce an extra byte of output to avoid unintentional emulation of the MBE BAS code in [ITU-T H.230].
|
+| Parameter identifier value | 11 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | booleanArray |
+| Supersedes | This field shall not be included. |
+
+NOTE – Some modes (for example, RCDO) are distinct from any Profile defined in [ITU-T H.264]. For the purposes of this Recommendation, such modes are signalled in this parameter as if they were independent Profiles. If a terminal has the capability to support one or more modes or Profiles with different Levels capabilities or with different optional parameters for each mode or Profile, this can be signalled by a separate Generic Capability for each supported Profile or mode.
+
+The bits of this parameter are used in the same way as the bits of the Profile parameter. In a capability, for each bit set to 1, this means that the terminal is capable of supporting the indicated mode(s) using the Level and other optional parameters in this Generic Capability. In an OpenLogicalChannel message, for each bit set to 1, this means that the logical channel contents obey all constraints of the indicated mode(s).
+
+For example, if a decoder is capable of supporting Baseline Profile at Level 3 and RCDO at Level 4, this shall be signalled with one capability with a Profile value of 64 (Baseline) and a Level value of 64 (Level 3), and another capability with a Profile value of 0 (no Profile), a Level value of 85 (Level 4), and an AdditionalModesSupported value of 64 (RCDO).
+
+#### 8.3.2.13 AdditionalDisplayCapabilities parameter
+
+The optional AdditionalDisplayCapabilities parameter permits a terminal to signal additional abilities to display decoded video.
+
+**Table 8-14 – ITU-T H.264 capability parameter – AdditionalDisplayCapabilities**
+
+| | |
+|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name | AdditionalDisplayCapabilities |
+| Parameter description | This parameter is a Boolean array.
If bit 2 (value 64) is 1, this indicates support of all sample aspect ratios which are expressible using the ITU-T H.264 aspect_ratio_idc value of 255 (Extended_SAR, see Table E.1 of [ITU-T H.264]). A terminal that sets this bit to 1 shall also signal SampleAspectRatiosSupported with a parameter value of 13 or greater.
All other bits are reserved, shall be set to 0, and shall be ignored by receivers.
NOTE – Bit 1 is reserved since if the three high-order bits of this parameter are set, the procedures of Annex A of [ITU-T H.239] will produce an extra byte of output to avoid unintentional emulation of the MBE BAS code in [ITU-T H.230].
|
+| Parameter identifier value | 12 |
+| Parameter status | Optional.
This parameter shall appear at most once in each Generic Capability. |
+| Parameter type | booleanArray |
+| Supersedes | This field shall not be included. |
+
+#### 8.3.2.14 ITU-T H.264 MaxFPS frame rate parameter
+
+The value of this parameter in a receive capability indicates the maximum picture frame rate that the receiver can efficiently handle. Any encoder that understands the parameter semantics shall constrain the frame rate to rates up to that specified. A receiver should have the ability to process video from a sender that does not understand this parameter.
+
+If the parameter is absent, the encoder is free to choose any value for the frame rate that satisfies the other parameters.
+
+When included in an **openLogicalChannel** message or a transmit capability, the value of this parameter indicates the maximum picture rate that shall be sent. For example, when encoding an NTSC 480p source, the value of MaxFPS in the **openLogicalChannel** message would be 5994 (59.94 pictures per second). When encoding an NTSC 480i source, the value of MaxFPS would be 2997 (29.97 pictures per second).
+
+**Table 8-14a – ITU-T H.264 capability parameter – MaxFPS**
+
+| | |
+|----------------------------|-----------------------------------------------------------------------------------------------------------------|
+| Parameter name | MaxFPS |
+| Parameter description | MaxFPS is the maximum picture rate at which frames should be sent, in units of hundredths of frames per second. |
+| Parameter identifier value | 13 |
+| Parameter status | Optional |
+| Parameter type | unsignedMin |
+| Supersedes | This field shall not be included |
+
+### 8.3.3 ITU-T H.264 capabilities for BAS-based systems
+
+#### 8.3.3.1 ITU-T H.320 video algorithm hierarchy
+
+The ITU-T H.320 enhanced video algorithm hierarchy in Annex A of [ITU-T H.320] is not extended for ITU-T H.264. No relative level in the hierarchy is specified for ITU-T H.264 with regard to other video codecs.
+
+#### 8.3.3.2 ITU-T H.264 capabilities MBE message format
+
+For ITU-T H.264 operation, the capabilities exchange is handled by a multiple byte extension (MBE) message (see clause 2.2.3 of [ITU-T H.230]). This MBE message uses the type identification byte (see Table 2 of [ITU-T H.230]). A terminal shall signal the ITU-T H.264 capability by including within its capability set the message:
+
+$$\{ \text{Start-MBE} / N / \langle \text{H.264} \rangle / B_1 / \dots / B_{N-1} \}$$
+
+The ITU-T H.264 capability MBE bytes $B_1$ through $B_{N-1}$ may contain one or more encoding or decoding capabilities for ITU-T H.264.
+
+Each capability, which corresponds to a single ITU-T H.245 **GenericCapability** message, consists of the mandatory Profile and Level parameters, and an optional set of zero or more **parameterIdentifier/parameterValue** pairs from the set of ITU-T H.264 generic capability parameters defined in clause 8.3.2. These pairs are carried in the format given in clause 8.2 above.
+
+Encoder capabilities are for further study.
+
+The first two bytes of each decoder capability within the MBE shall contain the ITU-T H.264 Profile parameter, followed by the ITU-T H.264 Level parameter, as defined in Tables 8-2 and 8-3. No parameter identifier is included in the MBE, as these mandatory parameters are identified by their position in the decoder capability string.
+
+Following the Profile and Level parameters, zero or more **parameterIdentifier/parameterValue** pairs containing the optional CustomMaxMBPS, CustomMaxFS, CustomMaxDPB, and CustomMaxBRandCPB parameters may be included, according to the syntax and semantics given for these parameters. The set of **parameterIdentifier/parameterValue** pairs may appear in any order within the capability.
+
+If the ITU-T H.264 capability MBE contains more than one capability, the second and succeeding capabilities within the MBE message shall be demarcated by a single byte of value zero immediately before the start of each succeeding capability.
+
+NOTE – This zero byte appears in the position where a Parameter ID would otherwise appear. Since the ITU-T H.264 generic capabilities do not define a parameter with a **parameterIdentifier** value of zero, no confusion results.
+
+Receivers shall ignore the value of any **parameterValue** following an undefined **parameterIdentifier**.
+
+Table 8-15 below gives an example of an MBE with a single decoder capability indicating Baseline Profile, Level 3.1, with a CustomMaxMBPS parameter of 246 000 macroblocks/second:
+
+**Table 8-15 – Baseline Profile example MBE**
+
+| MBE | Value | Description |
+|---------------|--------------|----------------------------------------------------------|
+| Byte 1 | Start-MBE | Start of MBE. From ITU-T H.230 |
+| Byte 2 | 6 | Number of bytes to follow |
+| Byte 3 | | Indicates ITU-T H.264 MBE. From ITU-T H.230 |
+| Byte 4 | 64 | Profile parameter – indicates Baseline Profile |
+| Byte 5 | 71 | Level parameter – indicates Level 3.1 |
+| Byte 6 | 3 | Parameter ID – CustomMaxMBPS |
+| Byte 7 | 172 | Lowest 6 bits of 492 (equals 246 000/500), ORed with 128 |
+| Byte 8 | 7 | Remaining 7 bits of 492 |
+
+Table 8-16 gives an example ITU-T H.264 capability MBE for a system that supports two capabilities:
+
+- Baseline Profile, Level 2.2; and
+- Main Profile, Level 2, with CustomMaxFS supporting 800 × 600 SVGA format and CustomMaxMBPS supporting this format at a rate of 10 frames per second.
+
+**Table 8-16 – Two Profile example MBE**
+
+| MBE | Value | Description |
+|----------------|--------------|--------------------------------------------------------------------|
+| Byte 1 | Start-MBE | Start of MBE. From ITU-T H.230 |
+| Byte 2 | 10 | Number of bytes to follow |
+| Byte 3 | | Indicates ITU-T H.264 MBE. From ITU-T H.230 |
+| Byte 4 | 32 | Profile parameter – indicates Main Profile |
+| Byte 5 | 43 | Level parameter – indicates Level 2 |
+| Byte 6 | 4 | Parameter ID – CustomMaxFS |
+| Byte 7 | 8 | Indicates 2 048 macroblock frame size (1 900 needed for 800 × 600) |
+| Byte 8 | 3 | Parameter ID – CustomMaxMBPS |
+| Byte 9 | 38 | Indicates 19 000 macroblocks/s processing rate. |
+| Byte 10 | 0 | Demarcates start of new capability |
+| Byte 11 | 64 | Profile parameter – indicates Baseline Profile. |
+| Byte 12 | 57 | Level parameter – indicates Level 2.2 |
+
+# **Annex A**
+
+## **ITU-T H.264 transport for ITU-T H.323**
+
+(This annex forms an integral part of this Recommendation.)
+
+ITU-T H.323 terminals which support the transport of video according to [ITU-T H.264] shall support the single NAL unit mode of [IETF RFC 6184]. ITU-T H.323 terminals which support the transport of video according to ITU-T H.264 Annex G profiles shall support the non-interleaved mode of [IETF RFC 6184] and the single-session transmission mode of [IETF RFC 6190]. ITU-T H.323 terminals may additionally support other modes.
+
+NOTE – The single NAL unit mode of [IETF RFC 6184] is technically identical to the text contained in previous editions of this annex.
+
+# Annex B
+
+## Reduced-complexity decoding operation (RCDO) for ITU-T H.264 Baseline Profile bitstreams
+
+(This annex forms an integral part of this Recommendation.)
+
+## B.1 Scope
+
+This annex specifies a reduced-complexity decoding operation (RCDO) for use with ITU-T H.264 Baseline profile bitstreams. This annex also specifies a bitstream constraint associated with the RCDO, and a mechanism for signalling the RCDO within the bitstream that the bitstream conforms to the bitstream constraint, and that the decoder should apply the RCDO decoding process to the bitstream. It also specifies that a decoder is required to apply the RCDO decoding process when the use of RCDO has been negotiated using this Recommendation.
+
+## B.2 Definitions
+
+This annex defines the following terms:
+
+**B.2.1 RCDO bitstream:** An ITU-T H.264 bitstream that conforms to clause B.4.
+
+**B.2.2 RCDO SEI message:** An ITU-T H.264 user data unregistered SEI message as specified in Table B.1 that directly follows a sequence parameter set NAL unit.
+
+## B.3 General
+
+In this annex, reference is made to specific elements of [ITU-T H.264]. The modifications in this annex apply only to bitstreams that obey all constraints specified for the Baseline profile of [ITU-T H.264], in particular including clause A.2.1 of ITU-T H.264 (Baseline profile). For the purposes of Annex A of [ITU-T H.264], the Level requirements are the same for RCDO use as for non-RCDO use of the ITU-T H.264 Baseline profile. When RCDO use has been negotiated using this Recommendation, the decoder shall perform the decoding process specified as the RCDO decoding process in this annex.
+
+## B.4 RCDO bitstreams
+
+RCDO bitstreams shall:
+
+- conform to the Baseline profile of ITU-T H.264 (profile\_idc equal to 66) and to the additional constraint specified below in clause B.4.1; and
+- include a user data unregistered SEI message according to clause D.1.6 of [ITU-T H.264] containing the values given in Table B.1 below. An RCDO SEI message shall follow immediately after each ITU-T H.264 sequence parameter set NAL unit.
+
+**Table B.1 – User data unregistered SEI message
+indicating a bitstream encoded for RCDO**
+
+| | |
+|--------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| UUID_iso_iec_11578
(hexadecimal format) | a1f775a0bb0911daab1d0002a5d5c51b |
+| Payload bytes | Exactly one payload byte shall follow. This byte shall contain the AdditionalModesSupported booleanArray according to Table 8-13. Bit 2 (value 64) of this BooleanArray shall be set equal to 1. |
+
+### B.4.1 Constraint on luma inter prediction block sizes to $8 \times 8$ samples or larger
+
+The value of sub\_mb\_type as specified in [ITU-T H.264], when applicable, shall always be equal to 0.
+
+## B.5 OpenLogicalChannel signalling
+
+In an ITU-T H.245 **OpenLogicalChannel** message, bit 2 of the AdditionalModesSupported parameter in Table 8-13 shall be equal to 1 and the Profile parameter shall be equal to 0.
+
+For the purpose of robustness to transmission errors, a decoder that is capable of using the RCDO decoding process should cross-check the presence or absence of the RCDO SEI message with the content of the OpenLogicalChannel message. When bit 2 of the AdditionalModesSupported parameter is equal to 1 and the RCDO SEI message is not detected by the decoder, a decoder should send a videoFastUpdatePicture message to the encoder to force retransmission of the RCDO SEI message.
+
+## B.6 Procedures
+
+When the use of RCDO has been negotiated using this Recommendation and the bitstream is a conforming RCDO bitstream (as specified in clause B.4 above), the RCDO decoding process, as specified in this clause, shall be applied by the decoder. To avoid accumulation of "drift" error in the decoded video sequence, the encoder should model the RCDO decoding process accurately during the encoding process.
+
+### B.6.1 Reduced-complexity interpolation for inter prediction in the RCDO decoding process
+
+The operations specified in clause 8.4.2.2 of [ITU-T H.264], "Fractional sample interpolation, process" shall be performed with the changes specified in this clause during operation of the RCDO decoding process. The modifications are as follows:
+
+- 1) Referencing clause 8.4.2.2 of [ITU-T H.264], the following modifications apply:
+ - frame\_num is an additional input to the process.
+ - (xFracc,yFracc) is in quarter sample units instead of one-eighth sample units.
+ - Rather than using Equations 8-227 through 8-230 of [ITU-T H.264], the following modified equations apply:
+
+$$xInt_c = ( x_{AL} / SubWidthC ) + ((mvCLX[ 0 ] + (frame\_num \& 1)) \gg 3 ) + x_c \quad (8-227)$$
+
+$$yInt_c = ( y_{AL} / SubHeightC ) + ((mvCLX[ 1 ] + (frame\_num \& 1)) \gg 3 ) + y_c \quad (8-228)$$
+
+$$xFrac_c = ((mvCLX[ 0 ] + (frame\_num \& 1)) \gg 1) \& 3 \quad (8-229)$$
+
+$$yFrac_c = ((mvCLX[ 1 ] + (frame\_num \& 1)) \gg 1) \& 3 \quad (8-230)$$
+
+- 2) Referencing 8.4.2.2.1 of [ITU-T H.264], the following modifications apply:
+ - The luma prediction values at half sample positions b and s are derived by applying a 6-tap filter with tap values ( 1, -5, 20, 20, -5, 1 ).
+ - The luma prediction values at half sample positions h and m are derived by applying a 4-tap filter with tap values ( -1, 5, 5, -1 ).
+ - Equations 8-241, 8-242, 8-245 and 8-246 to define b1, h1 and j1 in [ITU-T H.264] are not needed.
+ - Rather than using Equations 8-243, 8-244, 8-247, 8-248, 8-249, 8-254, 8-255, 8-256 and 8-257 of [ITU-T H.264], the following modified equations apply:
+
+$$b = \text{Clip1}_Y( (E - 5 * F + 20 * G + 20 * H - 5 * I + J + 6) \gg 5 ) \quad (8-243)$$
+
+$$h = \text{Clip1}_Y( ( - C + 5 * G + 5 * M - R + 1 ) \gg 3 ) \quad (8-244)$$
+
+$$j = ( H + M ) \gg 1 \quad (8-247)$$
+
+$$s = \text{Clip1}_Y((K - 5 * L + 20 * M + 20 * N - 5 * P + Q + 6) \gg 5) \quad (8-248)$$
+
+$$m = \text{Clip1}_Y((-D + 5 * H + 5 * N - S + 1) \gg 3) \quad (8-249)$$
+
+$$f = (G + m + 1) \gg 1 \quad (8-254)$$
+
+$$i = (M + b + 1) \gg 1 \quad (8-255)$$
+
+$$k = (H + s + 1) \gg 1 \quad (8-256)$$
+
+$$q = (N + h + 1) \gg 1 \quad (8-257)$$
+
+- 3) Referencing 8.4.2.2.2 of [ITU-T H.264], the following modifications apply:
+- Figure B.1 depicts the position of integer and fractional chroma sample positions.
+
+
+
+Figure B.1: A 5x5 grid of blocks representing sample positions for quarter sample chroma interpolation. The grid is labeled with upper-case letters (A, B, C, D) for integer sample positions and lower-case letters (a, b, c, d, e, f, g, h, i, j, k, m, n, p, q, r, s) for fractional sample positions. The grid is arranged as follows: Row 1: A (shaded), a, b, c, B (shaded); Row 2: d, e, f, g, (empty); Row 3: h, i, j, k, m; Row 4: n, p, q, r, (empty); Row 5: C (shaded), (empty), s, (empty), D (shaded).
+
+**Figure B.1 – Integer sample positions (shaded blocks with upper-case letters) and fractional sample positions (un-shaded blocks with lower-case letters) for quarter sample chroma interpolation**
+
+- For further specification of integer and fractional chroma sample positions, Table 8-12 of [ITU-T H.264] also applies for assignment of chroma prediction sample $\text{predPartLX}_c[x_c, y_c]$ by replacing subscript $L$ by subscript $c$ , and by replacing $G$ with $A$ .
+- To specify $\text{predPartLX}_c[x_c, y_c]$ , rather than using Equation 8-270 of [ITU-T H.264], the following expressions apply:
+
+$$b = (A + B) \gg 1$$
+
+$$h = (A + C) \gg 1$$
+
+$$j = (B + C) \gg 1$$
+
+$$m = (B + D) \gg 1$$
+
+$$s = (C + D) \gg 1$$
+
+$$a = (A + b + 1) \gg 1$$
+
+$$c = (B + b + 1) \gg 1$$
+
+$$d = (A + h + 1) \gg 1$$
+
+$$e = (b + h + 1) \gg 1$$
+
+$$f = (A + m + 1) \gg 1$$
+
+$$g = (b + m + 1) \gg 1$$
+
+$$i = (C + b + 1) \gg 1$$
+
+$$k = (B + s + 1) \gg 1$$
+
+$$n = (C + h + 1) \gg 1$$
+
+$$p = (h + s + 1) \gg 1$$
+
+$$q = ( D + h + 1 ) \gg 1$$
+
+$$r = ( m + s + 1 ) \gg 1$$
+
+### B.6.2 Reduced-complexity deblocking filter in the RCDO decoding process
+
+During operation of the RCDO decoding process, rather than applying the deblocking filter as specified in 8.7 of [ITU-T H.264], "Deblocking filter process", the deblocking filter shall be applied as specified in this clause. The definitions of indexA and indexB are as specified in Equations 8-454 of [ITU-T H.264] and 8-455 of [ITU-T H.264].
+
+#### B.6.2.1 Deblocking filter process
+
+A conditional filtering is applied to all $4 \times 4$ block edges of a picture, except edges at the boundary of the picture and any edges for which the deblocking filter process is disabled by disable\_deblocking\_filter\_idc, as specified below. This filtering process is performed on a macroblock basis after completion of the picture construction process prior to the deblocking filter process (as specified in 8.5.14 of [ITU-T H.264]) for the entire decoded picture, with all macroblocks in a picture processed in order of increasing macroblock address.
+
+The deblocking filter process is invoked for the luma and chroma components separately. For each macroblock and each component, vertical edges are filtered first, starting with the edge on the left-hand side of the macroblock proceeding through the edges toward the right-hand side of the macroblock in their geometrical order. Then horizontal edges are filtered, starting with the edge on the top of the macroblock proceeding through the edges toward the bottom of the macroblock in their geometrical order.
+
+Macroblocks of type I\_PCM are treated as Intra macroblocks with $qP_z = 0$ .
+
+NOTE – This is in accordance with the treatment of such macroblocks in the deblocking filtering process specified in [ITU-T H.264].
+
+**Table B.2 – Value of $t_c$ and $\beta$ as a function of index**
+
+| | | | | | | | | | | | | | | | | | | | |
+|---------|------|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
+| index | 0-15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
+| $t_c$ | 0 | 1 | 1 | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 3 | 3 | 3 |
+| $\beta$ | 0 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 20 | 22 | 24 | 26 | 28 |
+
+To obtain $t_c$ , use index = indexA. To obtain $\beta$ , use index = indexB.
+
+**Table B.3 (concluded) – Value of $t_c$ and $\beta$ as a function of index**
+
+| | | | | | | | | | | | | | | | | | | |
+|---------|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
+| index | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 |
+| $t_c$ | 3 | 4 | 4 | 4 | 5 | 5 | 6 | 6 | 7 | 8 | 9 | 9 | 11 | 12 | 13 | 13 | 16 | 18 |
+| $\beta$ | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 48 | 50 | 52 | 54 | 56 | 58 | 60 | 62 | 64 |
+
+To obtain $t_c$ , use index = indexA. To obtain $\beta$ , use index = indexB.
+
+#### B.6.2.2 Filtering process for luma samples
+
+Filtering of luma samples takes place within units of $8 \times 8$ luma samples. Figure B.2 illustrates how the $8 \times 8$ blocks are organized when filtering both across vertical and horizontal edges.
+
+
+
+Diagram (a) showing the arrangement of 8x8 blocks when filtering across vertical edges. It consists of four 4x4 blocks labeled A, B, C, and D. Block A is top-left, B is bottom-left, C is top-right, and D is bottom-right. A bold vertical line separates blocks A and B from blocks C and D. Samples p\_i\_j are shown around the perimeter of block A, and q\_i\_j are shown around the perimeter of block C.
+
+a) Filtering across vertical edges
+
+
+
+Diagram (b) showing the arrangement of 8x8 blocks when filtering across horizontal edges. It consists of four 4x4 blocks labeled A, B, C, and D. Block A is top-left, B is top-right, C is bottom-left, and D is bottom-right. A bold horizontal line separates blocks A and B from blocks C and D. Samples p\_i\_j are shown around the perimeter of block A, and q\_i\_j are shown around the perimeter of block C.
+
+b) Filtering across horizontal edges
+
+**Figure B.2 – Arrangement of $8 \times 8$ blocks when filtering across vertical or horizontal edges**
+
+Figure B.2 is interpreted as follows:
+
+- A, B, C and D are $4 \times 4$ blocks.
+- $p_{n_i}$ and $q_{n_i}$ , $n = 0..3$ and $i = 0..7$ are samples within the $8 \times 8$ block.
+- The bold line indicates a horizontal or vertical block edge across which deblocking filtering takes place.
+- The $8 \times 8$ blocks are arranged such that the samples ( $p_{3_0}$ to $q_{3_0}$ ) or the samples ( $p_{3_7}$ to $q_{3_7}$ ) are at a macroblock boundary.
+
+The variable $d$ , as specified below, is used for deciding whether the samples within an $8 \times 8$ block are modified or not. Depending on the position of the block edge, the following applies:
+
+- If the block edge is part of a macroblock edge:
+
+$$d = | p_{1_2} - p_{0_2} | + | q_{0_2} - 2*q_{1_2} + q_{2_2} | + | p_{1_5} - p_{0_5} | + | q_{0_5} - 2*q_{1_5} + q_{2_5} |$$
+- Otherwise (the block edge is not part of a macroblock edge):
+
+$$d = | p_{2_2} - 2*p_{1_2} + p_{0_2} | + | q_{0_2} - 2*q_{1_2} + q_{2_2} | + | p_{2_5} - 2*p_{1_5} + p_{0_5} | + | q_{0_5} - 2*q_{1_5} + q_{2_5} |$$
+
+A determination is made of whether or not to apply filtering across a block edge as follows:
+
+- The variable $filterBlockSize$ shall be equal to 1 if one or more of the following conditions are true:
+ - Block A is intra coded or Block C is intra coded.
+ - One or more of the blocks A, B, C and D contains non-zero transform coefficients.
+ - The absolute difference between the horizontal or vertical component of the motion vectors used for block A and block C is greater than or equal to 4 in units of quarter luma frame samples.
+ - Block A and block C are predicted from different reference frames.
+
+- Otherwise, the value of filterBlockEdge shall be equal to 0.
+- If one or more of the following conditions are true, no filtering across a block edge takes place.
+ - disable\_deblocking\_filter\_idc for the slice containing block D is equal to 1.
+ - disable\_deblocking\_filter\_idc for the slice containing block D is equal to 2 and blocks B and D belong to different slices.
+ - $d \geq \beta$ .
+ - filterBlockEdge is equal to 0.
+- Otherwise, filtering takes place as specified below.
+
+For block edges across which filtering is to be performed, all values $p_{n,i}$ , $q_{n,i}$ , with $n = 0, 1$ and $i = 0..7$ , are modified as follows.
+
+- If the block edge is not part of a macroblock edge:
+
+$$\Delta = \text{Clip3}(-t_c, t_c, ((q0_i + ((p2_i + q1_i) \gg 1)) \gg 1) - ((p0_i + ((q2_i + p1_i) \gg 1)) \gg 1))$$
+- Otherwise (the block edge is part of a macroblock edge):
+
+$$\Delta = \text{Clip3}(-t_c, t_c, ((q0_i + (q1_i \gg 1)) \gg 1) - ((p0_i + (q2_i \gg 1)) \gg 1))$$
+
+When the filtering is applied, the filtered samples $p1_i$ , $p0_i$ , $q0_i$ , $q1_i$ are derived by:
+
+$$p0_i = \text{Clip1}_Y(p0_i + \Delta)$$
+
+$$q0_i = \text{Clip1}_Y(q0_i - \Delta)$$
+
+$$p1_i = \text{Clip1}_Y(p1_i + \Delta/2)$$
+
+$$q1_i = \text{Clip1}_Y(q1_i - \Delta/2)$$
+
+#### B.6.2.3 Filtering process for chroma samples
+
+The chroma filtering process takes place across an edge between two $4 \times 4$ chroma blocks. Figure B.3 illustrates how two such adjacent blocks are arranged when filtering both across vertical and horizontal edges.
+
+
+
+Figure B.3 consists of two parts, (a) and (b), illustrating the arrangement of two $4 \times 4$ chroma blocks, A and B, for filtering.
+
+**a) Filtering across a vertical edge**
+
+Block A is on the left and Block B is on the right. The columns of Block A are labeled $p3_0, p2_0, p1_0, p0_0$ (leftmost to rightmost). The columns of Block B are labeled $q0_0, q1_0, q2_0, q3_0$ (leftmost to rightmost). The rows are labeled $p3_1, p2_1, p1_1, p0_1$ (top to bottom) for both blocks. The vertical edge between them is the boundary between $p0_i$ and $q0_i$ columns.
+
+**b) Filtering across a horizontal edge**
+
+Block A is on top and Block B is on the bottom. The rows of Block A are labeled $p3_0, p3_1, p3_2, p3_3$ (top to bottom). The rows of Block B are labeled $q0_0, q1_0, q2_0, q3_0$ (top to bottom). The columns are labeled $p2_0, p2_1, p2_2, p2_3$ (leftmost to rightmost) for both blocks. The horizontal edge between them is the boundary between $p3_i$ and $q0_i$ rows.
+
+Figure B.3 shows two diagrams illustrating the arrangement of two 4x4 chroma blocks (A and B) for filtering. Diagram (a) shows filtering across a vertical edge, where block A is on the left and block B is on the right. Diagram (b) shows filtering across a horizontal edge, where block A is on top and block B is on the bottom. Both diagrams show the pixel indices (p and q) used for filtering.
+
+**Figure B.3 – Arrangement of two $4 \times 4$ chroma blocks when filtering across a vertical or horizontal edge**
+
+Figure B.3 is interpreted as follows:
+
+- A and B are $4 \times 4$ blocks of samples.
+- $p_{n_i}$ and $q_{n_i}$ , $n = 0..3$ and $i = 0..3$ are samples within the two $4 \times 4$ blocks.
+- The bold line indicates a horizontal or vertical block edge across which deblocking filtering takes place.
+
+A determination is made of whether or not to apply filtering across the edge between blocks A and B as follows:
+
+- If one or more of the following conditions are true, no filtering across the block edge takes place.
+ - disable\_deblocking\_filter\_idc for the slice containing block B is equal to 1.
+ - disable\_deblocking\_filter\_idc for the slice containing block B is equal to 2 and blocks A and B belong to different slices.
+ - Neither block A nor block B is coded using an intra prediction mode.
+- Otherwise, filtering takes place for the block edge.
+
+For block edges where filtering takes place, all values $p_{0_i}$ , $q_{0_i}$ with $i = 0..3$ are modified in the following way:
+
+$$\Delta = \text{Clip3}(-t_c, t_c, (((q_{0_i} - p_{0_i}) \ll 2) + p_{1_i} - q_{1_i} + 4) \gg 3))$$
+
+The filtered result samples $p_{0_i}$ , $q_{0_i}$ are derived by:
+
+$$p_{0_i} = \text{Clip1c}(p_{0_i} + \Delta)$$
+
+$$q_{0_i} = \text{Clip1c}(q_{0_i} - \Delta)$$
+
+# Appendix I
+
+## ASN.1 OIDs defined in this Recommendation
+
+(This appendix does not form an integral part of this Recommendation.)
+
+| OID | Clause reference |
+|----------------------------------------------------------------------------------------------------------------------------------|------------------|
+| {itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) set-submode(2)} | 6.2.5.1 |
+| {itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) set-SVCmode (3)} | 6.2.6.1 |
+| {itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) iPacketization(0) h241AnnexA(0)} | 7.1.4 |
+| {itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) iPacketization(0) rfc6184NonInterleaved(1)} | 7.1.4 |
+| {itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) iPacketization(0) rfc6184Interleaved(2)} | 7.1.4 |
+| {itu-t(0) recommendation(0) h(8) h241(241) specificVideoCodecCapabilities(0) h264(0) generic-capabilities(1)} | 8.3.2.1 |
+
+# Appendix II
+
+## Examples of the set submode procedure
+
+(This appendix does not form an integral part of this Recommendation.)
+
+This appendix provides informative guidance and examples illustrating the use of the set submode procedure defined in clause 6.2.5.
+
+The ITU-T H.264 capabilities defined by clause 8.3 usually allow more than one set of encoding parameters to be used by the video source.
+
+For instance, the capabilities specify the ability to receive a maximum picture size of CustomMaxFS macroblocks. The video source may choose to send any picture height and width combination that does not exceed that total. Although the receiver is required by this Recommendation to be capable of rendering these picture sizes, it is frequently desirable to negotiate further constraints on the picture size. For example, an MCU that can control the picture height and width sent from each terminal can create a more functional picture composition.
+
+There are four common cases where constraining the encoding with the set submode procedure is useful:
+
+- to optimize the picture aspect ratio for a specific display or a sub-picture in a composition
+- to limit the picture frame rate to match the frame rate of a specific picture composition
+- to eliminate the adverse effects of rescaling on the picture quality
+- to improve bandwidth utilization by negotiating a picture size that does not exceed the limits of a display or the size of a sub-picture in a composition.
+
+The use of the set submode procedure is illustrated for each of these cases by the following clauses.
+
+## II.1 Optimization of the picture aspect ratio
+
+In this example, the video channel is constrained to carry a picture which has a specific picture aspect ratio. The sample aspect ratio and the picture size are not constrained.
+
+The video source indicates which SAR and PAR combinations can be carried on this video channel in a setSubmodeIndication message.
+
+The video receiver requests a specific PAR which is included in that indication by sending a setSubmodeRequest.
+
+The video source selects an image height and SAR that it can send using the requested PAR.
+
+The video source positively acknowledges the request, including the SAR, PAR and the image height by sending a setSubmodeResponse. It then switches to the new submode, sending the SAR in the ITU-T H.264 VUI message per Table E.1 of [ITU-T H.264].
+
+- setSubmodeIndication: channelID, list of (SAR, list of (PAR), [allowAnyHeight])
+- ← setSubmodeRequest: channelID, PAR
+- setSubmodeResponse: channelID, acknowledge, SAR, PAR, height
+
+## II.2 Limiting the picture frame rate
+
+The setSubmode procedure does not allow the picture frame rate to be directly constrained. However, it does allow macroblocks per second (submodeMaxMBPS) to be limited. Therefore, in order to limit frame rate, the video stream must be constrained to carry a picture of a specific size and also limited to a maximum macroblocks-per-second rate. This results in a constrained picture frame rate.
+
+First, the video source indicates which SAR and PAR combinations can be carried on this video channel by sending a setSubmodeIndication.
+
+The video receiver then requests a specific height, and a submodeMaxMBPS value that achieves the desired frame rate for the requested picture size by sending a setSubmodeRequest. It may also request any specific SAR and PAR combination that is included in the indication message.
+
+The video source positively acknowledges the request by sending a setSubmodeResponse that includes the SAR, PAR and the image height. It then switches to the new submode, sending the SAR in the ITU-T H.264 VUI message per Table E.1 of [ITU-T H.264].
+
+- setSubmodeIndication: channelID, list of (SAR, list of (PAR), [allowAnyHeight])
+- ← setSubmodeRequest: channelID, SAR, PAR, height, submodeMaxMBPS
+- setSubmodeResponse: channelID, acknowledge, SAR, PAR, height
+
+## II.3 Eliminating the adverse effects of picture rescaling
+
+In order to eliminate the adverse effects of scaling, the video channel is constrained to carry a picture of specific PAR, SAR and picture size. Three different examples are presented. The first example describes the case where the video source is capable of re-scaling its image to any requested size. The second and third examples describe cases where the video source does not have this capability.
+
+### II.3.1 Video source is capable of arbitrary scaling
+
+The video source first indicates which SAR and PAR combinations can be carried on this video channel by sending a setSubmodeIndication.
+
+The video receiver sends a setSubmodeRequest to request a specific SAR and PAR combination which is included in the indication. Since the selected SAR and PAR include the allowAnyHeight designation, the video receiver also requests a specific height.
+
+The video source positively acknowledges the request by sending a setSubmodeResponse that includes the SAR, PAR and the image height. It then switches to the new submode, sending the SAR in the ITU-T H.264 VUI message per Table E.1 of [ITU-T H.264].
+
+- setSubmodeIndication: channelID, list of (SAR, list of (PAR), [allowAnyHeight])
+- ← setSubmodeRequest: channelID, SAR, PAR, height (SAR and PAR have allowAnyHeight set)
+- setSubmodeResponse: channelID, acknowledge, SAR, PAR, height
+
+### II.3.2 Video source is not capable of arbitrary scaling
+
+The video source first indicates which SAR and PAR combinations can be carried on this video channel by sending a setSubmodeIndication.
+
+The video receiver requests a specific PAR and SAR combination which is included in the indication by sending a setSubmodeRequest. Since the selected PAR and SAR does not include the allowAnyHeight designation, the video receiver offers a list of acceptable heights, in preference order.
+
+The video source selects the first height on the list that it is capable of sending.
+
+The video source then positively acknowledges the request, including the PAR, SAR and the image height in its `setSubmodeResponse`. It then switches to the new submode, sending the SAR in the ITU-T H.264 VUI message per Table E.1 of [ITU-T H.264].
+
+- `setSubmodeIndication`: `channelID`, list of (SAR, list of (PAR))
+- ← `setSubmodeRequest`: `channelID`, SAR, PAR, list of (height)
+- `setSubmodeResponse`: `channelID`, acknowledge, SAR, PAR, height
+
+However, if the video source does not find a height in the request that it is capable of sending, it responds with a rejection in its `setSubmodeResponse`, which includes the list of heights it can send with the requested SAR and PAR combination.
+
+The video receiver then selects one of those specific heights and sends a new `setSubmodeRequest`.
+
+The video source then positively acknowledges the request, including the PAR, SAR and the image height in its `setSubmodeResponse`. It then switches to the new submode, sending the SAR in the ITU-T H.264 VUI message per Table E.1 of [ITU-T H.264].
+
+- `setSubmodeIndication`: `channelID`, list of (SAR, list of (PAR))
+- ← `setSubmodeRequest`: `channelID`, SAR, PAR, list of (height)
+- `setSubmodeResponse`: `channelID`, reject, list of (height) (requested heights were not supported)
+- ← `setSubmodeRequest`: `channelID`, SAR, PAR, height
+- `setSubmodeResponse`: `channelID`, acknowledge, PAR, SAR, height
+
+## II.4 Improving bandwidth utilization by limiting maximum picture size
+
+Reducing the picture size frequently improves the picture quality by reducing compression artefacts. It can also reduce the bandwidth required to send the picture. In this case, it is often useful to further constrain the video channel through the use of flow control.
+
+The video source sends a `setSubmodeIndication` which indicates which PAR and SAR combinations can be carried on this video channel.
+
+The video receiver then sends a `setSubmodeRequest` message choosing a specific PAR and SAR combination which is included in the indication, and also the maximum image height.
+
+The video source selects an image height that it is capable of sending that is less than or equal to the maximum.
+
+The video source then positively acknowledges the request, including the PAR, SAR and the image height in its `setSubmodeResponse` message. The image height is less than the requested maximum height. It then switches to the new submode, sending the SAR in the ITU-T H.264 VUI message per Table E.1 of [ITU-T H.264].
+
+- `setSubmodeIndication`: `channelID`, list of (SAR, list of (PAR))
+- ← `setSubmodeRequest`: `channelID`, [SAR], [PAR], `maximumHeight`
+- `setSubmodeResponse`: `channelID`, acknowledge, SAR, PAR, height
+
+If the smallest height that the video source can send exceeds the maximum height requested, the video source rejects the request, including the smallest height it can send in the reject message.
+
+The video receiver then sends a new `setSubmodeRequest` with a new maximum height that can be accommodated by the video source.
+
+The video source then positively acknowledges the second request, including the PAR, SAR and the image height in its `setSubmodeResponse`. It then switches to the new submode, sending the SAR in the ITU-T H.264 VUI message per Table E.1 of [ITU-T H.264].
+
+Finally, the video receiver constrains the channel bandwidth using the ITU-T H.245 flowControlCommand
+
+- setSubmodeIndication: channelID, list of (SAR, list of (PAR))
+- ← setSubmodeRequest channelID, [SAR], [PAR], maximumHeight
+- setSubmodeResponse: channelID, reject, minimumHeight (requested height was too large)
+- ← setSubmodeRequest: channelID, [SAR], [PAR], maximumHeight
+- setSubmodeResponse: channelID, acknowledge, SAR, PAR, height
+- ← flowControlCommand: channelID, maximumBitRate
+
+
+
+# Bibliography
+
+[b-IETF RFC 4648] IETF RFC 4648 (2006), *The Base16, Base32, and Base64 Data Encodings*.
+
+# SERIES OF ITU-T RECOMMENDATIONS
+
+| | |
+|-----------------|---------------------------------------------------------------------------------------------|
+| Series A | Organization of the work of ITU-T |
+| Series D | General tariff principles |
+| Series E | Overall network operation, telephone service, service operation and human factors |
+| Series F | Non-telephone telecommunication services |
+| Series G | Transmission systems and media, digital systems and networks |
+| Series H | Audiovisual and multimedia systems |
+| Series I | Integrated services digital network |
+| Series J | Cable networks and transmission of television, sound programme and other multimedia signals |
+| Series K | Protection against interference |
+| Series L | Construction, installation and protection of cables and other elements of outside plant |
+| Series M | Telecommunication management, including TMN and network maintenance |
+| Series N | Maintenance: international sound programme and television transmission circuits |
+| Series O | Specifications of measuring equipment |
+| Series P | Terminals and subjective and objective assessment methods |
+| Series Q | Switching and signalling |
+| Series R | Telegraph transmission |
+| Series S | Telegraph services terminal equipment |
+| Series T | Terminals for telematic services |
+| Series U | Telegraph switching |
+| Series V | Data communication over the telephone network |
+| Series X | Data networks, open system communications and security |
+| Series Y | Global information infrastructure, Internet protocol aspects and next-generation networks |
+| Series Z | Languages and general software aspects for telecommunication systems |
\ No newline at end of file
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/10b0dda884baae493ad958422d11b552_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/10b0dda884baae493ad958422d11b552_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..eaf9953922d5a635255bcdf14024752c85fef47a
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/10b0dda884baae493ad958422d11b552_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d61379553b2ceece908711eef9addf4018e64719158115c70f897042af8453f
+size 46692
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/14a22f23ced8ba1d63ece69861dbaacc_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/14a22f23ced8ba1d63ece69861dbaacc_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..d5a35041124e73f88d6638cd17f42a2eb4f6781a
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/14a22f23ced8ba1d63ece69861dbaacc_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8f24b214263bab4142643453a604fb5196f9397e2500c675cde79d53ce5e5d8e
+size 3645
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/15de63f0b5df62e6ab9164f2a72e2e33_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/15de63f0b5df62e6ab9164f2a72e2e33_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..7434b00f6be3b534d98741eb2236003404020b39
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/15de63f0b5df62e6ab9164f2a72e2e33_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b31361e7711fd5b7ffc39f1bb039122aa02fb33fe6e4c0f0de4cbfa73521ef92
+size 39021
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/2dd10dd89365981b6b6154de6390a602_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/2dd10dd89365981b6b6154de6390a602_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..2e9477d3ebeb9391bae245cb8d9438df1f8e16db
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/2dd10dd89365981b6b6154de6390a602_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e0c7f77dd00c900cba7ad0063cc6ef837da886debbb363497c6573316dcb0c97
+size 33435
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/2f587210e4f97c32758c5972e2e83d20_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/2f587210e4f97c32758c5972e2e83d20_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..e07f4b11180f33f1201513ba0d2e2a16752f398d
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/2f587210e4f97c32758c5972e2e83d20_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d7da5e60706ad8a04b0418a4b17a845797f91fa55e3cb88c447c5e2b02635b20
+size 55266
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/30fe9e9487585118063341332e802e98_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/30fe9e9487585118063341332e802e98_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..8be65ffa3530a58e419db488147aaa7744f9197f
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/30fe9e9487585118063341332e802e98_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:678290ce93ca371efed2775eed7d5d53c2235755f93300d1c515aab257161920
+size 31762
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/51d4540605fdfa2c090638305022143b_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/51d4540605fdfa2c090638305022143b_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..488c803b07464ac5705f196f94983b8d1eb1e202
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/51d4540605fdfa2c090638305022143b_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b8a2fa596a5b353be664586f232e75f63ebd2b0b208e1085c58a214a7d253a44
+size 31480
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/5ee1bbbf85b473f78af9ec8368a4159a_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/5ee1bbbf85b473f78af9ec8368a4159a_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..40d2c4aced91b7ae879771245ebf45540afa85ad
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/5ee1bbbf85b473f78af9ec8368a4159a_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:49e573dc56f7111513c06e7342de1ea15be591f91cb6b806738bbbd23f37a1f1
+size 169566
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/798679874d1c29f8343506a156c79d7e_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/798679874d1c29f8343506a156c79d7e_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..d578996720fd72d0131efa716da39a61ee4e23f7
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/798679874d1c29f8343506a156c79d7e_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95aa358d6a3a47f53e11cd79f4a3dc4e4d75c64990eab7f1554f4219b04b87dd
+size 137618
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/9c05ae298f897f405d4f0c72d98cb2c7_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/9c05ae298f897f405d4f0c72d98cb2c7_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..a9babbfab2164b2d463a46bd94a3f881011d87a6
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/9c05ae298f897f405d4f0c72d98cb2c7_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5932ad2243dd42dc643f3a4e040069a769272cb405028fcab157d9cb24829fb6
+size 57560
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/b9c0d46c1148cf65cb79f27fac420981_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/b9c0d46c1148cf65cb79f27fac420981_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..0f12e872a3a78fe4ab368e9a78689fdb9e9fc338
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/b9c0d46c1148cf65cb79f27fac420981_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e59313f20c32bdf70fb0d45a08985677be56ec3e7dbb3a64227a9426c5ed659d
+size 208213
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/c6212a3b14736d6a8c81ace75ae94ccf_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/c6212a3b14736d6a8c81ace75ae94ccf_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..dbf8c0386d28b0f7006d5ef97f0449e4118ba139
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/c6212a3b14736d6a8c81ace75ae94ccf_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:80568a9d0f45cb4c18f57814d9fa5a0388d0889264636409d4b81bd5569f0ebd
+size 167351
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/db39acbd11df5eb7e79ab84562fb8f74_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/db39acbd11df5eb7e79ab84562fb8f74_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..b5970643f9799fed21a8e2cdb08b2d87cd7c5509
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/db39acbd11df5eb7e79ab84562fb8f74_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f5ee43f4506c2e292aaae72a7877bde04d574e609427c699c67b9046248ecb76
+size 37229
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/dfafe39c233a62ec8ebd71e42992c14d_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/dfafe39c233a62ec8ebd71e42992c14d_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..85e4dd94d21109025e90a8905d5a8722945c041f
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/dfafe39c233a62ec8ebd71e42992c14d_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:00a4045eb66f733ddc765159c4a700b192403d900d0cabcb02796148d83dd13d
+size 34063
diff --git a/marked/H/T-REC-H.242-200903-I_PDF-E/e42cc691d9c7c4d23e66b04472bb494e_img.jpg b/marked/H/T-REC-H.242-200903-I_PDF-E/e42cc691d9c7c4d23e66b04472bb494e_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..422e45d32a8e324cdc2216ac0d99bdc6528f8c9b
--- /dev/null
+++ b/marked/H/T-REC-H.242-200903-I_PDF-E/e42cc691d9c7c4d23e66b04472bb494e_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f979e0b69f800219b3e9efb84e812961c70d0c70615b13fbcfe7006cc61340cc
+size 20841
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/2ae3eae1bd80a90f192f568ae246a9a6_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/2ae3eae1bd80a90f192f568ae246a9a6_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..0117f4ab81a95b625e7610d6b67af7fe7b19f3a0
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/2ae3eae1bd80a90f192f568ae246a9a6_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aec02602a063a2e4078b08ccd8ce3314be92f0de481374c2ad71ce6b4463871d
+size 93251
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/2dfa6ac3edfe874f68aa0cbccaa42322_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/2dfa6ac3edfe874f68aa0cbccaa42322_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..3ae9a090bc50643fe1ed50d32c36eac50b037f0d
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/2dfa6ac3edfe874f68aa0cbccaa42322_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:836e63fb2ebf9ef2ed10f0ef430abaf50e506751b9a563f93e3d25eeaa7a61a6
+size 8184
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/33ed1f9b27c7c21c797aa928b0f06851_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/33ed1f9b27c7c21c797aa928b0f06851_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..4f52768dae0c171abb06dfc9964506b2d9c50b92
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/33ed1f9b27c7c21c797aa928b0f06851_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:42db39d4abaceb9d3befe88d35ae483680a15cc09499f5f4c3a3556624e1b887
+size 209396
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/367926125450c2bc3f4bdca9d59a62ba_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/367926125450c2bc3f4bdca9d59a62ba_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..f47efc16d95ecb532b236e6dbf1d5ad119f8c8d9
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/367926125450c2bc3f4bdca9d59a62ba_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2c33fbe64c16c40d06f65050c617f9771376cfa7e1e237444807e0784562fce7
+size 20962
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/5a4e62bead259c258d069fd3663ea670_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/5a4e62bead259c258d069fd3663ea670_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..b66510686bf982dcd3bd43f8afb0827e690783d1
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/5a4e62bead259c258d069fd3663ea670_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2fd67b9662eb6010db2c77d3a40ed9211977ddc1c969c39fb5a6a4e3ca0b220c
+size 36010
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/731f533b0599c8e42a063f06e4332045_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/731f533b0599c8e42a063f06e4332045_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..a5dbb6127b96b54be7e7b34e0189077f8cc85d5c
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/731f533b0599c8e42a063f06e4332045_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c49b5aee58d90592034c0ec32a1e5068dc996238ea9890680cb771f61967b6df
+size 17178
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/8307f6b04df072c9332f9987e034272c_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/8307f6b04df072c9332f9987e034272c_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..0b79651c3bca4123e623db554032a5b1f3850f7f
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/8307f6b04df072c9332f9987e034272c_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:172c7825673c046e526ff2ec5db866b2647d76c72d9803e6d4dbbccf6d5a4bb0
+size 16510
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/a5ee5c23b6dc52ec1d724b76d5a5f58f_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/a5ee5c23b6dc52ec1d724b76d5a5f58f_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c0e93bfc67e493cae25d47cf808919dcac87e5ee
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/a5ee5c23b6dc52ec1d724b76d5a5f58f_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:afce303d4f8ad1c6354d5770c1ce34be2186e70ec57e49bd72759701a6552056
+size 30542
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/cfef993dcc8fb513de79eb1f93cf26ae_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/cfef993dcc8fb513de79eb1f93cf26ae_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..8429a0d3841b6e24d0f11e1aad745cc9009bfbb7
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/cfef993dcc8fb513de79eb1f93cf26ae_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5752c58526bb580407f6cab25e06e0756a133f80bb77c26f88572359761fe71b
+size 28337
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/d4af765160d04ecef538e5066006dc77_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/d4af765160d04ecef538e5066006dc77_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..a7b1aa0948e68ad536c9dc3b4b03586ff5116d1e
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/d4af765160d04ecef538e5066006dc77_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3d85f0ac55f66cae9182ef6aea0379c3fed098d6cf77abae3bddba54a3d3b6cd
+size 31517
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/e6df2733626a85205c1db682e6259c46_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/e6df2733626a85205c1db682e6259c46_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..ed4b5890c9d7eecb24f451902e43659209acab05
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/e6df2733626a85205c1db682e6259c46_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c809451721eb5d6160c76436b04fb70efb7722f7678dc811b359b19b72bb702c
+size 29929
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/ebff22fb5dd6f50a90e44dca0f82f285_img.jpg b/marked/H/T-REC-H.244-199507-I_PDF-E/ebff22fb5dd6f50a90e44dca0f82f285_img.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..7e917eb2b4d8dabd287a5b79b5d755fa48fe3f54
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/ebff22fb5dd6f50a90e44dca0f82f285_img.jpg
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:814a59b0329ff7d02423b7bf4e237d663611b9ce59ac76a8562d1ad789155873
+size 29463
diff --git a/marked/H/T-REC-H.244-199507-I_PDF-E/raw.md b/marked/H/T-REC-H.244-199507-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..5ba4d1af91ae3e35c73f61e098acb1a2b0adb879
--- /dev/null
+++ b/marked/H/T-REC-H.244-199507-I_PDF-E/raw.md
@@ -0,0 +1,933 @@
+
+
+
+
+ITU logo: A globe with a lightning bolt and the letters ITU.
+
+INTERNATIONAL TELECOMMUNICATION UNION
+
+**ITU-T**
+
+**H.244**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+(07/95)
+
+**TRANSMISSION OF NON-TELEPHONE SIGNALS**
+
+---
+
+**SYNCHRONIZED AGGREGATION OF
+MULTIPLE 64 OR 56 kbit/s CHANNELS**
+
+**ITU-T Recommendation H.244**
+
+(Previously "CCITT Recommendation")
+
+---
+
+# FOREWORD
+
+The ITU-T (Telecommunication Standardization Sector) is a permanent organ of the International Telecommunication Union (ITU). The ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Conference (WTSC), which meets every four years, establishes the topics for study by the ITU-T Study Groups which, in their turn, produce Recommendations on these topics.
+
+The approval of Recommendations by the Members of the ITU-T is covered by the procedure laid down in WTSC Resolution No. 1 (Helsinki, March 1-12, 1993).
+
+ITU-T Recommendation H.244 was prepared by ITU-T Study Group 15 (1993-1996) and was approved under the WTSC Resolution No. 1 procedure on the 10th of July 1995.
+
+---
+
+# NOTE
+
+In this Recommendation, the expression “Administration” is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+# CONTENTS
+
+| | | Page |
+|-------|----------------------------------------------------------------------------------------|-------------|
+| 1 | Scope..... | 1 |
+| 2 | Normative references ..... | 1 |
+| 3 | Definitions and symbols..... | 1 |
+| 3.1 | Definitions ..... | 1 |
+| 3.2 | Symbols ..... | 2 |
+| 4 | Abbreviations ..... | 3 |
+| 5 | General ..... | 4 |
+| 5.1 | Application of this Recommendation ..... | 4 |
+| 5.1.1 | Intercommunication of Audiovisual equipments ..... | 4 |
+| 5.1.2 | Intercommunication of non-audiovisual equipments – Case D ..... | 5 |
+| 5.2 | Definition of the Modes of transmission on the MC side ..... | 5 |
+| 5.3 | General description of the aggregation process ..... | 8 |
+| 5.4 | CAU functionality ..... | 9 |
+| 6 | Choice of H.244 or ISO aggregation..... | 10 |
+| 7 | H.244 aggregation procedure ..... | 12 |
+| 7.1 | Call control ..... | 12 |
+| 7.1.1 | Initial channel..... | 12 |
+| 7.1.2 | Additional channels ..... | 12 |
+| 7.2 | Channel synchronisation..... | 12 |
+| 7.3 | In-band procedure using H.221 BAS codes ..... | 12 |
+| 7.3.1 | Control of transfer rate ..... | 13 |
+| 7.3.2 | Determination of the transfer-rate capabilities to be transmitted on the MC side..... | 13 |
+| 7.3.3 | Determination of the transfer-rate capabilities to be transmitted on the SC side ..... | 13 |
+| 7.3.4 | Capability sets transmitted from a CAU ..... | 13 |
+| 7.3.5 | Notification of change of N a ..... | 15 |
+| 7.3.6 | Commands transmitted from a CAU..... | 15 |
+| 7.4 | Transmission of user information by a CAU ..... | 16 |
+| 8 | Initialisation, Mode/Rate changing and Fault recovery ..... | 16 |
+| 8.1 | Initialisation ..... | 16 |
+| 8.1.1 | Single-channel Side ..... | 17 |
+| 8.1.2 | Multi-channel Side, initial channel ..... | 17 |
+| 8.1.3 | Multi-channel Side, additional channels ..... | 17 |
+| 8.2 | Change of transmission rate during a session ..... | 18 |
+| 8.3 | Recovery from fault conditions ..... | 18 |
+| 8.4 | Further mode changes ..... | 18 |
+| 9 | ISO aggregation procedure ..... | 18 |
+| | Appendix I – Examples of procedures ..... | 19 |
+| | Appendix II – Example of SDL diagram for TAC initialisation ..... | 23 |
+| | Appendix III – Comments on the modification of capsets and commands ..... | 24 |
+
+
+
+# SYNCHRONIZED AGGREGATION OF MULTIPLE 64 OR 56 kbit/s CHANNELS
+
+(Geneva, 1995)
+
+# 1 Scope
+
+This Recommendation provides for synchronisation and aggregation of multiple channels of 64 kbit/s or 56 kbit/s, each being with or without octet integrity and relative transmission delay in the range $\pm 1$ second. It is applicable to a wide range of user data transport up to 63 channels using ISO/IEC standard 13871, but special provision is made for audiovisual systems according to Recommendation H.221 [1], up to 24 channels; the aggregation may be network-based or associated with Customer-Premises Equipment. The available operating modes (B1, B2, B3, H2) provide options with/without transmission-management overhead and user-data rates at/less-than the exact multiples of 64/56 kbit/s.
+
+The number of aggregated channels may be varied dynamically during a session. Procedures are given for dealing with faults, including loss of channels and slip.
+
+Call control is not covered in this Recommendation.
+
+# 2 Normative references
+
+The following Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; all users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published.
+
+- [1] ITU Recommendation H.221 (1993), *Frame structure for a 64 to 1920 kbit/s channel in audiovisual teleservices*.
+- [2] ITU Recommendation H.242 (1993), *System for establishing communication between audiovisual terminals using digital channels up to 2 Mbit/s*.
+- [3] ITU Recommendation H.320 (1993), *Narrow-band visual telephone systems and terminal equipment*.
+- [4] ISO/IEC CD 13871, *Digital Channel Aggregation*.
+- [5] ITU Recommendation H.230 (1995), *Frame-synchronous control and indication signals for audiovisual systems*.
+
+# 3 Definitions and symbols
+
+## 3.1 Definitions
+
+For the purposes of this Recommendation, the following definitions apply:
+
+- 3.1.1 **H.244 aggregation:** Channel aggregation by the process described in clauses 7 and 8.
+- 3.1.2 **ISO aggregation:** Channel aggregation by the process described in [4].
+- 3.1.3 **single channel equipment (SCE):** A terminal or other unit (such as a LAN interface) having an interface for a single bidirectional digital connection.
+- 3.1.4 **multiple channel equipment (MCE):** A terminal or other unit (such as a LAN interface) having interface(s) for multiple bidirectional digital connections at 64 kbit/s each.
+
+- 3.1.5 channel aggregation unit (CAU):** A device having both multiple 64 kbit/s accesses and a single access at a higher bit rate. Reference in this Recommendation to ‐CAU‑ or ‐aggregator‑ shall mean equipment conforming to this Recommendation.
+- 3.1.6 H.221 frame structure, H.221 framing:** Frame structure according to Recommendation H.221, as set out in [1].
+- 3.1.7 Capset:** Abbreviation for ‐Capability set‑ – see [2].
+- 3.1.8 user information:** The application data streams passing (in both directions) between CAU and SCE. (See Note 1.)
+- 3.1.9 calling end:** The CAU or MCE which requests the first 64/56-channel connection of the whole session, resulting in the establishment of the ‐initial channel‑. If during fault-recovery procedures the initial channel is transferred to another connection, this does not affect the definition. (See Note 2.)
+- 3.1.10 called end:** The CAU or MCE which accepts the first 64/56-channel connection request of the whole session, resulting in the establishment of the ‐initial channel‑. If during fault-recovery procedures the initial channel is transferred to another connection, this does not affect the definition. (See Note 2.)
+- 3.1.11 TAC case:** In-band communication between SCE and CAU takes place using H.221 BAS codes – see clauses 7-8.
+- 3.1.12 NoTAC case:** No in-band management communication between SCE and CAU takes place – the single channel is only a clear path for the data which will be wholly transmitted to the remote party; any communication between the terminal and the CAU is by means not specified in this Recommendation.
+- 3.1.13 modes B1, B2, B3:** Modes of aggregation by the method of [4] – see 5.2.
+- 3.1.14 mode H2:** Modes of aggregation by the method of clauses 7-8.
+- 3.1.15 redundant command:** A BAS command which repeats, unchanged, a previously transmitted mode value which is still in force.
+- 3.1.16 compatibility bits:** Bit 8 of the first sixteen octets in every time-slot of a single channel except Time-slot 1.
+- 3.1.17 external setting:** This term is used to express operations outside the scope of this Recommendation which determine the behaviour of a CAU as to choice of option or timing of its action.
+
+### NOTES
+
+- 1 In the audiovisual cases, the application data stream includes the H.221 frame structure.
+- 2 The significance of ‐calling‑ and ‐called‑ end-points is mentioned in 8.1.3.
+
+## 3.2 Symbols
+
+NOTE – For readability, the capability and command values listed in References [1] and [5] are referred to in this Recommendation by their names rather than codepoint byte values; the use of {*name*} for capabilities and [*name*] for commands serves to distinguish between these.
+
+- N** An integer, applied to 64/56-channels to define a parallel (un-aggregated) bitstream of rate $N \times 64$ kbit/s.
+- n** An integer, applied to 64 kbit/s to define a serial (or otherwise aggregated) bitstream of rate $n * 64$ kbit/s.
+- $N_a$** The number of active 64/56-channels between CAU and MCE or between two CAUs.
+- $N_m$** The maximum number of 64/56-channels which can be accepted by a CAU transmitting the value $\{N_m \times B\}$ .
+- $N'_m$** Used to denote the incoming value of $N_m$ from the remote CAU, or equivalent from an MCE.
+
+| | |
+|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| $N_d$ | The number of connections requested by the calling end, the lower of $N_m$ and $N_m^2$ . |
+| $\{N \times 64k\}$ | Capabilities in the series {1B}, {2B}, {3B}.... corresponding to $N = 1, 2, 3 \dots$ (applies to Mode H2 only). |
+| $\{n*64k\}$ | Capabilities in the series {64k}, {128k}, {192k}.... corresponding to $n = 1, 2, 3 \dots$ |
+| $n_m$ | Such that $\{n_m*64k\}$ is the highest transfer-rate capability incoming from the SCE for which the continuous series of rate capabilities $\{(n_m - 1)*64k\}, \{(n_m - 2)*64k\}, \dots, \{2*64k\}$ is also present in the capset. |
+| $[N \times 64]$ | Multiple-channel commands defined in [1]. |
+| $[n*64k]$ | Single-channel commands defined in [1]. |
+| [capex] | Command issued by a CAU (see 7.3.6.3) to an SCE to stimulate a capability exchange. |
+| [AggIN]* | A double SBE symbol indicating the number n as determined by the process of 7.3.4.2; see the procedure described in clause 8 – see [5]. |
+| {null} | Capability having no significance other than as a filler; only ever transmitted by a CAU, and therefore it identifies the capset as having last come from, or been forwarded by, a CAU; SCE must ignore any number of these in an incoming capset – see [1]. |
+| {SM-comp} | Capability to transmit and receive user information without using any compatibility bits, setting these to 1 – see [1]. |
+| [SM-comp] | User information is not contained in the compatibility bits (and shall not be sent in the compatibility bits in the reverse direction either) – see [1]. |
+| S | Audible signal (to be defined), which would be recognised by a human user as a call progress tone (he would not hang up). |
+
+# 4 Abbreviations
+
+For the purposes of the Recommendation, the following abbreviations are used:
+
+| | |
+|----------------------------|--------------------------------------|
+| BAS | Bit-rate Allocation Signal – see [1] |
+| CAU | Channel Aggregation Unit |
+| FAS | Frame Alignment Signal – see [1] |
+| H.221 | See 3.1 |
+| MC (side) | Multiple Channel (side, of a CAU) |
+| MCE | Multiple-Channel Equipment |
+| NCA, NIA, NIC,
NID, NIS | See [5] |
+| NoTAC | No Terminal-Aggregator Communication |
+| SC (side) | Single Channel (side, of a CAU) |
+| SCE | Single-Channel Equipment |
+| SM-comp | Single-Multiple compatibility |
+| TAC | Terminal-Aggregator Communication |
+| UD | Unspecified Data |
+
+# 5 General
+
+## 5.1 Application of this Recommendation
+
+On the single-channel connections, which may be very short if the terminal and CAU are colocated, or much longer if a telecommunications link is involved, two options are provided for in this Recommendation:
+
+- no in-band management communication on the single channel, this being only a clear path for the data which will be wholly transmitted to the remote party; any communication between the terminal and the CAU is by means not specified in this Recommendation; this is referred to as the “NoTAC” case – No Terminal-Aggregator Communication and applies when “ISO aggregation” is used (see [4]);
+- in-band communication as specified in this Recommendation, using the BAS codes defined in [1] and the procedures of [2]; this is referred to as the “TAC” case – Terminal-Aggregator Communication, and applies when “H.244 aggregation” is used (see clauses 7 and 8).
+
+### 5.1.1 Intercommunication of Audiovisual equipments
+
+For audiovisual terminals conforming to [1] and [2], this Recommendation provides for synchronisation and aggregation of up to 24 channels of 64 kbit/s or 56 kbit/s, each being with or without octet integrity and relative transmission delay in the range $\pm 1$ second.
+
+Provision is made for the following intercommunication Cases A-C.
+
+#### 5.1.1.1 Case A
+
+For interconnection of a single-channel (SCE) and a multiple-channel audiovisual end-point (MCE), both conforming to [1] and [2], only H.244 aggregation is permissible (see Figure 1); this involves only one CAU, which may be within the network or close to the single-channel end-point.
+
+
+
+The diagram illustrates the interconnection for Case A. On the left, a circle labeled 'SCE' is connected to a rectangle labeled 'CAU' by a double-headed arrow labeled 'TAC'. The 'CAU' is connected to an oval labeled 'Switched digital network' by four parallel horizontal lines. The 'Switched digital network' is connected to a hexagon-like shape labeled 'MCE' by four parallel horizontal lines. Below the 'MCE' is the technical reference text 'T1514940-94/d01'.
+
+Diagram of Case A interconnection showing SCE connected to CAU via TAC, CAU connected to Switched digital network, and Switched digital network connected to MCE.
+
+**FIGURE 1/H.244**
+
+#### 5.1.1.2 Case B
+
+This case provides for interconnection between two single-channel audiovisual end-points which see the aggregated link purely as a clear data channel; each has a CAU associated with it, but there is no in-band control communication between the end-point and its associated CAU (see Figure 2); this is the NoTAC approach. The system is exactly the same as for unspecified data applications (see 5.1.2); the CAU-ISDN-CAU combination provides a clear channel at one of the transfer rates specified in [1], and therefore shall use ISO aggregation, Mode B1 or B3 (see 5.2).
+
+
+
+```
+
+graph LR
+ subgraph Left
+ SCE1((SCE)) -- "(NoTAC)" --- CAU1[CAU]
+ end
+ CAU1 === SDN((Switched
+digital
+network))
+ SDN === CAU2[CAU]
+ subgraph Right
+ CAU2 --- SCE2((SCE))
+ SCE2 -- "(NoTAC)" --- CAU2
+ end
+
+ %% Optional external communication lines
+ SCE1 -.-> Ext1[ ]
+ Ext1 -.-> SCE1
+ SCE2 -.-> Ext2[ ]
+ Ext2 -.-> SCE2
+
+```
+
+Optional external communication
+
+T1514950-94/d02
+
+FIGURE 2/H.244
+
+#### 5.1.1.3 Case C
+
+This provides for interconnection of two single-channel end-points both conforming to [1] and [2] and capable of the H.244 aggregation operation described in clauses 7-8 (see Figure 3); this involves two CAUs, which may be within the network or close to the single-channel end-points.
+
+NOTE – It is not possible to use TAC at one end and NoTAC at the other – see clause 6.
+
+
+
+```
+
+graph LR
+ SCE1((SCE)) <--> TAC1[TAC] <--> CAU1[CAU]
+ CAU1 === SDN((Switched
+digital
+network))
+ SDN === CAU2[CAU]
+ CAU2 <--> TAC2[TAC] <--> SCE2((SCE))
+
+```
+
+T1514960-94/d03
+
+FIGURE 3/H.244
+
+### 5.1.2 Intercommunication of non-audiovisual equipments – Case D
+
+This Recommendation provides for synchronisation and aggregation of up to 63 channels of 64 kbit/s or 56 kbit/s, each being with or without octet integrity and relative transmission delay in the range $\pm 1$ second. It is applicable to a wide range of user information transport, including LAN-LAN interconnect, private circuit back-up, and other “unspecified data” applications. No in-band control communication takes place on the single-channel side. The equipments see the aggregated link purely as a clear data channel, and the structure or content of the data streams is of no concern to the aggregating equipment.
+
+ISO aggregation is appropriate (see Figure 2); the CAU-ISDN-CAU combination provides a clear channel at one of the transfer rates specified in [4] using Mode B1, B2 or B3 (see 5.2).
+
+## 5.2 Definition of the Modes of transmission on the MC side
+
+The four modes of transmission are defined below, the accompanying figures being given by way of example for the case of about 192 kbit/s on the SC side.
+
+**Mode B1** – The user information occupies an integral number of 64/56k channels (usually the N available and aligned channels); only unframed signals are transmitted (see Figure 4), alignment of the channels has previously been achieved using a framed mode, and it is assumed that no slip or other network fault has occurred since then. There are no management bits multiplexed into the stream on either MC or SC sides, and the total bit rates are equal; the Mode is therefore confined to NoTAC cases, and rate change is not possible.
+
+
+
+The diagram illustrates a CAU (Communication Authority Unit) connected to two sets of channels. On the left, a single large gray rectangle represents a 192 kbit/s channel, divided into three equal vertical sections. On the right, three separate gray rectangles represent three 64 kbit/s channels, each also divided into three equal vertical sections. The CAU is shown as a box with three lines connecting to the right side of the three 64 kbit/s channels. The text 'T1514970-94/d04' is located at the bottom right of the diagram.
+
+Diagram of H.244 Figure 4 showing a CAU connected to a 192 kbit/s channel and three 64 kbit/s channels. The 192 kbit/s channel is divided into three equal parts. The three 64 kbit/s channels are also divided into three equal parts. The text 'T1514970-94/d04' is present below the right side.
+
+FIGURE 4/H.244
+
+Audiovisual signals according to [1] can be transmitted, but the H.221 framing plays no part in the aggregation process, and will appear at a random position within one of the B-channels as shown in black in Figure 5.
+
+
+
+This diagram is similar to Figure 4 but shows the placement of audiovisual signals. On the left, the 192 kbit/s channel has a small black rectangle in its first section. On the right, the three 64 kbit/s channels have small black rectangles in their second sections. The CAU and channel divisions are the same as in Figure 4. The text 'T1514980-94/d05' is located at the bottom right of the diagram.
+
+Diagram of H.244 Figure 5 showing a CAU connected to a 192 kbit/s channel and three 64 kbit/s channels. The 192 kbit/s channel has a small black rectangle in its first section. The three 64 kbit/s channels have small black rectangles in their second sections. The text 'T1514980-94/d05' is present below the right side.
+
+FIGURE 5/H.244
+
+**Mode B2** – Signals are transmitted with framing according to [4] (depicted as white in Figure 6), the user information rate being about 1.5% less than an integral multiple of 64/56 kbit/s due to the overhead of the frame structure. There is no provision for management bits on the SC side, so the use of this Mode is confined to the NoTAC case.
+
+
+
+The diagram illustrates Mode B3. On the left, a box labeled 'CAU' has three output lines. Below it, a large grey rectangle contains a white box with the text '(192-3x) kbit/s'. To the right, a grid represents three channels. Each channel has a white header section at the top and a grey data section at the bottom. The data sections are labeled '(64-x) kbit/s'. Below the grid is the reference 'T1517240-94/d06'.
+
+Diagram of Mode B3 showing a CAU connected to three channels. The total rate is (192-3x) kbit/s, with each channel carrying (64-x) kbit/s. Reference T1517240-94/d06.
+
+FIGURE 6/H.244
+
+**Mode B3** – Signals are transmitted with framing in all N channels according to [4], the user information rate being an integral multiple (such as $N - 1$ ) of 64/56 kbit/s; thus there is a management overhead of about 1.5% and generally some unused capacity, as illustrated in Figure 7. The exact bit positions occupied by user information are defined in [4].
+
+
+
+The diagram illustrates Mode H2. On the left, a box labeled 'CAU' has four output lines. Below it, a large grey rectangle is divided into three equal vertical sections, with a white box at the bottom labeled '192 kbit/s'. To the right, a grid represents four channels. The first three channels have a white header section and a grey data section labeled '(64-x) kbit/s'. The fourth channel is a solid black rectangle labeled 'Unused capacity'. Above the fourth channel is a white box labeled '(3x) kbit/s'. Below the grid is the reference 'T1517250-94/d07'.
+
+Diagram of Mode H2 showing a CAU connected to four channels. The first three carry (64-x) kbit/s each, and the fourth is unused capacity. Total rate is 192 kbit/s. Reference T1517250-94/d07.
+
+FIGURE 7/H.244
+
+**Mode H2** – Only H.221-framed signals are transmitted (framing is shown as white in Figure 8), the user information rate being an integral number of 64/56k channels (usually the N available and aligned channels), including the FAS and BAS within this rate. On the MC side all channels are framed; on the SC side only the I-channel (Time-slot 1) carries H.221 framing, but the corresponding bits (shown with dashed outline) in the other time-slots shall be vacated, so that framing can be inserted at the CAU in the SC-to MC direction (and removed in the other): this is done under the [SM-comp] command.
+
+
+
+Diagram of a Channel Aggregation Unit (CAU) showing two output modes. On the left, a single output stream is labeled '192 kbit/s'. On the right, three separate output streams are each labeled '64 kbit/s'. The CAU is represented by a box with one input line on the left and three output lines on the right, connecting to the two mode representations.
+
+FIGURE 8/H.244
+
+### Mode properties
+
+The properties of the four modes are summarised in Table 1. “Dynamic rate change” refers to dynamic variation of the number N of aggregated channels during a session: rate changes within available connection capacity can normally be made in less than 40 ms for Modes H2, B3; when new connections must be added, the response depends on call set-up time; for Mode B1 interruption of the application is inevitable.
+
+TABLE 1/H.244
+
+| | Mode B1 | Mode H2 | Mode B2 | Mode B3 |
+|--------------------------------------------|---------|---------------------------------|----------------|---------|
+| Aggregation overhead (% for 64k multiples) | None | 2.5% in the additional channels | 1.5% | 1.5625% |
+| Dynamic rate changes | No | Yes | Yes | Yes |
+| Exact multiples of 64/56 kbit/s | Yes | Yes (H.221-framed only) | No | Yes |
+| Interworking with MCE (audiovisual) | No | Yes | Not applicable | No |
+
+The applicability of the Modes is summarised in Table 2.
+
+## 5.3 General description of the aggregation process
+
+The Channel Aggregation Unit (CAU) is a device having on the one side a single-channel port and on the other side a multiplicity of 64/56-channel ports. This Recommendation defines the behaviour of the CAU in respect of the input and output signals at the two sides.
+
+When new multiple channels are active, the CAU buffers the incoming signals in order to synchronise them, and then reads the user information to the SC side. In the reverse direction, the CAU takes the serial input into the SC side and loads it into those parallel channels which it knows to be in synchronism at the remote end. However, according to the two quite different conditions described at the beginning of 5.1, the CAU has two different processes, that is, depending on whether or not it is communicating in-band with the single-channel terminal; selection of the correct process is described in clause 6.
+
+TABLE 2/H.244
+
+| Mode | AV/non-AV | Mode applicable when . . . . . |
+|------|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| B1 | Audiovisual | The remote end is not an MCE, and the remote CAU does not support Mode H2, and Mode B3 is considered too inefficient or is not available; bitstream treated as UD only; NoTAC case, so external means must be used to set bit rate |
+| | Non-audiovisual | Exact multiple of 64/56 kbit/s required, absence of dynamic rate change tolerable, B3 considered too inefficient |
+| B2 | Audiovisual | Not applicable – B2 does not provide suitable bit rates |
+| | Non-audiovisual | Exact multiple of 64/56 kbit/s not essential, dynamic rate change desired |
+| B3 | Audiovisual | The remote end is not an MCE, and the remote CAU does not support Mode H2; dynamic rate change more important than efficiency; bitstream treated as UD only; NoTAC case, so external means must be used to set bit rate |
+| | Non-audiovisual | Exact multiple of 64/56 kbit/s required, dynamic rate change more important than efficiency |
+| H2 | Audiovisual | Remote end is an MCE, or a CAU supporting Mode H2; TAC case, so no external control is needed |
+| | Non-audiovisual | Not applicable (unless conformant to [1]) |
+
+H.244 aggregation is based on such communication (this applies only to H.320 audiovisual terminals): effectively the SCE communicates with the other terminal at the remote end of the connection in the normal way, by capability sets and commands; the CAU merely moderates this communication in order to assure satisfactory conditions on the multiple 64/56-channel section. The CAU informs the terminal about the upper limit of transmission rate, which depends on the number of channels available, or what the other end can accept, whichever is the lower; it does this by suitably modifying the capability sets exchanged. The synchronisation process is based on [1], which also provides for numbering of the channels. Negotiation of appropriate conditions is based on [2]; the capability sets emanating from the CAU define the range of signals that could be sent to it, while commands define the actual signal structure being transmitted from the CAU. See clauses 7-8.
+
+In ISO aggregation there is no in-band communication between the CAU and SCE, the CAU is totally responsible for its communication with the remote CAU, presenting on its SC side a clear digital channel at a specified bit rate, which can be used for any purpose whatsoever (including audiovisual systems). Here again the CAU must control the transmission rate from the terminal – this can be by clocking if the application rate can be varied in this way (and this does not apply to terminals conforming to [3]), or by other external signalling. In this (“NoTAC”) case, the synchronisation and communication processes are fully described in [4] – see clause 9.
+
+## 5.4 CAU functionality
+
+The CAU functionality can be summarised thus:
+
+- 1) All modes
+ - MC-to-SC direction: Synchronisation and aggregation of N incoming 64/56-channels into one outgoing single channel; SC-to-MC direction: partition of incoming user information onto N outgoing 64/56 kbit/s channels, with framing as appropriate.
+- H2 mode
+ - Ignore the compatibility bits incoming on the SC side, putting FAS/BAS into the corresponding outgoing bits on the MC side; remove FAS/BAS in additional channels incoming on the MC side, putting Ones into the corresponding outgoing bits on the SC side.
+
+- | | | |
+|----|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 2) | All modes | Control the aggregated bit rate according to application requirements and the available MC capacity. |
+| | H2 mode | Modify capability sets and commands to ensure correct operation of the system; detect changes to capacity requirements from incoming capability sets. |
+| 3) | All modes | Detect fault conditions and take appropriate action. |
+| 4) | All modes | (Optionally) transfer the call-control signalling between the ISDN and single-channel networks. |
+
+The action of the CAU is not completely specified, some matters being left to the choice of the implementer or service provider. For example, requests for channels will not all mature simultaneously, and it is a matter of choice whether each should be added in to the communication as soon as available (increasing the bit rate in a series of many steps), or alternatively held back until all or most are available (increasing the bit rate in one single step).
+
+# 6 Choice of H.244 or ISO aggregation
+
+The procedure at the start of the call is as depicted in the diagram of Figure 9 and described in the following subclauses. It is mandatory that all CAUs intended for use with audiovisual terminals conforming to [1] be able to operate in Mode H2.
+
+There are two alternatives for the choice between H.244 and ISO aggregation processes at each CAU:
+
+- 1) the CAU may be preset to perform H.244 or ISO aggregation only, according to the environment for which the CAU is intended;
+- 2) if 1) has not been applied, a decision must be taken on the basis of incoming signals on both SC and MC sides, as described below.
+
+Reference is made to Figure 9. The CAU operation is essentially the same whether it is the originating (calling) end or the destination (called) end (the setting of Flag1 is for possible later use when the additional channels are to be requested, or in the procedure of [4]).
+
+**First**, three local conditions are tested, and if any of the three are not met then ISO aggregation (clause 9) is used. These conditions are:
+
+Condition 1: There has been no preset to specify ISO aggregation only; note that if the connected SCE is an H.320 terminal, then only modes B1 or B3 may be used – B2 does not provide valid bit rates;
+
+Condition 2: H.221 framing is detected, coming from the SCE; note that a timeout is involved here;
+
+Condition 3: The capset in that H.221 frame contains the value {SM-comp} and/or {6B-H0-comp}.
+
+Only under these three conditions is the H.221-framed signal forwarded from the SCE on the initial channel, otherwise the CAU generates the signal defined in 7.1 of ISO/IEC CD 13871 [4].
+
+**Second**, the incoming signal is searched for H.221 framing and [4] signal. If a [4] signal is detected (see Note, Figure 9) ISO aggregation clause 9 is used – if previously following clauses 7-8 because the above three conditions were met, this means switching to [4] signals on the outgoing transmission. A timeout of 10 seconds is applied to the detection of [4] to allow for the possibility that clauses 7-8 is initially being followed at the remote end. **Only if the transmissions in both directions are H.221-framed and SCEs transmit the capability value {SM-comp} or {6B-H0-comp} does H.244 aggregation procedure apply.**
+
+### Failure states
+
+If no incoming framing, either of H.221 or [4] type, Failure State 1 is reached: it must be presumed that the remote end-point is neither a CAU nor an audiovisual MCE (in some applications, speech communication using PCM according to Recommendation G.711 may still be possible).
+
+
+
+```
+
+ graph TD
+ Start([standby]) --> Connect{CONNECT
+received}
+ Start --> ConnAck{CONN_ACK
+received}
+
+ subgraph Originating
+ Connect --> SetFlag0[Set Flag1 = 0]
+ end
+
+ subgraph Destination
+ ConnAck --> SetFlag1[Set Flag1 = 1]
+ end
+
+ SetFlag0 --> Cond1{ISO
+aggregation
+preset?}
+ SetFlag1 --> Cond1
+
+ Cond1 -- Yes --> Exit3((3))
+ Cond1 -- No --> SearchH221[Search for H.221 framing
+incoming on SC side]
+
+ SearchH221 --> Cond2{H.221 framing
+present?}
+ Cond2 -- No --> CondH244{H.244
+aggregation
+preset?}
+ CondH244 -- No --> Exit3
+ CondH244 -- Yes --> Fail3([failure
+state 3])
+
+ Cond2 -- Yes --> LookSM[*Look for {SM-comp} from SCE]
+ LookSM --> Cond3{{SM-comp}
+present*}
+ Cond3 -- No --> Exit3
+ Cond3 -- Yes --> ForwardPCM[Forward framed PCM
+from SC side to MC side
+Capset_mod_1 (7.3.4.1)]
+
+ ForwardPCM --> ExamineMC[Examine signals
+incoming on MC side]
+
+ ExamineMC --> Res1[Neither H.221 nor
+ISO 13871 signals
+detected within 10 s] --> Fail1([failure
+state 1])
+ ExamineMC --> Res2[H.221 framing
+detected] --> Exit1((1))
+ ExamineMC --> Res3[ISO 13871 signal
+detected (Note)] --> SwitchISO[Switch transmitted
+signal to ISO 13871] --> Exit2((2))
+
+ Exit3 --> SendISO[Send ISO 13871
+signal - clause 9]
+ SendISO --> ExamineMC2[Examine signals
+incoming on MC side]
+
+ ExamineMC2 --> Res4[ISO 13871 signal
+detected (Note)] --> Exit2
+ ExamineMC2 --> Res5[H.221 framing
+detected] --> Cond4{Incoming
+{SM-comp}
+present*}
+ ExamineMC2 --> Res6[Neither H.221 no
+ISO 13871 signals
+detected within 10 s] --> Fail1_2([failure
+state 1])
+
+ Cond4 -- No --> Fail1_2
+ Cond4 -- Yes --> AwaitISO[Await incoming
+change to ISO 13871
+signal structure] --> Fail2([failure
+state 2])
+ AwaitISO --> Exit2
+
+```
+
+**FIGURE 9/H.244**
+
+**Recommendation H.244 (07/95)**
+
+NOTE – Answering Endpoint initially transmits all Ones.
+
+Flag1 used in ISO 13871 aggregation to distinguish Calling/Answering Endpoints
+
+\*alternative: {6B-H0-comp}
+
+ISO 13871 aggregation selected in all other cases – clause 9 applies
+
+All conditions met for H.244 aggregation clauses 7, 8 apply
+
+T1520210-95/d09
+
+Flowchart for Recommendation H.244 (07/95) Figure 9/H.244 showing the logic for ISO aggregation and H.221 framing detection.
+
+If one end is transmitting according to ISO aggregation operation (clause 9), one of the above three conditions not having been fulfilled, and the remote end is sending H.221 framing but without {SM-comp} or {6B-H0-comp}, Failure State 2 is reached, reflecting the technical impossibility of interconnecting to an MCE at the remote end.
+
+Failure State 3 is reached if the CAU is set to operate in the H2 mode but the connected SCE is not sending H.221 framing.
+
+The action to be taken on reaching any of the failure states is an implementation matter. The SBE symbol NII [1], indicating incompatible aggregators, may be used in appropriate fault conditions.
+
+# 7 H.244 aggregation procedure
+
+## 7.1 Call control
+
+The signalling for call control is outside the scope of this Recommendation: it is assumed that external signalling is available to set up the appropriate paths between the equipments – for example, the “D-channel” in the case of ISDN. Means are described in 8.1.3 for the in-band transfer of network address information where this is needed for call control.
+
+### 7.1.1 Initial channel
+
+The initial 64/56-channel is requested when communication has been established between the calling-end SCE and its CAU and any necessary checking has been carried out (for example, presence of {SM-comp} if required (see Note); presence of {n\*64k} with $n > 1$ ). During establishment of the initial channel, the value of $N_m$ is calculated from the SCE capset (see 7.3.2).
+
+NOTE – SCE terminals conforming to [3] should include the 6B-H0 compatibility mode; if this capability and {SM-comp} are both absent, the CAU shall adopt NoTAC working – see clause 6.
+
+### 7.1.2 Additional channels
+
+Additional-channel requests are made by a CAU when:
+
+- the total of channels already requested is less than the lower of $N_m$ and $N'_m$ , and (in dial-up cases) the CAU is the calling end.
+
+Additional channels may be dropped by a CAU when the total of channels already requested exceeds the lower of $N_m$ and $N'_m$ .
+
+## 7.2 Channel synchronisation
+
+On the multiple-channel side, CAUs shall always synchronise all connected channels (in the ISDN case, those for which CONNECT has been sent or received). The value of $N_a$ is determined according to the channels for which:
+
+- the incoming A-bit is set to zero;
+- the channel numbers in BAS position (see Appendix I) form a continuous series from 1 to $N_a$ .
+
+## 7.3 In-band procedure using H.221 BAS codes
+
+In-band signalling shall follow [2] to ensure correct operation between the equipments. H.221 framing is used on all the multiple channels, and also on the single-channel side. All BAS commands are effective from the start of the following submultiframe, and remain in force until countermanded – see [2].
+
+CAUs shall remain responsive to incoming H.221 framing throughout the call, on the MC side on all channels, and on the SC side. This means that when no framing is detected the equipment will nevertheless respond rapidly when the incoming signal is switched to a framed mode, and will also respond quickly (if required) to fault conditions.
+
+### 7.3.1 Control of transfer rate
+
+The main function of the CAU is to match the effective transfer rates on its two sides. To do this it must be able to control the user information which is sent to it: it does this in-band on the MC side, and in the TAC case on the SC side also. The in-band method is by means of the capability set (see [2]) which it transmits or forwards; this shall always contain transfer-rate capability values no higher than the available rate on the other side of the CAU. See Figure 10.
+
+*NOTE – Other in-band signalling between SCE and CAU is possible - this is outside the scope of this Recommendation, and should be treated in the same way as –out-of-band– signalling - see NoTAC case.*
+
+
+
+```
+
+graph LR
+ subgraph " "
+ direction LR
+ A[In-band information TAC case] -- "(1)" --> CAU[CAU]
+ CAU -- "(4)" --> A
+ CAU -- "(2)" --> B[In-band information initial B-channel]
+ B -- "(3)" --> CAU
+ end
+ style CAU stroke-width:2px,stroke:#000
+
+```
+
+T1517270-94/d10
+
+Diagram of a CAU showing in-band information streams. A central box labeled 'CAU' has four arrows: (1) and (4) on the left, (2) and (3) on the right.
+
+FIGURE 10/H.244
+
+### 7.3.2 Determination of the transfer-rate capabilities to be transmitted on the MC side
+
+Reference is made to the in-band streams (1) and (2) in Figure 10.
+
+Transfer-rate capabilities transmitted on the MC side (2) are decided on the basis of the capset received from the SCE (1).
+
+If $n_m > 1$ , an $\{N \times 64k\}$ type value, with $N = n_m$ shall be sent – this is required for communication with an MCE, and also provides for communication with an SCE with fallback to all lesser multiples of 64/56 kbit/s.
+
+If SCE-transmitted capset contains values of $\{n*64k\}$ for which $n$ is higher than $n_m$ , these also shall be included (see 7.3.4.2) for potential communication with another SCE, though fallback to lesser rates will be limited.
+
+### 7.3.3 Determination of the transfer-rate capabilities to be transmitted on the SC side
+
+Reference is made to the in-band streams (3) and (4) in Figure 10.
+
+Transfer-rate capabilities transmitted on the SC side (4) are decided on the basis of the capset received from the MC side (3) and the number of channels currently available, $N_a$ .
+
+The incoming capability set on the MC side contains a single transfer-rate value of $\{N'_m \times 64k\}$ type: this value shall be replaced by a $\{n*64k\}$ -type transfer-rate value, corresponding either to the incoming value (i.e. such that $n = N'_m$ ), or to the available number of channels (i.e. such that $n = N_a$ ), whichever is the lesser. In general, the highest $\{n*64k\}$ -type transfer-rate capability value transmitted from CAU on the SC side (4) is that which indicates the maximum bit rate that can be accepted, including both user information and management.
+
+### 7.3.4 Capability sets transmitted from a CAU
+
+Capsets are not generated by the CAU itself; they are generated only in the terminals, and forwarded, in both SC and MC directions, by the CAUs with modifications as described in 7.3.4.1 and 7.3.4.2 below. No changes in the length of a capset are made by a CAU, the value {null} being used to fill any unused positions.
+
+The capsets outgoing from CAUs shall not violate the rules set out in [2]; in particular, all capsets which follow one another in succession without intervening commands shall be identical. Thus when circumstances require that a new modification be made, this shall always be done on a new capset, which shall usually be stimulated by the procedure of 7.3.5.
+
+#### 7.3.4.1 Modification of SCE capset for forwarding towards MC side
+
+The CAU modifies the SCE capset changing the lowest transfer-rate capability value to $\{N_m \times 64k\}$ ; here $N_m$ is determined from 7.3.2 above, except that if the SCE capset has only one transfer-rate capability value $\{n*64k\}$ then this is sent unchanged (see Note 2 below).
+
+This may be understood with reference to the following examples:
+
+| Original transfer-rate capabilities | External setting | Modified transfer-rate capabilities |
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|-------------------------------------|
+| 512, 384, 320, 256, 192, 128, 64 | None | 512, 384, 320, 256, 192, 128, 6B |
+| 384, 256, 192, 128, 64 | 6B | 384, 256, 192, 128, 4B (Note 1) |
+| 384, 320, 256, 192, 128 | None | 384, 320, 256, 192, 6B |
+| 384, 320, 256, 192, 128 | 4B | 384, 320, 256, 192, 4B |
+| 384 | None | 384 (Note 2) |
+| NOTES
1 6B cannot be used here since the rate 320 is absent from the list of original capabilities.
2 Refer to Appendix III for further comments on this exceptional provision. | | |
+
+Modification of the lowest transfer-rate capability guarantees that the transfer-rate capability for just 64 kbit/s, which is the same as 1B, is never present in the same set as a higher rate $\{N \times B\}$ -type. The remaining transfer rate and all other Capability codes are left unchanged. A remote MCE will receive the $\{N \times B\}$ -type and ignore the $\{n*64k\}$ -type values. The MCE will use the received A bits to determine the rate at which it can transmit data.
+
+#### 7.3.4.2 Modification of capset incoming from MC side for forwarding towards SCE
+
+The CAU modifies the capset incoming from the MC side according to 7.3.3. All values of transfer rate exceeding the capacity actually available on the multiple-channel link shall be replaced by the $\{\text{null}\}$ value; $\{\text{null}\}$ shall also be used to avoid any repetitions. If only five channels are active, and even though information (3) from the equipment connected at the multiple-channel side is that up to 6B (for example) would be acceptable, then the capset transmitted by the CAU in direction (4) shall contain the transfer rate values no higher than $\{320k\}$ .
+
+This is best understood with reference to the following examples:
+
+| Original transfer-rate capabilities | Available channels | Modified transfer-rate capabilities |
+|-------------------------------------|--------------------|-------------------------------------|
+| 512, 384, 320, 256, 192, 128, 6B | 6 | Null, 384, 320, 256, 192, 128, 6B |
+| 384, 256, 192, 128, 4B | 3 | Null, null, 192, 128, null |
+| 384, 256, 192, 128, 5B | 5 | Null, 256, 192, 128, 320 |
+
+### 7.3.5 Notification of change of $N_a$
+
+When the number of available channels has been changed, this will be made known to the SCE by sending a new value of {n\*64k} capability, using the modification of 7.3.4.2. If a sequence of (identical) capsets is already being received on the MC side, then two steps shall be taken:
+
+- one complete set shall be replaced by redundant commands (since to comply with [2] a capset change may not be made without interposing at least one command);
+- the next capset shall be modified according to 7.3.4.2, using the new value of $N_a$ .
+
+If there are no capsets incoming on the MC side, it is necessary to stimulate a capability exchange.
+
+This procedure is initiated by the CAU by sending [capex] to the SCE (7.3.6.3).
+
+NOTE – A terminal which has sent {6B-H0-comp} rather than {SM-comp} is unlikely to respond to [capex]; in this case the CAU may trigger the capability exchange by repeating the last capset it sent to the SCE.
+
+The SCE shall respond with a new capset, which is passed by the CAU towards the distant terminal with modification according to 7.3.4.1.
+
+If the distant terminal is an MCE, it shall respond with a new capset, which is conveyed to the SCE with modification by the CAU according to 7.3.4.2, reflecting the new value of $N_a$ .
+
+If the distant terminal is a CAU2 and SCE2, then the capset reaching SCE will have been modified by CAU2 according to 7.3.4.2, reflecting the new value of $N_a$ .
+
+SCE2 shall likewise respond with a new capset, which is conveyed to SCE1 with modification by CAU2 according to 7.3.4.1 and by CAU1 according to 7.3.4.2, also reflecting the new value of $N_a$ .
+
+### 7.3.6 Commands transmitted from a CAU
+
+In the TAC case, commands are not usually generated by the CAU itself, other than that certain substitutions shall be made, as detailed below; the remainder are generated only in the terminals.
+
+#### 7.3.6.1 Substitution of transfer rate commands
+
+When [n\*64k] from SCE is detected at the CAU, it is replaced by [N × 64k] with N = n for forwarding on MC side.
+
+When [N × 64k] from the MC side is detected at the CAU, it is replaced by [n\*64k] with N = n for forwarding to SCE.
+
+#### 7.3.6.2 Insertion and removal of [SM-comp] and [6B-H0-comp]
+
+When [SM-comp] or [6B-H0-comp] from SCE is detected at the CAU, it is replaced by repeating the latest command received from SCE, for forwarding on MC side.
+
+A redundant command from the MC side shall be replaced by the same value, [SM-comp] or [6B-H0-comp], for forwarding to SCE. For security, this process should be repeated from time to time during the communication, when convenient.
+
+#### 7.3.6.3 Insertion of [capex]
+
+When it is necessary to stimulate a capability exchange between two terminals, a redundant command from the MC side shall be replaced by [capex] for forwarding to the SCE; on receipt, a terminal which is able to recognise [capex] shall:
+
+- if it is transmitting a capset, complete that capset, followed by cap-mark and a valid command (see [2]);
+- start a new capability exchange according to [2].
+
+#### 7.3.6.4 Insertion of [AggIN]\*
+
+When it is necessary rapidly to notify the SCE of an unexpected drop in available capacity, four successive commands from the MC side shall be replaced by [AggIN]\* for forwarding to SCE. A terminal which is able to recognise [AggIN]\* shall make a mode switch to a lower transfer rate, consistent with the available multiple channels. (See Note 1 of 8.1.3.)
+
+## 7.4 Transmission of user information by a CAU
+
+Transmissions in both directions are governed by commands generated by the two terminals, except that on the MC side of a CAU the outgoing transfer rate is modified from the incoming value on the SC side according to 7.3.6, and on the SC side of a CAU the outgoing transfer rate is modified from the incoming value on the MC side, also according to 7.3.6.
+
+While a CAU has no connection made on one side, it transmits its locally-generated frame structure on the other side, in Mode 0F with audio S and any relevant command (such as [Recommendation G.711-A-law]) in the BAS position.
+
+As soon as both sides are connected, the signal from each side is routed directly through to the other with two modifications:
+
+- BAS values are modified according to 7.3.4 and 7.3.6;
+- (optional) a fractional-frame buffer may be inserted to avoid the discontinuity arising when the locally-generated frame structure is replaced by that coming in on the other side.
+
+NOTE – Because of the dependent H.221 framing on the two sides of the CAU, there may be a need to interrupt the framing while doing the synchronisation of an additional channel.
+
+# 8 Initialisation, Mode/Rate changing and Fault recovery
+
+## 8.1 Initialisation
+
+The in-band procedures are the same for any CAU, whether it originates the request for the initial channel (calling end-point) or is the destination (called end-point). An additional example description of initialisation, with SDL figure, is given in Appendix II.
+
+**Summary** (see also examples in Appendix I):
+
+| Step | |
+|------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 1. | SCE connected to CAU: CAU detects framing and {SM-comp} or {6B-H0-comp}, determines desired rate from transfer-rate capabilities from SCE |
+| 2. | CAU makes/receives initial connection (which can be to/from another CAU or an MCE) |
+| 3. | Seeks and finds H.221 framing on connected initial channel |
+| 4. | Capability exchange takes place between the SCE and the remote equipment, the transfer rate values being modified by the CAU in both directions; audio from SCE is sent; audio incoming from MC side is passed on |
+| 5. | Requests additional network addresses if necessary; then requests additional connections (see Note 1 in 8.1.3) |
+| 6. | Synchronises additional channels when connected |
+| 7. | The command [SM-comp] is sent to the SCE, to ensure voiding of “compatibility bits” later |
+| 8. | The command [capex] is sent to the SCE, to stimulate another capability exchange |
+| 9. | New cap-exchange, CAU now modifies to reflect the available multi-channel capacity |
+| 10. | SCE performs a mode switch to the desired higher rate |
+
+### 8.1.1 Single-channel Side
+
+#### Incoming signal
+
+The CAU searches the incoming signal from the SCE for frame and multiframe alignment. If H.221 framing is absent, it is presumed that a non-audiovisual equipment is connected, and transmission of Mode 0F is discontinued (see clause 6). In the case of Outcome I (see [2]), the incoming capset is examined. The CAU derives the target number of B-channels $N_m$ from $n_m$ . If the capset does not also contain {SM-comp} or {6B-H0-comp}, then the call cannot proceed as a TAC case, but should be treated as NoTAC (see clause 6).
+
+#### Outgoing signal
+
+Until a suitable signal is available incoming on the MC side, the CAU may optionally transmit towards SCE an audible signal S in Mode 0F (local audio coding law) and any relevant command (such as [Recommendation G.711-A-law]) in the BAS position. When H.221-framed signals are received on the MC side, the whole signal from the MC side is forwarded towards SCE, the capsets being modified according to 7.3.4.2. At this stage the transfer rate is just 64 kbit/s.
+
+### 8.1.2 Multi-channel Side, initial channel
+
+The following process begins when the CAU is notified, by external signalling, that the first connection on the MC side is completed.
+
+#### Incoming signal
+
+The incoming signal is searched for H.221 framing; if H.221 framing is not found, the process continues as in clause 6.
+
+#### Outgoing signal
+
+Transmission shall be in H.221-framed Mode 0F with the signal from SCE, as follows.
+
+Receiving an H.221-framed signal from the SC side, the CAU forwards this same signal outwards from the MC side. If the signal contains (repeated) capsets, it modifies these according to 7.3.4.1; if it does not, then it sends [capex] towards the SCE to stimulate a capability exchange initiated by the SCE.
+
+Transmission continues to follow the initialisation procedure according to [2]. When Outcome I is reached, mode switching may take place, if desired, before the establishment of additional channels; however, such action is the responsibility of the terminals alone – the CAU merely modifies the commands according to 7.3.6.
+
+### 8.1.3 Multi-channel Side, additional channels
+
+A CAU (Note 1) may dial more channels after having detected framing on the initial channel and a capset incoming on the MC side. The total number $N_d$ of connections to be dialled is selected as follows.
+
+The capset incoming on the MC side contains a single value of type $\{N \times 64k\}$ , where $N = N'_m$ ; there may also be values of type $\{n \times 64k\}$ (indicating the presence of another CAU – such values are not transmitted by an MCE), the maximum value being $n = n'_{max}$ .
+
+The capset incoming on the SC side contains values of type $\{n \times 64k\}$ , the maximum value being $n = n_{max}$ ; the value of $N_m$ is also calculated (see 7.3.2).
+
+$N_d$ is the greater of $\{(the\ lesser\ of\ N_m, N'_m), (the\ lesser\ of\ n_{max}, n'_{max})\}$ .
+
+NOTE 1 – It is assumed in this Recommendation that additional connections may only be requested by the same unit that has obtained the initial connection; likewise the dropping of unwanted connections; however, since the in-band behaviour is not affected, there is no problem if some or all calls are made/dropped from the other endpoint.
+
+NOTE 2 – According to the properties of the network accessed, it may be necessary to insert a delay of up to 1 second between successive additional connection requests.
+
+Methods of obtaining network address information for additional channels are described in [2].
+
+NOTE 3 – The use of SBE rather than MBE messages is preferred here, since the substitution of an MBE message into the BAS command stream from a terminal is much more difficult than substitution of an SBE. In general, the use of same or consecutive network addresses is strongly recommended.
+
+When the CAU is notified, by external signalling, that an additional connection is completed, it carries out framing and synchronisation according to [1], and assigns the channel a number (see Appendix I). Transmission of user information may be expanded onto the additional channels either:
+
+- a) one by one as they become synchronised and numbered;
+- b) the target number of channels is reached (as determined from the incoming capset or external control); or
+- c) an allowed time limit for reaching this target has expired.
+
+NOTE 4 – The choice of time limit is an implementation matter.
+
+At this point the CAU shall notify the SCE of the increased available capacity on the MC side; this it does by the procedure of 7.3.5. Subsequent mode switching is a matter for the terminals alone – the CAU merely modifies the commands according to 7.3.6.
+
+## 8.2 Change of transmission rate during a session
+
+Either terminal may switch its transmission to another mode within the ranges declared by the capability set received from the CAU, which is itself dependent on $N_a$ . If having made such a mode change, one or more channels are no longer required, the calling CAU may release them.
+
+An increase of $N_a$ may be necessary to accommodate the desired transmission; if the called CAU is not permitted to request additional channels, and so shall await that action by the calling CAU (see Note 1 of 8.1.3), this need shall first be communicated to the calling CAU in the same way as for the initial session set-up (see 7.3.2), and the calling CAU then requests the additional channels. The change of available capacity is notified to both terminals by the procedure of 7.3.5, and they then make the desired mode change(s).
+
+## 8.3 Recovery from fault conditions
+
+The onset of a fault may be recognised in a number of ways: by loss of frame synchronisation on an incoming channel; by an incoming A-bit set to 1; errored connections, from CRC4 checks; a high number of temporary loss-of-synchronisation events; others. The currently effective value of $N_a$ is determined from the incoming A-bits and channel numbers according to 7.2 (this may be delayed a short time to allow for the possibility of rapid restoration of normal conditions).
+
+The change of available capacity is notified rapidly by each CAU to its local SCE by sending the double SBE symbol [AggIN]\*, enabling them to switch immediately to a lower rate and enable the application to recover.
+
+NOTE – A terminal which has sent {6B-H0-comp} rather than {SM-comp} is unlikely to respond to [AggIN]\*; in this case the CAU shall repeat the last capset it sent to the SCE, except that the modification according to 7.3.4.2 now reflects the lower value of $N_a$ .
+
+## 8.4 Further mode changes
+
+When it is desired to switch on video and/or data transmission, the procedures of [2] are followed. No action is required by the CAU as long as no change of transfer rate is involved. Symmetry of transmission is, as always, a matter for terminal procedures, neither terminal being obliged by in-band management signals to conform to a transmission mode adopted by the other. The transfer rate is essentially under the control of the calling party.
+
+# 9 ISO aggregation procedure
+
+The ISO Aggregation Procedure is described in [4]. The frame structure is detailed in 5.2 of this Recommendation, and the initialisation in 7.1.
+
+# Appendix I
+
+## Examples of procedures
+
+(This appendix does not form an integral part of this Recommendation)
+
+#### **Case 1: Interconnection of two H.320 SCE-type terminals via two CAUs using Mode H2; the last additional connection is tardy in maturing; during the call, a reduction of capacity is requested.**
+
+NOTE – The values 13, 9, 7, 3 in the following are purely for example.
+
+SCE1 is the calling end, and the desired number of channels is specified as that giving the same capacity as the highest transfer rate in the SCE1 capset; the time limit for awaiting that number in the initial set-up phase is set at TIM. It is also specified that the SC side is to be active for user information as much as possible, including the period when only one channel is active.
+
+1. CAU1 makes the initial channel request when the connection from SCE1 to CAU1 is complete and H.221 framing from SCE1 is detected, or upon an external stimulus which also resets the “Sequence A” timer in the SCE. It transmits tone S in Mode 0U towards SCE1.
+
+NOTE – If CAU1 does not detect H.221 framing from SCE2 within {1 s?}, then it sends [4] framing to CAU2, and tone S is omitted.
+
+2. CAU2 receives SETUP from CAU1, and establishes contact with SCE2 (this may be a permanently active link, or require “waking up”); it then returns CONNECT to CAU1, and commences transmission of the framed signal from SCE2. It transmits tone S in Mode 0U towards SCE2.
+
+NOTE – If CAU2 does not detect H.221 framing from SCE2 within {1 s?}, then it sends [4] framing to CAU1.
+
+3. On receipt of CONNECT, CAU1 sends towards MC side the incoming signal from SC side, including capsets (repeated continuously) from SCE with modification according to 7.3.4.1 – in this case the {13\*64k} is modified to {13B}.
+4. CAU1 detects H.221 framing from CAU2; the incoming capset is that from SCE2, repeated; this contains {9B}, which is lower than the {13B}; passes the incoming signal from the MC side on towards the SCE1, modifying the {9B} to {1B}, since only one channel is yet available. Likewise CAU2 detects H.221 framing from CAU1; the incoming capset is that from SCE1, repeated; it passes the incoming signal from the MC side on towards the SCE1, modifying the {13B} to {1B}.
+5. Comparing the incoming {13\*64k} and {9B}, CAU1 calculates $N_d$ as “9”, and requests 8 additional connections, obtaining the remote addresses if necessary using the NCA-a procedure of [2].
+6. By expiry of TIM, CONNECT has been received from CAU2 in respect of 7 more channels; CAU1 adds buffering and numbering to these to achieve synchronism and returns A = 0 according to Recommendation H.221. CAU2 does likewise. CAU1 and CAU2 both look for a redundant command, and replace this with [SM-comp].
+7. When CAU1 receives A = 0 on initial and the seven available additional channels, it must stimulate another capability exchange, in order to be able to indicate the increase channel availability; therefore it sends [capex] to SCE1, which returns one capset + cap-mark.
+
+NOTE – An H.320 terminal which transmits {6B-H0-comp} rather than {SM-comp} may not recognise [capex]; in this case the CAU may send the previously transmitted capset from CAU2, which it would have stored for the purpose; however, such situations would be better avoided.
+
+8. CAU1 passes this on to CAU2 with usual modification (7.3.4.1), namely {13\*64k} >> {13B}.
+9. CAU2 passes the capset on to SCE2, modifying the capset again according to 7.3.4.2, namely replacing one of the transfer-rate values with {512k}, the n\*64k value corresponding to the multiple-channel capacity actually now available.
+10. SCE2 itself responds with its normal capset + cap-mark; CAU2 passes this back with modification as in 7.3.4.1.
+11. CAU1 passes the capset on to SCE1, modifying the capset again according to 7.3.4.2, namely replacing one of the transfer-rate values with {512k}, the n\*64k value corresponding to the multiple-channel capacity actually now available.
+12. Both SCEs are now in a position to mode switch to any framed rate up to [512k]. The CAUs must watch out for [SM-comp] coming from SCEs and replace it with a redundant command, and also for [n\*64k] commands, replacing them with [N × 64k].
+13. CONNECT is belatedly received by CAU1 from CAU2 in respect of last requested channel; it adds buffering and numbering to this to achieve synchronism and returns A = 0 according to Recommendation H.221.
+14. Receives A = 0 on this last channel; same process as in 7-12 above, with 512k replaced by 576k.
+15. At user request, SCE1 is instructed to drop three channels – namely down to 384k; SCE1 sends new capset containing { 128k, 192k, 256k, 320k, 384k} + cap-mark; the process continues from step 8. above.
+
+**Case 2: Interconnection of two H.320 terminals, one an MCE type, the other SCE working via a CAU;** the number of desired connections, etc., is as for Case 1. **The SCE is the calling end.**
+
+1. CAU makes the initial channel request when the connection from SCE to CAU is complete and H.221 framing from SCE is detected, or upon an external stimulus which also resets the “Sequence A” timer in the SCE. It transmits tone S in Mode 0U towards SCE.
+
+NOTE – If CAU does not detect H.221 framing from SCE2 within {1 s?}, then it sends [4] framing to MCE, and tone S is omitted; on later receipt of H.221 framing from MCE and this does not itself change to [4] framing within 2 s, a terminal-incompatibility fault condition is identified.
+
+2. MCE receives SETUP from CAU; it then returns CONNECT to CAU, and commences transmission of the framed signal.
+3. On receipt of CONNECT, CAU sends towards MC side the incoming signal from SC side, including capsets (repeated continuously) from SCE with modification according to 7.3.4.1 – in this case the {13\*64k} is modified to {13B}.
+4. CAU detects H.221 framing and capset is that from MCE, repeated; this contains {9B}, which is lower than the {13B}; passes the incoming signal from the MC side on towards the SCE, modifying the {9B} to {64k}, since only one channel is yet available. Likewise MCE detects H.221 framing from CAU; the incoming capset is that from SCE, repeated.
+5. Comparing the incoming {13\*64k} and {9B}, CAU calculates $N_d$ as “9”, and requests 8 additional connections, obtaining the remote addresses if necessary using the NCA-a procedure of [2].
+
+6. By expiry of TIM, CONNECT has been received from CAU2 in respect of 7 more channels; CAU adds buffering and numbering to these to achieve synchronism and returns A = 0 according to Recommendation H.221. CAU2 does likewise. CAU looks for a redundant command, and replaces this with [SM-comp].
+7. When CAU receives A = 0 on initial and the seven available additional channels, it must stimulate another capability exchange, in order to be able to indicate the increase channel availability; therefore it sends [capex] to SCE, which returns one capset + cap-mark.
+
+NOTE – An H.320 terminal which transmits {6B-H0-comp} rather than {SM-comp} may not recognise [capex]; in this case the CAU may send the previously transmitted capset from CAU2, which it would have stored for the purpose; however, such situations would be better avoided.
+
+8. CAU passes this on to MCE with usual modification (7.3.4.1), namely {13\*64k} >> {13B}.
+9. (Deleted).
+10. MCE itself responds with its normal capset + cap-mark.
+11. CAU passes the capset on to SCE, modifying the capset again according to 7.3.4.2, namely replacing one of the transfer-rate values with {512k}, the n\*64k value corresponding to the multiple-channel capacity actually now available.
+12. Both SCE and MCE are now in a position to mode switch to any framed rate up to [512k]. The CAUs must watch out for [SM-comp] coming from SCEs and replace it with a redundant command, and also for [n\*64k] commands, replacing them with [N × 64k].
+13. CONNECT is belatedly received by CAU from MCE in respect of last requested channel; it adds buffering and numbering to this to achieve synchronism and returns A = 0 according to Recommendation H.221.
+14. Receives A = 0 on this last channel; same process as in 7-12 above, with 512k replaced by 576k.
+15. At user request, SCE is instructed to drop three channels – namely down to 384k; SCE sends new capset containing {.....128k, 192k, 256k, 320k, 384k} + cap-mark; the process continues from step 8. above.
+
+**Case 3: Interconnection of two H.320 terminals, one an MCE type, the other SCE working via a CAU;** the number of desired connections, etc., is as for Case 1. **MCE is the calling end.**
+
+1. CAU sends the initial channel CONNECT when the connection from SCE to CAU is complete and H.221 framing from SCE is detected, or upon an external stimulus which also resets the “Sequence A” timer in the SCE. It transmits tone S in Mode 0U towards SCE.
+
+NOTE – If CAU does not detect H.221 framing from SCE2 within {1 s?}, then it sends [4] framing to MCE, and tone S is omitted; on later receipt of H.221 framing from MCE and this does not itself change to [4] framing within 2 s, a terminal-incompatibility fault condition is identified.
+
+2. MCE sends SETUP to CAU; when it then receives CONNECT from CAU, and commences transmission of the framed signal.
+3. Having sent CONNECT, CAU sends towards MC side the incoming signal from SC side, including capsets (repeated continuously) from SCE with modification according to 7.3.4.1 – in this case the {13\*64k} is modified to {13B}.
+
+4. CAU detects H.221 framing and capset is that from MCE, repeated; this contains {9B}, which is lower than the {13B}; passes the incoming signal from the MC side on towards the SCE, modifying the {9B} to {64k}, since only one channel is yet available. Likewise MCE detects H.221 framing from CAU; the incoming capset is that from SCE, repeated.
+5. Comparing the incoming {13B} and its own {9B}, MCE calculates $N_d$ as “9”, and requests 8 additional connections, obtaining the remote addresses if necessary using the NCA-a procedure of [2].
+6. By expiry of TIM, CONNECT has been sent to MCE in respect of 7 more channels; CAU adds buffering and numbering to these to achieve synchronism and returns $A = 0$ according to Recommendation H.221. CAU2 does likewise. CAU looks for a redundant command, and replaces this with [SM-comp].
+7. When CAU receives $A = 0$ on initial and the seven available additional channels, it must stimulate another capability exchange, in order to be able to indicate the increase channel availability; therefore it sends [capex] to SCE, which returns one capset + cap-mark.
+
+NOTE – An H.320 terminal which transmits {6B-H0-comp} rather than {SM-comp} may not recognise [capex]; in this case the CAU may send the previously transmitted capset from CAU2, which it would have stored for the purpose; however, such situations would be better avoided.
+
+8. CAU passes this on to MCE with usual modification (7.3.4.1), namely {13\*64k} >> {13B}.
+9. (No action in Case 2).
+10. MCE itself responds with its normal capset + cap-mark.
+11. CAU passes the capset on to SCE, modifying the capset again according to 7.3.4.2, namely replacing one of the transfer-rate values with {512k}, the $n*64k$ value corresponding to the multiple-channel capacity actually now available.
+12. Both SCE and MCE are now in a position to mode switch to any framed rate up to [512k]. The CAUs must watch out for [SM-comp] coming from SCEs and replace it with a redundant command, and also for [ $n*64k$ ] commands, replacing them with [ $N \times 64k$ ].
+13. CONNECT is belatedly received by CAU from MCE in respect of last requested channel; it adds buffering and numbering to this to achieve synchronism and returns $A = 0$ according to Recommendation H.221.
+14. Receives $A = 0$ on this last channel; same process as in 7-12 above, with 512k replaced by 576k.
+15. At user request, SCE is instructed to drop three channels – namely down to 384k; SCE sends new capset containing {.....128k, 192k, 256k, 320k, 384k} + cap-mark; the process continues from step 8 above.
+
+# Appendix II
+
+## Example of SDL diagram for TAC initialisation
+
+(This appendix does not form an integral part of this Recommendation)
+
+
+
+```
+graph TD; Start((1)) --> F1[Forward framed PCM from MC side to SC side Capset_mod_2]; F1 --> F2[Calculate N_d from both capsets Calc_N_d]; F2 --> D1{Flag 1 = 0?}; D1 -- Yes --> O1{{Request (N_d-1) more connections}}; D1 -- No --> F3[Set timer TT ~10 secs]; O1 --> F3; F3 --> O2{{single-channel operation}}; O2 --> O3{{additional channels}}; O3 --> D2{reached minimum number?}; D2 -- Yes --> D3{TT expired?}; D2 -- No --> F4[Set N_a = available number of channels]; D3 -- No --> F4; D3 -- Yes --> F4; F4 --> D4{capsets i/c from SCE?}; D4 -- Yes --> F5[remove one capset]; D4 -- No --> F6[Send [capex] to SCE]; F5 --> F7[Use new value of N_a in Capset_mod_2]; F6 --> F7; F7 --> F8[Apply rules of command modification, 7.3.6]; F8 --> O4{{Multiple-channel operation}};
+```
+
+The flowchart illustrates the TAC initialisation process. It begins with a start symbol '1', followed by 'Forward framed PCM from MC side to SC side Capset\_mod\_2'. Then, 'Calculate Nd from both capsets Calc\_Nd'. A decision 'Flag 1 = 0?' follows. If 'Yes', it goes to 'Request (Nd-1) more connections' (a data store symbol). If 'No', it goes to 'Set timer TT ~10 secs'. Both paths lead to 'single-channel operation' (a state symbol). This is followed by 'additional channels' (a state symbol). A decision 'reached minimum number?' follows. If 'Yes', it goes to 'TT expired?' (a decision symbol). If 'No', it goes to 'Set Na = available number of channels'. If 'TT expired?' is 'Yes', it also goes to 'Set Na = available number of channels'. If 'No', it goes to 'Set Na = available number of channels'. From 'Set Na = available number of channels', a decision 'capsets i/c from SCE?' follows. If 'Yes', it goes to 'remove one capset' (a process symbol). If 'No', it goes to 'Send [capex] to SCE' (a process symbol). Both paths lead to 'Use new value of Na in Capset\_mod\_2' (a process symbol). This is followed by 'Apply rules of command modification, 7.3.6' (a process symbol). Finally, it reaches 'Multiple-channel operation' (a state symbol).
+
+SDL diagram for TAC initialisation flowchart
+
+T15 15040-94/d11
+
+## TAC operation selected
+
+The incoming signal on the MC side is forwarded, with modification of its Capset according to the procedure Capset\_mod\_2 (see main text: $N_a$ is set at 1). At this point, only one 64 kbit/s connection is available, so all higher incoming transfer-rate capabilities must be replaced by {null}.
+
+If the CAU is sending a highest transfer-rate capability of $\{N_m \times B\}$ , resulting from Capset\_mod\_1, and is receiving $\{N'_m \times B\}$ from the remote end, then calc\_Nd gives the lower of $N_m$ and $N'_m$ .
+
+In Recommendation H.320 all the connections must be requested from the same end. If the network addresses are unknown, they may be obtained as described in the text (not shown here).
+
+When the additional connections have been made, they are synchronised (H.221 procedure) and when incoming A = 0 on each it is made available to the process defined here.
+
+However, it may not be desirable to increase the bit rate used for the H.320 application in many steps of 64 kbit/s, but rather wait in single-channel operation until a chosen minimum number of channels is available – for example, if 5 additional channels have been requested, it would be sensible to wait until at least 4 of these are available, but in any case not wait more than, say, 10 seconds. Such waiting is not mandatory – the “minimum” could be just 1.
+
+From this point, $N_a$ , hitherto set at 1, is increased to reflect the true number of available channels connected and synchronised. The rules for Capset\_mod\_2 still apply (see main text): essentially, the transfer rates passed to the SCE must be a continuous series 128, 192, 256... $n \times 64$ , where $n = N_a$ is equal to the number of 64k connections available. Since the capset must not be changed in length, the {null} value is used to fill gaps left by incoming values not passed on.
+
+Of course Capset\_mod\_2 needs capsets to operate on. If there is already a stream of (identical) capsets coming in on the MC side, then a complete set must be removed, replacing the BAS codes with valid commands (this is because, according to [2] concatenated capsets must be identical); then the next capset is modified using the changed value of $N_a$ . If there are currently no capsets, they must be stimulated by sending [capex] to the SCE (replacing a redundant command). The SCE will then send a capset, and the remote end must respond even if it is an MCE.
+
+The actual increase in operating bit rate is carried out by the two terminals – the CAU need do nothing about this, though it must apply the modification rules to the commands – see 7.3.6 in the main text.
+
+# Appendix III
+
+## Comments on the modification of capsets and commands
+
+(This appendix does not form an integral part of this Recommendation)
+
+Whereas the capset sent by a CAU on the MC side normally contains a single value from the series {1B, 2B, 3B....}, in the case where only one transfer rate capability $\{n \times 64\}$ has been received from the SCE then this value alone is forwarded; this exception provides for the case that two similar SCEs be connected via two CAUs.
+
+It should be noted that an SCE declaring only {384} will not interwork with a {6B} MCE via a CAU according to this Recommendation; if the CAU were to forward {6B} towards the MCE, this would falsely imply that the SCE had declared {384, 320, 256, 192, 128, 64}. An SCE which is intended for interworking with an MCE should possess all the transfer-rate caps in the $\{n \times 64\}$ series up to the maximum intended operating rate, as well as {SM-comp} and the ability to recognise and act upon [capex] and [AggIN]\*.
+
+NOTE – If a CAU is provided in a situation where its only use is to interconnect a {384 only} SCE with {6B}-type MCEs, then it could be programmed to modify {384} to {6B}, and to deal appropriately with the situation when 5 or fewer channels are available. It is clear that connection to another CAU may cause misoperation if the CAU is programmed in this way.
+
+There may be cases where the modification involves substitution by a two-byte capability or command. For example, the CAU modifies {512, H0, 320, 256, 192, 128, 1B} from the SCE to include {7 × 64}; this can be done by replacing the {512} value rather than {1B}.
+
+The CAU must (= “shall”) conform to Recommendation H.242 at all times: in particular, it must not cause a change (in content or even in order) in forwarded capsets without the insertion of a command – this may require the omission of a complete capset.
\ No newline at end of file
diff --git a/marked/H/T-REC-H.248.1-201303-I_PDF-E/raw.md b/marked/H/T-REC-H.248.1-201303-I_PDF-E/raw.md
new file mode 100644
index 0000000000000000000000000000000000000000..0c406296b0ca18353339c5689c01cc54fac3cc0e
--- /dev/null
+++ b/marked/H/T-REC-H.248.1-201303-I_PDF-E/raw.md
@@ -0,0 +1,9482 @@
+
+
+International Telecommunication Union
+
+**ITU-T**
+
+TELECOMMUNICATION
+STANDARDIZATION SECTOR
+OF ITU
+
+**H.248.1**
+
+(03/2013)
+
+SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS
+Infrastructure of audiovisual services – Communication
+procedures
+
+# --- **Gateway control protocol: Version 3**
+
+Recommendation ITU-T H.248.1
+
+
+
+The logo of the International Telecommunication Union (ITU) features a globe with a red lightning bolt striking across it. To the right of the globe, the text "International Telecommunication Union" is written in blue, with "ITU" in a larger, bold font above it.
+
+ITU logo
+
+## ITU-T H-SERIES RECOMMENDATIONS **AUDIOVISUAL AND MULTIMEDIA SYSTEMS**
+
+| | |
+|-------------------------------------------------------------------------------|--------------------|
+| CHARACTERISTICS OF VISUAL TELEPHONE SYSTEMS | H.100–H.199 |
+| INFRASTRUCTURE OF AUDIOVISUAL SERVICES | |
+| General | H.200–H.219 |
+| Transmission multiplexing and synchronization | H.220–H.229 |
+| Systems aspects | H.230–H.239 |
+| Communication procedures | H.240–H.259 |
+| Coding of moving video | H.260–H.279 |
+| Related systems aspects | H.280–H.299 |
+| Systems and terminal equipment for audiovisual services | H.300–H.349 |
+| Directory services architecture for audiovisual and multimedia services | H.350–H.359 |
+| Quality of service architecture for audiovisual and multimedia services | H.360–H.369 |
+| Supplementary services for multimedia | H.450–H.499 |
+| MOBILITY AND COLLABORATION PROCEDURES | |
+| Overview of Mobility and Collaboration, definitions, protocols and procedures | H.500–H.509 |
+| Mobility for H-Series multimedia systems and services | H.510–H.519 |
+| Mobile multimedia collaboration applications and services | H.520–H.529 |
+| Security for mobile multimedia systems and services | H.530–H.539 |
+| Security for mobile multimedia collaboration applications and services | H.540–H.549 |
+| Mobility interworking procedures | H.550–H.559 |
+| Mobile multimedia collaboration inter-working procedures | H.560–H.569 |
+| BROADBAND, TRIPLE-PLAY AND ADVANCED MULTIMEDIA SERVICES | |
+| Broadband multimedia services over VDSL | H.610–H.619 |
+| Advanced multimedia services and applications | H.620–H.629 |
+| Ubiquitous sensor network applications and Internet of Things | H.640–H.649 |
+| IPTV MULTIMEDIA SERVICES AND APPLICATIONS FOR IPTV | |
+| General aspects | H.700–H.719 |
+| IPTV terminal devices | H.720–H.729 |
+| IPTV middleware | H.730–H.739 |
+| IPTV application event handling | H.740–H.749 |
+| IPTV metadata | H.750–H.759 |
+| IPTV multimedia application frameworks | H.760–H.769 |
+| IPTV service discovery up to consumption | H.770–H.779 |
+| Digital Signage | H.780–H.789 |
+
+*For further details, please refer to the list of ITU-T Recommendations.*
+
+## Recommendation ITU-T H.248.1
+
+# Gateway control protocol: Version 3
+
+# Summary
+
+To achieve greater scalability, this Recommendation decomposes the ITU-T H.323 Gateway function defined in Recommendation ITU-T H.246 into functional subcomponents and specifies the protocols these components use to communicate. This allows implementations of ITU-T H.323 gateways to be highly scalable and encourages leverage of widely deployed Switched Circuit Network (SCN) capabilities such as SS7 switches. This also enables ITU-T H.323 gateways to be composed of components from multiple vendors distributed across multiple physical platforms. The purpose of this Recommendation is to add capabilities currently defined for ITU-T H.323 systems and is intended to provide new ways of performing operations already supported in ITU-T H.323.
+
+This revision contains a number of clarifications on:
+
+- Signal behaviour on new Streams;
+- time based Statistics and their applicability to multi flow streams;
+- the impact of the Mode property on Statistics;
+- Event behaviour with respect to new Streams;
+- ServiceChange version handling.
+
+# History
+
+| Edition | Recommendation | Approval | Study Group |
+|---------|--------------------------------|------------|-------------|
+| 1.0 | ITU-T H.248 | 2000-06-15 | 16 |
+| 1.1 | ITU-T H.248.1 v1.1 | 2002-03-29 | 16 |
+| 2.0 | ITU-T H.248.1 v2 | 2002-05-22 | 16 |
+| 2.1 | ITU-T H.248.1 v2 (2002) Cor. 1 | 2004-03-15 | 16 |
+| 3.0 | ITU-T H.248.1 v3 | 2005-09-13 | 16 |
+| 3.1 | ITU-T H.248.1 v3 (2005) Amd. 1 | 2008-05-02 | 16 |
+| 3.2 | ITU-T H.248.1 v3 (2005) Amd. 2 | 2009-12-14 | 16 |
+| 4.0 | ITU-T H.248.1 v3 | 2013-03-16 | 16 |
+
+# FOREWORD
+
+The International Telecommunication Union (ITU) is the United Nations specialized agency in the field of telecommunications, information and communication technologies (ICTs). The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of ITU. ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendations on them with a view to standardizing telecommunications on a worldwide basis.
+
+The World Telecommunication Standardization Assembly (WTSA), which meets every four years, establishes the topics for study by the ITU-T study groups which, in turn, produce Recommendations on these topics.
+
+The approval of ITU-T Recommendations is covered by the procedure laid down in WTSA Resolution 1.
+
+In some areas of information technology which fall within ITU-T's purview, the necessary standards are prepared on a collaborative basis with ISO and IEC.
+
+## NOTE
+
+In this Recommendation, the expression "Administration" is used for conciseness to indicate both a telecommunication administration and a recognized operating agency.
+
+Compliance with this Recommendation is voluntary. However, the Recommendation may contain certain mandatory provisions (to ensure, e.g., interoperability or applicability) and compliance with the Recommendation is achieved when all of these mandatory provisions are met. The words "shall" or some other obligatory language such as "must" and the negative equivalents are used to express requirements. The use of such words does not suggest that compliance with the Recommendation is required of any party.
+
+# INTELLECTUAL PROPERTY RIGHTS
+
+ITU draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted by ITU members or others outside of the Recommendation development process.
+
+As of the date of approval of this Recommendation, ITU had received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementers are cautioned that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database at .
+
+© ITU 2013
+
+All rights reserved. No part of this publication may be reproduced, by any means whatsoever, without the prior written permission of ITU.
+
+# Table of Contents
+
+###### Page
+
+| | | |
+|------|----------------------------------------------------|----|
+| 1 | Scope ..... | 1 |
+| 2 | References..... | 1 |
+| 3 | Definitions ..... | 4 |
+| 3.1 | Terms defined elsewhere ..... | 4 |
+| 3.2 | Terms defined in this Recommendation..... | 4 |
+| 4 | Abbreviations and acronyms ..... | 5 |
+| 5 | Conventions ..... | 7 |
+| 5.1 | Key words to indicate requirement levels ..... | 7 |
+| 5.2 | Connection endpoint naming conventions ..... | 7 |
+| 6 | Connection model..... | 9 |
+| 6.1 | Contexts ..... | 10 |
+| 6.2 | Terminations..... | 11 |
+| 6.3 | Wildcarding principles ..... | 17 |
+| 7 | Commands ..... | 19 |
+| 7.1 | Descriptors..... | 20 |
+| 7.2 | Command application programming interface..... | 45 |
+| 8 | Transactions..... | 60 |
+| 8.1 | Common parameters..... | 62 |
+| 8.2 | Transaction application programming interface..... | 62 |
+| 8.3 | Messages..... | 64 |
+| 9 | Transport..... | 65 |
+| 9.1 | Ordering of commands ..... | 65 |
+| 9.2 | Protection against restart avalanche ..... | 66 |
+| 9.3 | Protection against Notify avalanche ..... | 67 |
+| 10 | Security considerations ..... | 67 |
+| 10.1 | Protection of protocol connections..... | 67 |
+| 10.2 | Interim AH scheme..... | 67 |
+| 10.3 | Protection of media connections ..... | 68 |
+| 11 | MG-MGC control interface ..... | 68 |
+| 11.1 | Multiple Virtual MGs ..... | 69 |
+| 11.2 | Cold start ..... | 69 |
+| 11.3 | Negotiation of protocol version..... | 70 |
+| 11.4 | Failure of an MG ..... | 70 |
+| 11.5 | Failure of an MGC..... | 70 |
+| 11.6 | MGC-MG control association monitoring ..... | 71 |
+| 11.7 | Compatibility ..... | 71 |
+| 12 | Package definition ..... | 72 |
+
+| | Page |
+|-----------------------------------------------------------------------|------|
+| 12.1 Guidelines for defining packages ..... | 73 |
+| 12.2 Guidelines to defining parameters to events and signals..... | 78 |
+| 12.3 Identifiers..... | 78 |
+| 12.4 Package registration..... | 79 |
+| 13 Profile definition..... | 79 |
+| 14 IANA ITU-T H.248 registrations ..... | 79 |
+| 14.1 Package registration procedure..... | 79 |
+| 14.2 Error code registration procedure..... | 81 |
+| 14.3 ServiceChange reason registration procedures..... | 81 |
+| 14.4 Profile registration procedures ..... | 82 |
+| Annex A – Binary encoding of the protocol ..... | 83 |
+| A.1 Coding of wildcards ..... | 83 |
+| A.2 ASN.1 syntax specification ..... | 84 |
+| A.3 DigitMaps and path names ..... | 101 |
+| Annex B – Text encoding of the protocol..... | 103 |
+| B.1 Coding of wildcards ..... | 103 |
+| B.2 ABNF specification..... | 103 |
+| B.3 Hexadecimal octet coding ..... | 118 |
+| B.4 Hexadecimal octet sequence..... | 118 |
+| Annex C – Tags for media stream properties ..... | 119 |
+| C.1 General media attributes..... | 119 |
+| C.2 Mux properties..... | 120 |
+| C.3 General bearer properties ..... | 120 |
+| C.4 General ATM properties..... | 121 |
+| C.5 Frame relay..... | 123 |
+| C.6 IP..... | 123 |
+| C.7 ATM AAL 2 ..... | 124 |
+| C.8 ATM AAL 1 ..... | 125 |
+| C.9 Bearer capabilities ..... | 126 |
+| C.10 AAL 5 properties..... | 134 |
+| C.11 SDP equivalents..... | 134 |
+| C.12 H.245 ..... | 135 |
+| Annex D – Transport over IP..... | 136 |
+| D.1 Transport over IP/UDP using Application Level Framing (ALF) ..... | 136 |
+| D.2 Using TCP ..... | 139 |
+| Annex E – Basic packages ..... | 141 |
+| E.1 Generic ..... | 141 |
+| E.2 Base Root Package ..... | 143 |
+| E.3 Tone Generator Package..... | 147 |
+
+| | Page |
+|-----------------------------------------------------------------|-------------|
+| E.4 Tone Detection Package ..... | 148 |
+| E.5 Basic DTMF Generator Package..... | 152 |
+| E.6 DTMF Detection Package ..... | 153 |
+| E.7 Call Progress Tones Generator Package..... | 156 |
+| E.8 Call progress tones detection package..... | 157 |
+| E.9 Analog Line Supervision Package..... | 158 |
+| E.10 Basic Continuity Package..... | 161 |
+| E.11 Network Package..... | 163 |
+| E.12 RTP Package ..... | 167 |
+| E.13 TDM Circuit Package..... | 171 |
+| E.14 Segmentation Package..... | 172 |
+| E.15 Notification Behaviour ..... | 175 |
+| Annex F – ServiceChange Procedures..... | 180 |
+| F.1 Introduction ..... | 180 |
+| F.2 Control Association Definition..... | 182 |
+| F.3 Events leading to ServiceChange Procedures ..... | 182 |
+| F.4 ServiceChange Element Description ..... | 186 |
+| F.5 Use of ServiceChange parameters..... | 188 |
+| F.6 ServiceChange versus TerminationState ..... | 191 |
+| Appendix I – Example call flows..... | 193 |
+| I.1 Residential gateway to residential gateway call..... | 193 |
+| Appendix II – ITU-T H.248 Package template..... | 202 |
+| Appendix III – ITU-T H.248 profile definition template..... | 206 |
+| Appendix IV – Practices on Statistics – Example use-cases ..... | 220 |
+| IV.1 Introduction ..... | 220 |
+| IV.2 Active statistics of a new termination ..... | 221 |
+| IV.3 Activating and deactivating statistics ..... | 223 |
+| IV.4 Resetting statistics ..... | 225 |
+| IV.5 Reporting statistics ..... | 226 |
+| IV.6 Reading statistics ..... | 227 |
+| Bibliography..... | 231 |
+
+
+
+## Recommendation ITU-T H.248.1
+
+# Gateway control protocol: Version 3
+
+# 1 Scope
+
+This Recommendation defines the protocols used between elements of a physically decomposed multimedia gateway. There are no functional differences from a system view between a decomposed gateway, with distributed sub-components potentially on more than one physical device, and a monolithic gateway such as described in [ITU-T H.246]. This Recommendation does not define how gateways, multipoint control units or interactive voice response (IVR) units work. Instead it creates a general framework that is suitable for these applications.
+
+Packet network interfaces may include IP, ATM or possibly others. The interfaces will support a variety of switched circuit network (SCN) signalling systems, including tone signalling, ISDN, ISUP, QSIG and GSM. National variants of these signalling systems will be supported where applicable.
+
+Products claiming compliance with Version 1 of Recommendation ITU-T H.248.1 shall comply with all of the mandatory requirements of Recommendation ITU-T H.248.1 originally approved in 06/2000 and reissued in 03/2002.
+
+Products claiming compliance with Version 2 of Recommendation ITU-T H.248.1 shall comply with all of the mandatory requirements of Recommendation ITU-T H.248.1 originally approved in 05/2002 and updated in 03/2004.
+
+Products claiming compliance with this Recommendation shall comply with all of the mandatory requirements of Recommendation ITU-T H.248.1 approved in 03/2013.
+
+Products shall indicate the version of the protocol in use by using ServiceChangeVersion as '1' to refer to Recommendation ITU-T H.248.1 (03/2002), '2' to refer to Recommendation ITU-T H.248.1 including its Corrigendum 1 (03/2004), and '3' to refer to Recommendation ITU-T H.248.1 (09/2005 and 03/2013).
+
+# 2 References
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation.
+
+- [ITU-T E.106] Recommendation ITU-T E.106 (2003), *International Emergency Preference Scheme (IEPS) for disaster relief operations*.
+- [ITU-T E.107] Recommendation ITU-T E.107 (2007), *Emergency Telecommunications Service (ETS) and interconnection framework for national implementations of ETS*.
+- [ITU-T H.225.0] Recommendation ITU-T H.225.0 (2009), *Call signalling protocols and media stream packetization for packet-based multimedia communication systems*.
+
+- [ITU-T H.235.0] Recommendation ITU-T H.235.0 (2005), *H.323 Security: Framework for security in H-series (H.323 and other H.245-based) multimedia systems.*
+- [ITU-T H.245] Recommendation ITU-T H.245 (2011), *Control protocol for multimedia communication.*
+- [ITU-T H.246] Recommendation ITU-T H.246 (2006), *Interworking of H-series multimedia terminals with H-series multimedia terminals and voice/voiceband terminals on GSTN, ISDN and PLMN ISDN.*
+- [ITU-T H.248.4] Recommendation ITU-T H.248.4 (2009), *Gateway control protocol: Transport over Stream Control Transmission Protocol (SCTP).*
+- [ITU-T H.248.5] Recommendation ITU-T H.248.5 (2009), *Gateway control protocol: Transport over ATM.*
+- [ITU-T H.248.8] Recommendation ITU-T H.248.8 (2013), *Gateway control protocol: Error code and service change reason description.*
+- [ITU-T H.248.14] Recommendation ITU-T H.248.14 (2009), *Gateway control protocol: Inactivity timer package.*
+- [ITU-T H.248.30] Recommendation ITU-T H.248.30 (2007), *Gateway control protocol: RTCP extended performance metrics packages.*
+- [ITU-T H.323] Recommendation ITU-T H.323 (2009), *Packet-based multimedia communications systems.*
+- [ITU-T I.363.1] Recommendation ITU-T I.363.1 (1996), *B-ISDN ATM Adaptation Layer specification: Type 1 AAL.*
+- [ITU-T I.363.2] Recommendation ITU-T I.363.2 (2000), *B-ISDN ATM Adaptation Layer specification: Type 2 AAL.*
+- [ITU-T I.363.5] Recommendation ITU-T I.363.5 (1996), *B-ISDN ATM Adaptation Layer specification: Type 5 AAL.*
+- [ITU-T I.366.1] Recommendation ITU-T I.366.1 (1998), *Segmentation and Reassembly Service Specific Convergence Sublayer for the AAL type 2.*
+- [ITU-T I.366.2] Recommendation ITU-T I.366.2 (2000), *AAL type 2 service specific convergence sublayer for narrow-band services, plus Corrigendum 1 (2002).*
+- [ITU-T I.371] Recommendation ITU-T I.371 (2004), *Traffic control and congestion control in B-ISDN.*
+- [ITU-T Q.763] Recommendation ITU-T Q.763 (1999), *Signalling System No. 7 – ISDN user part formats and codes, plus Amendment 3 (2004).*
+- [ITU-T Q.765.5] Recommendation ITU-T Q.765.5 (2004), *Signalling System No. 7 – Application transport mechanism: Bearer Independent Call Control (BICC).*
+- [ITU-T Q.931] Recommendation ITU-T Q.931 (1998), *ISDN user-network interface layer 3 specification for basic call control, plus Amendment 1 (2002): Extensions for the support of digital multiplexing equipment.*
+- [ITU-T Q.2630.1] Recommendation ITU-T Q.2630.1 (1999), *AAL type 2 signalling protocol – Capability Set 1.*
+
+| | |
+|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| [ITU-T Q.2931] | Recommendation ITU-T Q.2931 (1995), Digital subscriber signalling system No. 2 – User-Network Interface (UNI) layer 3 specification for basic call/connection control , plus Amendment 4 (1999). |
+| [ITU-T Q.2941.1] | Recommendation ITU-T Q.2941.1 (1997), Digital subscriber signalling system No. 2 – Generic identifier transport . |
+| [ITU-T Q.2961.1] | Recommendation ITU-T Q.2961.1 (1995), Digital subscriber signalling system No. 2 – Additional traffic parameters: Additional signalling capabilities to support traffic parameters for the tagging option and the sustainable call rate parameter set . |
+| [ITU-T Q.2961.2] | Recommendation ITU-T Q.2961.2 (1997), Digital subscriber signalling system No. 2 – Additional traffic parameters: Support of ATM transfer capability in the broadband bearer capability information element , plus Corrigendum 1 (1999). |
+| [ITU-T Q.2965.1] | Recommendation ITU-T Q.2965.1 (1999), Digital subscriber signalling system No. 2 – Support of Quality of Service classes , plus Amendment 1 (2000). |
+| [ITU-T Q.2965.2] | Recommendation ITU-T Q.2965.2 (1999), Digital subscriber signalling system No. 2 – Signalling of individual Quality of Service parameters . |
+| [ITU-T V.76] | Recommendation ITU-T V.76 (1996), Generic multiplexer using V.42 LAPM-based procedures , plus Corrigendum 1 (2005). |
+| [ITU-T X.213] | Recommendation ITU-T X.213 (2001) ISO/IEC 8348:2002, Information technology – Open Systems Interconnection – Network service definition . |
+| [ITU-T X.680] | Recommendation ITU-T X.680 (2008) ISO/IEC 8824-1:2008, Information technology – Abstract Syntax Notation One (ASN.1): Specification of basic notation . |
+| [ITU-T X.690] | Recommendation ITU-T X.690 (2008) ISO/IEC 8825-1:2008, Information Technology – ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER) . |
+| [ISO/IEC 10646] | ISO/IEC 10646 (2003), Information technology – Universal Multiple-Octet Coded character Set (UCS) . |
+| [ATM Forum UNI 4.0] | Broadband Forum (1996), ATM User-Network Interface (UNI) Signalling Specification – Version 4.0 . |
+| [IETF RFC 791] | IETF RFC 791 (1981), Internet protocol . |
+| [IETF RFC 1006] | IETF RFC 1006 (1987), ISO Transport Service on top of the TCP, Version 3 . |
+| [IETF RFC 2234] | IETF RFC 2234 (1997), Augmented BNF for Syntax Specifications: ABNF . |
+| [IETF RFC 2327] | IETF RFC 2327 (1998), SDP: Session Description Protocol . |
+| [IETF RFC 2373] | IETF RFC 2373 (1998), IP Version 6 Addressing Architecture . |
+| [IETF RFC 2401] | IETF RFC 2401 (1998), Security Architecture for the Internet Protocol . |
+
+| | |
+|-----------------|---------------------------------------------------------------------------------------------------------------------------------|
+| [IETF RFC 2402] | IETF RFC 2402 (1998), IP Authentication Header . |
+| [IETF RFC 2406] | IETF RFC 2406 (1998), IP Encapsulating Security Payload (ESP) . |
+| [IETF RFC 2409] | IETF RFC 2409 (1998), The Internet Key Exchange (IKE) . |
+| [IETF RFC 2460] | IETF RFC 2460 (1998), Internet Protocol, Version 6 (IPv6) Specification . |
+| [IETF RFC 3550] | IETF RFC 3550 (2003), RTP: A Transport Protocol for Real-Time Applications . |
+| [IETF RFC 3551] | IETF RFC 3551 (2003), RTP Profile for Audio and Video Conferences with Minimal Control . |
+| [IETF RFC 3556] | IETF RFC 3556 (2003), Session Description Protocol (SDP) Bandwidth Modifiers for RTP Control Protocol (RTCP) Bandwidth . |
+| [IETF RFC 5226] | IETF RFC 5226 (2008), Guidelines for Writing an IANA Considerations Section in RFCs . |
+| [IETF RFC 5615] | IETF RFC 5615 (2009), H.248/MEGACO Registration Procedures . |
+
+# 3 Definitions
+
+## 3.1 Terms defined elsewhere
+
+None.
+
+## 3.2 Terms defined in this Recommendation
+
+This Recommendation defines the following terms:
+
+**3.2.1 access gateway:** A type of gateway that provides a user-network interface (UNI) such as ISDN.
+
+**3.2.2 descriptor:** A syntactic element of the protocol that groups related properties. For instance, the properties of a media flow on the MG can be set by the MGC by including the appropriate descriptor in a command.
+
+**3.2.3 media gateway (MG):** The media gateway converts media provided in one type of network to the format required in another type of network. For example, an MG could terminate bearer channels from a switched circuit network (e.g., DS0s) and media streams from a packet network (e.g., RTP streams in an IP network). This gateway may be capable of processing audio, video and ITU-T T.120 alone or in any combination, and will be capable of full duplex media translations. The MG may also play audio/video messages and perform other IVR functions, or may perform media conferencing.
+
+**3.2.4 media gateway controller (MGC):** Controls the parts of the call state that pertain to connection control for media channels in an MG.
+
+**3.2.5 multipoint control unit (MCU):** An entity that controls the setup and coordination of a multi-user conference that typically includes processing of audio, video and data.
+
+**3.2.6 residential gateway:** A gateway that interworks an analogue line to a packet network. A residential gateway typically contains one or two analogue lines and is located at the customer premises.
+
+**3.2.7 SCN FAS signalling gateway:** This function contains the SCN signalling interface that terminates SS7, ISDN or other signalling links where the call control channel and bearer channels are collocated in the same physical span.
+
+**3.2.8 SCN NFAS signalling gateway:** This function contains the SCN signalling interface that terminates SS7 or other signalling links where the call control channels are separated from bearer channels.
+
+**3.2.9 stream:** Bidirectional media or control flow received/sent by a media gateway as part of a call or conference.
+
+**3.2.10 stream endpoint (SEP):** Relates to a stream associated to a Termination. A SEP is identified by the tuple of *StreamID* and *TerminationID* values.
+
+**3.2.11 stream endpoint pair (SEPP):** Two associated stream endpoints (SEP) of two Terminations within the same Context. The two SEPs share thus the same *StreamID* value. There is always a point-to-point topology for stream endpoint pair configurations (e.g., there is no further associated SEP on a third Termination, etc.).
+
+**3.2.12 trunk:** A communication channel between two switching systems such as a DS0 on a T1 or E1 line.
+
+**3.2.13 trunking gateway:** A gateway between SCN network and packet network that typically terminates a large number of digital circuits.
+
+# 4 Abbreviations and acronyms
+
+This Recommendation uses the following abbreviations and acronyms:
+
+| | |
+|-------|-----------------------------------------------------------|
+| AAD | Average Acknowledgement Delay |
+| AAL | ATM Adaptation Layer |
+| ABNF | Augmented Backus-Naur Format |
+| ADEV | Average Deviation |
+| ALC | Automatic Level Control |
+| ALF | Application Level Framing |
+| AH | Authentication Header |
+| ATM | Asynchronous Transfer Mode |
+| BER | Basic Encoding Rules |
+| C | Context |
+| CAS | Channel Associated Signalling |
+| DLSR | Delay since last SR |
+| DNS | Domain Name System |
+| DTMF | Dual Tone Multi-Frequency |
+| ESP | Encapsulating Security Payload |
+| FAS | Facility Associated Signalling |
+| GSM | Global System for Mobile communications |
+| GW | Gateway |
+| IANA | Internet Assigned Numbers Authority (superseded by ICANN) |
+| ICANN | Internet Corporation for Assigned Names and Numbers |
+| ICV | Integrity Check Value |
+| IEPS | International Emergency Preference Scheme |
+
+| | |
+|---------|--------------------------------------|
+| IKE | Internet Key Exchange |
+| IP | Internet Protocol |
+| IS | In-Service |
+| ISUP | ISDN User Part |
+| IVR | Interactive Voice Response |
+| LD | Local Descriptor |
+| LSR | Last SR timestamp |
+| MG | Media Gateway |
+| MGC | Media Gateway Controller |
+| MID | Message Identifier |
+| MTP3 | Message Transfer Part 3 |
+| MTU | Maximum Transmission Unit |
+| MWD | Maximum Waiting Delay |
+| NDA | Non Disclosure Agreement |
+| NFAS | Non-Facility Associated Signalling |
+| OoS | Out-of-Service |
+| PRI | Primary Rate Interface |
+| PSTN | Public Switched Telephone Network |
+| QoS | Quality of Service |
+| RD | Remote Descriptor |
+| RR | Receiver Report |
+| RSA | Rivest, Shamir and Adleman algorithm |
+| RTCP | RTP Control Protocol |
+| RTP | Real-time Transport Protocol |
+| RTPD | Round-Trip Propagation Delay |
+| Rx | Receive |
+| SC | ServiceChange |
+| SCN | Switched Circuit Network |
+| SCTP | Stream Control Transmission Protocol |
+| SDP | Session Description Protocol |
+| SEP | Stream End Point |
+| SEPP | Stream End Point Pair |
+| SG | Signalling Gateway |
+| SR | Sender Report |
+| SS7 | Signalling System No. 7 |
+| T, Term | Termination |
+| TCP | Transmission Control Protocol |
+
+| | |
+|-----|------------------------|
+| Tx | Transmit |
+| UDP | User Datagram Protocol |
+| VBD | Voice Band Data |
+| VMG | Virtual Media Gateway |
+
+# 5 Conventions
+
+## 5.1 Key words to indicate requirement levels
+
+In this Recommendation, "shall" refers to a mandatory requirement, while "should" refers to a suggested but optional feature or procedure. The term "may" refers to an optional course of action without expressing a preference.
+
+## 5.2 Connection endpoint naming conventions
+
+### 5.2.1 Generic concept
+
+There are basically four connection endpoints (concerning sources and sinks of traffic) in case of a bidirectional connection. ITU-T H.248 uses a specific terminology for naming these endpoints from the perspective of an ITU-T H.248 entity. Figure 1 provides a conceptual overview. The naming scheme is generic because it is technology-independent.
+
+
+
+Figure 1: Connection endpoint naming conventions – Generic concept. The diagram shows a bidirectional connection between an ITU-T H.248 entity and a Peer entity. The ITU-T H.248 entity has two connection endpoints. The top endpoint is labeled 'Local destination' and the bottom endpoint is labeled 'Local source'. The Peer entity also has two connection endpoints. The top endpoint is labeled 'Remote source' and the bottom endpoint is labeled 'Remote destination'. Arrows indicate the direction of traffic flow: from the Local source to the Remote destination, and from the Remote source to the Local destination. A dashed arrow labeled 'Perspective' points to the ITU-T H.248 entity, indicating the viewpoint from which the naming is defined. The text 'H.248.1 v3(13)\_F01' is in the bottom right corner.
+
+**Figure 1 – Connection endpoint naming conventions – Generic concept**
+
+The geographical locations of the endpoints are termed as 'local' (also known as 'near-end') and as 'remote' (also known as 'far-end'). The traffic directions are termed as 'source' (also known as 'egress', 'outgoing', 'outbound', 'transmit', or 'Tx') and as 'destination' (also known as 'ingress', 'incoming', 'inbound', 'receive', or 'Rx').
+
+### 5.2.2 Scope of Local and Remote Descriptors
+
+The Local and Remote Descriptors are defined in clause 7.1.8. Both descriptors have different connection endpoints in scope (see Figure 2). The Local Descriptor (LD) is related to the "local destination" endpoint, the Remote Descriptor (RD) is related to the "remote destination" endpoint. The media gateway is primarily responsible for the resources and configuration of the "local source" endpoint (NOTE – There are a few protocol elements which allow the MGC to control certain endpoint aspects). The "remote source" endpoint is completely out of scope of ITU-T H.248 entities.
+
+
+
+Figure 2: Connection endpoint naming conventions – Scope of Local and Remote Descriptors. The diagram shows an ITU-T H.248 media gateway on the left and a Peer entity on the right connected by a Bidirectional packet-switched Bearer connection. The media gateway contains a Packet-switched bearer: connection endpoint with a green circle representing a traffic sink. Labels 'Local destination' and 'Local source' point to this green circle, while 'Remote source' and 'Remote destination' point to a white circle. The Peer entity contains another Packet-switched bearer: connection endpoint with a red circle representing a traffic source. Labels 'Local source' and 'Local destination' point to this red circle, while 'Remote source' and 'Remote destination' point to a white circle. A Stream descriptor box on the left contains 'Local descriptor' and 'Remote descriptor' with dashed lines connecting them to the green circle. A dashed arrow labeled 'Perspective' points from the media gateway towards the Peer entity. Reference H.248.1 v3(13)\_F02 is shown at the bottom right.
+
+**Figure 2 – Connection endpoint naming conventions – Scope of Local and Remote Descriptors**
+
+Figure 2 underlines that just the traffic sink endpoints of ITU-T H.248 streams are controlled via the Local and Remote Descriptors.
+
+### 5.2.3 Concrete "connection" types
+
+An example shall illustrate the application of the naming conventions for a specific combination of a bearer technology and protocol layer.
+
+#### 5.2.3.1 Example "IP connection"
+
+Figure 3 shows an IP connection, e.g., behind an ITU-T H.248 IP stream or termination, or below an IP-based ITU-T H.248 control association.
+
+
+
+Figure 3: Connection endpoint naming conventions – IP connection. The diagram shows an ITU-T H.248 media gateway on the left and a Peer entity (e.g., IP host, IP next hop, ITU-T H.248 MGC) on the right connected by a Bidirectional IP connection. The media gateway has two IP connection endpoints. The top endpoint has a green circle labeled LD(A) (Local destination) and a white circle labeled LS(A) (Local source). The bottom endpoint has a white circle labeled LS(A) (Local source) and a red circle labeled RD(A) (Remote destination). The Peer entity has two IP connection endpoints. The top endpoint has a white circle labeled RS(A) (Remote source) and a red circle labeled RD(A) (Remote destination). The bottom endpoint has a red circle labeled RD(A) (Remote destination) and a white circle labeled LS(A) (Local source). IP headers are shown above the top endpoints and below the bottom endpoints. The top IP header has DA (destination address) and SA (source address) fields. The bottom IP header has SA (source address) and DA (destination address) fields. Dashed lines with arrows connect the local and remote descriptors to the appropriate circles. A dashed arrow labeled 'Perspective' points from the media gateway towards the Peer entity. Reference H.248.1 v3(13)\_F03 is shown at the bottom right. A legend at the bottom left defines: LD local destination, LS local source, RD remote destination, RS remote source, DA destination address, SA source address, and a circle representing L3 address.
+
+**Figure 3 – Connection endpoint naming conventions – IP connection**
+
+The two local or remote connection endpoints may be assigned to the same or different IP interfaces. They are then so called symmetrical or asymmetrical (connection) addresses.
+
+# 6 Connection model
+
+The connection model for the protocol describes the logical entities, or objects, within the Media Gateway that can be controlled by the Media Gateway Controller. The main abstractions used in the connection model are terminations and contexts.
+
+A *termination* sources and/or sinks one or more streams. In a multimedia conference, a termination can be multimedia and sources or sinks multiple media streams. The media stream parameters, as well as bearer parameters are encapsulated within the termination.
+
+A *context* is an association between a collection of terminations. There is a special type of context, the *NULL Context*, which contains all terminations that are not present in any other context and therefore not associated to any other termination. For instance, in a decomposed access gateway, all idle lines are represented by terminations in the NULL Context.
+
+Following is a graphical depiction of these concepts. The diagram of Figure 4 gives several examples and is not meant to be an all-inclusive illustration. The asterisk box in each of the contexts represents the logical association of terminations implied by the context.
+
+
+
+The diagram illustrates the ITU-T H.248.1 connection model within a Media Gateway. The Media Gateway is represented by a large dashed rectangle. Inside, there are three Contexts and one Null context, each enclosed in dashed rectangles. Each Context contains a Termination (RTP stream), an asterisk box, and a Termination (SCN bearer channel). The Null context contains a Termination (SCN bearer channel). Arrows indicate connections between the Media Gateway and the external environment.
+
+Media gateway
+
+Context
+
+Termination
+
+RTP stream
+
+\*
+
+Termination
+
+SCN bearer channel
+
+Context
+
+Termination
+
+RTP stream
+
+\*
+
+Null context
+
+Termination
+
+SCN bearer channel
+
+Context
+
+Termination
+
+RTP stream
+
+\*
+
+Termination
+
+SCN bearer channel
+
+H.248.1 v3(13)\_F04
+
+Figure 4: Example of ITU-T H.248.1 connection model. The diagram shows a Media Gateway containing three Contexts and one Null context. Each Context contains a Termination (RTP stream), an asterisk box, and a Termination (SCN bearer channel). The Null context contains a Termination (SCN bearer channel). Arrows indicate connections between the Media Gateway and the external environment.
+
+Figure 4 – Example of ITU-T H.248.1 connection model
+
+The example in Figure 5 shows an example of one way to accomplish a call-waiting scenario in a decomposed access gateway, illustrating the relocation of a termination between contexts. Terminations T1 and T2 belong to Context C1 in a two-way audio call. A second audio call is waiting for T1 from Termination T3. T3 is alone in Context C2. T1 accepts the call from T3, placing T2 on hold. This action results in T1 moving into Context C2, as shown in Figure 6.
+
+
+
+Media gateway
+
+H.248.1 v3(13)\_F05
+
+Figure 5: Example call waiting scenario/alerting applied to T1. The diagram shows a Media gateway containing two contexts, Context C1 and Context C2. Context C1 contains Termination T2 (RTP stream), a mixing node (asterisk), and Termination T1 (SCN bearer channel). Context C2 contains a mixing node (asterisk) and Termination T3 (SCN bearer channel). Arrows indicate external connections to T2, T1, and T3.
+
+**Figure 5 – Example call waiting scenario/alerting applied to T1**
+
+
+
+Media gateway
+
+H.248.1 v3(13)\_F06
+
+Figure 6: Example call waiting scenario/answer by T1. This diagram is similar to Figure 5, but with a key difference: a diagonal line connects the mixing node in Context C2 to Termination T1 in Context C1, indicating that T1 is being answered by the call waiting scenario.
+
+**Figure 6 – Example call waiting scenario/answer by T1**
+
+## 6.1 Contexts
+
+A context is an association between a number of terminations. The context describes the topology (who hears/sees whom) and the media mixing and/or switching parameters if more than two terminations are involved in the association.
+
+There is a special context called the *NULL Context*. It contains terminations that are not present in any other context and therefore not associated to any other termination. Terminations in the NULL Context can have their parameters examined or modified, and may have events detected on them.
+
+In general, an Add Command is used to add terminations to contexts. If the MGC does not specify an existing context to which the termination is to be added, the MG creates a new context. A termination may be removed from a context with a Subtract Command, and a termination may be moved from one context to another with a Move Command. A termination shall exist in only one context at a time.
+
+The maximum number of terminations in a context is an MG property. Media gateways that offer only point-to-point connectivity might allow at most two terminations per context. Media gateways that support multipoint conferences might allow three or more terminations per context.
+
+### 6.1.1 Context attributes and descriptors
+
+The attributes of contexts are:
+
+- ContextID.
+- The Topology Descriptor (who hears/sees whom).
+
+The topology of a context describes the flow of media between the terminations within a context. In contrast, the Mode Property of a termination ("SendOnly"/"RecvOnly"/...) describes the flow of the media at the egress/ingress of the media gateway.
+
+- The priority indicator is used for a context in order to provide the MG with information about a certain precedence handling for a context. The MGC can also use the priority indicator to control autonomously the traffic precedence in the MG in a smooth way in certain situations (e.g., restart), when a lot of contexts must be handled simultaneously. Priority 0 is the lowest priority and a priority of 15 is the highest priority.
+- An indicator for an emergency call is also provided to allow a preference handling in the MG.
+- An indicator for an IEPS call is provided to allow the features and techniques of e.g., [ITU-T E.106] and [ITU-T E.107] to be achieved. See [b-ITU-T H-Sup.9] for more information.
+- A ContextAttribute Descriptor that enables extra context attributes to be defined by using the packages extension mechanism (see clause 7.1.19).
+
+In general, if a context attribute is completely omitted from an ITU-T H.248 action, the attribute of the corresponding context retains its prior value.
+
+### 6.1.2 Creating, deleting and modifying contexts
+
+The protocol can be used to (implicitly) create contexts and modify the parameter values of existing contexts. The protocol has commands to add terminations to contexts, subtract them from contexts, and to move terminations between contexts. Contexts are deleted implicitly when the last remaining termination is subtracted or moved out.
+
+## 6.2 Terminations
+
+A termination is a logical entity on an MG that sources and/or sinks media and/or control streams. A termination is described by a number of characterizing properties, which are grouped in a set of descriptors that are included in commands. Terminations have unique identities (TerminationIDs), assigned by the MG at the time of their creation.
+
+Terminations representing physical entities have a semi-permanent existence. For example, a termination representing a TDM channel might exist for as long as it is provisioned in the gateway. Terminations representing ephemeral information flows, such as RTP flows, would usually exist only for the duration of their use.
+
+Ephemeral terminations are created by means of an Add Command. They are destroyed by means of a Subtract Command. In contrast, when a physical termination is Added to or Subtracted from a context, it is taken from or to the NULL Context, respectively.
+
+Terminations may have signals applied to them (see clause 7.1.11). Terminations may be programmed to detect events, the occurrence of which can trigger notification messages to the MGC, or action by the MG. Statistics may be accumulated on a termination. Statistics are reported to the MGC upon request (by means of the AuditValue Command, see clause 7.2.5) and when the termination ceases to exist or is returned to the NULL Context due to a Subtract Command.
+
+Multimedia gateways may process multiplexed media streams. For example, [b-ITU-T H.221] describes a frame structure for multiple media streams multiplexed on a number of digital 64 kbit/s
+
+channels. Such a case is handled in the connection model in the following way. For every bearer channel that carries part of the multiplexed streams, there is a physical or ephemeral "bearer termination". The bearer terminations that source/sink the digital channels are connected to a separate termination called the "multiplexing termination". The multiplexing termination is an ephemeral termination representing a frame-oriented session. The Multiplex Descriptor for this termination describes the multiplex used (e.g., [b-ITU-T H.221] for an [b-ITU-T H.320] session) and indicates the order in which the contained digital channels are assembled into a frame.
+
+Multiplexing terminations may be cascades (e.g., [b-ITU-T H.226] multiplex of digital channels feeding into a [b-ITU-T H.223] multiplex supporting an [b-ITU-T H.324] session).
+
+The individual media streams carried in the session are described by Stream Descriptors on the multiplexing termination. These media streams can be associated with streams sourced/sunk by terminations in the context other than the bearer terminations supporting the multiplexing termination. Each bearer termination supports only a single data stream. These data streams do not appear explicitly as streams on the multiplexing termination and they are hidden from the rest of the context.
+
+Figures 7, 8, and 9 illustrate typical applications of the multiplexing termination and Multiplex Descriptor.
+
+
+
+The diagram, labeled 'Context', shows three circuits (Circuit 1, Circuit 2, and Circuit 3) on the left. Each circuit is connected to a bearer termination (Ta, Tb, and Tc respectively). Each bearer termination outputs a '(Stream 0)'. These streams are fed into a central vertical block labeled 'Multiplex - H.2xx'. Above this block is a circle labeled 'Tmux'. To the right of the 'Tmux' circle are 'MuxDescriptor', 'Stream1', and 'Stream2'. A dashed line connects 'Stream2' to a label 'Multiplexing termination (ephemeral)'. The 'Multiplex - H.2xx' block outputs two streams: 'StreamID 1 (audio)' and 'StreamID 2 (video)'. These streams are fed into a circle labeled 'Td'. To the right of 'Td' are 'StreamID 1 (audio packets)' and 'StreamID 2 (video packets)'. At the bottom right of the diagram is the text 'H.248.1 v3(13)\_F07'. At the bottom left, an arrow points to the circuits with the text 'Audio, video, and control signals are carried in frames spanning the circuits'.
+
+Diagram illustrating a multiplexed termination scenario (Circuit-to-packet).
+
+**Figure 7 – Multiplexed termination scenario – Circuit-to-packet**
+
+
+
+Figure 8: Multiplexed termination scenario – Circuit-to-circuit. This diagram shows a 'Context' box containing two multiplexers, 'Tmux 1' and 'Tmux 2', both labeled 'Multiplex - H.2xx'. On the left, three circuits (Circuit 1, Circuit 2, Circuit 3) are connected to terminations 'Ta', 'Tb', and 'Tc' respectively. Each termination is connected to 'Tmux 1' via a signal labeled '(S0)'. Above 'Tmux 1' is a descriptor: 'Tmux1 MuxDescriptor (Type, TID list = Ta, Tb, Tc) StreamID1, 2'. Inside the context, 'Tmux 1' outputs two streams: 'StreamID = 1 (audio)' and 'StreamID = 2 (video)'. These streams are connected to 'Tmux 2'. On the right, 'Tmux 2' outputs to terminations 'Td', 'Te', and 'Tf', which are then connected to Circuit 4, Circuit 5, and Circuit 6 respectively. Each output from 'Tmux 2' is also labeled '(S0)'. Above 'Tmux 2' is a descriptor: 'Tmux2 MuxDescriptor (Type, TID list = Td, Te, Tf) StreamID1, 2'. The diagram is labeled 'H.248.1 v3(13)\_F08' at the bottom right.
+
+**Figure 8 – Multiplexed termination scenario – Circuit-to-circuit**
+
+
+
+Figure 9: Multiplexed termination scenario – Single-to-multiple terminations. This diagram shows a 'Context' box containing one multiplexer, 'Tmux 1', labeled 'Multiplex - H.2xx'. On the left, 'Circuit 1' is connected to termination 'Ta', which is connected to 'Tmux 1' via a signal labeled '(S0)'. Above 'Tmux 1' is a descriptor: 'Tmux1 MuxDescriptor (Type, TID list = Ta) StreamID1, 2'. Inside the context, 'Tmux 1' outputs two streams: 'StreamID = 1 (audio)' and 'StreamID = 2 (video)'. The 'audio' stream is connected to termination 'Tb' via a signal labeled '(S0)', which then outputs to 'Stream (audio packets)'. The 'video' stream is connected to termination 'Tc' via a signal labeled '(S0)', which then outputs to 'Stream (video packets)'. The diagram is labeled 'H.248.1 v3(13)\_F09' at the bottom right.
+
+**Figure 9 – Multiplexed termination scenario – Single-to-multiple terminations**
+
+Unlike the multiplexing terminations described in the previous paragraph the multiplexed bearer termination, which represent multiplexed bearers such as ATM AAL Type 2 bearers, carry no media streams. They are present strictly for the purpose of modeling the creation and destruction of the actual bearer. When a new multiplexed bearer is to be created, an ephemeral termination is created in a context established for this purpose. When the termination is subtracted, the multiplexed bearer is destroyed.
+
+### 6.2.1 Termination dynamics
+
+The protocol can be used to create new terminations and to modify property values of existing terminations. These modifications include the possibility of adding or removing events and/or signals. The termination properties, and events and signals are described in the ensuing subclauses. An MGC can only release/modify terminations and the resources that the termination represents which are in the NULL Context or which have been previously seized via, e.g., the Add Command.
+
+### 6.2.2 TerminationIDs
+
+Terminations are referenced by a TerminationID, which is an arbitrary schema chosen by the MG.
+
+TerminationIDs of physical terminations are provisioned in the Media Gateway. The TerminationIDs may be chosen to have structure. For instance, a TerminationID may consist of trunk group and a trunk within the group.
+
+A wildcarding mechanism using two types of wildcards can be used with TerminationIDs. The two wildcards are ALL and CHOOSE. The former is used to address multiple terminations at once, while the latter is used to indicate to a media gateway that it must select a termination satisfying the partially specified TerminationID. This allows, for instance, that an MGC instructs an MG to choose a circuit within a trunk group.
+
+TerminationIDs can also be specified in a list. The use of TerminationIDList is recommended for cases where a hierarchical TerminationID structure is not possible and it is not desired to send individual commands for each TerminationID. Both Root and non-Root TerminationIDs should not be contained in a single TerminationIDList.
+
+### 6.2.3 Packages
+
+Different types of gateways may implement terminations that have widely differing characteristics. Variations in terminations are accommodated in the protocol by allowing terminations to have optional properties, events, signals and statistics implemented by MGs.
+
+In order to achieve MG/MGC interoperability, such options are grouped into packages, and typically a termination realizes a set of such packages. More information on definition of packages can be found in clause 12. An MGC can audit a termination to determine which packages it realizes.
+
+Properties, events, signals and statistics defined in packages, as well as parameters to them, are referenced by identifiers (IDs). Identifiers are scoped. For each package, PropertyIDs, EventIDs, SignalIDs, StatisticIDs and ParameterIDs have unique name spaces and the same identifier may be used in each of them. Two PropertyIDs in different packages may also have the same identifier, etc.
+
+To support a particular package the MG must recognize all properties, signals, events and statistics defined in the package. It must also support all signal and event parameters. If the functionality behind these properties, signals, events and statistics is not implemented, the MG shall not return a syntax error or unknown ID error for any of these elements but should return error 501 "Not implemented".
+
+The MG may support a subset of the values listed in a package for a particular property or parameter. If an unsupported value is specified by the MGC, the MG shall return error 501 "Not implemented".
+
+When packages are extended, the properties, events, signals and statistics defined in the base package can be referred to using either the extended package name or the base package name. For example, if Package A defines Event e1, and Package B extends Package A, then B/e1 is an event for a termination implementing Package B. By definition, the MG must also implement the base package, but it is optional to publish the base package as an allowed interface. If it does publish A, then A would be reported on the Packages Descriptor in AuditValue as well as B, and Event A/e1 would be available on a termination. If the MG does not publish A, then only B/e1 would be available. If published through AuditValue, A/e1 and B/e1 are the same event.
+
+For improved interoperability and backward compatibility, an MG may publish all packages supported by its terminations, including base packages from which extended packages are derived. An exception to this is in cases where the base packages are expressly defined as "Designed to be extended only".
+
+In the case that the MG publishes the base PackageIDs in response to a Packages Descriptor Audit, it will also respond to a wildcarded PackageID Audit with the PackageID of the ITU-T H.248 Package Element where the element was originally defined.
+
+In the case that the MG publishes only the extended PackageID in response to a Packages Descriptor Audit, the MG will respond to a wildcarded PackageID Audit using the extended ITU-T H.248 PackageIDs.
+
+NOTE – Whilst a Subtract request does not explicitly request an AuditValue.req of Statistics with a wildcarded PackageID, it is implicit in the command. Similarly, an audit of a complete descriptor is equivalent to an audit with a wildcarded PackageID. Thus, the procedure described above will be used in both cases.
+
+### 6.2.4 Termination properties and descriptors
+
+Terminations have properties. The properties have unique PropertyIDs. Most properties have default values, which are explicitly defined in this protocol specification or in a package (see clause 12) or set by provisioning. If not provisioned otherwise, the properties in all descriptors except TerminationState and LocalControl default to empty/"no value" when a termination is first created or returned to the NULL Context. When a termination is first created or returned to the NULL Context, this state represents an "idle" line, trunk or other entity. The default contents of the two exceptions are described in clauses 7.1.5 and 7.1.7.
+
+The provisioning of a property value in the MG will override any default value, be it supplied in this protocol specification or in a package. Therefore, if it is essential for the MGC to have full control over the property values of a termination, it should supply explicit values when adding the termination to a context. Alternatively, for a physical termination the MGC can determine any provisioned property values by auditing the termination while it is in the NULL Context.
+
+There are a number of common properties for terminations and properties specific to media streams. The common properties are also called the TerminationState properties. For each media stream, there are local properties and properties of the received and transmitted flows.
+
+Properties not included in the base protocol are defined in packages. These properties are referred to by a name consisting of the package name and a PropertyID. Most properties have default values described in the package description. Properties may be read-only or read/write. The possible values of a property may be audited, as can their current values. For properties that are read/write, the MGC can set their values. A property may be declared as "global" which has a single value shared by all terminations realizing the package. Related properties are grouped into descriptors for convenience.
+
+When a termination is added to a context, the value of its read/write properties can be set by including the appropriate descriptors as parameters to the Add Command. Similarly, a property of a termination in a context may have its value changed by the Modify Command. Properties may also have their values changed when a termination is moved from one context to another as a result of a Move Command. In some cases, descriptors are returned as output from a command.
+
+Setting properties on different terminations in the same context implicitly instructs the MG to perform certain functions. For example: if a [b-ITU-T G.711] codec is set on Termination A and a [b-ITU-T G.729] codec is set on Termination B, then the MG will activate a transcoding function as soon as a media flow is enabled between the two terminations (i.e., by setting the Mode Property to a state other than "Inactive" at each termination).
+
+NOTE – To avoid unnecessary activation of MG resources, the MGC should set the Mode Property to "Inactive" for a given termination and stream until the properties to be used for that stream have been determined.
+
+In general, if a descriptor is completely omitted from one of the aforementioned commands, the properties in that descriptor retain their prior values for the termination(s) upon which the command acts. On the other hand, if some read/write properties are omitted from a descriptor in a command (i.e., the descriptor is only partially specified), those properties will be reset to their default values for the termination(s) upon which the command acts, unless the package specifies other behaviour. For more details, see clause 7.1 dealing with the individual descriptors.
+
+The above behaviour applies equally to signals and events and their respective parameters. The provisioning of Events Descriptors would include the RequestID to use and any parameters of the included events. Any provisioning in the MG with respect to Events Descriptors should be duplicated in the MGC to avoid error responses to Notify Commands from the MG.
+
+The following table lists all of the possible descriptors and their use. Not all descriptors are legal as input or output parameters to every command.
+
+| Descriptor name | Description |
+|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Modem | Identifies modem type and properties when applicable. (Note) |
+| Mux | Describes multiplex type for multimedia terminations (e.g., [b-ITU-T H.221], [b-ITU-T H.223], [ITU-T H.225.0]) and terminations forming the input mux. |
+| Media | A list of media stream specifications (see clause 7.1.4). |
+| TerminationState | Properties of a termination (which can be defined in packages) that are not stream specific. |
+| Stream | A list of Remote/Local/LocalControl Descriptors for a single stream. |
+| Local | Contains properties that specify the media flows that the MG receives from the remote entity. |
+| Remote | Contains properties that specify the media flows that the MG sends to the remote entity. |
+| LocalControl | Contains properties (which can be defined in packages) that are of interest between the MG and the MGC. |
+| Events | Describes events to be detected by the MG and what to do when an event is detected. |
+| EventBuffer | Describes events to be detected by the MG when event buffering is active. |
+| Signals | Describes signals (see clause 7.1.11) applied to terminations. |
+| Audit | In Audit commands, identifies which information is desired. |
+| Packages | In AuditValue, returns a list of packages realized by the termination. |
+| DigitMap | Defines patterns against which sequences of a specified set of events are to be matched so they can be reported as a group rather than singly. |
+| ServiceChange | In ServiceChange, what, why ServiceChange occurred, etc. |
+| ObservedEvents | In Notify or AuditValue, report of events observed. |
+| Statistics | In Subtract and Audit, report of statistics kept on a termination or stream. |
+| Topology | Specifies flow directions between terminations in a context. |
+| ContextAttribute | Contains properties (which can be defined in packages) that affect the context as a whole. |
+| Error | Contains an Error Code and optionally error text; it may occur in command replies and in Notify requests. |
+| NOTE – Modem Descriptor has been deprecated in Recommendation ITU-T H.248.1 version 2 (05/2002). | |
+
+### 6.2.5 Root Termination
+
+Occasionally, a command must refer to the gateway as an entity in itself, rather than a termination within it. A special TerminationID, "Root" is reserved for this purpose. Packages may be defined on Root. Root thus may have properties, events, signals and statistics. Accordingly, the Root TerminationID may appear in:
+
+- a Modify Command – to change a property, send a signal or set an event;
+- a Notify Command – to report an event;
+- an AuditValue Command – to examine the values of properties and statistics implemented on Root;
+- an AuditCapability Command – to determine what properties of Root are implemented;
+- a ServiceChange – to declare the entire gateway in or out of service.
+
+Any other use of the Root TerminationID is an error. Error Code 410 ("Incorrect identifier") shall be returned in these cases.
+
+## 6.3 Wildcarding principles
+
+This clause specifies the behaviour for wildcarding ContextIDs and TerminationIDs that shall be applied to all commands. In processing these commands two forms of wildcarding must be considered:
+
+- 1) Context wildcarding;
+- 2) Termination wildcarding.
+
+For the purposes of the wildcarding procedures, a TerminationIDList consisting of more than one TerminationID is considered a wildcarded TerminationID. When executing a transaction that contains wildcarded contexts and optionally wildcarded terminations, all commands in the transaction are executed in order for a particular instance of ContextID before moving to a subsequent ContextID instance. In the case that there are multiple commands in a transaction, only when the TerminationID (wildcarded or specific) specified in the first command matches a specific instance of a ContextID are subsequent commands in the transaction executed. If a TerminationID (wildcarded or specific) of the subsequent command(s) in that transaction does not match the specific ContextID instance, then Error Code 431 ("No TerminationID matched a wildcard") is returned and processing of subsequent instances of the wildcard ContextID are stopped unless the command that generated the error is marked optional.
+
+The execution of particular wildcard combinations is discussed below.
+
+### 6.3.1 ContextID specific with TerminationID wildcarded
+
+In the case where the ContextID is specific, when ALL is used in the TerminationID of a command, the effect is identical to repeating the command with each of the matching TerminationIDs. The use of ALL does not address the Root termination. Since each of these commands may generate a response, the size of the entire response may be large. Thus, if the wildcard matches more than one TerminationID in the context, all possible matches are attempted, with results reported for each one. If none of the terminations referenced by the wildcarded TerminationID are in the specific context, then Error Code 431 ("No TerminationID matched a wildcard") is returned. No errors are returned for individual terminations specified by the wildcarded TerminationID that are not in the specified context.
+
+For example: Assume that a gateway has four terminations: t1/1, t1/2, t2/1 and t2/2. Assume that Context 1 has t1/1 and t2/1 in it and that Context 2 has t1/2 and t2/2 in it.
+
+The command:
+
+Context=1 {Command=t1/\* {Descriptor/s}}
+
+returns:
+
+Context=1 {Command=t1/1 {Descriptor/s}}
+
+### 6.3.2 ContextID wildcarded (ALL) with TerminationID specific
+
+In the case where the ContextID is wildcarded (i.e., ContextID = ALL) and the TerminationID is fully specified, the effect is identical to a command specifying the non-NULL context that contains the specified termination. Thus, a search must be made to find the context and only one instance of the command is executed. No errors are reported for contexts that do not contain the specified termination. If the termination is not contained in any (non-NULL) context, then Error Code 435 ("TerminationID is not in specified context") is returned, though Error Code 431 ("No TerminationID matched a wildcard") may be returned in order to maintain backward compatibility. If there are no contexts other than NULL in existence, Error Code 411 ("The transaction refers to an unknown ContextID") is returned. Use of this form of action rather than one specifying the ContextID is discouraged but may be useful, for example in correcting conflicting state between MG and MGC.
+
+For example: Taking the above gateway configuration, the command:
+
+Context=\* {Command=t1/1 {Descriptor/s}}
+
+returns:
+
+Context=1 {Command=t1/1 {Descriptor/s}}
+
+### 6.3.3 ContextID wildcarded (ALL) with TerminationID wildcarded
+
+In the case where the ContextID is wildcarded (i.e., ContextID = ALL) and the TerminationID is wildcarded, the effect is identical to repeating the command with each of the TerminationIDs matching the wildcard for each non-NULL context that contains one or more of those matching TerminationIDs. Thus if the wildcard matches more than one TerminationID in the specific instance of the wildcarded ContextID, all possible matches are attempted, with results reported for each one. No errors are reported for contexts that do not contain a termination matching the wildcarded TerminationID. No errors are returned for individual terminations specified in the wildcarded TerminationID that are not in a specific instance of the wildcarded ContextID. If there are no matches to the wildcarded ContextID and TerminationID, then Error Code 431 ("No TerminationID matched a wildcard") is returned.
+
+For example: Taking the above gateway configuration, the command:
+
+Context=\* {Command=t1/\* {Descriptor/s}}
+
+returns:
+
+Context=1 {Command=t1/1 {Descriptor/s}}
+
+Context=2 {Command=t1/2 {Descriptor/s}}
+
+In the case that multiple commands are contained in a wildcarded TerminationID and/or wildcarded ContextID request, then if the first command does not match the first ContextID and TerminationID instance, then the subsequent command in the request will not be executed for that instance.
+
+### 6.3.4 Wildcarded responses
+
+If individual responses are not required, a wildcard response may be requested. In such a case, a single response is generated, which contains the UNION of all of the individual responses which otherwise would have been generated, with duplicate values suppressed. For instance, given Termination Ta with Properties p1=a, p2=b and Termination Tb with Properties p2=c, p3=d, a UNION response would consist of a wildcarded TerminationID and the sequence of Properties
+
+p1=a, p2=b,c and p3=d. Wildcard responses may be particularly useful in the Audit commands. If a wildcard UNION response is used in conjunction with a wildcarded context, then a single response is sent with the UNION of all the individual terminations referenced by the TerminationID. The response would contain Context=ALL, a wildcarded TerminationID and the sequence of properties.
+
+If an error occurs during the execution of a wildcarded request that specifies a wildcarded response, special handling is required to provide useful information about the error(s) while still maintaining a modest sized response. When a wildcarded response is requested, all instances (as specified above) of the command shall be executed even if one or more result in errors, but later commands in the transaction will not be executed (unless optional was specified). Multiple command responses shall be returned for the command that encountered the error. The first command response shall be the normal wildcard response containing the UNION of responses for those commands that succeeded. If none of them succeeded, the UNION shall be empty. Additional command responses for each TerminationID that failed shall be returned with the appropriate Error Descriptor.
+
+For example, the command:
+
+Context=\* {Command=t1/\* {Descriptor/s}}
+
+Response to an error:
+
+Context=\* {Command=t1/\* {Union response descriptors}},
+
+Command=t1/3 {Error=errorcode}}
+
+The encoding of the wildcarding mechanism is detailed in Annexes A and B.
+
+# 7 Commands
+
+The protocol provides commands for manipulating the logical entities of the protocol connection model, contexts and terminations. Commands provide control at the finest level of granularity supported by the protocol. For example, commands exist to add terminations to a context, modify terminations, subtract terminations from a context, and audit properties of contexts or terminations. Commands provide for complete control of the properties of contexts and terminations. This includes specifying which events a termination is to report, which signals/actions are to be applied to a termination and specifying the topology of a context (who hears/sees whom).
+
+Most commands are for the specific use of the Media Gateway Controller as command initiator in controlling Media Gateways as command responders. The exceptions are the Notify and ServiceChange Commands: Notify is sent from Media Gateway to Media Gateway Controller, and ServiceChange may be sent by either entity. Below is an overview of the commands; they are explained in more detail in clause 7.2.
+
+- 1) Add: The Add Command adds a termination to a context. The Add Command on the first termination in a context is used to create a context.
+- 2) Modify: The Modify Command modifies the properties, events and signals of a termination.
+- 3) Subtract: The Subtract Command disconnects a termination from its context and returns statistics on the termination's participation in the context. The Subtract Command on the last termination in a context deletes the context.
+- 4) Move: The Move Command atomically moves a termination to another context.
+- 5) AuditValue: The AuditValue Command returns the current state of properties, events, signals and statistics of terminations.
+- 6) AuditCapability: The AuditCapability Command returns all the possible values for termination properties, events and signals allowed by the Media Gateway.
+- 7) Notify: The Notify Command allows the Media Gateway to inform the Media Gateway Controller of the occurrence of events in the Media Gateway.
+
+- 8) **ServiceChange:** The ServiceChange Command allows the Media Gateway to notify the Media Gateway Controller that a termination or group of terminations is about to be taken out of service or has just been returned to service. ServiceChange is also used by the MG to announce its availability to an MGC (registration), and to notify the MGC of impending or completed restart of the MG. The MGC may announce a handover to the MG by sending it a ServiceChange Command. The MGC may also use ServiceChange to instruct the MG to take a termination or group of terminations in or out of service.
+
+These commands are detailed in clauses 7.2.1 through 7.2.8.
+
+## 7.1 Descriptors
+
+The parameters to a command are termed descriptors. A descriptor consists of a name and a list of items. Some items may have values. Many commands share common descriptors. This subclause enumerates these descriptors. Descriptors may be returned as output from a command. Descriptors shall be returned in the order that they were received. In any such return of descriptor contents, an empty descriptor is represented by its name unaccompanied by any list. Parameters and parameter usage specific to a given command type are described in the subclause that describes the command.
+
+### 7.1.1 Specifying parameters
+
+Command parameters are structured into a number of descriptors. In general, the text format of descriptors is `DescriptorName={parm=value, parm=value...}`.
+
+Parameters may be fully specified, overspecified or underspecified:
+
+- 1) Fully specified parameters have a single, unambiguous value that the command initiator is instructing the command responder to use for the specified parameter.
+- 2) Underspecified parameters, using the **CHOOSE** value, allow the command responder to choose any value it can support.
+- 3) Overspecified parameters have a list of potential values. The list order specifies the command initiator's order of preference of selection. The command responder chooses one value from the offered list and returns that value to the command initiator.
+
+If a required descriptor other than the Audit Descriptor is unspecified (i.e., entirely absent) from a command, the previous values set in that descriptor for that termination, if any, are retained. In commands other than Subtract, a missing Audit Descriptor is equivalent to an empty Audit Descriptor. The behaviour of the MG with respect to unspecified parameters within a descriptor varies with the descriptor concerned, as indicated in succeeding subclauses. Whenever a parameter is underspecified or overspecified, the descriptor containing the value chosen by the responder is included as output from the command.
+
+Each command specifies the TerminationID the command operates on. This TerminationID may be "wildcarded". When the TerminationID of a command is wildcarded, the effect shall be as if the command was repeated with each of the TerminationIDs matched.
+
+### 7.1.2 Modem Descriptor
+
+The Modem Descriptor specifies the modem type and parameters, if any, required for use in, e.g., [b-ITU-T H.324] and text conversation. The descriptor includes the following modem types: ITU-T V.18, ITU-T V.22, ITU-T V.22 *bis*, ITU-T V.32, ITU-T V.32 *bis*, ITU-T V.34, ITU-T V.90, ITU-T V.91, Synchronous ISDN, and allows for extensions. By default, no Modem Descriptor is present in a termination.
+
+Use of the Modem Descriptor is deprecated in Recommendation ITU-T H.248.1 Version 2 (05/2002) and subsequent versions. This means that the Modem Descriptor shall not be included as part of transmitted content and, if received, shall either be ignored or processed at the option of the
+
+implementation. Modem type is to be specified as an attribute of data streams in the Local Descriptor and the Remote Descriptor.
+
+### 7.1.3 Multiplex Descriptor
+
+In multimedia calls, a number of media streams are carried on a (possibly different) number of bearers. The Multiplex Descriptor associates the media and the bearers. The descriptor includes the multiplex type:
+
+- H.221;
+- H.223;
+- H.226;
+- V.76;
+- $N \times 64K$ ;
+- possible extensions,
+
+and a set of TerminationIDs representing the multiplexed bearers, in order. For example:
+
+Mux = H.221{MyT3/1/2, MyT3/2/13, MyT3/3/6, MyT3/21/22}
+
+The $N \times 64K$ multiplex type implements the $N \times 64K$ service (e.g., as defined by [ITU-T Q.931] Information Transfer Rate or [ITU-T Q.763] Transmission Medium Requirement). On the context side, it supports a single stream of wideband data. When a bearer termination is added implicitly to a context as a result of the creation of an $N \times 64K$ multiplexing termination, the Stream Descriptor for the bearer termination shall take on the same values as the Stream Descriptor defined for the multiplex termination, except that the bearer termination bandwidth shall be 64 kbit/s.
+
+### 7.1.4 Media Descriptor
+
+The Media Descriptor specifies the parameters for all the media streams. These parameters are structured into two descriptors: a TerminationState Descriptor, which specifies the properties of a termination that are not stream dependent, and one or more Stream Descriptors each of which describes a single media stream.
+
+A stream is identified by a StreamID. The StreamID shall be in the range of 1 to 65535. The StreamID is used to link the streams in a context that belong together. Multiple streams exiting a termination shall be synchronized with each other. Within the Stream Descriptor, there are up to four subsidiary descriptors: LocalControl, Local, Remote and Statistics. The relationship between these descriptors is thus:
+
+```
+Media Descriptor
+ TerminationState Descriptor
+ Stream Descriptor
+ LocalControl Descriptor
+ Local Descriptor
+ Remote Descriptor
+ Statistics Descriptor
+```
+
+As a convenience, the LocalControl, Local, Remote or Statistics Descriptors may be included in the Media Descriptor without an enclosing Stream Descriptor. In this case, the StreamID is assumed to be one.
+
+### 7.1.5 TerminationState Descriptor
+
+The TerminationState Descriptor contains the ServiceStates Property, the EventBufferControl Property and properties of a termination (defined in packages) that are not stream specific.
+
+The ServiceStates Property describes the overall state of the termination (not stream specific). A termination can be in one of the following states: "Test", "OutOfService", or "InService". The "Test" state indicates that the termination is being tested. The state "OutOfService" indicates that the termination cannot be used for traffic. The state "InService" indicates that a termination can be used or is being used for normal traffic. "InService" is the default state.
+
+Values assigned to properties may be simple values (integer/string/enumeration) or may be underspecified, where more than one value is supplied and the MG may make a choice:
+
+- Alternative values: multiple values in a list, one of which must be selected;
+- Ranges: minimum and maximum values, a value between min and max must be selected, boundary values included;
+- Greater Than/Less Than: value must be greater/less than specified value;
+- CHOOSE Wildcard: the MG chooses from the allowed values for the property.
+
+The EventBufferControl Property specifies whether events are buffered following detection of an event in the Events Descriptor, or processed immediately. See 7.1.9 for details.
+
+#### 7.1.5.1 TerminationState properties
+
+##### 7.1.5.1.1 ServiceStates
+
+| | |
+|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Property name: | ServiceStates |
+| Description: | The value of this property indicates the current service state of the termination. |
+| Type: | Enumeration |
+| Possible values: | InService: The termination is in-service and functioning normally.
OutOfService: The termination is out-of-service and not available for traffic.
Test: The termination is undergoing testing. |
+| Default: | InService |
+| Defined in: | TerminationState |
+| Characteristics: | Read/Write |
+
+##### 7.1.5.1.2 EventBufferControl
+
+| | |
+|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
+| Property name: | EventBufferControl |
+| Description: | Specifies whether events are buffered following detection of an event in the Events Descriptor, or processed immediately. See clause 7.1.9. |
+| Type: | Enumeration |
+| Possible values: | LockStep: Events are buffered and processed per clause 7.1.9.
OFF: Events are processed immediately. |
+| Default: | OFF |
+| Defined in: | TerminationState |
+| Characteristics: | Read/Write |
+
+### 7.1.6 Stream Descriptor
+
+A Stream Descriptor specifies the parameters of a single bidirectional stream. These parameters are structured into three descriptors: one that contains termination properties specific to a stream and one each for local and remote flows. The Stream Descriptor includes a StreamID which identifies the stream. Streams are created by specifying a new StreamID on one of the terminations in a context. A stream is deleted by setting empty Local and Remote Descriptors for the stream with ReserveGroup and ReserveValue in LocalControl set to "False" on all terminations in the context that previously supported that stream.
+
+StreamIDs are of local significance between MGC and MG and they are assigned by the MGC. Within a context, StreamID is a means by which to indicate which media flows are interconnected: streams with the same StreamID are connected.
+
+If a termination is moved from one context to another, the effect on the context to which the termination is moved is the same as in the case that a new termination were added with the same StreamIDs as the moved termination.
+
+### 7.1.7 LocalControl Descriptor
+
+#### a) Overview
+
+The LocalControl Descriptor contains the Mode Property, the ReserveGroup and ReserveValue Properties and properties of a termination (defined in packages) that are stream specific, and are of interest between the MG and the MGC. Values of properties may be specified as in clause 7.1.1.
+
+#### b) Mode Property (for directionality control)
+
+The allowed values for the Mode Property are "SendOnly", "RecvOnly", "SendRecv", "Inactive" and "LoopBack". "SendOnly", "RecvOnly" and "LoopBack" are with respect to the exterior of the context, so that, for example, a stream set to mode = "SendOnly" does not pass received media into the context. When a stream is set to "LoopBack" on a termination, media received (Local Descriptor) on the termination will be looped back to the sending side (Remote Descriptor) of the termination and no media is passed between that termination and other terminations in the context. The looped back media shall be sent according to the Remote Descriptor. The default value for the Mode Property is "Inactive". Signals and events are not affected by the Mode Property. Statistics may or may not be affected by the Mode property depending on the semantic of the statistic. For example: if the Mode was set to "SendOnly" and the Octet Received Statistic was set, then the statistic would not be affected. If the Octet Sent Statistic was set, then it would be affected by the mode. The LocalControl Mode Property takes precedence over any mode specified in the Local and Remote Descriptors. However, duplication and use of mode information in the SDP should be avoided. Due to the default of LocalControl Mode Property being "Inactive", if mode information was added to the Local and Remote Descriptor SDP and the LocalControl Mode was not explicitly sent, the effective mode would still be inactive.
+
+#### c) Reserve Properties (for resource handling control)
+
+The boolean-valued Reserve Properties, ReserveValue and ReserveGroup, of a termination indicate what the MG is expected to do when it receives a Local and/or Remote Descriptor.
+
+If the value of a Reserve Property is "True", the MG shall reserve resources for all alternatives specified in the Local and/or Remote Descriptors for which it currently has resources available. It shall respond with the alternatives for which it reserves resources. If it cannot support any of the alternatives, it shall respond with a reply to the MGC that contains empty Local and/or Remote Descriptors. If media begins to flow while more than a single alternative is reserved, media packets may be sent or received on any of the alternatives and must be processed, although only a single alternative may be active at any given time.
+
+If the value of a Reserve Property is False, the MG shall choose one of the alternatives specified in the Local Descriptor (if present) and one of the alternatives specified in the Remote Descriptor (if present). If the MG has not yet reserved resources to support the selected alternative, it shall reserve the resources. If, on the other hand, it already reserved resources for the termination addressed (because of a prior exchange with ReserveValue and/or ReserveGroup equal to "True"), it shall release any excess resources it reserved previously. Finally, the MG shall send a reply to the MGC containing the alternatives for the Local and/or Remote Descriptor that it selected. If the MG does not have sufficient resources to support any of the alternatives specified, it shall respond with Error Code 510 ("Insufficient resources").
+
+The default value of ReserveValue and ReserveGroup is "False". More information on the use of the two Reserve Properties is provided in clause 7.1.8.
+
+#### **d) Descriptor usage**
+
+A new setting of the LocalControl Descriptor completely replaces the previous setting of that descriptor in the MG. Thus, to retain information from the previous setting, the MGC must include that information in the new setting. If the MGC wishes to delete some information from the existing descriptor, it merely resends the descriptor (in a Modify Command) with the unwanted information stripped out.
+
+NOTE – The Mode Property is also known as "StreamMode" in the encoding definitions in Annexes A and B. These terms are interchangeable within ITU-T H.248.
+
+#### **7.1.7.1 LocalControl Properties**
+
+##### **7.1.7.1.1 StreamMode**
+
+| | |
+|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Property name: | StreamMode |
+| Description: | The value of this property indicates the current service state of the termination. |
+| Type: | Enumeration |
+| Possible values: | Inactive: The termination does not pass any media for the stream.
SendOnly: The termination passes media for the stream from the interior to the exterior of the context.
RecvOnly: The termination passes media for the stream from the exterior to the interior of the context.
SendRecv: The termination passes media for the stream both into and out of the context.
LoopBack: The termination loops received media for the stream back to the sender.
NOTE – The term "media" underlines that the StreamMode settings only affect the "media flow" component(s) of the ITU-T H.248 Stream, but not potential "control flow" component(s) (like, e.g., in case of an ITU-T H.248 Stream, carrying a RTP session with an RTP media flow and RTCP control component). It may be noted that the separation of media and control components is consistent with the SDP understanding of "media streams", see [b-IETF RFC 4566].
|
+| Default: | Inactive |
+| Defined in: | LocalControl |
+| Characteristics: | Read/Write |
+
+##### 7.1.7.1.2 ReserveGroup
+
+| | |
+|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Property name: | ReserveGroup |
+| Description: | Specifies whether the MG should reserve the resources to support a single media group or as many media groups as it can, as they are defined in the Local and Remote Descriptors. See clause 7.1.8.
NOTE – The term "media group" designates the content of the ASN.1 production "PropertyGroup" (see Annex A) in the binary encoding, or an individual SDP session description in the text encoding.
|
+| Type: | Boolean |
+| Possible values: | True: The MG is to reserve all possible media groups indicated in the Local and Remote Descriptors.
False: The MG is to reserve a single media group from each of the Local and the Remote Descriptors according to the policies described in clause 7.1.8.
|
+| Default: | False |
+| Defined in: | LocalControl |
+| Characteristics: | Read/Write |
+
+##### 7.1.7.1.3 ReserveValue
+
+| | |
+|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Property name: | ReserveValue |
+| Description: | Specifies whether the MG should reserve the resources to support a single set of property values (e.g., a single codec and its associated attributes) or as many such sets as it can, as they are defined in the Local and Remote Descriptors. See clause 7.1.8.
|
+| Type: | Boolean |
+| Possible values: | True: The MG is to reserve resources to serve as many as possible of the sets of property values indicated in the selected media group (if ReserveGroup is False) or in each media group (if ReserveGroup is True) in the Local and Remote Descriptors.
False: The MG is to reserve a single set of property values from those indicated in the selected media group (if ReserveGroup is False) or in each media group (if ReserveGroup is True) in the Local and Remote Descriptors.
|
+
+NOTE – A single set of property values may consist of a single media type (e.g., audio or video) related media format complemented by a list of supplementary media formats. Supplementary media formats are for example:
+
+- Comfort noise ([b-IETF RFC 3389]),
+- RTP Payload for DTMF digits, telephony tones and telephony signals ([b-IETF RFC 4733]),
+- Voiceband data (VBD) services (according to [b-ITU-T V.152]),
+- or other auxiliary media (e.g., inband signalling) associated to the main media flow.
+
+**Default:** False
+**Defined in:** LocalControl
+**Characteristics:** Read/Write
+
+### 7.1.8 Local and Remote Descriptors
+
+#### 7.1.8.1 Syntax for Local Descriptors and Remote Descriptors
+
+The MGC uses Local and Remote Descriptors to reserve and commit MG resources for media decoding and encoding for the given stream(s) and termination to which they apply. The MG includes these descriptors in its response to indicate what it is actually prepared to support. The MG shall include additional properties and their values in its response if these properties are mandatory yet not present in the requests made by the MGC (e.g., by specifying detailed video encoding parameters where the MGC only specified the payload type).
+
+To avoid ambiguity when requesting the MG to reserve and commit resources, the MGC should supply as much information as needed when using underspecification (i.e., CHOOSE) so that the MG can make an unambiguous selection. For example when using CHOOSE without specifying the required application type (e.g., "media name" in case of SDP encoding), further information may be needed (e.g., attribute lines in case of SDP encoding).
+
+Local refers to the media received by the MG and Remote refers to the media sent by the MG.
+
+##### 7.1.8.1.1 Specific syntax for ITU-T H.248 text encoding
+
+###### 7.1.8.1.1.1 Rules
+
+When text encoding the protocol, the descriptors consist of session descriptions as defined in SDP ([IETF RFC 2327]). In session descriptions sent from the MG to the MGC, the SDP must comply with [IETF RFC 2327]. In session descriptions sent from the MGC to the MG, the following exceptions to the syntax of [IETF RFC 2327] are allowed:
+
+- the "s = ", "t = " and "o = " lines are optional;
+- the use of CHOOSE is allowed in place of a single parameter value; and
+- the use of alternatives is allowed in place of a single parameter value.
+
+A Stream Descriptor specifies a single bidirectional media stream, a session description consists of a session-level section followed by a media-level section and so a single session description must not include more than one media description ("m = " line). A session description should not contain duplicate SDP lines on session-level and media-level. If duplication occurs the media level line takes precedence.
+
+A Stream Descriptor may contain additional session descriptions as alternatives. Each media stream for a termination must appear in distinct Stream Descriptors. When multiple session descriptions are provided in one descriptor, the "v = " lines are required as delimiters; otherwise they are optional in session descriptions sent to the MG. Implementations shall accept session descriptions that are fully conformant to [IETF RFC 2327] according to the above restrictions.
+
+If an MG does not understand the SDP provided, rather than ignoring that piece of SDP, an appropriate error response shall be provided.
+
+###### 7.1.8.1.1.2 Summary – ITU-T H.248 usage of SDP
+
+Figure 10 provides an overview of the structure of the ITU-T H.248 Media Descriptor. SDP is used, within the ITU-T H.248 Stream Descriptor, in the Local Descriptor (LD) and in the Remote Descriptor (RD). There are thus separate SDP specifications for ingress traffic (provided by the ITU-T H.248 LD) and egress traffic (provided by the ITU-T H.248 RD). The (SDP) media description within that SDP block is reflected in the LD and RD and determines the ITU-T H.248 media gateway behaviour.
+
+
+
+The diagram illustrates the structure of the ITU-T H.248 Media Descriptor (in ITU-T H.248 commands) and its relationship to SDP specifications.
+
+**ITU-T H.248 Media Descriptor (in ITU-T H.248 commands)**
+
+- Part 1: TerminationState descriptor
+- Part 2: Stream descriptor
+ - Part 2.1: LocalControl descriptor
+ - Part 2.2: Local Descriptor ("LD")
+ - SDP specification for *Ingress* Traffic
+ - ...
+ - Part 2.3: Remote Descriptor ("RD")
+ - SDP specification for *Egress* Traffic
+ - ...
+ - Part 2.4: Statistics Descriptor
+
+**Conceptual difference, but same objective!
+ITU-T H.248 "Media Descriptor" vs SDP "Media Description"**
+
+**SDP specification**
+
+- Part 1: Session description (restricted in ITU-T H.248!)
+ - v = ... [used as 'separator element']
+ - o = ...
+ - s = ...
+- Part 2: Time description (restricted in ITU-T H.248!)
+ - t = ...
+- Part 3: Media description
+ - c = ...
+ - m = ...
+ - b = ...
+ - k = \* ...
+ - a = ...
+
+Figure 10: Overview Structure of ITU-T H.248 Media Descriptor. The diagram shows the hierarchy of the Media Descriptor and its relationship to SDP specifications.
+
+NOTE – An ITU-T H.248 profile description (see sections 6.15 and 6.16 in Appendix III) may also provide information regarding the support of SDP lines.
+
+H.248.1 v3(13)\_F10
+
+**Figure 10 – Overview Structure of ITU-T H.248 Media Descriptor
+(ITU-T H.248 "Media Descriptor" vs SDP "Media Description")**
+
+##### 7.1.8.1.2 Specific syntax for ITU-T H.248 binary encoding
+
+When binary encoding the protocol, the descriptor consists of groups of properties (tag-value pairs) as specified in Annex C. Each such group may contain the parameters of a session description.
+
+#### 7.1.8.2 Semantics for Local Descriptor and Remote Descriptor
+
+Below, the semantics of the Local and Remote Descriptors are specified in detail. The specification consists of two parts. The first part specifies the interpretation of the contents of the descriptor. The second part specifies the actions the MG must take upon receiving the Local and Remote Descriptors. The actions to be taken by the MG depend on the values of the ReserveValue and ReserveGroup Properties of the LocalControl Descriptor.
+
+##### 7.1.8.2.1 Specification depth of Local Descriptor/Remote Descriptor content
+
+Either the Local or the Remote Descriptor or both may be:
+
+- unspecified (i.e., absent);
+- empty;
+- underspecified through use of CHOOSE in a property value;
+- fully specified; or
+- overspecified through presentation of multiple groups of properties and possibly multiple property values in one or more of these groups.
+
+##### 7.1.8.2.2 Interpretation of Local Descriptor/Remote Descriptor by the MG
+
+Where the descriptors have been passed from the MGC to the MG, they are interpreted according to the rules given in clause 7.1.1, with the following additional comments for clarification:
+
+- a) An unspecified Local or Remote Descriptor is considered to be a missing mandatory parameter. It requires the MG to use whatever was last specified for that descriptor. It is possible that there was no previously specified value, in which case the descriptor concerned is ignored in further processing of the command.
+- b) An empty Local (Remote) Descriptor in a message from the MGC signifies a request to release any resources reserved for the media flow received (sent).
+- c) If multiple groups of properties are present in a Local or Remote Descriptor or multiple values within a group, the order of preference is descending.
+- d) Underspecified or overspecified properties within a group of properties sent by the MGC are requests for the MG to choose one or more values which it can support for each of those properties. In case of an overspecified property, the list of values is in descending order of preference.
+
+##### 7.1.8.2.3 Resource reservation rules for ReserveValue and ReserveGroup properties
+
+Subject to the above rules, subsequent action depends on the values of the ReserveValue and ReserveGroup Properties in LocalControl.
+
+###### 7.1.8.2.3.1 ReserveValue = "False" AND ReserveGroup = "True"
+
+If ReserveGroup is "True", the MG reserves the resources required to support as many as possible of the requested property group alternatives that it can currently support.
+
+###### 7.1.8.2.3.2 ReserveValue = "True" AND ReserveGroup = "False"
+
+If ReserveValue is "True", the MG reserves the resources required to support as many as possible of the requested property value alternatives that it can currently support.
+
+NOTE – If a Local or Remote Descriptor contains multiple groups of properties, and ReserveGroup is "True", then the MG is requested to reserve resources so that it can decode or encode the media stream according to any of the alternatives. For instance, if the Local Descriptor contains two groups of properties, one specifying packetized ITU-T G.711 A-law audio and the other ITU-T G.723.1 audio, the MG reserves resources so that it can decode one audio stream encoded in either ITU-T G.711 A-law format or ITU-T G.723.1 format. The MG does not have to reserve resources to decode two audio streams
+
+simultaneously, one encoded in ITU-T G.711 A-law and one in ITU-T G.723.1. The intention for the use of ReserveValue is analogous.
+
+###### **7.1.8.2.3.3 ReserveValue = "True" OR ReserveGroup = "True"**
+
+If ReserveGroup is "True" or ReserveValue is "True", then the following rules apply:
+
+- If the MG has insufficient resources to support all alternatives requested by the MGC, and the MGC requested resources in both Local and Remote, the MG should reserve resources to support at least one alternative each within Local and Remote.
+- If the MG has insufficient resources to support at least one alternative within a Local (Remote) Descriptor received from the MGC, it shall return an empty Local (Remote) in response.
+- In its response to the MGC, when the MGC included Local and Remote Descriptors, the MG shall include Local and Remote Descriptors for all groups of properties and property values it reserved resources for. If the MG is incapable of supporting at least one of the alternatives within the Local (Remote) Descriptor received from the MGC, it shall return an empty Local (Remote) Descriptor.
+- If the Mode Property of the LocalControl Descriptor is "RecvOnly", "SendRecv", or "LoopBack", the MG must be prepared to receive media encoded according to any of the alternatives included in its response to the MGC.
+
+###### **7.1.8.2.3.4 ReserveValue = "False" AND ReserveGroup = "False"**
+
+If ReserveGroup is "False" and ReserveValue is "False", then the MG should apply the following rules to resolve Local and Remote to a single alternative each:
+
+- The MG chooses the first alternative in Local for which it is able to support at least one alternative in Remote.
+- If the MG is unable to support at least one Local and one Remote alternative, it returns Error Code 510 ("Insufficient resources").
+- The MG returns its selected alternative in each of Local and Remote.
+
+NOTE – The above rules allow the MG to prioritize the selection of the same codec in both the Local and Remote Descriptors; however, it also permits the MG to choose different codecs in each descriptor.
+
+A new setting of a Local or Remote Descriptor completely replaces the previous setting of that descriptor in the MG. Thus, to retain information from the previous setting, the MGC must include that information in the new setting. If the MGC wishes to delete some information from the existing descriptor, it merely resends the descriptor (in a Modify Command) with the unwanted information stripped out.
+
+### **7.1.9 Events Descriptor**
+
+#### **7.1.9.1 Introduction to events**
+
+The Events Descriptor parameter contains a RequestID and a list of events that the Media Gateway is requested to detect and report. The RequestID is used to correlate the request with the notifications that it may trigger. Requested events include, for example, fax tones, continuity test results, and on-hook and off-hook transitions. The RequestID is omitted if the Events Descriptor is empty (i.e., no events are specified).
+
+#### **7.1.9.2 Specification, parameterization and identification of events**
+
+Each event in the descriptor contains the event name, an optional StreamID, an optional KeepActive flag, an optional NotifyBehaviour flag, an optional ResetEventsDescriptor flag and optional parameters. The event name consists of a PackageID (where the event is defined) and an EventID. The ALL wildcard may be used for the EventID, indicating that all events from the specified
+
+package have to be detected. The default StreamID is 0, indicating that the event to be detected is not related to a particular media stream. Where an MGC has previously requested a Termination-level Event (i.e., default) and the MGC subsequently creates an additional stream, in order for the existing event/s to be applied to the new stream the MGC should also apply the event/s via an EventsDescriptor on the new stream.
+
+Events can have parameters. This allows a single event description to have some variation in meaning without creating large numbers of individual events. Further event parameters are defined in the package.
+
+If a DigitMap completion event is present or implied in the Events Descriptor, the EventDM Parameter is used to carry either the name or the value of the associated DigitMap. See clause 7.1.14 for further details.
+
+#### **7.1.9.3 Reporting of detected events**
+
+When an event is processed against the contents of an active Events Descriptor and found to be present in that descriptor ("recognized"), the default action of the MG is to send a Notify Command to the MGC. Notification may be deferred if the event is absorbed into the current dial string of an active DigitMap (see clause 7.1.14). The sending of a Notify Command may be influenced by the NotifyBehaviour flag. Moreover, event recognition may cause currently active signals to stop, or may cause the current Events and/or Signals Descriptor to be replaced, as described at the end of this subclause. Unless the Events Descriptor is replaced by another Events Descriptor, it remains active after an event has been recognized.
+
+#### **7.1.9.4 Buffering (and deferred reporting) of detected events**
+
+##### **7.1.9.4.1 Event buffer concept**
+
+If the value of the EventBufferControl Property equals "LockStep", following detection of such an event, normal handling of events is suspended. Any event which is subsequently detected and occurs in the EventBuffer Descriptor is added to the end of the EventBuffer (a FIFO queue), along with the time that it was detected. The MG shall wait for a new Events Descriptor to be loaded. A new Events Descriptor can be loaded either as the result of receiving a command with a new Events Descriptor, or by activating an embedded Events Descriptor.
+
+If EventBufferControl equals "Off", the MG continues processing based on the active Events Descriptor.
+
+In the case of an embedded Events Descriptor being activated, the MG continues event processing based on the newly activated Events Descriptor.
+
+NOTE – For purposes of EventBuffer handling, activation of an embedded Events Descriptor is equivalent to receipt of a new Events Descriptor.
+
+##### **7.1.9.4.2 Event buffer control**
+
+When the MG receives a command with a new Events Descriptor, one or more events may have been buffered in the EventBuffer in the MG. The value of EventBufferControl, then determines how the MG treats such buffered events.
+
+###### *Case 1*
+
+If EventBufferControl equals "LockStep" and the MG receives a new Events Descriptor, it will check the FIFO EventBuffer and take the following actions:
+
+- 1) If the EventBuffer is empty, the MG waits for detection of events based on the new Events Descriptor.
+
+- 2) If the EventBuffer is non-empty, the MG processes the FIFO queue starting with the first event:
+ - a) If the event in the queue is in the events listed in the new Events Descriptor, the MG acts on the event and removes the event from the EventBuffer. The time stamp of the Notify shall be the time the event was actually detected. The MG then waits for a new Events Descriptor. While waiting for a new Events Descriptor, any events detected that appear in the EventBuffer Descriptor will be placed in the EventBuffer. When a new Events Descriptor is received, the event processing will repeat from step 1).
+ - b) If the event is not in the new Events Descriptor, the MG shall discard the event and repeat from step 1).
+
+###### *Case 2*
+
+If EventBufferControl equals "Off" and the MG receives a new Events Descriptor, it processes new events with the new Events Descriptor.
+
+If the MG receives a command instructing it to set the value of EventBufferControl to "Off", all events in the EventBuffer shall be discarded.
+
+The MG may report several events in a single transaction as long as this does not unnecessarily delay the reporting of individual events.
+
+For procedures regarding transmitting the Notify Command, refer to the appropriate annex or ITU-T H.248.x Recommendation for specific transport considerations.
+
+The default value of EventBufferControl is "Off".
+
+NOTE – Since the EventBufferControl Property is in the TerminationState Descriptor, the MG might receive a command that changes the EventBufferControl Property and does not include an Events Descriptor.
+
+#### **7.1.9.5 Interaction between events and signals**
+
+Normally, recognition of an event shall cause any active signals to stop. When KeepActive is specified in the event, the MG shall not interrupt any signals active on the termination on which the event is detected.
+
+#### **7.1.9.6 Shaping the events reporting traffic**
+
+The NotifyBehaviour flag may be used to indicate that the Notify Command is:
+
+- sent immediately (NotifyImmediate: this is the default);
+- never sent (NeverNotify);
+- or regulated (i.e., sent or suppressed) according to the MGC load (RegulatedNotify).
+
+See clause E.15 for more details on the use of NotifyBehaviour. When used with DigitMaps the notify behaviour occurs when the active DigitMap is completed. The Regulated Notify may have an alternate regulated embedded Events or Signals Descriptor associated with it. If a notification is regulated (i.e., suppressed), then this alternate regulated embedded descriptor shall be activated. If the Notify is not regulated, then the original embedded descriptor is triggered. If NotifyImmediate or NeverNotify is set, then any original embedded descriptor is triggered on detection of the event.
+
+#### **7.1.9.7 Resetting events**
+
+The result of encountering the ResetEventsDescriptor flag set against an event depends on whether or not the Events Descriptor containing the event is an embedded Events Descriptor. In the case of an embedded Events Descriptor the ResetEventsDescriptor flag causes the Events Descriptor for that termination to be reset to its state prior to when the embedded descriptor was activated (i.e., the last Events Descriptor explicitly set by a Modify Command or, if there has been no Modify Command since the termination was last reset by being put into the NULL Context, the
+
+MG-provisioned Events Descriptor). In the case of a non-embedded Events Descriptor the ResetEventsDescriptor flag causes the active Events Descriptor for that termination to be reset by re-activating any DigitMap completion event(s) that have been matched and deactivated.
+
+The ResetEventsDescriptor flag shall be set on physical terminations only. The ResetEventsDescriptor flag shall be acted on when the termination is in the NULL Context. If the ResetEventsDescriptor flag is encountered when the termination is out of the NULL Context, then it shall have no effect.
+
+#### **7.1.9.8 Hierarchical events and signals: embedded Events/Signals Descriptors**
+
+An event can include an embedded Signals Descriptor and/or an embedded Events Descriptor which, if present, replaces the current Signals/Events Descriptor when the event is recognized. It is possible, for example, to specify that the dial-tone signal be generated when an off-hook event is recognized, or that the dial-tone signal be stopped when a digit is recognized. A media gateway controller shall not send Events Descriptors with an event both marked KeepActive and containing an embedded Signals Descriptor.
+
+Only one level of embedding is permitted. An embedded Events Descriptor shall not contain another embedded Events Descriptor; an embedded Events Descriptor may contain an embedded Signals Descriptor.
+
+#### **7.1.9.9 Consecutive Events Descriptors**
+
+An Events Descriptor received by a media gateway replaces any previous Events Descriptor. Event notification in process shall complete, and events detected after the command containing the new Events Descriptor executes, shall be processed according to the new Events Descriptor.
+
+An empty Events Descriptor disables all event recognition and reporting. An empty EventBuffer Descriptor clears the EventBuffer and disables all event accumulation in "LockStep" mode: the only events reported will be those occurring while an Events Descriptor is active. If an empty Events Descriptor is activated while the termination is operating in "LockStep" mode, the EventBuffer is immediately cleared.
+
+### **7.1.10 EventBuffer Descriptor**
+
+The EventBuffer Descriptor contains a list of events, with their parameters if any, that the MG is requested to detect and buffer when EventBufferControl equals LockStep (see clause 7.1.9).
+
+### **7.1.11 Signals Descriptor**
+
+#### **7.1.11.1 Introduction to Signals**
+
+Signals are MG-generated media such as tones and announcements as well as bearer-related signals such as hookswitch. More complex signals may include a sequence of such simple signals interspersed with and conditioned upon the receipt and analysis of media or bearer-related signals. Examples include echoing of received data as in the Basic Continuity Package (clause E.10). Signals may also request preparation of media content for future signals.
+
+#### **7.1.11.2 Overview of Signals Descriptor**
+
+A Signals Descriptor is a parameter that contains the set of signals that the Media Gateway is asked to apply to a termination. A Signals Descriptor contains a number of signals and/or sequential signal lists. A Signals Descriptor may contain zero signals and sequential signal lists. Support of sequential signal lists is optional.
+
+#### 7.1.11.3 Specification and identification of signals
+
+Signals are defined in packages. Signals shall be named with a PackageID (in which the signal is defined) and a SignalID. No wildcard shall be used in the SignalID. Signals that occur in a Signals Descriptor have an optional StreamID parameter (default is 0, to indicate that the signal is not related to a particular media stream), an optional signal type (see below), an optional duration and possibly parameters defined in the package that defines the signal. This allows a single signal to have some variation in meaning, obviating the need to create large numbers of individual signals.
+
+#### 7.1.11.4 Stream-level signals
+
+In case the MGC does not specify the StreamID parameter (or sets the StreamID parameter value explicitly to 0) the Signals Descriptor shall be applied to all streams (including any existing Streams and any new Stream defined by the command containing the Signals Descriptor).
+
+Therefore, where an MGC has previously requested that a Signals Descriptor be applied to all streams in a termination and the MGC subsequently creates an additional stream, in order for the existing signals to be applied to the new stream, the MGC shall also apply the Signals Descriptor to the new stream.
+
+#### 7.1.11.5 Indication of signal completion
+
+The optional NotifyCompletion Parameter allows an MGC to indicate that it wishes to be notified when the signal finishes playout. The possible cases are that the signal timed out (or otherwise completed on its own), that it was interrupted by an event, that it completed a cycle/iteration of the signal, that it was halted when a Signals Descriptor was replaced, or that it stopped or never started for other reasons. If the NotifyCompletion Parameter is not included in a Signals Descriptor, notification is generated only if the signal stopped or was never started for other reasons. For reporting to occur, the Signal Completion Event (see clause E.1.2) must be enabled in the currently active Events Descriptor. The optional parameter "RequestID" may be associated with a particular instance of a SignalID where multiple signals of the same SignalID are requested. This allows the MGC to distinguish between different Signal Completion ObservedEvents for that particular instance of a signal. The RequestID parameter shall not be included if the NotifyCompletion Parameter is not present.
+
+#### 7.1.11.6 Duration of Signals
+
+The duration is an integer value that is expressed in hundredths of a second.
+
+#### 7.1.11.7 Types of Signals
+
+There are three types of signals:
+
+- OnOff (OO): the signal lasts until it is turned off either with an empty Signals Descriptor or with a replacement Signals Descriptor that removes the signal from the descriptor;
+- TimeOut (TO): the signal lasts until it is turned off (as above) or a specific period of time elapses. The signal will remain in the Signals Descriptor until removed;
+- Brief (BR): the signal will stop on its own unless a new Signals Descriptor is applied that causes it to stop; no timeout value is needed. The signal shall remain in the Signals Descriptor unless removed. Due to the brief nature of the signals, even if the new Signals Descriptor is empty or excludes the signal, the signal is not guaranteed to be stopped (or changes done by start cannot be undone) as it may have already completed playout.
+
+If a signal of default type other than TO has its type overridden to type TO in the Signals Descriptor, the duration parameter must be present.
+
+If the signal type is specified in a Signals Descriptor, it overrides the default signal type (see clause 12.1.4). It is not possible to change the semantics of a signal by overriding the signal type. If duration is specified for an on/off signal, it shall be ignored.
+
+#### 7.1.11.8 List of signals
+
+A sequential signal list consists of a SignalListID and a sequence of signals to be played sequentially. Only the trailing element of the sequence of signals in a sequential signal list may be an on/off signal. The duration of a sequential signal list is the sum of the durations of the signals it contains plus the sum of the intersignal delay timings specified as parameters to the signals.
+
+If an intersignal delay is specified for a signal that is not in a sequential signal list or is the last element in a sequential signal list, it shall be ignored and the signal shall be determined to have completed at the termination of the signal, prior to the application of the intersignal delay timing. The duration of a signal in a SignalList with an intersignal delay includes the intersignal delay timing.
+
+Multiple signals and sequential signal lists in the same Signals Descriptor shall be played simultaneously.
+
+#### 7.1.11.9 Directionality of signals
+
+Signals have directionality, which is identified by the direction parameter in the base syntax or by package defined direction parameters. The direction parameter can be used to indicate the direction that the tone is to be sent. External indicates that the tone is sent from the MG to an external point. Internal indicates that the tone is played into the Context to the other terminations. Bothway indicates both internal and external behaviour.
+
+Signals are defined as proceeding from the termination towards the exterior of the context unless otherwise specified. If the signal direction is specified in a Signals Descriptor, it overrides the default signal direction. For those signals which have a direction parameter, the base protocol direction parameter takes precedence over any package-defined direction parameter when both are specified. If the MGC specifies a direction for a signal with which the MG cannot comply, the MG shall return Error Code 501 ("Not implemented"). When the same signal is applied to multiple terminations within one transaction, the MG should consider using the same resource to generate these signals.
+
+#### 7.1.11.10 Stop of signal generation
+
+Production of a signal on a termination is stopped by application of a new Signals Descriptor, or detection of an event on the termination (see clause 7.1.9).
+
+#### 7.1.11.11 Consecutive Signals Descriptor
+
+A new Signals Descriptor replaces any existing Signals Descriptor. Any already started and not yet stopped signals applied to the termination not in the replacement descriptor (which may be empty) shall be stopped irrespective of the signal type, and new signals are applied, except as follows. Signals present in the replacement descriptor and containing the KeepActive flag shall be continued if they are currently playing and have not already completed. If a replacement Signals Descriptor contains a signal that is not currently playing and contains the KeepActive flag, that signal shall be ignored. If the replacement descriptor contains a sequential signal list with the same identifier as the existing descriptor, then:
+
+- the signal type and sequence of signals in the sequential signal list in the replacement descriptor shall be ignored; and
+- the playing of the signals in the sequential signal list in the existing descriptor shall not be interrupted.
+
+### 7.1.12 Audit Descriptor
+
+The Audit Descriptor specifies what information is to be audited. The Audit Descriptor specifies the list of descriptors and/or individual properties to be returned. Audit may be used in any command to force the return of any descriptor containing the current values of its properties, events, signals and statistics even if that descriptor was not present in the command, or had no underspecified parameters. Possible items in the Audit Descriptor are:
+
+| | |
+|--------------------------------------|------------------|
+| Modem (Deprecated, see clause 7.1.2) | |
+| Mux | |
+| Events | |
+| Media | |
+| Signals | |
+| ObservedEvents | |
+| DigitMap | |
+| Statistics | |
+| Packages | |
+| EventBuffer | |
+| Individual Audit Items: | |
+| Media Properties | DigitMaps |
+| Events | Statistics |
+| EventBuffer | Packages |
+| Signals, SignalLists | ContextAttribute |
+
+The Audit Descriptor may be empty, in which case, no descriptors are returned. This is useful in the Subtract Command to inhibit return of statistics, especially when using wildcard.
+
+### 7.1.13 ServiceChange Descriptor
+
+The ServiceChange Descriptor contains the following parameters:
+
+- ServiceChangeMethod;
+- ServiceChangeReason;
+- ServiceChangeAddress;
+- ServiceChangeDelay;
+- ServiceChangeProfile;
+- ServiceChangeVersion;
+- ServiceChangeMGCID;
+- TimeStamp;
+- Extension;
+- ServiceChangeInfo;
+- ServiceChangeIncompleteFlag.
+
+See clause 7.2.8.
+
+### 7.1.14 DigitMap Descriptor
+
+#### 7.1.14.1 DigitMap definition, creation, modification and deletion
+
+A DigitMap is a dialling plan resident in the Media Gateway used for detecting and reporting digit events received on a termination. The DigitMap Descriptor contains a DigitMap name and the DigitMap to be assigned. A DigitMap may be preloaded into the MG by management action and referenced by name in an Events Descriptor, may be defined dynamically and subsequently referenced by name, or the actual digitmap itself may be specified in the Events Descriptor. It is permissible for a DigitMap completion event within an Events Descriptor to refer by name to a DigitMap which is defined by a DigitMap Descriptor within the same command, regardless of the transmitted order of the respective descriptors.
+
+DigitMaps defined in a DigitMap Descriptor can occur in any of the standard termination manipulation commands of the protocol. A DigitMap, once defined, can be used on all terminations specified by the (possibly wildcarded) TerminationID in such a command. DigitMaps defined on the Root Termination are global and can be used on every termination in the MG, provided that a DigitMap with the same name has not been defined on the given termination. When a DigitMap is defined dynamically in a DigitMap Descriptor:
+
+- A new DigitMap is created by specifying a name that is not yet defined. The value shall be present.
+- A DigitMap value is updated by supplying a new value for a name that is already defined. Terminations presently using the DigitMap shall continue to use the old definition; subsequent Events Descriptors specifying the name, including any Events Descriptor in the command containing the DigitMap Descriptor, shall use the new one.
+- A DigitMap is deleted by supplying an empty value for a name that is already defined. Terminations presently using the DigitMap shall continue to use the old definition.
+
+#### 7.1.14.2 DigitMap timers
+
+The collection of digits according to a DigitMap may be protected by three timers, viz. a start timer (T), short timer (S) and long timer (L).
+
+- 1) The start timer (T) is used prior to any digits being available for processing against the DigitMap. If the start timer is overridden with the value set to zero ( $T = 0$ ), then the start timer shall be disabled. This implies that the MG will wait indefinitely for digits.
+- 2) If the Media Gateway can determine that at least one more digit is needed for a digit string to match any of the allowed patterns in the DigitMap, then the interdigit timer value should be set to a long (L) duration (e.g., 16 seconds).
+- 3) If the digit string has matched one of the patterns in a DigitMap, but it is possible that more digits could be received which would cause a match with a different pattern, then instead of reporting the match immediately, the MG must apply the short timer (S) and wait for more digits.
+
+The timers are configurable parameters to a DigitMap. Default values of these timers should be provisioned on the MG, but can be overridden by values specified within the DigitMap.
+
+#### 7.1.14.3 DigitMap syntax
+
+The formal syntax of the DigitMap is described by the DigitMap rule in the formal syntax description of the protocol (see Annexes A and B). A DigitMap, according to this syntax, is defined either by a string or by a list of strings. Each string in the list is an alternative event sequence, specified either as a sequence of DigitMap symbols or as a regular expression of DigitMap symbols. These DigitMap symbols, the digits "0" through "9" and letters "A" through a maximum value depending on the signalling system concerned, but never exceeding "K", correspond to specified events within a package which has been designated in the Events Descriptor on the termination to
+
+which the DigitMap is being applied. (The mapping between events and DigitMap symbols is defined in the documentation for packages associated with channel-associated signalling systems such as DTMF, MF, or R2. Digits "0" through "9" must be mapped to the corresponding digit events within the signalling system concerned. Letters should be allocated in logical fashion, facilitating the use of range notation for alternative events.)
+
+The letter "x" is used as a wildcard, designating any event corresponding to symbols in the range "0"- "9". The string may also contain explicit ranges and, more generally, explicit sets of symbols, designating alternative events any one of which satisfies that position of the DigitMap. Finally, the dot symbol "." stands for zero or more repetitions of the event selector (event, range of events, set of alternative events, or wildcard) that precedes it. As a consequence of the third timing rule above, inter-event timing while matching a terminal dot symbol uses the short timer by default.
+
+In addition to these event symbols, the string may contain "S" and "L" inter-event timing specifiers and the "Z" duration modifier. "S" and "L" respectively indicate that the MG should use the short (S) timer or the long (L) timer for subsequent events, overriding the timing rules described above. If an explicit timing specifier is in effect in one alternative event sequence, but none is given in any other candidate alternative, the timer value set by the explicit timing specifier must be used. If all sequences with explicit timing controls are dropped from the candidate set, timing reverts to the default rules given above. If used inside a range notation, the S and L specifiers shall be ignored. Finally, if conflicting timing specifiers are in effect in different alternative sequences, the long timer shall be used.
+
+A "Z" designates a long duration event: placed in front of the symbol(s) designating the event(s) which satisfy a given digit position, it indicates that that position is satisfied only if the duration of the event exceeds the long-duration threshold. The value of this threshold is assumed to be provisioned in the MG, but, like the T, L, and S timers, can be overridden by specification within the DigitMap. If the Z specifier is not followed by a digit (0-9 or A-K), then the MG shall reject the digitmap as invalid procedure. When used in a range notation, the Z specifier applies solely to the immediately following digit. When used immediately prior to a range, the Z modifier applies to all digits in the range (thereby requiring a match in the range to be long duration).
+
+#### 7.1.14.4 DigitMap completion event
+
+A DigitMap is active while the Events Descriptor which invoked it is active and it has not completed. A DigitMap completes when:
+
+- a timer has expired; or
+- an alternative event sequence has been matched and no other alternative event sequence in the DigitMap could be matched through detection of an additional event (unambiguous match); or
+- an event has been detected such that a match to a complete alternative event sequence of the DigitMap will be impossible no matter what additional events are received.
+
+Upon completion, a DigitMap completion event, as defined in the package providing the events being mapped into the DigitMap, shall be generated. At that point, the DigitMap is deactivated. Subsequent events in the package are processed as follows:
+
+- If EventBufferControl is "LockStep", subsequent digit events are processed in the same way as any other events;
+- If EventBufferControl is "OFF", if the active Events Descriptor did not change, and if individual digit events are not enabled within that descriptor, then digit buffering will be initiated. Buffering will continue until the buffering time specified in the original DigitMap completion event has expired or until the active Events Descriptor is replaced.
+
+The digit buffer shall take the logical form of a dial string which includes the digit characters as represented in the DigitMap, possibly preceded by 'Z'. The threshold value of tone duration used to identify long events shall be the same as that used with the most recently completed DigitMap.
+
+Buffering time defaults to zero (no buffering) unless explicitly set otherwise within the DigitMap completion event. If buffering ceases due to buffering timer expiry, the contents of the digit buffer are discarded.
+
+If buffering was stopped by a new Events Descriptor and that Events Descriptor contains a new DigitMap completion event from the same package as the previous one, any buffered digits are processed against the DigitMap as described below. Buffered digits not consumed by the new DigitMap are handled as if they had been observed after that map completed.
+
+If, instead, the new Events Descriptor enables the reporting of individual digit events, the entire set of buffered digits shall immediately be processed, the applicable events reported, and the buffer cleared.
+
+Finally, if the new Events Descriptor enables neither a DigitMap completion event nor the reporting of individual digit events from the package concerned, the buffer contents are discarded and buffering is terminated.
+
+#### 7.1.14.5 DigitMap procedures
+
+Pending completion, successive events shall be processed according to the following rules:
+
+- 1) The "current dial string", an internal variable, is initially empty. The set of candidate alternative event sequences includes all of the alternatives specified in the DigitMap.
+- 2) At each step, if buffered digits are available, the oldest one (with possible accompanying long duration (Z) qualifier) is removed from the buffer and processing moves to the next step as if the digit event had just been observed. Otherwise a timer is set to wait for the next event, based either on the default timing rules given above, or on explicit timing specified in one or more alternative event sequences. If the timer expires and a member of the candidate set of alternatives is fully satisfied, a timeout completion with full match is reported. If the timer expires and part or none of any candidate alternative is satisfied, a timeout completion with partial match is reported. In either case, if the DigitMap completion event allows for detailed timeout reporting, the reported dial string will end with 'L', 'S', or 'T' as appropriate.
+- 3) If an event is detected before the timer expires, it is mapped to a digit string symbol and provisionally added to the end of the current dial string. The duration of the event (long or not long) is noted if, and only if, this is relevant in the current symbol position (because at least one of the candidate alternative event sequences includes the "Z" modifier at this position in the sequence).
+- 4) The current dial string is compared to the candidate alternative event sequences. If, and only if, a sequence expecting a long-duration event at this position is matched (i.e., the event had long duration and met the specification for this position), then any alternative event sequences not specifying a long duration event at this position are discarded, and the current dial string is modified by inserting a "Z" in front of the symbol representing the latest event. Any sequence expecting a long-duration event at this position, but not matching the observed event, is discarded from the candidate set. If alternative event sequences not specifying a long duration event in the given position remain in the candidate set after application of the above rules, the observed event duration is treated as irrelevant in assessing matches to them.
+
+- 5) If exactly one candidate remains and it has been fully matched, a completion event is generated indicating an unambiguous match. If no candidates remain, the latest event is removed from the current dial string and a completion event is generated indicating full match if one of the candidates from the previous step was fully satisfied before the latest event was detected or partial match otherwise. The event removed from the current dial string will then be reported as a separate event, buffered, or discarded according to the rules described in the previous clause. This statement is qualified as follows:
+ - a) The DigitMap completion event may specify that the removed event be reported as a parameter of the completion event. This occurs independently of subsequent processing of the digit event.
+ - b) The DigitMap completion event may specify that the extra digit should be discarded. In this case, it is discarded immediately. Any buffering or other processing applies only to subsequent events.
+- 6) If no completion event is reported out of step 5), processing returns to step 2).
+
+#### 7.1.14.6 DigitMap activation
+
+A DigitMap is activated whenever a new Events Descriptor is applied to the termination or embedded Events Descriptor is activated, and that Events Descriptor contains a DigitMap completion event. The DigitMap completion event contains an EventDM field in the requested actions field. Each new activation of a DigitMap begins at step 1 of the above procedure, with a clear current dial string. Any previous contents of the current dial string from an earlier activation are lost.
+
+A DigitMap completion event that does not contain an EventDM field in its requested actions field is considered an error. Upon receipt of such an event in an Events Descriptor, an MG shall respond with an error response, including Error Code 457 ("Missing parameter in signal or event").
+
+#### 7.1.14.7 Interaction of DigitMap and event processing
+
+While the DigitMap is activated, detection is enabled for all events defined in the package containing the specified DigitMap completion event. Normal event behaviour (e.g., stopping of signals unless the digit completion event has the KeepActive flag enabled) continues to apply for each such event detected, except that:
+
+- the events in the package containing the specified DigitMap completion event other than the completion event itself are not individually notified and have no side-effects unless separately enabled; and
+- an event that triggers a partial match completion event is not recognized and therefore has no side effects until reprocessed following the recognition of the DigitMap completion event. Similarly buffered digit events are not recognized and have no side effects until processed.
+
+#### 7.1.14.8 Wildcards
+
+Note that if a package contains a DigitMap completion event, then an event specification consisting of the PackageID with a wildcarded EventID will activate a DigitMap; to that end, the event specification must include an EventDM field according to clause 7.1.14.6. If the package also contains the digit events themselves, this form of event specification will cause the individual events to be reported to the MGC as they are detected.
+
+#### 7.1.14.9 Example
+
+As an example, consider the following dial plan:
+
+| | |
+|------------------------|------------------------------------------|
+| 0 | Local operator |
+| 00 | Long-distance operator |
+| xxxx | Local extension number (starts with 1-7) |
+| 8xxxxxxx | Local number |
+| #xxxxxxx | Off-site extension |
+| *xx | Star services |
+| 91xxxxxxxxxxx | Long-distance number |
+| 9011 + up to 15 digits | International number |
+
+If the DTMF detection package described in clause E.6 is used to collect the dialled digits, then the dialling plan shown above results in the following DigitMap:
+
+(0 | 00 | [1-7] xxx | 8xxxxxxx | Fxxxxxxx | Exx | 91xxxxxxxxxxx | 9011x.)
+
+### 7.1.15 Statistics Descriptor
+
+The Statistics Descriptor provides information describing the status and usage of a termination during its existence (ephemeral) or while it is outside the NULL context (physical). Statistics may be at a termination level or associated with a particular Stream Descriptor. By default, statistics occur at a termination level. If a stream is unable to support a statistic, Error Code 460 ("Unable to set statistic on stream") shall be returned. There is a set of standard statistics kept for each termination where appropriate (number of octets sent and received for example). By default, the particular statistics that are reported for a given termination are determined by the Packages realized by the termination. It is also possible, using the descriptor, to indicate what statistics are to be collected. The setting of a Statistics Descriptor overrides a previously set Statistics Descriptor. Thus, to maintain already set statistics, these shall be included in the new Statistics Descriptor and the statistic values shall not be reset. Statistics that have been removed from a Statistics Descriptor shall maintain their values until the termination is subtracted. However, if the particular statistic is reactivated by a subsequent Statistics Descriptor, the value shall be reset. An MGC may reactivate all statistics on a termination/stream by issuing a Statistics Descriptor with a single statistic with the PackageID and StatisticID wildcarded with "ALL". To reactivate all statistics in a given package on a termination/stream, a Statistics Descriptor with a single statistic with the PackageID specified and the StatisticID wildcarded with "ALL" is issued. The receipt of an empty descriptor means that no statistics shall be collected for the specified termination.
+
+By default, unless an empty Statistics Descriptor had earlier been used to indicate that no statistics are to be collected, termination and stream level statistics are reported when the termination ceases to exist or is returned to the NULL context due to a Subtract command. This default behaviour can also be overridden by including an empty Audit Descriptor in the Subtract Command. If a stream is removed according to clause 7.1.6, by default stream level statistics are not reported. An audit of the Statistics Descriptor in the stream must be performed before the stream is removed to collect the statistics. Statistics may also be returned from the AuditValue Command, or any Add/Move/Modify Command using the Audit Descriptor.
+
+Statistics are cumulative; reporting statistics does not reset them. The value of a Statistic at a termination level is the result of a meaningful superior function (like, for instance, sum or average) of the values as if it had been placed on all the streams in the termination. Such a superior function is dependent on the particular statistic type. Unless specified otherwise in the package that defines a particular statistic, the default behaviour is a sum of the values. Statistics are reset when a termination ceases to exist or is returned to the NULL Context due to a Subtract Command.
+
+For terminations not in the NULL Context, the MGC may send a Modify Command with a Statistics Descriptor to disable one or more statistics followed by a second Modify Command including a Statistics Descriptor to re-enable those statistics. As explained above, this has the effect of resetting the included statistics. By bundling the two commands together into the same action or transaction, the MGC can minimize the time during which statistics are not collected by the MG. An audit of the Statistics Descriptor via the Audit Descriptor in the Modify Command or a separate AuditValue Command must be performed before the included statistics are reactivated to collect their values.
+
+### 7.1.16 Packages Descriptor
+
+Used only with the AuditValue command, the Packages Descriptor returns a list of packages realized by the termination.
+
+### 7.1.17 ObservedEvents Descriptor
+
+ObservedEvents is supplied with the Notify Command to inform the MGC of which event(s) were detected. Used with the AuditValue Command, the ObservedEvents Descriptor returns events in the event buffer which have not been notified. ObservedEvents contains the RequestID of the Events Descriptor that triggered the notification, the event(s) detected, optionally the detection time(s) and any parameters of the observed event. Detection times are reported with a precision of hundredths of a second.
+
+The ObservedEvents Descriptor may contain the StreamID associated with the detected Event. If the MGC has set the Event on a termination level, the MG may or may not report the StreamID depending on the semantic of the event. If the MGC has set the Event on a particular stream then this StreamID shall be returned.
+
+### 7.1.18 Topology Descriptor
+
+#### 7.1.18.1 General
+
+A Topology Descriptor is used to specify flow directions between terminations in a context. Contrary to the descriptors in previous clauses, the Topology Descriptor applies to a context instead of a termination. The default topology of a context is that each termination's transmission is received by all other terminations. When a Termination is added to a Context, its default Topology is "bothway" to the other Terminations in the Context. If another Topology is required this shall be indicated in any updated Topology Descriptor. The Topology Descriptor is optional to implement. An MG that does not support Topology Descriptors, but receives a command containing one, returns Error Code 444 ("Unsupported or unknown descriptor"), and optionally includes a string containing the name of the unsupported descriptor ("Topology") in the error text in the Error Descriptor.
+
+The Topology Descriptor occurs before the commands in an action. It is possible to have an action containing only a Topology Descriptor, provided that the context to which the action applies already exists.
+
+#### 7.1.18.2 Structure (syntax) of the Topology Descriptor
+
+A Topology Descriptor consists of a sequence of associated terminations of the form (*T1*, *T2*, *association*[,*StreamID*]). *T1* and *T2* specify terminations within the context, possibly using the ALL or CHOOSE wildcard. If the optional StreamID field is used, the association applies only to the particular stream between *T1* and *T2* labelled by the StreamID. If the StreamID field is omitted, the topology applies to all streams in the termination.
+
+#### 7.1.18.3 Descriptor element "association"
+
+The *association* specifies how media flows between these two terminations as follows:
+
+- (*T1*, *T2*, Isolate) means that the terminations matching *T2* do not receive media from the terminations matching *T1*, nor vice versa.
+- (*T1*, *T2*, Oneway) means that the terminations that match *T2* receive media from the terminations matching *T1*, but not vice versa. In this case, use of the ALL wildcard such that there are terminations that match either *T1* or *T2* *but not both* is allowed.
+- (*T1*, *T2*, OnewayExternal) means the terminations that match *T2*, receive media sent externally by terminations matching *T1*, but not vice versa. In this case, use of the ALL wildcard for *T1* is not allowed.
+- (*T1*, *T2*, OnewayBoth) means the terminations that match *T2*, receive media sent and received externally by terminations matching *T1*, but not vice versa. In this case, use of the ALL wildcard for *T1* and/or *T2* is not allowed.
+- (*T1*, *T2*, Bothway) means that the terminations matching *T2* receive media from the terminations matching *T1*, and vice versa. In this case it is allowed to use wildcards such that there are terminations that match both *T1* and *T2*. However, if there is a termination that matches both, no loopback is introduced.
+
+#### 7.1.18.4 Wildcarding of TerminationID elements
+
+##### 7.1.18.4.1 Wildcard CHOOSE
+
+CHOOSE wildcards may be used in *T1* and *T2* as well, under the following restrictions:
+
+- the action (see clause 8) of which the Topology Descriptor is part contains an Add Command in which a CHOOSE wildcard is used;
+- if a CHOOSE wildcard occurs in *T1* or *T2*, then a partial name (underspecified Termination ID) shall not be specified.
+
+The CHOOSE wildcard in a Topology Descriptor matches the TerminationID that the MG assigns in the first Add Command that uses a CHOOSE wildcard in the same action. An existing termination that matches *T1* or *T2* in the context to which a termination is added is connected to the newly added termination as specified by the Topology Descriptor. If a termination is not mentioned within a Topology Descriptor, any topology associated with it remains unchanged. If, however, a new termination is added into a context, its association with the other terminations within the context defaults to Bothway, unless a Topology Descriptor is given to change this (e.g., if *T3* is added to a context with *T1* and *T2* with topology (*T3*, *T1*, Oneway) it will be connected bothway to *T2*).
+
+##### 7.1.18.4.2 Wildcard ALL
+
+ALL wildcard may be used in *T1* or *T2* as well, under the following restrictions:
+
+- "all" excludes the other termination in the Topology Descriptor (this semantic is in line with clause 6.2.2).
+
+ALL wildcard may not be used for both *T1* and *T2* in a single descriptor with a one-way association.
+
+##### 7.1.18.4.3 Combination of Wildcard ALL and CHOOSE in a single Topology Descriptor
+
+ALL wildcard may be used in *T1* and CHOOSE wildcard may be used in *T2*, or vice versa. The chosen termination is then excluded from the "all" set of the remaining terminations.
+
+#### 7.1.18.5 Topologies on Stream-level
+
+If the topology is applied to one particular stream (*T1*, *T2*, association, StreamID), the topology of other streams between the terminations does not change.
+
+A Topology Descriptor shall not include a combination of associations between two terminations (*Ti*, *Tj*) with and without the optional StreamID field, to avoid undefined behaviour. For example (*T1*, *T2*, Bothway) and (*T1*, *T2*, Isolate, S1) shall not appear in the same descriptor. Upon receipt of such a Topology Descriptor, an MG shall respond with an error response, including Error Code 421 ("Unknown action or illegal combination of actions").
+
+#### 7.1.18.6 Association types
+
+##### 7.1.18.6.1 "Oneway"
+
+A oneway connection must be implemented in such a way that the other terminations in the context are not aware of the change in topology.
+
+#### 7.1.18.7 Example topologies
+
+Figure 11, the table following it and Figure 12 following it show some examples of the effect of including Topology Descriptors in actions. In these examples it is assumed that the Topology Descriptors are applied in sequence. Figures 13 and 14 are stand-alone examples showing the specific effects of the OnewayExternal and OnewayBoth topology settings.
+
+
+
+Figure 11: Example topologies. Six diagrams labeled Context 1, showing different network topologies between three nodes T1, T2, and T3. 1) No topology descriptors: all nodes are interconnected with bidirectional arrows. 2) T1, T2 isolate: T1 and T2 are isolated from each other, but both have bidirectional connections to T3. 3) T3, T2 oneway: T3 has a bidirectional connection to T1, and a unidirectional arrow points from T3 to T2. 4) T2, T3 oneway: T2 has a unidirectional arrow pointing to T3, and T3 has a bidirectional connection to T1. 5) T2, T3 bothway: T2 and T3 have bidirectional connections to each other, and T3 has a bidirectional connection to T1. 6) T1, T2 bothway: T1 and T2 have bidirectional connections to each other, and T2 has a bidirectional connection to T3.
+
+NOTE – The direction of the arrow indicates the direction of flow.
+
+H.248.1 v3(13)\_F11
+
+**Figure 11 – Example topologies**
+
+| Topology | Description |
+|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 1 | No Topology Descriptors
When no Topology Descriptors are included, all terminations have a bothway connection to all other terminations. |
+| 2 | T1 , T2 Isolate
Removes the connection between T1 and T2 . T3 has a bothway connection with both T1 and T2 . T1 and T2 have bothway connections to T3 . |
+| 3 | T3 , T2 Oneway
An oneway connection from T3 to T2 (i.e., T2 receives media flow from T3 ). A bothway connection between T1 and T3 . |
+
+| Topology | Description |
+|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 4 | T2, T3 Oneway
An oneway connection between T2 to T3 . T1 and T3 remain bothway connected |
+| 5 | T2, T3 Bothway
T2 is bothway connected to T3 . This results in the same as Topology 2. |
+| 6 | T1, T2 Bothway ( T2, T3 Bothway and T1, T3 Bothway may be implied or explicit). All terminations have a bothway connection to all other terminations. |
+
+
+
+Figure 12: Example topology at stream level. Three sub-diagrams (a, b, c) showing three terminations T1, T2, and T3. (a) No topology descriptors: T1 and T3 are connected by a double-headed arrow labeled '1' and '2'. T2 is connected to T1 and T3 by single-headed arrows pointing to T2. (b) T1, T3, oneway, 2: T1 and T3 are connected by a double-headed arrow labeled '1' and '2'. T2 is connected to T1 and T3 by single-headed arrows pointing to T2. (c) T3, T1, oneway, 1: T1 and T3 are connected by a double-headed arrow labeled '1' and '2'. T2 is connected to T1 and T3 by single-headed arrows pointing to T2. The diagrams are labeled H.248.1 v3(13)\_F12.
+
+Figure 12 – Example topology at stream level
+
+
+
+Topology
+*T1, T2, bothway*
+*T1, T3, oneway*
+*T1, T4, onewayexternal*
+
+Figure 13: OnewayExternal contrasted with Oneway topology. The diagram shows a termination T1 on the left connected to a box containing T2, T3, and T4. T1 has a 'Oneway To T3' connection to T3 and a 'Onewayexternal To T4' connection to T4. T2 is connected to T1 by a double-headed arrow. T3 and T4 are connected to T1 by single-headed arrows pointing to T1. The diagram is labeled H.248.1 v3(13)\_F13.
+
+Figure 13 – OnewayExternal contrasted with Oneway topology
+
+
+
+Topology
+*T1, T2, bothway*
+*T1, T3, onewayboth*
+
+Figure 14: Operation of OnewayBoth topology. The diagram shows a termination T1 on the left connected to a box containing T2 and T3. T1 has a 'Onewayboth To T3' connection to T3, represented by a circle with a '+' sign. T2 is connected to T1 by a double-headed arrow. T3 is connected to T1 by a single-headed arrow pointing to T1. The diagram is labeled H.248.1 v3(13)\_F14.
+
+Figure 14 – Operation of OnewayBoth topology
+
+### 7.1.19 ContextAttribute Descriptor
+
+A ContextAttribute Descriptor is used to specify properties (defined in packages) that apply to the context as a whole and is applied on a context rather than a termination. Termination properties are not valid in the ContextAttribute Descriptor. The ContextAttribute Descriptor occurs before the commands in an action. It is possible to have an action containing only a ContextAttribute
+
+Descriptor, provided that the indicated context already exists. Values of context properties may be underspecified as in clause 7.1.1.
+
+A new setting of the ContextAttribute Descriptor completely replaces the previous setting of that descriptor in the MG. Thus to retain information from the previous setting the MGC must include that information in the new setting. If the MGC wishes to delete some information from the existing descriptor, it merely resends the descriptor with the unwanted information stripped out. The inclusion of a ContextAudit or a ContextAttribute Descriptor in an action that contains only an AuditValue or AuditCapability Command does not constitute a new setting.
+
+The ContextIDList parameter is used to provide a compact list of ContextIDs. To request the use of the ContextIDList parameter in a reply, the ContextIDList parameter should be included in the corresponding request.
+
+### 7.1.20 Error Descriptor
+
+If a responder encounters an error when processing a transaction request, it must include an Error Descriptor in its response. A Notify request may contain an Error Descriptor as well.
+
+An Error Descriptor consists of an IANA-registered error code, optionally accompanied by an error text. [ITU-T H.248.8] contains a list of valid error codes and error descriptions.
+
+An Error Descriptor shall be specified at the "deepest level" that is semantically appropriate for the error being described and that is possible given any parsing problems with the original request. An Error Descriptor may refer to a syntactic construct other than where it appears. For example, Error Descriptor 422 ("Syntax Error in Action"), could appear within a command even though it refers to the larger construct, the action, and not the particular command within which it appears.
+
+If the error being described can be determined to be at a descriptor level, the Error Descriptor may be returned at the descriptor level. If this is the case, the Error Descriptor should be returned where the descriptor that generated an error would have been inserted in the response.
+
+## 7.2 Command application programming interface
+
+Following is an Application Programming Interface (API) describing the commands of the protocol. This API is shown to illustrate the commands and their parameters and is not intended to specify implementation (e.g., via use of blocking function calls). It describes the input parameters in parentheses after the command name and the return values in front of the command. This is only for descriptive purposes; the actual command syntax and encoding are specified in later subclauses. The order of parameters to commands is not fixed. Descriptors may appear as parameters to commands in any order. The descriptors shall be processed in the order in which they appear.
+
+Any reply to a command may contain an Error Descriptor; the API does not specifically show this.
+
+All parameters enclosed by square brackets ([ . . ]) are considered optional.
+
+### 7.2.1 Add
+
+The Add Command adds a termination to a context.
+
+TerminationIDList
+[,MediaDescriptor]
+[,ModemDescriptor] (\*)
+[,MuxDescriptor]
+[,EventsDescriptor]
+[,SignalsDescriptor]
+[,DigitMapDescriptor]
+[,ObservedEventsDescriptor]
+
+```
+
+[,EventBufferDescriptor]
+[,StatisticsDescriptor]
+[,PackagesDescriptor]
+Add( TerminationIDList
+ [, MediaDescriptor]
+ [, ModemDescriptor] (*)
+ [, MuxDescriptor]
+ [, EventsDescriptor]
+ [, EventBufferDescriptor]
+ [, SignalsDescriptor]
+ [, DigitMapDescriptor]
+ [, AuditDescriptor]
+ [, StatisticsDescriptor]
+)
+
+```
+
+(\*) Modem Descriptor has been deprecated in Recommendation ITU-T H.248.1 version 2 (05/2002).
+
+The TerminationIDList specifies one or more terminations to be added to the context. The termination(s) is either created, or taken from the NULL Context. If a CHOOSE wildcard is used in the TerminationID, the selected TerminationID will be returned. ALL wildcards may be used in an Add, but such usage would be unusual. If the wildcard matches more than one TerminationID, all possible matches are attempted, with results reported for each one. The order of attempts when multiple TerminationIDs match is not specified.
+
+The optional Media Descriptor describes all media streams.
+
+The optional Mux Descriptor specifies a multiplexer if applicable. For convenience, if a Multiplex Descriptor is present in an Add Command and lists any terminations that are not currently in the context, such terminations are added to the context as if individual Add Commands listing the terminations were invoked. If an error occurs on such an implied Add, error 471 ("Implied Add for Multiplex failure") shall be returned and further processing of the command shall cease.
+
+The Events Descriptor parameter is optional. If present, it provides the list of events that should be detected on the termination.
+
+The EventBuffer Descriptor parameter is optional. If present, it provides the list of events that the MG is requested to detect and buffer when EventBufferControl equals LockStep.
+
+The Signals Descriptor parameter is optional. If present, it provides the list of signals that should be applied to the termination.
+
+The DigitMap Descriptor parameter is optional. If present, it defines a DigitMap definition that may be used in an Events Descriptor.
+
+The Audit Descriptor is optional. If present, the command will return the values of any descriptors/properties/signals/events/statistics specified in the Audit Descriptor.
+
+The Statistics Descriptor is optional. If present, it provides the statistics which the MGC wishes to be collected for the termination or stream. Each time the statistic is set, the statistic value is reset.
+
+All descriptors that can be modified could be returned by MG if a parameter was underspecified or overspecified. The ObservedEvents, Statistics, Packages and EventBuffer Descriptors are returned only if requested in the Audit Descriptor.
+
+Add shall not be used on a termination with a ServiceStates of "OutOfService".
+
+### 7.2.2 Modify
+
+The Modify Command modifies the properties of a termination.
+
+TerminationIDList
+
+[,MediaDescriptor]
+
+[,ModemDescriptor] (\*)
+
+[,MuxDescriptor]
+
+[,EventsDescriptor]
+
+[,SignalsDescriptor]
+
+[,DigitMapDescriptor]
+
+[,ObservedEventsDescriptor]
+
+[,EventBufferDescriptor]
+
+[,StatisticsDescriptor]
+
+[,PackagesDescriptor]
+
+Modify( TerminationIDList
+
+[, MediaDescriptor]
+
+[, ModemDescriptor] (\*)
+
+[, MuxDescriptor]
+
+[, EventsDescriptor]
+
+[, EventBufferDescriptor]
+
+[, SignalsDescriptor]
+
+[, DigitMapDescriptor]
+
+[, AuditDescriptor]
+
+[, StatisticsDescriptor]
+
+)
+
+(\*) Modem Descriptor has been deprecated in Recommendation ITU-T H.248.1 version 2 (05/2002).
+
+The TerminationIDList specifies the terminations to be modified. The TerminationID may be specific if a single termination in the context is to be modified. Use of wildcards in the TerminationID may be appropriate for some operations. If the wildcard matches more than one TerminationID, all possible matches are attempted, with results reported for each one. The order of attempts when multiple TerminationIDs match is not specified. The CHOOSE TerminationID is an error, as the Modify command may only be used on existing terminations.
+
+For convenience, if a Multiplex Descriptor is present in a Modify command, then:
+
+- if the new Multiplex Descriptor lists any terminations that are not currently in the context, such terminations are added to the context as if individual Add Commands listing the terminations were invoked;
+- if any terminations listed previously in the Multiplex Descriptor are no longer present in the new Multiplex Descriptor, they are subtracted from the context as if individual Subtract commands listing the terminations were invoked.
+
+The remaining parameters to Modify are the same as those to Add. Possible return values are the same as those to Add.
+
+### 7.2.3 Subtract
+
+The Subtract Command disconnects a termination from its context and returns statistics on the termination's participation in the context.
+
+```
+TerminationIDList
+[,MediaDescriptor]
+[,ModemDescriptor] (*)
+[,MuxDescriptor]
+[,EventsDescriptor]
+[,SignalsDescriptor]
+[,DigitMapDescriptor]
+[,ObservedEventsDescriptor]
+[,EventBufferDescriptor]
+[,StatisticsDescriptor]
+[,PackagesDescriptor]
+ Subtract(TerminationIDList
+ [, AuditDescriptor]
+ )
+```
+
+(\*) Modem Descriptor has been deprecated in Recommendation ITU-T H.248.1 version 2 (05/2002).
+
+TerminationIDList in the input parameters represents the termination(s) that is being subtracted. The TerminationID may be specific or may be a wildcard value indicating that all (or a set of related) terminations in the context of the Subtract Command are to be subtracted. If the wildcard matches more than one TerminationID, all possible matches are attempted, with results reported for each one. The order of attempts when multiple TerminationIDs match is not specified.
+
+The use of CHOOSE in the TerminationID is an error, as the Subtract command may only be used on existing terminations.
+
+ALL may be used as the ContextID as well as the TerminationID in a Subtract, which would have the effect of deleting all contexts, deleting all ephemeral terminations, and returning all physical terminations to NULL Context. Subtract of a termination from the NULL Context is not allowed.
+
+For convenience, if a multiplexing termination is the object of a Subtract command, then any bearer terminations listed in its Multiplex Descriptor are subtracted from the context as if individual Subtract commands listing the terminations were invoked.
+
+By default unless overridden, the Statistics Descriptor on both the termination and stream levels is returned to report information collected on the termination or terminations specified in the command. The information reported applies to the termination's or terminations' existence in the context from which it or they are being subtracted.
+
+The Audit Descriptor is optional. If present, the command will return only those items specified in the Audit Descriptor, which may be empty. If the Audit Descriptor is omitted, the Statistics Descriptor is returned, by default. Possible return values are the same as those to Add.
+
+When a provisioned termination is Subtracted from a context, its descriptor values shall revert to:
+
+- the default value, if specified for the descriptor and not overridden by provisioning;
+- otherwise, the provisioned value.
+
+### 7.2.4 Move
+
+The Move Command moves a termination to another context from its current context in one atomic operation. The Move Command is the only command that refers to a termination in a context different from that to which the command is applied. The Move Command shall not be used to move terminations to or from the NULL Context.
+
+TerminationIDList
+
+[,MediaDescriptor]
+
+[,ModemDescriptor] (\*)
+
+[,MuxDescriptor]
+
+[,EventsDescriptor]
+
+[,SignalsDescriptor]
+
+[,DigitMapDescriptor]
+
+[,ObservedEventsDescriptor]
+
+[,EventBufferDescriptor]
+
+[,StatisticsDescriptor]
+
+[,PackagesDescriptor]
+
+Move( TerminationIDList
+
+[, MediaDescriptor]
+
+[, ModemDescriptor] (\*)
+
+[, MuxDescriptor]
+
+[, EventsDescriptor]
+
+[, EventBufferDescriptor]
+
+[, SignalsDescriptor]
+
+[, DigitMapDescriptor]
+
+[, AuditDescriptor]
+
+[, StatisticsDescriptor]
+
+)
+
+(\*) Modem Descriptor has been deprecated in Recommendation ITU-T H.248.1 version 2 (05/2002).
+
+The TerminationIDList specifies the termination(s) to be moved. TerminationIDs may be wildcarded, but CHOOSE shall not be used. If the wildcard matches more than one TerminationID, all possible matches are attempted, with results reported for each one. The order of attempts when multiple TerminationIDs match is not specified. The context to which the termination is moved is indicated by the target ContextID in the action. If the last remaining termination is moved out of a context, the context is deleted.
+
+The Move Command does not affect the properties/signals/events/statistics of the termination on which it operates, except those properties explicitly modified by descriptors included in the Move Command. As such unless the Signals Descriptor is modified the playout of signals continues. The Audit Descriptor with a Statistics Descriptor, for example, would return statistics on the termination just prior to the Move. Possible descriptors returned from Move are the same as for Add.
+
+For convenience, if a multiplexing termination is the object of a Move Command, then any bearer terminations listed in its Multiplex Descriptor are also moved as if individual Move Commands listing the terminations were invoked.
+
+Move shall not be used on a termination with a ServiceStates of "OutOfService".
+
+### 7.2.5 AuditValue
+
+The AuditValue Command returns the current values of properties, events, signals and statistics associated with terminations. An AuditValue may request the contents of a descriptor or of a single property, event, signal or statistic. AuditValue may be useful for maintaining termination synchronization between the MGC and MG. An AuditValue may request that the returned values be filtered based on specified selection criteria.
+
+TerminationIDList
+
+[,MediaDescriptor]
+
+[,ModemDescriptor] (\*)
+
+[,MuxDescriptor]
+
+[,EventsDescriptor]
+
+[,SignalsDescriptor]
+
+[,DigitMapDescriptor]
+
+[,ObservedEventsDescriptor]
+
+[,EventBufferDescriptor]
+
+[,StatisticsDescriptor]
+
+[,PackagesDescriptor]
+
+AuditValue(TerminationIDList,
+
+AuditDescriptor
+
+)
+
+(\*) Modem Descriptor has been deprecated in Recommendation ITU-T H.248.1 version 2 (05/2002).
+
+TerminationIDList specifies a sequence of TerminationIDs, which may be specific or wildcarded. If the wildcard matches more than one TerminationID, all possible matches are attempted, with results reported for each one. The order of attempts when multiple TerminationIDs match is not specified. If a wildcarded response is requested, only one command return is generated, with the contents containing the union of the values of all terminations matching the wildcard or list. This convention may reduce the volume of data required to audit a group of terminations. Use of CHOOSE is an error.
+
+Descriptors or individual properties, signals, events and statistics can be audited. The returned values can be filtered based on specified selection criteria.
+
+- An audit of a descriptor may be requested by identifying the desired descriptor in the Audit Descriptor with no further information.
+- To audit an individual property in the Media Descriptor the relevant StreamID (optional), GroupID (optional) and PropertyID are included. The current value of the property is returned. GroupID is used in the case where the LocalControl Descriptor ReserveGroup flag is used. GroupID 1 corresponds to the first group (session description) reserved, GroupID 2 the next group, etc.
+- To audit a signal, the relevant SignalListID and/or SignalID are provided. The StreamID and/or RequestID are optional. Only if the signal is active are the values of all the signal parameters returned including: the KeepActive indication, signal type, duration, signal completion indication and package defined properties.
+
+- To audit an event, the relevant StreamID (optional), EventID, RequestID (optional) are provided. The values of all the event parameters are returned including: event actions and packaged defined parameters.
+- To audit a termination level statistic, the identity of the statistic is provided. To audit a stream level statistic, the relevant StreamID (optional), GroupID (optional) and the StatisticID is included in the Media Descriptor. The current value of the statistic is returned. The statistic is not reset.
+- To audit a package, the identity and version of the package is provided. All properties, signals, events and statistics defined in that particular package are returned with their current value.
+- To filter the audit return values, selection criteria are included in the audit request. It is possible to include multiple selection criteria. When multiple criteria are included, either an AND or an OR logic operation may also be included to indicate how the selection criteria are to be interpreted. If no logic operation is included, an AND logic operation is assumed.
+
+It is possible to audit multiple individual items in one request.
+
+If a descriptor audit is requested, the appropriate descriptors, with the current values for the termination, are returned from AuditValue. Values appearing in multiple instances of a descriptor are defined to be alternate values supported, with each parameter in a descriptor considered independent.
+
+ObservedEvents returns a list of events in the EventBuffer. If the ObservedEvents Descriptor is audited while a DigitMap is active, the returned ObservedEvents Descriptor also includes a DigitMap completion event that shows the current dial string but does not show a termination method.
+
+EventBuffer returns the set of events and associated parameter values currently enabled in the EventBuffer Descriptor. Packages Descriptor returns a list of packages realized by the termination. DigitMap Descriptor returns the name or value of the current DigitMap for the termination. DigitMap requested in an AuditValue command with TerminationID ALL returns all DigitMaps in the gateway. Statistics returns the current values of all statistics being kept at the termination level. An audit of the Media Descriptor will return any stream level statistics. Specifying an empty Audit Descriptor results in only the TerminationID being returned. This may be useful to get a list of TerminationIDs when used with wildcarding. Annexes A and B provide a special syntax for presenting such a list in condensed form, such that the AuditValue command tag does not have to be repeated for each TerminationID.
+
+AuditValue results depend on the context, viz. specific, NULL, or wildcarded. (Note that ContextID ALL does not include the NULL Context.) The TerminationID may be specific, or wildcarded.
+
+The following are examples of what is returned in case the context and/or the termination is wildcarded and a wildcarded response has been specified.
+
+Assume that the gateway has 4 terminations: t1/1, t1/2, t2/1 and t2/2. Assume that Terminations t1/\* have implemented Packages aaa and bbb and that Terminations t2/\* have implemented Packages ccc and ddd. Assume that Context 1 has t1/1 and t2/1 in it and that Context 2 has t1/2 and t2/2 in it.
+
+The command:
+
+Context=1 {AuditValue=t1/1 {Audit{Packages}}}
+
+returns:
+
+Context=1 {AuditValue=t1/1 {Packages{aaa,bbb}}}
+
+The command:
+
+Context=\* {AuditValue=t2/\* {Audit{Packages}}}
+
+returns:
+
+Context=1 {AuditValue=t2/1 {Packages {ccc,ddd}}},
+ Context=2 {AuditValue=t2/2 {Packages {ccc,ddd}}}
+
+The command:
+
+Context=\* {W-AuditValue=t1/\* {Audit {Packages}}}
+
+returns:
+
+Context=\* {AuditValue=t1/\* {Packages {aaa,bbb}}}
+
+NOTE – A wildcard response may also be used for other commands such as Subtract.
+
+In the instance of a wildcarded context with Root, the MGC can indicate that it wants a compact list of ContextIDs, rather than having each context broken out into separate action replies.
+
+Assume that the gateway has 4 contexts: 1, 2, 3, 4, each containing two terminations (t1-t8). The following examples indicate how the MG would respond to the audit command:
+
+The command:
+
+Context=\* {AuditValue=Root {Audit {}}}
+
+returns:
+
+Context=1 {AuditValue=Context {\*}}, Context=2 {AuditValue=Context {\*}},
+ Context=3 {AuditValue=Context {\*}}, Context=4 {AuditValue=Context {\*}}
+
+Or
+
+Context=1 {AuditValue=t1 {}, AuditValue=t2 {}}, Context=2 {AuditValue=t3 {}, AuditValue=t4 {}}, Context=3 {AuditValue=t5 {}, AuditValue=t6 {}}, Context=4 {AuditValue=t7 {}, AuditValue=t8 {}}
+
+The command:
+
+Context=\* {ContextAttr {ContextList={\*}}, AuditValue=Root {Audit {}}}
+
+returns:
+
+Context=\* {ContextAttr {ContextList={1,2,3,4}}, AuditValue=Root}
+
+The following illustrates other information that can be obtained with the AuditValue Command:
+
+| ContextID | TerminationID | Information obtained |
+|-----------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Specific | Wildcard | Audit of matching terminations in a context |
+| Specific | Specific | Audit of a single termination in a context |
+| NULL | Root | Audit of Media Gateway state and events |
+| NULL | Wildcard | Audit of all matching terminations in the NULL Context |
+| NULL | Specific | Audit of a single termination outside of any context |
+| ALL | Wildcard | Audit of all matching terminations not in NULL and the context to which they are associated |
+| ALL | Root | List of all ContextIDs (the ContextID list may be returned either by using multiple action replies, each containing a ContextID from the list, or using the ContextIDList parameter. The method of response is determined by the presence of the ContextIDList parameter in the request.) |
+| ALL | Specific | (Non-NULL) ContextID in which the termination currently exists |
+
+### 7.2.6 AuditCapability
+
+The AuditCapability Command returns the possible values of properties, events, signals and statistics associated with terminations. An AuditCapability may be requested for the contents of a descriptor or for a single property, event, signal or statistic.
+
+TerminationIDList
+
+[,MediaDescriptor]
+
+[,ModemDescriptor](\*)
+
+[,MuxDescriptor]
+
+[,EventsDescriptor]
+
+[,SignalsDescriptor]
+
+[,ObservedEventsDescriptor]
+
+[,EventBufferDescriptor]
+
+[,StatisticsDescriptor]
+
+AuditCapability(TerminationIDList,
+
+AuditDescriptor)
+
+(\*) Modem Descriptor has been deprecated in Recommendation ITU-T H.248.1 version 2 (05/2002).
+
+Descriptors or individual properties, signals, events and statistics can be audited.
+
+- An audit of an entire descriptor may be requested by identifying the desired descriptor in the Audit Descriptor with no further information.
+- To audit an individual property in the Media Descriptor the relevant StreamID (optional) and PropertyID are included. A list of possible values of the property are returned.
+- To audit a signal the relevant SignalListID and/or SignalID are provided. The StreamID and/or RequestID are optional. A list of possible values associated with each signal parameter is returned (including package defined properties). The KeepActive indication, signal type, duration and signal completion indication are not returned.
+- To audit an event the relevant StreamID (optional), EventID, RequestID (optional) are provided. A list of possible values associated with each event parameter is returned (including event actions and package defined parameters).
+- To audit a termination level statistic the identity of the statistic is provided. To audit a stream level statistic, the relevant StreamID (optional), GroupID (optional) and the StatisticID is included in the Media Descriptor. The possible values of the statistic are returned. The statistic is not reset.
+
+If a descriptor audit is requested, the appropriate descriptors, with the possible values for the termination, are returned from AuditCapability. Descriptors may be repeated where there are multiple possible values.
+
+If a wildcarded response is requested, only one command return is generated, with the contents containing the union of the values of all terminations in the list or matching the wildcard. This convention may reduce the volume of data required to audit a group of terminations.
+
+If a property, signal, event or statistic is audited, the appropriate properties, signals, events and statistics with the capabilities of the termination, are returned from AuditCapability.
+
+Interpretation of what capabilities are requested for various values of ContextID and TerminationID is the same as in AuditValue.
+
+For property and parameter values of type string, character or octet string, the MG shall return an empty value. For the text encoding, strings and characters return an empty quotedString construct, while octet strings return NULL (0x00). This behaviour may be overridden by the package definition.
+
+The Events Descriptor returns the list of possible events on the termination together with the list of all possible values for the Events Descriptor Parameters. EventBuffer Descriptor returns the same information as Events Descriptor. The Signals Descriptor returns the list of possible signals that could be applied to the termination, together with the list of all possible values for the signals' parameters. Statistics Descriptor returns the names of the statistics being kept on the termination. ObservedEvents Descriptor returns the names of active events on the termination. DigitMap and Packages are not legal in AuditCapability.
+
+The following illustrates other information that can be obtained with the AuditCapability Command:
+
+| ContextID | TerminationID | Information obtained |
+|-----------|---------------|---------------------------------------------------------------------------------------------|
+| Specific | Wildcard | Audit of matching terminations in a context |
+| Specific | Specific | Audit of a single termination in a context |
+| NULL | Root | Audit of MG state and events |
+| NULL | Wildcard | Audit of all matching terminations in the NULL Context |
+| NULL | Specific | Audit of a single termination outside of any context |
+| ALL | Wildcard | Audit of all matching terminations not in NULL and the context to which they are associated |
+| ALL | Root | Same as for AuditValue |
+| ALL | Specific | Same as for AuditValue |
+
+### 7.2.7 Notify
+
+The Notify Command allows the Media Gateway to notify the Media Gateway Controller of events occurring within the Media Gateway.
+
+TerminationID
+
+```
+Notify(TerminationID,
+ ObservedEventsDescriptor,
+ [ErrorDescriptor])
+```
+
+The TerminationID specifies the termination issuing the Notify Command. The TerminationID shall be a fully qualified name.
+
+The ObservedEvents Descriptor contains the RequestID and a list of events that the Media Gateway detected in the order that they were detected. Each event in the list is accompanied by parameters associated with the event and, optionally, an indication of the time that the event was detected. Procedures for sending Notify commands with RequestID equal to zero are for further study.
+
+Notify Commands with RequestID not equal to zero shall occur only as the result of detection of an event specified by an Events Descriptor which is active on the termination concerned.
+
+The RequestID returns the RequestID parameter of the Events Descriptor that triggered the Notify Command. It is used to correlate the notification with the request that triggered it. The events in the list must have been requested via the triggering Events Descriptor or embedded Events Descriptor unless the RequestID is zero (which is for further study).
+
+The Error Descriptor may be sent in the Notify Command as a result of Error 518 ("Event buffer full").
+
+### 7.2.8 ServiceChange
+
+The ServiceChange Command allows the Media Gateway to notify the Media Gateway Controller that a termination, or group of terminations, is about to be taken out of service or has just been returned to service. The Media Gateway Controller may indicate that termination(s) shall be taken out of or returned to service. The Media Gateway may notify the MGC that the capability of a termination has changed. It also allows an MGC to hand over control of an MG to another MGC.
+
+TerminationIDList,
+
+[ServiceChangeDescriptor]
+
+ServiceChange(TerminationIDList,
+
+ServiceChangeDescriptor
+
+)
+
+The TerminationIDList specifies the termination(s) that are taken out of or returned to service. Wildcarding of termination names is permitted, with the exception that the CHOOSE mechanism shall not be used. Use of the "Root" TerminationID indicates a ServiceChange affecting the entire Media Gateway.
+
+NOTE – The use of TerminationIDList is not valid in the initial ITU-T H.248.1 Version 1 ServiceChange Command.
+
+#### 7.2.8.1 ServiceChange Descriptor contents
+
+The ServiceChange Descriptor contains the following parameters as required:
+
+- ServiceChangeMethod;
+- ServiceChangeReason;
+- ServiceChangeDelay;
+- ServiceChangeAddress;
+- ServiceChangeProfile;
+- ServiceChangeVersion;
+- ServiceChangeMgcID;
+- TimeStamp;
+- ExtensionParameter;
+- ServiceChangeInfo;
+- ServiceChangeIncompleteFlag.
+
+##### 7.2.8.1.1 ServiceChangeMethod
+
+The ServiceChangeMethod parameter specifies the type of ServiceChange that will or has occurred:
+
+- 1) Graceful: indicates that the specified terminations will be taken out of service after the specified ServiceChangeDelay; established connections are not yet affected, but the Media Gateway Controller should refrain from establishing new connections and should attempt to gracefully tear down existing connections on the termination(s) affected by the ServiceChange Command. The MG should set the termination's ServiceStates Property at the expiry of ServiceChangeDelay or the removal of the termination from an active context (whichever is first), to "OutOfService".
+
+- 2) **Forced:** indicates that the specified terminations were taken abruptly out of service and any established connections associated with them may be lost. For non-Root terminations, the MGC is responsible for cleaning up the context (if any) with which the failed termination is associated. At a minimum, the termination shall be subtracted from the context. The termination's ServiceStates Property should be "OutOfService". For the Root Termination, the MGC can assume that all connections are lost on the MG and thus can consider that all the terminations have been subtracted.
+- 3) **Restart:** indicates that service will be restored on the specified terminations after expiration of the ServiceChangeDelay. The ServiceStates Property should be set to "InService" upon expiry of ServiceChangeDelay. Upon receipt of a ServiceChange Command on Root with ServiceChangeMethod Restart all terminations are assumed to be "InService". This includes physical and ephemeral terminations. Those terminations which are "OutOfService" may be reported by subsequent ServiceChange Commands with ServiceChangeMethod Forced.
+- 4) **Disconnected:** always applied with the Root TerminationID, indicates that the MG lost communication with the MGC, but it was subsequently restored to the same MGC (possibly after trying other MGCs on a pre-provisioned list). Since MG state may have changed, the MGC may wish to use the Audit command to resynchronize its state with the MGs.
+- 5) **Handoff:** sent from the MGC to the MG, this reason indicates that the MGC is going out of service and a new MGC association must be established. Sent from the MG to the MGC, this indicates that the MG is attempting to establish a new association in accordance with a Handoff received from the MGC with which it was previously associated.
+- 6) **Failover:** sent from MG to MGC to indicate the primary MG is out of service and a secondary MG is taking over. This ServiceChange method is also sent from the MG to the MGC when the MG detects that MGC has failed.
+- 7) Another value whose meaning is mutually understood between the MG and the MGC.
+
+##### 7.2.8.1.2 ServiceChangeReason
+
+The ServiceChangeReason parameter specifies the reason why the ServiceChange has or will occur. It consists of an alphanumeric token (IANA registered) and, optionally, an explanatory string.
+
+##### 7.2.8.1.3 ServiceChangeAddress and ServiceChangeMgcID
+
+The optional ServiceChangeAddress parameter specifies the address (e.g., IP port number for IP networks) to be used for subsequent communications. It can be specified in the input parameter descriptor or the returned result descriptor.
+
+The optional ServiceChangeMgcID parameter is of type Message Identifier (MID, see clause 8.3), the parameter format represents thus either an address (IP version 4 or 6 domain address, or broadband MTP3 address) or a name (IP domain name or a generic device name). In both cases, it is the parameter used for an unambiguous identification of an MGC entity (i.e., a primary or secondary MGC).
+
+NOTE 1 – There is the following difference between the name and address formats: the network address is routable, thus may be directly inserted as destination address in the signalling transport protocol data unit, whereas names require first a resolution into a routable address. The name-to-address resolution by the MG requires a local or remote DNS query request in case of the domain format, or a local mapping table in case of the device format.
+
+ServiceChangeAddress and ServiceChangeMgcID parameters must not both be present in the ServiceChange Descriptor or the ServiceChangeResult Descriptor. The ServiceChangeAddress provides an address to be used within the context of the association currently being negotiated, while the ServiceChangeMgcID provides an alternate address (see Note 2) where the MG should seek to establish another association. MGCs and MGs must be able to cope with the
+
+ServiceChangeAddress being either a full address or just a port number in the case of IP-based transports such as UDP, TCP or SCTP.
+
+NOTE 2 – In case of a name format, a previous name-to-address resolution is implied (see Note 1 above).
+
+##### 7.2.8.1.4 ServiceChangeDelay
+
+The optional ServiceChangeDelay parameter is expressed in seconds. If the delay is absent or set to zero, the delay value should be considered to be null. In the case of a "Graceful" ServiceChangeMethod, a null delay indicates that the Media Gateway Controller should wait for the natural removal of existing connections and should not establish new connections. For "Graceful" only, a null delay means the MG must not set ServiceStates "OutOfService" until the termination is in the NULL Context.
+
+##### 7.2.8.1.5 ServiceChangeProfile
+
+The optional ServiceChangeProfile parameter specifies the Profile (if any) of the protocol supported. The ServiceChangeProfile includes the version of the profile supported. In the absence of this parameter, the value "NoProfile" is assumed.
+
+##### 7.2.8.1.6 ServiceChangeVersion
+
+The optional ServiceChangeVersion parameter contains the protocol version and is used if protocol version negotiation occurs (see clause 11.3).
+
+##### 7.2.8.1.7 TimeStamp
+
+The optional TimeStamp parameter specifies the actual time as kept by the sender. As such, it is not necessarily absolute time according to, for example, a local time zone: it merely establishes an arbitrary starting time against which all future timestamps transmitted by a sender during this association shall be compared. It can be used by the responder to determine how its notion of time differs from that of its correspondent. TimeStamp is sent with a precision of hundredths of a second.
+
+##### 7.2.8.1.8 ExtensionParameter
+
+The optional Extension parameter may contain any value whose meaning is mutually understood by the MG and MGC. The value "X-SC" is reserved for the use of signalling ServiceChange parameters that have been added as a result of ITU-T H.248.1 version 3 (and subsequent versions). It is only used in the initial ITU-T H.248.1 version 1 coded ServiceChange Command from the MG to MGC when the ServiceChangeVersion is greater than or equal to 3. The structure of the value is defined by the following ABNF:
+
+$$\text{X-SC} = 1 * (\text{NAME EQUAL parmValue [COMMA]})$$
+
+The value is encoded using the String type (see clause 12.1.2). NOTE – When multiple NAME EQUAL parmValue constructs are used, the COMMA shall be used to separate them.
+
+When adding new ServiceChange parameters it is recommended that a name/value be assigned if the parameter is to be sent in an initial ServiceChange. For example:
+
+**Name:** Strings of up to 64 characters, containing no spaces, starting with an alphabetic character and consisting of alphanumeric characters and/or digits, and possibly including the special character underscore ("\_").
+
+**Type:** As per clause 12.1.2 "Properties". When using the "String" type, the values shall be compliant to the SafeChar syntax (see clause B.2).
+
+**Possible values:** As per clause 12.1.2 "Properties"
+
+##### 7.2.8.1.9 ServiceChangeInfo
+
+The optional ServiceChangeInfo parameter may contain the package/property/signal/event/statistic of the reason that caused the ServiceChange.
+
+##### 7.2.8.1.10 ServiceChangeIncompleteFlag
+
+This optional flag indicates that subsequent ServiceChange Commands will be sent from the MG to the MGC indicating the state of terminations. It is only used during MG registration or restart (ServiceChange on Root with ServiceChangeMethod Restart) when the MG wants to report the entire MG and termination state to the MGC. Upon reception of this flag, the MGC shall refrain from generating commands operating on terminations other than Root to the MG. After sending the ServiceChangeIncompleteFlag in the initial registration/restart command, the MG shall send it in all subsequent ServiceChange Commands until the MG has determined that it has reported the current state of the MG and its terminations. The flag shall then be removed from the last ServiceChange Command indicating the state of the MG or its terminations. Upon the reception of this ServiceChange without the ServiceChangeIncompleteFlag, the MGC may again generate commands to the MG. When this flag is sent in an initial ServiceChange (ITU-T H.248.1 Version 1) Command using the ServiceChange extension parameter "X-SC" the following is used:
+
+**Name:** SIC
+
+**Type:** Boolean
+
+**Possible values:** ON: Flag included
+
+NOTE – The value OFF is not required as subsequent commands will be ITU-T H.248.1 Version 3 encoded.
+
+##### 7.2.8.1.11 ServiceChange Command and Response
+
+A ServiceChange Command specifying the "Root" for the TerminationID and ServiceChangeMethod equal to Restart is a registration command by which a Media Gateway announces its existence to the Media Gateway Controller. The Media Gateway may register by specifying the Root TerminationID and ServiceChangeMethod equal to Failover when the MG detects MGC failures. A message containing a ServiceChange Command specifying the Root TerminationID and ServiceChangeMethod equal to Restart or Failover shall not contain other commands as these commands should use the new ServiceChangeAddress and negotiated protocol version.
+
+The Media Gateway is expected to be provisioned with the name of one primary and optionally some number of alternate Media Gateway Controllers.
+
+Acknowledgement of the ServiceChange Command completes the registration process, except when the MGC has returned an alternative ServiceChangeMgcID as described below.
+
+The MG may specify the transport ServiceChangeAddress to be used by the MGC for sending messages in the ServiceChangeAddress parameter in the input ServiceChange Descriptor. The MG may specify an address in the ServiceChangeAddress parameter of the ServiceChange request, and the MGC may also do so in the ServiceChange reply. In either case, the recipient must use the supplied address as the destination for all subsequent transaction requests within the association. At the same time, as indicated in clause 9, transaction replies and pending indications must be sent to the address from which the corresponding requests originated. This must be done even if it implies extra messaging because commands and responses cannot be packed together.
+
+The TimeStamp parameter shall be sent with a registration command and its response.
+
+At registration the MG may send the ServiceChangeIncompleteFlag if it has determined that the MG is in state "InService" but individual terminations may be in state "OutOfService". This is to prevent attempted seizure of out-of-service terminations. Subsequent ServiceChange Commands are used to report the "OutOfService" terminations.
+
+The Media Gateway Controller may return a ServiceChangeMgcID parameter that describes the Media Gateway Controller that should preferably be contacted for further service by the Media Gateway. In this case, the Media Gateway shall reissue the ServiceChange Command to the new Media Gateway Controller. The MGC specified in a ServiceChangeMgcID, if provided, shall be
+
+contacted before any further alternate MGCs. On a handoff message from MGC to MG, the ServiceChangeMgcID is the new MGC that will take over from the current MGC.
+
+The return from ServiceChange is empty except when the Root TerminationID is used. In that case, it includes the following parameters as required:
+
+- ServiceChangeAddress, if the responding MGC wishes to specify a new destination for messages from the MG for the remainder of the association;
+- ServiceChangeMgcID, if the responding MGC does not wish to sustain an association with the MG;
+- ServiceChangeProfile, if the responder wishes to negotiate the profile to be used for the association. The profile (name and version) is only returned in the reply in the case that the MGC cannot support the specified profiles in the ServiceChangeRequest. The returned reply shall indicate the profile and version supported or "NoProfile" if no profile is supported. Upon reception of a profile in the reply the MG may continue the relationship with the current MGC or contact secondary MGCs and establish a relationship with them. If the MGC returned a profile in the reply other than the one that was provided in the request the MG shall:
+ - a) issue a new ServiceChange Command with an agreed profile to confirm to the MGC that the MG has agreed with the profile; or
+ - b) consider the registration stage completed and await further commands from the MGC; the MGC will use the profile that it sent in the ServiceChange Reply; or
+ - c) initiate a control association with a different MGC using its original profile.NOTE – In order to ensure both the MGC and MG are using the same profile, option a) is encouraged.
+- ServiceChangeVersion, if the responder wishes to negotiate the version of the protocol to be used for the association.
+
+ServiceChangeReasons are defined in [ITU-T H.248.8]. The list may be extended by an IANA registration as outlined in clause 14.3.
+
+### 7.2.9 Manipulating and auditing context attributes
+
+The commands of the protocol as discussed in the preceding subclauses apply to terminations. This clause specifies how contexts are manipulated and audited.
+
+An action may contain context manipulation and auditing instructions (see clause 8).
+
+An action request sent to an MG may include a request to audit attributes of a context. There are two types of audit:
+
+**Value Audit:** The MGC may audit a specific context to determine the current value of individual context properties. The MGC may determine the current values for all existing (non-NULL) contexts by specifying ContextID ALL in the Audit request. If context attributes are added, or have been modified by the same action as the Audit request, the value(s) returned shall be after the action has been applied. Context attributes can be used as selection criteria to filter the audit return values. It is possible to include multiple selection criteria. When multiple criteria are included, either an AND or an OR logic operation may also be included to indicate how the selection criteria are to be interpreted. If no logic operation is included, an AND logic operation is assumed.
+
+**Capabilities Audit:** The MGC may audit a specific context to determine the possible values that individual context properties can assume. The MGC may determine the possible values for the entire MG by specifying ContextID ALL in the audit request.
+
+The following illustrates information that can be obtained with a Context Audit:
+
+| ContextID | TerminationID | AuditValue | AuditCapability |
+|-----------|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
+| Specific | Not Applicable | Context property's value in the specified context. | Context property's possible values in the specified context. |
+| NULL | Not Applicable | Not Allowed | Not Allowed |
+| ALL | Not Applicable | Current values for all existing (non-NULL) contexts by specifying ContextID ALL in the Audit request.
A response for ContextID ALL is presented through an actionReply per context. | A response of ContextID ALL is returned with context property's possible values across the entire MG. |
+
+An action may also include a request to change the attributes of a context.
+
+The context properties that may be included in an action reply are used to return information to an MGC. This can be information requested by an audit of context attributes or details of the effect of manipulation of a context.
+
+If an MG receives an action that contains both a request to audit context attributes and a request to manipulate those attributes, the response shall include the values of the attributes after processing the manipulation request.
+
+### 7.2.10 Generic command syntax
+
+The protocol can be encoded in a binary format or in a text format. MGCs should support both encoding formats. MGs may support both formats.
+
+The protocol syntax for the binary format of the protocol is defined in Annex A. Annex C specifies the encoding of the Local and Remote Descriptors for use with the binary format.
+
+A complete ABNF of the text encoding of the protocol per [IETF RFC 2234] is given in Annex B. SDP is used as the encoding of the Local and Remote Descriptors for use with the text encoding as modified in clause 7.1.8.
+
+# 8 Transactions
+
+Commands between the Media Gateway Controller and the Media Gateway are grouped into transactions, each of which is identified by a TransactionID. Transactions consist of one or more actions. An action consists of a non-empty series of commands, context property modifications, or context property audits that are limited to operating within a single context. Consequently, each action typically specifies a ContextID. However, there are two circumstances where a specific ContextID is not provided with an action. One is the case of modification of a termination outside of a context. The other is where the controller requests the gateway to create a new context. Figure 15 is a graphic representation of the transaction, action and command relationships.
+
+
+
+```
+
+graph TD
+ subgraph TRANSACTIONx
+ subgraph CTXTID1
+ COMMAND1_1[COMMAND1]
+ COMMAND2_1[COMMAND2]
+ COMMAND3_1[COMMAND3]
+ COMMAND4_1[COMMAND4]
+ end
+ subgraph CTXTID2
+ COMMAND1_2[COMMAND1]
+ end
+ subgraph CTXTID3
+ COMMAND1_3[COMMAND1]
+ COMMAND2_3[COMMAND2]
+ COMMAND3_3[COMMAND3]
+ end
+ end
+
+```
+
+Diagram illustrating Transactions, actions and commands. The diagram shows three nested transaction boxes labeled TRANSACTIONx, CTXTID1, CTXTID2, and CTXTID3. CTXTID1 contains four commands: COMMAND1, COMMAND2, COMMAND3, and COMMAND4. CTXTID2 contains one command: COMMAND1. CTXTID3 contains three commands: COMMAND1, COMMAND2, and COMMAND3.
+
+H.248.1 v3(13)\_F15
+
+**Figure 15 – Transactions, actions and commands**
+
+Transactions are presented as TransactionRequests. Corresponding responses to a TransactionRequest are received in a single reply, possibly preceded by a number of TransactionPending messages (see clause 8.2.3).
+
+Transactions guarantee ordered command processing. That is, commands within a transaction are executed sequentially. Ordering of transactions is not guaranteed; transactions may be executed in any order, or simultaneously; however, TransactionReplies should be executed before TransactionRequests when both are contained in a message.
+
+At the first failing command in a transaction, processing of the remaining commands in that transaction stops. If a command contains a wildcarded TerminationID, the command is attempted with each of the actual TerminationIDs matching the wildcard. A response within the TransactionReply is included for each matching TerminationID, even if one or more instances generated an error. If the MG cannot return a TerminationID in response to a wildcarded termination then the original wildcard TerminationID should be returned. If any TerminationID matching a wildcard results in an error when executed, any commands following the wildcarded command are not attempted.
+
+Commands may be marked as "Optional" which can override this behaviour – if a command marked as Optional results in an error, subsequent commands in the transaction will be executed. If a command fails, the MG shall, as far as possible, restore the state that existed prior to the attempted execution of the command before continuing with command processing.
+
+A TransactionReply includes the results for all of the commands in the corresponding TransactionRequest. The TransactionReply includes the return values for the commands that were executed successfully, and the command and Error Descriptor for any command that failed. Command replies are returned in the order in which they appeared in the corresponding TransactionRequest. TransactionPending is used to periodically notify the receiver that a transaction has not completed yet, but is actively being processed.
+
+Applications should implement an application level timer per transaction. Expiration of the timer should cause a retransmission of the request. Receipt of a Reply should cancel the timer. Receipt of Pending should restart the timer.
+
+## 8.1 Common parameters
+
+### 8.1.1 Transaction identifiers
+
+Transactions are identified by a TransactionID, which is assigned by sender and is unique within the scope of the sender. A response containing an Error Descriptor to indicate that the TransactionID is missing in a request shall use a TransactionID of zero in the corresponding TransactionReply.
+
+### 8.1.2 Context identifiers
+
+Contexts are identified by a ContextID, which is assigned by the Media Gateway and is unique within the scope of the Media Gateway. The Media Gateway Controller shall use the ContextID supplied by the Media Gateway in all subsequent transactions relating to that context. The protocol makes reference to a distinguished value that may be used by the Media Gateway Controller when referring to a termination that is currently not associated with a context, namely the *NULL* ContextID.
+
+The CHOOSE wildcard is used to request that the Media Gateway create a new context.
+
+The MGC may use the ALL wildcard to address all contexts on the MG. The NULL Context is not included when the ALL wildcard is used.
+
+The MGC shall not use partially specified ContextIDs containing the CHOOSE or ALL wildcards.
+
+## 8.2 Transaction application programming interface
+
+Following is an Application Programming Interface (API) describing the transactions of the protocol. This API is shown to illustrate the transactions and their parameters and is not intended to specify implementation (e.g., via use of blocking function calls). It will describe the input parameters and return values expected to be used by the various transactions of the protocol from a very high level. Transaction syntax and encodings are specified in later subclauses.
+
+### 8.2.1 TransactionRequest
+
+The TransactionRequest is invoked by the sender. There is one transaction per request invocation. A request contains one or more actions, each of which specifies its target context.
+
+```
+TransactionRequest(TransactionID {
+ ContextID {Command ... Command},
+ ...
+ ContextID {Command ... Command}})
+```
+
+The TransactionID parameter must specify a value for later correlation with the TransactionReply or TransactionPending response from the receiver.
+
+The ContextID parameter must specify a value to pertain to all commands that follow up to either the next specification of a ContextID parameter or the end of the TransactionRequest, whichever comes first.
+
+The command parameter represents one of the commands mentioned in clause 7.2 ("Command application programming interface").
+
+### 8.2.2 TransactionReply
+
+The TransactionReply is invoked by the receiver. There is one reply invocation per transaction. A reply contains one or more actions, each of which must specify its target context and one or more Responses per context. A reply may be segmented into multiple messages. The TransactionReply is invoked by the responder when it has processed the TransactionRequest.
+
+A TransactionRequest has been processed:
+
+- when all actions in that TransactionRequest have been processed; or
+- when an error is encountered in processing that TransactionRequest, except when the error is in an optional command.
+
+If a message contains more TransactionRequests than the receiver can process, the receiver will return Error Descriptor 413 ("Number of transactions in message exceeds maximum").
+
+A command has been processed when all descriptors in that command have been processed.
+
+A Signals Descriptor is considered to have been processed when it has been established that the descriptor is syntactically valid, the requested signals are supported and they have been queued to be applied.
+
+An Events Descriptor or EventBuffer Descriptor is considered to have been processed when it has been established that the descriptor is syntactically valid, the requested events can be observed, any embedded signals can be generated, any embedded events can be detected, and the MG has been brought into a state in which the events will be detected.
+
+```
+TransactionReply(TransactionID {
+ ContextID {Response ... Response},
+ ...
+ ContextID {Response ... Response}})
+```
+
+The TransactionID parameter must be the same as that of the corresponding TransactionRequest.
+
+The ContextID parameter must specify a value to pertain to all Responses for the action. The ContextID may be specific, ALL or NULL.
+
+Each of the Response parameters represents a return value as mentioned in clause 7.2 or an Error Descriptor if the command execution encountered an error. Commands after the point of failure are not processed and, therefore, Responses are not issued for them.
+
+An exception to this occurs if a command has been marked as optional in the TransactionRequest. If the optional command generates an error, the transaction still continues to execute, so the Reply would, in this case, have Responses after an Error.
+
+Clause 7.1.20 ("Error Descriptor") specifies the generation of Error Descriptors. The text below discusses several individual cases.
+
+If the receiver encounters an error in processing a ContextID but can parse the ContextID, the requested action response will consist of the ContextID and a single Error Descriptor, 422 ("Syntax Error in Action"). If the receiver cannot parse the ContextID, it will return a TransactionReply consisting of the TransactionID and a single Error Descriptor, 422 (Syntax Error in Action).
+
+If the receiver encounters an error such that it cannot determine a legal action, it will return a TransactionReply consisting of the TransactionID and a single Error Descriptor, 422 ("Syntax Error in Action"). If the end of an action cannot be reliably determined but one or more commands can be parsed, the receiver will process the commands and then send 422 ("Syntax Error in Action") as the last action for the transaction. If the receiver encounters an error such that it cannot determine a legal transaction, it will return a TransactionReply with a NULL TransactionID and a single Error Descriptor 403 ("Syntax Error in TransactionRequest").
+
+If the end of a transaction cannot be reliably determined and one or more actions can be parsed, the receiver will process the actions and then return 403 ("Syntax Error in TransactionRequest") as the last action reply for the transaction. If no actions can be parsed, it will return 403 ("Syntax Error in TransactionRequest") as the only reply.
+
+If the TerminationID cannot be reliably determined, it will send 442 ("Syntax Error in Command") as the action reply.
+
+If the end of a command cannot be reliably determined, it will return 442 ("Syntax Error in Command") as the reply to the last action it can parse.
+
+### 8.2.3 TransactionPending
+
+The receiver invokes the TransactionPending. A TransactionPending indicates that the transaction is actively being processed, but has not been completed. It is used to prevent the sender from assuming the TransactionRequest was lost where the transaction will take some time to complete.
+
+TransactionPending(TransactionID { } )
+
+The TransactionID parameter must be the same as that of the corresponding TransactionRequest. A property of the Root Termination (normalMGExecutionTime) is settable by the MGC to indicate the interval within which the MGC expects a response to any transaction from the MG (exclusive of network delay). Another property (normalMGCExecutionTime) is settable by the MGC to indicate the interval within which the MG should expect a response to any transaction from the MGC (exclusive of network delay). MGProvisionalResponseTimerValue indicates the time within which the MGC should expect a Pending Response from the MG if a transaction cannot be completed (initially set to normalMGExecutionTime plus network delay, but may be lowered). MGProvisionalResponseTimerValue has the corresponding meaning to the MG. Senders may receive more than one TransactionPending for a command. If a duplicate request is received when pending, the responder may send a duplicate pending immediately, or continue waiting for its timer to trigger another TransactionPending.
+
+A property of the Root Termination (MGOriginatedPendingLimit) is settable by the MGC to indicate the number of TransactionPendings that can be received from the MG. When the value expressed by this property is exceeded, the MG shall stop the transaction processing and send back a TransactionReply, otherwise the MGC can assume the transaction to be in error.
+
+Another property of the Root Termination (MGCOOriginatedPendingLimit) is settable by the MGC to indicate the number of TransactionPendings that can be received from the MGC. When the value expressed by this property is exceeded, the MGC shall stop the transaction processing and send back a TransactionReply otherwise the MG can assume the transaction to be in error.
+
+The xxxOriginatedPendingLimit (MGOriginatedPendingLimit or MGCOOriginatedPendingLimit) may be exceeded either because of long command processing or due to an error (e.g., a command caused a loop). In both cases, the receiver of the original TransactionRequest will issue a TransactionReply with an Error Descriptor as a response parameter in correspondence with either the offending long command or the command that caused the error. Further commands in the transaction shall not be processed. Error 506 (Number of TransactionPendings Exceeded) shall be used.
+
+NOTE – To prevent a situation where the xxxOriginatedPendingLimit (MGOriginatedPendingLimit or MGCOOriginatedPendingLimit) is exceeded due to an error and the receiver of the original TransactionRequest keeps sending TransactionPending, the receiver of the original TransactionRequest should implement a management protection mechanism in order to trigger the appropriate recovery actions. The sender of the original TransactionRequest may keep track of the number of received Pendings and initiate corrective actions.
+
+## 8.3 Messages
+
+Multiple transactions can be concatenated into a Message. Messages have a header, which includes the identity of the sender. The Message Identifier (MID) of a message is set to a provisioned name (e.g., domain address/domain name/device name) of the entity transmitting the message. Domain name is a suggested default. An ITU-T H.248.1 entity (MG/MGC) must consistently use the same MID in all messages it originates for the duration of control association with the peer (MGC/MG).
+
+Every message contains a version number identifying the version of the protocol the message conforms to. Versions consist of one or two digits, beginning with version 1. The current version of the protocol is version 3.
+
+The transactions in a message are treated independently. There is no order implied; there is no application or protocol acknowledgement of a message. A message is essentially a transport mechanism. For example, message X containing transaction requests A, B, and C may be responded to with message Y containing replies to A and C and message Z containing the reply to B. Likewise, message L containing request D and message M containing request E may be responded to with message N containing replies to both D and E.
+
+# 9 Transport
+
+The transport mechanism for the protocol should allow the reliable transport of transactions between an MGC and MG. The transport shall remain independent of what particular commands are being sent, and shall be applicable to all application states. There are several transports defined for the protocol, which are defined in annexes to this Recommendation and other ITU-T H.248 Subseries Recommendations (e.g., [ITU-T H.248.4] and [ITU-T H.248.5]). Additional transports may be defined as additional Recommendations in the ITU-T H.248 subseries Recommendations. For transport of the protocol over IP, MGCs shall implement both TCP and UDP/ALF; an MG shall implement TCP or UDP/ALF or both.
+
+The MG is provisioned with a name or address (such as a DNS name or IP address) of a primary and zero or more secondary MGCs (see clause 7.2.8) that is the address the MG uses to send messages to the MGC. If TCP or UDP is used as the protocol transport, and the port to which the initial ServiceChange request is to be sent is not otherwise known, that request should be sent to the default port number for the protocol. This port number is 2944 for text-encoded operation or 2945 for binary-encoded operation, for either UDP or TCP. The MGC receives the message containing the ServiceChange request from the MG and can determine the MG's address from it. As described in clause 7.2.8, either the MG or the MGC may supply an address in the ServiceChangeAddress parameter to which subsequent transaction requests must be addressed, but responses (including the response to the initial ServiceChange request) must always be sent back to the address which was the source of the corresponding request. For example, in IP networks, this is the source address in the IP header and the source port number in the TCP/UDP/SCTP header.
+
+## 9.1 Ordering of commands
+
+This Recommendation does not mandate that the underlying transport protocol guarantees the sequencing of transactions sent to an entity. This property tends to maximize the timeliness of actions, but it has a few drawbacks. For example:
+
+- Notify commands may be delayed and arrive at the MGC after the transmission of a new command changing the Events Descriptor.
+- If a new command is transmitted before a previous one is acknowledged, there is no guarantee that prior command will be executed before the new one.
+
+Media Gateway Controllers that want to guarantee consistent operation of the Media Gateway may use the following rules. These rules are with respect to commands that are in different transactions. Commands that are in the same transaction are executed in order (see clause 8).
+
+- 1) When a Media Gateway handles several terminations, commands pertaining to the different terminations may be sent in parallel, for example following a model where each termination (or group of terminations) is controlled by its own process or its own thread.
+
+- 2) On a termination, there should normally be, at most, one outstanding command (Add or Modify or Move), unless the outstanding commands are in the same transaction. However, a Subtract command may be issued at any time. In consequence, a Media Gateway may sometimes receive a Modify command that applies to a previously subtracted termination. Such commands should be ignored, and an error code should be returned.
+- 3) For transports that do not guarantee in-sequence delivery of messages (i.e., UDP), there should normally be, on a given termination, at most one outstanding Notify command at any time.
+- 4) In some cases, an implicitly, or explicitly, wildcarded Subtract Command that applies to a group of terminations may step in front of a pending Add Command. The Media Gateway Controller should individually delete all terminations for which an Add Command was pending at the time of the global Subtract Command. Also, new Add Commands for terminations named by the wildcarding (or implied in a Multiplex Descriptor) should not be sent until the wildcarded Subtract Command is acknowledged.
+- 5) AuditValue and AuditCapability are not subject to any sequencing.
+- 6) ServiceChange shall always be the first command sent by an MG as defined by the restart procedure. Any other command or response must be delivered after this ServiceChange Command.
+
+These rules do not affect the command responder, which should always respond to commands.
+
+## 9.2 Protection against restart avalanche
+
+In the event that a large number of Media Gateways are powered on simultaneously, and they were to all initiate a ServiceChange transaction, the Media Gateway Controller would very likely be swamped, leading to message losses and network congestion during the critical period of service restoration. In order to prevent such avalanches, the following behaviour is suggested:
+
+- 1) When a Media Gateway is powered on, it should initiate a restart timer to a random value, uniformly distributed between zero and a maximum waiting delay (MWD). Care should be taken to avoid synchronicity of the random number generation between multiple Media Gateways that would use the same algorithm.
+- 2) The Media Gateway should then wait for either the end of this timer or the detection of a local user activity, such as for example an off-hook transition on a residential Media Gateway.
+- 3) When the timer elapses, or when an activity is detected, the Media Gateway should initiate the restart procedure.
+
+The restart procedure simply requires the MG to guarantee that the first message that the Media Gateway Controller sees from this MG is a ServiceChange message informing the Media Gateway Controller about the restart.
+
+NOTE – The value of MWD is a configuration parameter that depends on the type of the Media Gateway. The following reasoning may be used to determine the value of this delay on residential gateways.
+
+Media Gateway Controllers are typically dimensioned to handle the peak hour traffic load, during which, on average, 10% of the lines will be busy, placing calls whose average duration is typically three minutes. The processing of a call typically involves five to six Media Gateway Controller transactions between each Media Gateway and the Media Gateway Controller. This simple calculation shows that the Media Gateway Controller is expected to handle five to six transactions for each termination, every 30 minutes on average, or, to put it otherwise, about one transaction per termination every five to six minutes on average. This suggests that a reasonable value of MWD for a residential gateway would be 10 to 12 minutes. In the absence of explicit configuration, residential gateways should adopt a value of 600 seconds for MWD.
+
+The same reasoning suggests that the value of MWD should be much shorter for trunking gateways or for business gateways, because they handle a large number of terminations, and also because the usage rate of these terminations is much higher than 10% during the peak busy hour, a typical value being 60%. These terminations, during the peak hour, are thus expected to contribute about one transaction per minute to the Media Gateway Controller load. A reasonable algorithm is to make the value of MWD per "trunk" termination six times shorter than the MWD per residential gateway, and also inversely proportional to the number of terminations that are being restarted. For example, MWD should be set to 2.5 seconds for a gateway that handles a T1 line, or to 60 milliseconds for a gateway that handles a T3 line.
+
+## 9.3 Protection against Notify avalanche
+
+If a circumstance arises at an MG where a substantial number of notifications accumulate, either because of transmission difficulties or because the MG recognized a number of events in a short time period, the MG should send the notifications in a restricted manner until the backlog is cleared.
+
+# 10 Security considerations
+
+This clause covers security when using the protocol in an IP environment.
+
+## 10.1 Protection of protocol connections
+
+A security mechanism is clearly needed to prevent unauthorized entities from using the protocol defined in this Recommendation for setting up unauthorized calls or interfering with authorized calls. The security mechanism for the protocol when transported over IP networks is IPSec ([IETF RFC 2401] to [b-IETF RFC 2411]).
+
+The AH header [IETF RFC 2402] affords data origin authentication, connectionless integrity and optional anti-replay protection of messages passed between the MG and the MGC. The ESP header [IETF RFC 2406] provides confidentiality of messages, if desired. For instance, the ESP encryption service should be requested if the session descriptions are used to carry session keys, as defined in SDP.
+
+Implementations of the protocol defined in this Recommendation employing the ESP header shall comply with section 5 of [IETF RFC 2406], which defines a minimum set of algorithms for integrity checking and encryption. Similarly, implementations employing the AH header shall comply with section 5 of [IETF RFC 2402], which defines a minimum set of algorithms for integrity checking using manual keys.
+
+Implementations should use IKE [IETF RFC 2409] to permit more robust keying options. Implementations employing IKE should support authentication with RSA signatures and RSA public key encryption.
+
+## 10.2 Interim AH scheme
+
+Implementation of IPSec requires that the AH or ESP header be inserted immediately after the IP header. This cannot be easily done at the application level. Therefore, this presents a deployment problem for the protocol defined in this Recommendation where the underlying network implementation does not support IPSec.
+
+As an interim solution, an optional AH header is defined within the ITU-T H.248.1 protocol header. The header fields are exactly those of the SPI, SEQUENCE NUMBER and DATA fields as defined in [IETF RFC 2402]. The semantics of the header fields are the same as the "transport mode" of [IETF RFC 2402], except for the calculation of the Integrity Check Value (ICV). In IPSec, the ICV is calculated over the entire IP packet including the IP header. This prevents spoofing of the IP addresses. To retain the same functionality, the ICV calculation should be performed across all the transactions (concatenated) in the message prepended by a synthesized IP header consisting of a
+
+32-bit source IP address, a 32-bit destination address and a 16-bit UDP destination port encoded as 20 hex digits. When the interim AH mechanism is employed when TCP is the transport Layer, the UDP Port above becomes the TCP port, and all other operations are the same.
+
+Implementations of the ITU-T H.248.1 protocol shall implement IPSec where the underlying operating system and the transport network supports IPSec. Implementations of the protocol using IPv4 shall implement the interim AH scheme. However, this interim scheme shall not be used when the underlying network layer supports IPSec. IPv6 implementations are assumed to support IPSec and shall not use the interim AH scheme.
+
+All implementations of the interim AH mechanism shall comply with section 5 of [IETF RFC 2402] which defines a minimum set of algorithms for integrity checking using manual keys.
+
+The interim AH interim scheme does not provide protection against eavesdropping, thus forbidding third parties from monitoring the connections set up by a given termination. Also, it does not provide protection against replay attacks. These procedures do not necessarily protect against denial of service attacks by misbehaving MGs or misbehaving MGCs. However, they will provide an identification of these misbehaving entities, which should then be deprived of their authorization through maintenance procedures.
+
+## 10.3 Protection of media connections
+
+The protocol allows the MGC to provide MGs with "session keys" that can be used to encrypt the audio messages, protecting against eavesdropping.
+
+A specific problem of packet networks is "uncontrolled barge-in". This attack can be performed by directing media packets to the IP address and UDP port used by a connection. If no protection is implemented, the packets must be decompressed and the signals must be played on the "line side".
+
+A basic protection against this attack is to only accept packets from known sources, checking for example that the IP source address and UDP source port match the values announced in the Remote Descriptor. This has two inconveniences: it slows down connection establishment and it can be fooled by source spoofing:
+
+- To enable the address-based protection, the MGC must obtain the remote session description of the egress MG and pass it to the ingress MG. This requires at least one network round trip, and leaves us with a dilemma: allow the call to proceed without waiting for the round trip to complete and risk, for example, "clipping" a remote announcement, or wait for the full round trip and settle for slower call-set up procedures.
+- Source spoofing is only effective if the attacker can obtain valid pairs of source destination addresses and ports, for example, by listening to a fraction of the traffic. To fight source spoofing, one could try to control all access points to the network. But this is in practice very hard to achieve.
+
+An alternative to checking the source address is to encrypt and authenticate the packets, using a secret key that is conveyed during the call set-up procedure. This will not slow down the call set-up, and provides strong protection against address spoofing.
+
+# 11 MG-MGC control interface
+
+The control association between MG and MGC is initiated at MG cold start, and announced by a ServiceChange message, but can be changed by subsequent events, such as failures or manual service events.
+
+NOTE – While the protocol does not have an explicit mechanism to support multiple MGCs controlling a physical MG, it has been designed to support the multiple logical MGs (within a single physical MG) that can be associated with different MGCs.
+
+## 11.1 Multiple Virtual MGs
+
+A physical Media Gateway may be partitioned into one or more Virtual MGs (VMGs). A Virtual MG consists of a set of statically partitioned physical terminations and/or sets of ephemeral terminations. A physical termination is controlled by one MGC. The model does not require that other resources be statically allocated, just terminations. The mechanism for allocating terminations to Virtual MGs is a management method outside the scope of this Recommendation. Each of the Virtual MGs appears to the MGC as a complete MG client.
+
+A physical MG may have only one network interface, which must be shared across Virtual MGs. In such a case, the packet/cell side termination is shared. It should be noted however, that in use, such interfaces require an ephemeral instance of the termination to be created per flow, and thus sharing the termination is straightforward. This mechanism does lead to a complication, namely that the MG must always know which of its controlling MGCs should be notified if an event occurs on the interface.
+
+In normal operation, the Virtual MG will be instructed by the MGC to create network flows (if it is the originating side), or to expect flow requests (if it is the terminating side), and no confusion will arise. However, if an unexpected event occurs, the Virtual MG must know what to do with respect to the physical resources it is controlling.
+
+If recovering from the event requires manipulation of a physical interface's state, only one MGC should do so. These issues are resolved by allowing any of the MGCs to create Events Descriptors to be notified of such events, but only one MGC can have read/write access to the physical interface properties; all other MGCs have read-only access. The management mechanism is used to designate which MGC has read/write capability, and is designated the Master MGC.
+
+Each Virtual MG has its own Root Termination. In most cases, the values for the properties of the Root Termination are independently settable by each MGC. Where there can only be one value, the parameter is read-only to all but the Master MGC.
+
+ServiceChange may only be applied to a termination or set of terminations partitioned to the Virtual MG or created (in the case of ephemeral terminations) by that Virtual MG.
+
+## 11.2 Cold start
+
+An MG is pre-provisioned by a management mechanism outside the scope of this Recommendation with a primary and (optionally) an ordered list of secondary MGCs. Upon a cold start of the MG, it will issue a ServiceChange Command with a "Restart" method, on the Root Termination to its primary MGC. If the MGC accepts the MG, it sends a TransactionReply not including a ServiceChangeMgcID parameter. If the MGC does not accept the MG's registration, it sends a TransactionReply, providing the address of an alternate MGC to be contacted by including a ServiceChangeMgcID parameter.
+
+If the MG receives a TransactionReply that includes a ServiceChangeMgcID parameter, it sends a ServiceChange to the MGC specified in the ServiceChangeMgcID. It continues this process until it gets a controlling MGC to accept its registration, or it fails to get a reply. Upon failure to obtain a reply, either from the primary MGC, or a designated successor, the MG tries its pre-provisioned secondary MGCs, in order. If the MG is unable to establish a control relationship with any MGC, it shall wait a random amount of time as described in clause 9.2 and then start contacting its primary, and if necessary, its secondary MGCs again.
+
+It is possible that the reply to a ServiceChange with Restart will be lost, and a command will be received by the MG prior to the receipt of the ServiceChange response. The MG shall issue Error Code 505 ("TransactionRequest Received before a ServiceChange Reply has been received").
+
+## 11.3 Negotiation of protocol version
+
+A ServiceChange Command from an MG that registers with an MGC shall contain the version number of the protocol supported by the MG in the ServiceChangeVersion parameter. Upon receiving such a message, if the MGC supports only a lower version, then the MGC shall send a ServiceChange Reply with the lower version in the ServiceChangeVersion parameter and, thereafter, all the messages between MG and MGC shall be encoded and conform to the lower version of the protocol. If the MG is unable to comply, and it has established a transport connection to the MGC, it should close that connection. In any event, it should reject all subsequent requests from the MGC with Error Code 406 ("Version Not Supported").
+
+Regardless of the version placed in the ServiceChangeVersion parameter, the message containing the initial ServiceChange request and response shall be encoded as a version 1 message.
+
+If the MGC only supports higher version(s) than the MG, it shall reject the association with Error Code 406 ("Version Not Supported").
+
+If the MGC supports the version indicated by the MG, both the MGC and MG shall conform to that version in all subsequent messages after the ServiceChange Reply from the MGC. In this case it is optional for the MGC to return a version in the ServiceChange Reply. Any subsequent messaging that does not conform to the negotiated version shall be rejected with Error Code 406 ("Version Not Supported").
+
+Protocol version negotiation may also occur at "Handoff" and "Failover" ServiceChanges.
+
+For rules regarding protocol extension see clause 11.7.
+
+## 11.4 Failure of an MG
+
+If an MG fails, but is capable of sending a message to the MGC, it sends a ServiceChange with an appropriate method (Graceful or Forced) and specifies the Root TerminationID. When it returns to service, it sends a ServiceChange with a "Restart" ServiceChangeMethod.
+
+Allowing the MGC to send duplicate messages to both MGs accommodates pairs of MGs that are capable of redundant failover of one of the MGs. Only the Working MG shall accept or reject transactions. Upon failover, the primary MG sends a ServiceChange Command with a "Failover" method and a "MG Impending Failure" reason. The MGC then uses the secondary MG as the active MG. When the error condition is repaired, the working MG can send a "ServiceChange" with a "Restart" ServiceChangeMethod.
+
+NOTE – Redundant failover MGs require a reliable transport, because the protocol provides no means for a secondary MG running ALF to acknowledge messages sent from the MGC.
+
+## 11.5 Failure of an MGC
+
+If the MG detects a failure of its controlling MGC, it attempts to contact the next MGC on its pre-provisioned list. It starts its attempts at the beginning (primary MGC), unless that was the MGC that failed, in which case it starts at its first secondary MGC. It sends a ServiceChange message with a "Failover" method and a "MGC Impending Failure" reason. If the MG is unable to establish a control relationship with any MGC, it shall wait a random amount of time as described in clause 9.2 and then start again contacting its primary, and (if necessary) its secondary MGCs. When contacting its previously controlling MGC, the MG sends the ServiceChange message with "Disconnected" method.
+
+In partial failure, or for manual maintenance reasons, an MGC may wish to direct its controlled MGs to use a different MGC. To do so, it sends a ServiceChange command to the MG with a "Handoff" method, and its designated replacement in ServiceChangeMgcID. If "Handoff" is supported, the MG shall send a ServiceChange message with a "Handoff" method and a "MGC directed change" reason to the designated MGC. If it fails to get a reply from the designated MGC,
+
+the MG shall behave as if its MGC failed, and start contacting secondary MGCs as specified in the previous paragraph. If the MG is unable to establish a control relationship with any MGC, it shall wait a random amount of time as described in clause 9.2 and then start contacting its primary, and if necessary, its secondary MGCs again.
+
+No recommendation is made on how the MGCs involved in the handoff maintain state information; this is considered to be out of scope of this Recommendation. The MGC and MG may take the following steps when handoff occurs. When the MGC initiates a handoff, the handover should be transparent to operations on the Media Gateway. Transactions can be executed in any order, and could be in progress when the ServiceChange is executed. Accordingly, commands in progress continue and replies to all commands from the original MGC must be sent to the transport address from which they were sent. If the service relationship with the sending MGC has ended, the replies should be discarded. The MG may receive outstanding transaction replies from the new MGC. No new messages shall be sent to the new MGC until the control association is established. Repeated transaction requests shall be directed to the new MGC. The MG shall maintain the state of all terminations and contexts.
+
+It is possible that the MGC could be implemented in such a way that a failed MGC is replaced by a working MGC where the identity of the new MGC is the same as the failed one. In such a case, the ServiceChangeMgcID would be specified with the previous value and the MG shall behave as if the value was changed, and send a ServiceChange message, as above.
+
+Pairs of MGCs that are capable of redundant failover can notify the controlled MGs of the failover by the above mechanism.
+
+## **11.6 MGC-MG control association monitoring**
+
+Monitoring the MGC-MG control association is essential for high availability networks. This may be realized by continuously checking the MGC-MG interconnection (link state). Many transports provide this functionality, so a mandatory protocol mechanism is unnecessary.
+
+For those transports that do not provide link state monitoring, this functionality can be achieved in the ITU-T H.248 protocol by utilizing the existing messaging. In the absence of any ITU-T H.248 messaging, the MGC may use an AuditValue Command on Root with an empty Audit Descriptor to detect the loss of communications with the MG. The MG can detect the communications loss itself through the use of the Inactivity Timer Package [ITU-T H.248.14].
+
+## **11.7 Compatibility**
+
+### **11.7.1 Compatibility rules – forward and backward compatibility**
+
+ITU-T H.248 through its versioning and package extension capabilities allows forward compatibility. As per [b-ITU-T Q.1400] clause 12.3, forward compatibility mechanisms are defined as a scheme to enable a version of a protocol to communicate effectively with and interwork with future versions of the protocol. That is, a version of a protocol should not restrict future protocols from providing extra capabilities.
+
+When extending the ITU-T H.248 protocol backwards compatibility shall be maintained. As per [b-ITU-T Q.1400] clause 12.3 backward compatibility rules are defined as a scheme to ensure that nodes implementing future versions of the protocol will be able to send protocol messages of the previous version which will be understood and fully processed by the node supporting the previous version. That is, future versions of a protocol must allow earlier versions to operate with it and not reduce the earlier version's service level, i.e., a version 1 message with the version removed shall be able to be sent with a version 3 protocol with exactly the same meaning.
+
+The ITU-T H.248 specific backward compatibility rules that should be followed when extending the protocol (including packages and profiles) with new versions, are as follows:
+
+- 1) Existing protocol elements, i.e., procedures, parameters, descriptor, property, values, should not be changed unless a protocol error needs to be corrected or it becomes necessary to change the operation of the service that is being supported by the protocol.
+- 2) The semantics of a command, a parameter, a descriptor, a property, or a value should not be changed.
+- 3) Established rules for formatting and encoding messages and parameters should not be modified.
+- 4) When information elements are found to be obsolete they can be marked as not used. However, the identifier for that information element will be marked as reserved. In that way it cannot be used in future versions.
+
+### **11.7.2 Compatibility mechanism**
+
+Protocol, package and profile versioning is integral part of the ITU-T H.248 architecture. The versioning of protocol elements together with the concept of the ITU-T H.248 control association permits effective compatibility mechanisms.
+
+#### **11.7.2.1 Aspect of ITU-T H.248 control association**
+
+Negotiated protocol capabilities are used for the lifetime of the ITU-T H.248 control association. An initial ServiceChange registration message is encoded as protocol version 1 (see clause 11.3); however, the final protocol version used is negotiated and may be subject of determination/negotiation of one or more profiles.
+
+#### **11.7.2.2 Capability change or service change on existing ITU-T H.248 control associations**
+
+A capability upgrade, leading to version negotiation procedures, may lead to a re-newing or re-establishment of the control association. This compatibility mechanism allows principally the replacement of version N protocol, package(s) and/or profile(s) by a lower or higher version N-K or N+M.
+
+# **12 Package definition**
+
+The primary mechanism for extension is by means of Packages. Packages define additional properties that may occur on terminations and contexts and events, signals and statistics that may occur on terminations.
+
+Packages and their versions are not generally related to the version of the protocol being used. If packages defined outside ITU-T H.248.1 have a dependence upon the syntax or features of a particular version of the protocol, they must explicitly state the minimum version of the protocol upon which they are dependent.
+
+Packages defined by IETF will appear in separate RFCs.
+
+Packages defined by ITU-T may appear in the relevant Recommendations (e.g., as in the ITU-T H.248 subseries of Recommendations).
+
+The package definition:
+
+- 1) should be a public document or a standard forum document, which can be referenced as the document that describes the package following the guideline above, should be specified.
+- 2) The document shall specify the version of the Package that it describes.
+- 3) The document should be available on a public web server and should have a stable URL. The site should provide a mechanism to provide comments and appropriate responses should be returned.
+
+## 12.1 Guidelines for defining packages
+
+Packages define properties, events, signals, and statistics.
+
+Packages may also define new error codes according to the guidelines given in clause 14.2. This is a matter of documentary convenience: the package documentation is submitted to IANA in support of the error code registration. If a package is modified, it is unnecessary to provide IANA with a new document reference in support of the error code unless the description of the error code itself is modified.
+
+Names of all such defined constructs shall consist of the PackageID (which uniquely identifies the package) and the ID of the item (which uniquely identifies the item in that package). In the text encoding the two shall be separated by a forward slash ("/") character. Example: tonegen/playtone is the text encoding to refer to the play tone signal in the tone generation package.
+
+A Package shall contain the following sections and keywords (indicated in bold). A template for defining packages is contained in Appendix II.
+
+### 12.1.1 Package
+
+Overall description of the package, specifying:
+
+**Package name:** only descriptive
+
+**Package ID:** is an identifier
+
+**Description:** is a description of the package
+
+**Version:** A new version of a package can only add additional properties, events, signals, statistics and new possible values for an existing parameter described in the original package. No deletions or modifications shall be allowed. A version is an integer in the range from 1 to 99.
+
+**Designed to be extended only** (Optional): Yes This indicates that the package has been expressly designed to be extended by others, not to be directly referenced. For example, the package may not have any function on its own or be nonsensical on its own. The MG shall not publish this PackageID when reporting packages.
+
+**Extends:** existing package Identifier and version.
+
+A package may extend an existing package. The version of the original package must be specified. When a package extends another package it shall only add additional properties, events, signals, statistics and new possible values for an existing parameter described in the original package. An extended package shall not redefine or overload an identifier defined in the original package and packages it may have extended (multiple levels of extension). Hence, if package B version 1 extends package A version 1, version 2 of B will not be able to extend the A version 2 if A version 2 defines a name already in B version 1. If the package does not extend another package, it shall specify "none".
+
+### 12.1.2 Properties
+
+Properties defined by the package, specifying:
+
+- Property name:** only descriptive
+- Property ID:** is an identifier.
+- Description:** is a description of the function of the property
+- Type:** One of:
+Boolean
+String: UTF-8 string
+Octet String: A number of octets. See Annex A and clause B.3 for encoding
+Integer: 4-byte signed integer
+Unsigned Integer: 4-octet unsigned integer
+Double: 8-byte signed integer
+Character: Unicode UTF-8 encoding of a single letter; could be more than one octet.
+Enumeration: one of a list (NOTE) of possible unique values. Packages MUST define the text and binary encodings for each value in the enumeration.
+Sub-list: a list of several values from a list (NOTE). The type of sub-list shall also be specified. The type shall be chosen from the types specified in this section (with the exception of sub-list). For example, Type: sub-list of enumeration. The encoding of sub-lists is specified in clauses A.2 and B.2.
+NOTE – A Sub-list may contain a single list item. See clauses A.2 and B.2 for the encoding options.
+- Possible values:** A package must specify either a specific set of values or a description of how values are determined. A package must also specify a default value or the default behaviour when the value is omitted from its descriptor. For example, a package may specify that procedures related to the property are suspended when its value is omitted.
+- Default:** A default value (but not procedures) may be specified as provisionable.
+- Defined in:** The ITU-T H.248.1 descriptor in which the property is defined. LocalControl is for stream-dependent properties. TerminationState is for stream-independent properties. ContextAttribute is for properties that affect the context as a whole, i.e., mixing properties. These are expected to be the most common cases, but it is possible for properties to be defined in other descriptors. Context properties must be defined in the ContextAttribute Descriptor.
+
+**Characteristics:** Read-Only or Read/Write, and (optionally), global:
+ Indicates whether a property is read-only, or read/write, and if it is global. If global is omitted, the property is not global. If a property is declared as global, the value of the property is shared by all terminations realizing the package. If a context property is declared as global, the property is shared by all contexts realizing the package.
+
+### 12.1.3 Events
+
+Events defined by the package, specifying:
+
+**Event name:** only descriptive
+**Event ID:** is an identifier
+**Description:** a description of the function of the event
+**EventsDescriptor parameters:** Parameters used by the MGC to configure the event, and found in the Events Descriptor. See clause 12.2. If there are no parameters for the Events Descriptor, then "none" shall be specified.
+**ObservedEvents Descriptor parameters:** Parameters returned to the MGC in Notify requests and in replies to command requests from the MGC that audit ObservedEvents Descriptor, and found in the ObservedEvents Descriptor. See clause 12.2. If there are no parameters for the ObservedEvents Descriptor, then "none" shall be specified.
+
+### 12.1.4 Signals
+
+Signals defined by the package, specifying:
+
+**Signal name:** only descriptive
+**Signal ID:** is an identifier. SignalID is used in a Signals Descriptor
+**Description:** a description of the function of the signal
+**SignalType:** one of:
+ OO (OnOff)
+ TO (TimeOut)
+ BR (Brief)
+ NOTE – SignalType may be defined such that it is dependent on the value of one or more parameters. The package must specify a default signal type. If the default type is TO, the package must specify a default duration which may be provisioned. A default duration is meaningless for BR.
+**Duration:** in hundredths of seconds
+**Additional parameters:** see clause 12.2
+
+### 12.1.5 Statistics
+
+Statistics defined by the package, specifying:
+
+| | |
+|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Statistic name: | only descriptive |
+| Statistic ID: | is an identifier
StatisticID is used in a Statistics Descriptor |
+| Description: | a description of the statistic |
+| Type: | One of:
Boolean
String: UTF-8 string
Octet String: A number of octets. See Annex A and clause B.3 for encoding
Integer: 4-byte signed integer
Unsigned Integer: 4-octet unsigned integer
Double: 8-byte signed integer
Character: Unicode UTF-8 encoding of a single letter. Could be more than one octet.
Enumeration: One of a list (NOTE) of possible unique values. Packages MUST define the text and binary encodings for each value in the enumeration.
Sub-list: A list of several values from a list (NOTE). The type of sub-list shall also be specified. The type shall be chosen from the types specified in this section (with the exception of sub-list). For example, Type: sub-list of enumeration. The encoding of sub-lists is specified in Annex A and in clause B.2.
NOTE – A Sub-list may contain a single list item. See clauses A.2 and B.2 for the encoding options. |
+| Possible values: | A package must indicate the unit of measure, e.g., milliseconds, packets, either here or along with the type above, as well as indicating any restriction on the range. |
+| Level: | Specify if the statistic can be kept at the termination level, Stream level or either. |
+
+#### 12.1.5.1 Aspects of statistics transformation
+
+ITU-T H.248 statistics are generated by Media Gateways. Such statistics are either based on MG local measurements, that is, the MG is the measurement point, or the statistics are based on remote measurements from the MG perspective. The reported statistics by the MG could be transformed in some specific cases, e.g., by the served user of the statistics (see Figure 16).
+
+
+
+Diagram illustrating the potential location of statistics transformation in an ITU-T H.248 architecture. The diagram shows three main components: a Remote network element (dashed box), a Media Gateway Controller (MGC), and an ITU-T H.248 Media Gateway (MG). The MGC contains a 'Statistics processing' block. The MG contains 'Generation of ITU-T H.248 statistic(s)' and 'Measurement Points (MP)'. A pink arrow labeled 'ITU-T H.248' points from the MG to the MGC. A dashed arrow points from the MGC to the Remote network element. A blue callout box labeled 'Potential transformation of statistics' with the reference 'H.248.1 v3(13)\_F16' has arrows pointing to both the 'Statistics processing' block in the MGC and the dashed arrow between the MGC and the Remote network element.
+
+**Figure 16 – Potential location of statistics transformation**
+
+Transformation of statistics is applicable to certain categories of statistics (e.g., statistics related to traffic-volume and traffic-rate metrics), and then only in very specific scenarios. Typically, transformation rules are only applied when a set of conditions is fulfilled. These conditions are generally proscribed by the bearer technology, protocol stack and other service aspects related to the ITU-T H.248 stream or termination.
+
+By defining statistics explicitly related to the layer or condition that is desired to be collected, post-collection transformation of statistics can be avoided.
+
+### 12.1.6 Error codes
+
+If the package does not define any error codes, this section may be omitted. Otherwise, it describes error codes defined by the package, specifying:
+
+- Error Code #:** The error code number.
+- Name:** Name of the error
+- Definition:** A description of the error code.
+- Error text in the Error Descriptor:** A description of what text to return in the Error Descriptor.
+- Comment:** Any further comments on the use of the error code.
+
+### 12.1.7 Procedures
+
+Additional guidance on the use of the package.
+
+## 12.2 Guidelines to defining parameters to events and signals
+
+- Parameter name:** only descriptive
+- Parameter ID:** is an identifier. The textual ParameterID of parameters to events and signals shall not start with "EPA" and "SPA", respectively. The textual ParameterID shall also not be "ST", "Stream", "SY", "SignalType", "DR", "Duration", "NC", "NotifyCompletion", "KA", "KeepActive", "EB", "Embed", "DM", "DigitMap", "SPADI", "SPADirection", "SPARQ" or "SPARrequestID".
+- Description:** a description of the function of the parameter.
+- Type:** One of:
+Boolean
+String: UTF-8 octet string
+Octet String: A number of octets. See Annex A and clause B.3 for encoding
+Integer: 4-octet signed integer
+Unsigned Integer: 4-octet unsigned integer
+Double: 8-octet signed integer
+Character: Unicode UTF-8 encoding of a single letter. Could be more than one octet.
+Enumeration: one of a list of possible unique values. Packages MUST define the text and binary encodings for each value in the enumeration.
+Sub-list: a list of several values from a list (not supported for statistics). The type of sub-list shall also be specified. The type shall be chosen from the types specified in this section (with the exception of sub-list). For example, Type: sub-list of enumeration. The encoding of sub-lists is specified in Annex A and clause B.2.
+- Optional:** Yes/No
+Describes if the parameter may be omitted from the signal or event.
+- Possible values:** A package must specify either a specific set of values or a description of how values are determined. A package must also specify a default value or the default behaviour when the value is omitted from its descriptor. For example, a package may specify that procedures related to the parameter are suspended when its value is omitted.
+- Default:** A default value (but not procedures) may be specified as provisionable.
+
+## 12.3 Identifiers
+
+Identifiers in text encoding shall be strings of up to 64 characters, containing no spaces, starting with an alphabetic character and consisting of alphanumeric characters and/or digits, and possibly including the special character underscore ("\_").
+
+Identifiers in binary encoding are 2 octets long.
+
+Both text and binary values shall be specified for each identifier, including identifiers used as values in enumerated types.
+
+## 12.4 Package registration
+
+A package can be registered with IANA for interoperability reasons. See clause 14 for IANA considerations.
+
+# 13 Profile definition
+
+Profiles may be specified to further define how the ITU-T H.248.1 protocol is used and what functionality is supported by an MG. It only describes the capabilities of the MGC/MG ITU-T H.248 interface. The profile itself specifies what options associated with ITU-T H.248.1 have been used. For example: transport and packages used for an application.
+
+Any profile definition shall not extend the ITU-T H.248.1 protocol by, e.g., adding new syntactical elements, revision of semantics, or additional procedures (like, e.g., cross-package level procedures) in a profile. Possible profile procedures are thus given only by possible core protocol level (1) and package level (2) procedures.
+
+A profile is identified by a name (IANA registered) and a version. A name shall be a case-insensitive string up to 64 characters long. Version shall be 1 to 99.
+
+The profile itself is a document that indicates the options for a particular application. There is no set format for this document. The only mandatory element is that there should be a section indicating the Profile Name and Version and a summary of the profile.
+
+The two points below are the only mandatory sections of a profile:
+
+- Profile Identification: The name and version of the profile that is sent in the ServiceChange Command.
+- Summary: A description of what the profile is.
+
+Appendix III contains a template for the definition of profiles. It should be used as the basis of a profile definition.
+
+# 14 IANA ITU-T H.248 registrations
+
+Registrations for ITU-T H.248 Packages, Error Codes, ServiceChangeReasons and Profile are requested from the IANA. [IETF RFC 5615] documents the procedures from an Expert reviewer and an IANA considerations perspective. This clause and its subclauses provide an outline to requesters of the information required and the procedures for public and private registrations.
+
+## 14.1 Package registration procedure
+
+Package requesters are encouraged to review their work against clause 12, "Package definition", and are encouraged to use the package definition template provided in Appendix II.
+
+The process for registering a public Package is deemed to be "specification required" as per [IETF RFC 5226]. As such, once the initial checks occur, Package requesters for public packages under development shall send the package text to IANA. They are also encouraged to send the package to the ITU-T Question/Study Group responsible for the ITU-T H.248 sub-series of Recommendations (Question 3 of ITU-T Study Group 16 at the time of writing) for review. Updated contact information can be found in the latest version of the ITU-T H.248 Sub-series Implementors' Guide. This should occur as soon as practicable after the rough draft of the definition is completed and at least before the package is approved, in order to ensure the package is consistent with ITU-T H.248 methodologies and package design principles.
+
+In order to register private Packages, a specification is not required but is encouraged.
+
+Package requesters are encouraged to request registration as early as practicable in the design process, to reserve a binary ID. Binary IDs shall be published in the document defining the package.
+
+Once the initial or final request for a Package registration is received by IANA, it will be forwarded to the Internet Engineering Steering Group (IESG) appointed Expert for review. During the review the input package and details will be compared to the Package template for completeness, as well as being compared against protocol syntax and procedures. It will be compared against existing work to see that it does not duplicate existing functionalities. It will be reviewed to see that any potential security issues are addressed. The Expert reviewer will then work towards a resolution of any issues with the Package requester. The IESG appointed Expert may complete the review in consultation with other ITU-T H.248 experts (i.e., Currently Question 3 of ITU-T Study Group 16 and via email to IETF Megaco email list). If the package is deemed suitable, the IESG appointed Expert shall issue a statement indicating approval, copied to IANA.
+
+The IESG Expert reviewer will ensure the following considerations are met to register a package with IANA:
+
+- 1) A unique string name, unique serial number and version number is registered for each package. The string name is used as the PackageID for text encoding. The serial number is used as the PackageID for binary encoding. Public packages MUST be given serial numbers in the range 0x0001 to 0x7fff. Private packages MUST be given serial numbers in the range 0x8000 to 0xffff. Serial number 0 is reserved. The unique string name and unique serial number MAY either be requested by the package requester or, if not requested, assigned by IANA.
+- 2) The package requester shall provide a contact name, and an email and postal addresses for that contact. The contact information shall be updated by the defining organization, as necessary.
+- 3) The public package requester shall provide a reference to a document that describes the package, which should be public:
+ - a) The document shall specify the version of the package that it describes.
+ - b) If the document is public, it should be located on a public web server and should have a stable URL. The site should provide a mechanism to provide comments, and appropriate responses should be returned.
+ - c) If the document is not public, it must be made available for review by the IESG appointed Expert (without requiring a non disclosure agreement (NDA)) at the time of the application.
+
+NOTE – The document does not have to be publicly available at the time of the registration request, however the document shall be provided and available for review by the IESG appointed Expert. Once approved by a standards body, the package should be publicly available, however the package may remain not public.
+
+For private packages a contact email address for the package registration shall be provided.
+
+- 4) Packages registered by other than recognized standards bodies shall have a minimum package name length of 8 characters.
+- 5) Package names are allocated on a first come-first served basis if all other conditions are met.
+
+Status – "In Progress (IP)" indicates that the package has not been fully reviewed and approved; therefore, it may contain errors or may not be consistent with ITU-T H.248 principles. "Final" indicates that the Package has been reviewed and approved and is stable. New packages shall be registered with a status of "IP". Once the Package has been finalized (i.e., approved according to the procedures of the Package Requester's Organization) they should contact IANA in order to update the status to "Final".
+
+Once the IESG appointed Expert has determined that the registration is appropriate they will advise IANA to register the Package.
+
+IANA will assign a serial number to each package meeting the conditions of registration (except for an update of an existing package, which retains the serial number of the package it is updating), in consecutive order of registration.
+
+## **14.2 Error code registration procedure**
+
+Error code requesters shall send a request to IANA to register the error code. Documentation addressing the considerations below shall be provided (i.e., Specification required as per [IETF RFC 5226]). IANA shall then forward the request to the IESG appointed Expert for review.
+
+The following considerations shall be met to register an error code with IANA:
+
+- 1) An error number and a one-line (80-character maximum) string are registered for each error.
+- 2) A complete description of the conditions under which the error is detected shall be included in a publicly available document. The description shall be sufficiently clear to differentiate the error from all other existing error codes.
+- 3) The document should be available on a public web server and should have a stable URL.
+- 4) Error numbers registered by recognized standards bodies shall have 3- or 4-character error numbers.
+- 5) Error numbers registered by all other organizations or individuals shall have 4-character error numbers.
+- 6) Only the organization or individual that originally defined it (or their successors or assigns) can modify an error number definition.
+
+If the modification leads to a change in the error code number, error code name or error string, the error code modifier shall send a request to IANA to register the update. This request shall be treated as a new error code request which will involve an Expert review.
+
+Once the IESG appointed Expert has determined that the registration is appropriate they will advise IANA to register the error code.
+
+## **14.3 ServiceChange reason registration procedures**
+
+ServiceChange reason requesters shall send a request to IANA to register the ServiceChange reason. Documentation addressing the considerations below shall be provided (i.e., Specification required as per [IETF RFC 5226]). IANA shall then forward the request to the IESG appointed Expert for review.
+
+The following considerations shall be met to register ServiceChange reason with IANA:
+
+- 1) A one-phrase, 80-character maximum, unique reason code is registered for each reason.
+- 2) A complete description of the conditions under which the reason is used shall be included in a publicly available document. The description shall be sufficiently clear to differentiate the reason from all other existing reasons.
+- 3) The document should be available on a public web server and should have a stable URL.
+
+Once the IESG appointed Expert has determined that the registration is appropriate they will advise IANA to register the ServiceChange reason.
+
+## **14.4 Profile registration procedures**
+
+Profile name requesters shall send a request to IANA to register the profile name. Documentation addressing the considerations below shall be provided. IANA shall then forward the request to the IESG appointed Expert for review.
+
+The following considerations shall be met to register a profile with IANA:
+
+- 1) A unique string name and version number (version may be omitted when the profile name contains a wildcard) is registered for each profile.
+- 2) A contact name, email and postal addresses for that contact shall be specified. The contact information shall be updated by the defining organization as necessary.
+- 3) Profiles registered by other than recognized standards bodies shall have a minimum profile name length of 6 characters.
+- 4) Profile names containing a wildcard "\*" on the end of their names shall be accepted if the first 6 characters are fully specified. It is assumed that the organization that was issued with the profile name will manage the namespace associated with the wildcard. IANA shall not issue other profiles names within "name\*" range.
+
+All other profile names are first come-first served if all other conditions are met.
+
+Once the IESG appointed Expert has determined that the registration is appropriate they will advise IANA to register the profile.
+
+# Annex A
+
+## Binary encoding of the protocol
+
+(This annex forms an integral part of this Recommendation.)
+
+This annex specifies the syntax of messages using the notation defined in [ITU-T X.680], *Information technology – Abstract Syntax Notation One (ASN.1): Specification of basic notation*. Messages shall be encoded for transmission by applying the basic encoding rules specified in [ITU-T X.690], *Information Technology – ASN.1 Encoding Rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)*.
+
+## A.1 Coding of wildcards
+
+The use of wildcards ALL and CHOOSE is allowed in the protocol. This allows an MGC to partially specify TerminationIDs and to let the MG choose from the values that conform to the partial specification. TerminationIDs may encode a hierarchy of names. This hierarchy is provisioned. For instance, a TerminationID may consist of a trunk group, a trunk within the group and a circuit. Wildcarding must be possible at all levels. The following paragraphs explain how this is achieved.
+
+The ASN.1 description uses octet strings of up to 8 octets in length for TerminationIDs. This means that TerminationIDs consist of at most 64 bits. A fully specified TerminationID may be preceded by a sequence of wildcarding fields. A wildcarding field is one octet in length. Bit 7 (the most significant bit) of this octet specifies what type of wildcarding is invoked: if the bit value equals 1, then the ALL wildcard is used; if the bit value is 0, then the CHOOSE wildcard is used. Bit 6 of the wildcarding field specifies whether the wildcarding pertains to one level in the hierarchical naming scheme (bit value 0) or to the level of the hierarchy specified in the wildcarding field plus all lower levels (bit value 1). Bits 0 through 5 of the wildcarding field specify the bit position in the TerminationID at which the wildcarding starts.
+
+We illustrate this scheme with some examples. In these examples, the most significant bit in a string of bits appears on the left-hand side.
+
+Assume that TerminationIDs are three octets long and that each octet represents a level in a hierarchical naming scheme. A valid TerminationID is:
+
+00000001 00011110 01010101.
+
+Addressing ALL names with prefix 00000001 00011110 is done as follows:
+
+wildcarding field: 10000111
+
+TerminationID: 00000001 00011110 xxxxxxxx.
+
+The values of the bits labelled "x" is irrelevant and shall be ignored by the receiver.
+
+Indicating to the receiver that it must choose a name with 00011110 as the second octet is done as follows:
+
+wildcarding fields: 00010111 followed by 00000111
+
+TerminationID: xxxxxxxx 00011110 xxxxxxxx.
+
+The first wildcard field indicates a CHOOSE wildcard for the level in the naming hierarchy starting at bit 23, the highest level in our assumed naming scheme. The second wildcard field indicates a CHOOSE wildcard for the level in the naming hierarchy starting at bit 7, the lowest level in our assumed naming scheme.
+
+Finally, a CHOOSE-wildcarded name with the highest level of the name equal to 00000001 is specified as follows:
+
+wildcard field: 01001111
+
+TerminationID: 0000001 xxxxxxxx xxxxxxxx.
+
+Bit value 1 at bit position 6 of the first octet of the wildcard field indicates that the wildcarding pertains to the specified level in the naming hierarchy and all lower levels.
+
+ContextIDs may also be wildcarded. In the case of ContextIDs, however, specifying partial names is not allowed. ContextID 0x0 shall be used to indicate the NULL Context, ContextID 0xFFFFFE shall be used to indicate a CHOOSE wildcard, and ContextID 0xFFFFFFFF shall be used to indicate an ALL wildcard.
+
+TerminationID 0xFFFFFFFFFFFFFFFF shall be used to indicate the Root Termination.
+
+## A.2 ASN.1 syntax specification
+
+This clause contains the ASN.1 specification of the ITU-T H.248.1 protocol syntax.
+
+NOTE 1 – In case a transport mechanism is used that employs application level framing, the definition of **Transaction** below changes. Refer to the annex or to the Recommendation of the ITU-T H.248.x subseries defining the transport mechanism for the definition that applies in that case.
+
+NOTE 2 – This syntax specification does not enforce all restrictions on element inclusions and values. Some additional restrictions are stated in comments and other restrictions appear in the text of this Recommendation. These additional restrictions are part of the protocol even though not enforced by this Recommendation.
+
+NOTE 3 – The ASN.1 module in this annex uses octet string types to encode values for property parameter, signal parameter and event parameter values and statistics. The actual types of these values vary and are specified in Annex C or the relevant package definition.
+
+A value is first BER-encoded based on its type using the table below. The result of this BER-encoding is then encoded as an ASN.1 octet string, "double wrapping" the value. The format specified in Annex C or the package relates to BER encoding according to the following table:
+
+| Type Specified in Package | ASN.1 BER Type |
+|-------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------|
+| String | IA5String or UTF8String (Note 4) |
+| Integer (4-octet) | INTEGER |
+| Double (8-octet signed int) | INTEGER (Note 3) |
+| Character (UTF-8) (Note 1) | IA5String |
+| Enumeration | ENUMERATED |
+| Boolean | BOOLEAN |
+| Unsigned Integer (Note 2) | INTEGER (Note 3) |
+| Octet (String) | OCTET STRING |
+| NOTE 1 – Can be more than one byte. | |
+| NOTE 2 – Unsigned integer is referenced in Annex C. | |
+| NOTE 3 – The BER encoding of INTEGER does not imply the use of 4 bytes. | |
+| NOTE 4 – String should be encoded as IA5String when the contents are all ASCII characters, but as UTF8String if it contains any non-ASCII characters. | |
+
+See clause 8.7 of [ITU-T X.690], for the definition of the encoding of an octet string value.
+
+```
+MEDIA-GATEWAY-CONTROL {itu-t(0) recommendation(0) h(8) h248(248) modules(0)
+media-gateway-control(0) version3(3)}
+DEFINITIONS AUTOMATIC TAGS ::=
+```
+
+```
+
+BEGIN
+MegacoMessage ::= SEQUENCE
+{
+ authHeader AuthenticationHeader OPTIONAL,
+ mess Message
+}
+
+AuthenticationHeader ::= SEQUENCE
+{
+ secParmIndex SecurityParmIndex,
+ seqNum SequenceNum,
+ ad AuthData
+}
+
+SecurityParmIndex ::= OCTET STRING(SIZE(4))
+SequenceNum ::= OCTET STRING(SIZE(4))
+AuthData ::= OCTET STRING (SIZE (12..32))
+Message ::= SEQUENCE
+{
+ version INTEGER(0..99),
+ -- The version of the protocol defined here is equal to 3.
+ mId Mid, -- Name/address of message originator
+ messageBody CHOICE
+ {
+ messageError ErrorDescriptor,
+ transactions SEQUENCE OF Transaction
+ },
+ ...
+}
+
+Mid ::= CHOICE
+{
+ ip4Address IP4Address,
+ ip6Address IP6Address,
+ domainName DomainName,
+ deviceName PathName,
+ mtpAddress OCTET STRING(SIZE(2..4)),
+ -- Addressing structure of mtpAddress:
+ -- 25 - 15 0
+ -- | PC | NI |
+ -- 24 - 14 bits 2 bits
+ -- NOTE - 14 bits are defined for international use.
+ -- Two national options exist where the point code is 16 or 24 bits.
+ -- To octet align the mtpAddress, the MSBs shall be encoded as 0s.
+ ...
+}
+
+DomainName ::= SEQUENCE
+{
+ name IA5String,
+ -- The name starts with an alphanumeric digit followed by a sequence
+ -- of alphanumeric digits, hyphens and dots. No two dots shall occur
+ -- consecutively.
+ portNumber INTEGER(0..65535) OPTIONAL
+}
+
+IP4Address ::= SEQUENCE
+{
+ address OCTET STRING (SIZE(4)),
+ portNumber INTEGER(0..65535) OPTIONAL
+}
+
+IP6Address ::= SEQUENCE
+{
+
+```
+
+```
+
+ address OCTET STRING (SIZE(16)),
+ portNumber INTEGER(0..65535) OPTIONAL
+ }
+
+ PathName ::= IA5String(SIZE (1..64))
+ -- See A.3
+
+ Transaction ::= CHOICE
+ {
+ transactionRequest TransactionRequest,
+ transactionPending TransactionPending,
+ transactionReply TransactionReply,
+ transactionResponseAck TransactionResponseAck,
+ -- use of response acks is dependent on underlying transport
+ ...,
+ segmentReply SegmentReply
+ }
+
+ TransactionId ::= INTEGER(0..4294967295) -- 32-bit unsigned integer
+
+ TransactionRequest ::= SEQUENCE
+ {
+ transactionId TransactionId,
+ actions SEQUENCE OF ActionRequest,
+ ...
+ }
+
+ TransactionPending ::= SEQUENCE
+ {
+ transactionId TransactionId,
+ ...
+ }
+
+ TransactionReply ::= SEQUENCE
+ {
+ transactionId TransactionId,
+ immAckRequired NULL OPTIONAL,
+ transactionResult CHOICE
+ {
+ transactionError ErrorDescriptor,
+ actionReplies SEQUENCE OF ActionReply
+ },
+ ...,
+ segmentNumber SegmentNumber OPTIONAL,
+ segmentationComplete NULL OPTIONAL
+ }
+
+ SegmentReply ::= SEQUENCE
+ {
+ transactionId TransactionId,
+ segmentNumber SegmentNumber,
+ segmentationComplete NULL OPTIONAL,
+ ...
+ }
+
+ SegmentNumber ::= INTEGER(0..65535)
+
+ TransactionResponseAck ::= SEQUENCE OF TransactionAck
+ TransactionAck ::= SEQUENCE
+ {
+ firstAck TransactionId,
+ lastAck TransactionId OPTIONAL
+ }
+
+```
+
+```
+
+ErrorDescriptor ::= SEQUENCE
+{
+ errorCode ErrorCode,
+ errorText ErrorText OPTIONAL
+}
+
+ErrorCode ::= INTEGER(0..65535)
+-- See clause 14 for IANA considerations with respect to error codes
+
+ErrorText ::= IA5String
+
+ContextID ::= INTEGER(0..4294967295)
+-- Context NULL Value: 0
+-- Context CHOOSE Value: 4294967294 (0xFFFFFFFF)
+-- Context ALL Value: 4294967295 (0xFFFFFFFF)
+
+ActionRequest ::= SEQUENCE
+{
+ contextId ContextID,
+ contextRequest ContextRequest OPTIONAL,
+ contextAttrAuditReq ContextAttrAuditRequest OPTIONAL,
+ commandRequests SEQUENCE OF CommandRequest
+}
+
+ActionReply ::= SEQUENCE
+{
+ contextId ContextID,
+ errorDescriptor ErrorDescriptor OPTIONAL,
+ contextReply ContextRequest OPTIONAL,
+ commandReply SEQUENCE OF CommandReply
+}
+
+ContextRequest ::= SEQUENCE
+{
+ priority INTEGER(0..15) OPTIONAL,
+ emergency BOOLEAN OPTIONAL,
+ topologyReq SEQUENCE OF TopologyRequest OPTIONAL,
+ ...,
+ iepscallind BOOLEAN OPTIONAL,
+ contextProp SEQUENCE OF PropertyParm OPTIONAL,
+ contextList SEQUENCE OF ContextID OPTIONAL
+}
+-- When returning a contextList, the contextId in the ActionReply construct will
+-- return the contextId from the associated ActionRequest.
+
+ContextAttrAuditRequest ::= SEQUENCE
+{
+ topology NULL OPTIONAL,
+ emergency NULL OPTIONAL,
+ priority NULL OPTIONAL,
+ ...,
+ iepscallind NULL OPTIONAL,
+ contextPropAud SEQUENCE OF IndAudPropertyParm OPTIONAL,
+ selectpriority INTEGER(0..15) OPTIONAL,
+ -- to select given priority
+ selectemergency BOOLEAN OPTIONAL,
+ -- to select if emergency set/not set (T/F)
+ selectiepscallind BOOLEAN OPTIONAL,
+ -- to select if IEPS set/not set (T/F)
+ selectLogic SelectLogic OPTIONAL -- default is AND
+}
+
+SelectLogic ::= CHOICE
+{
+
+```
+
+```
+
+ andAUDITSelect NULL, -- all filter conditions satisfied
+ orAUDITSelect NULL, -- at least one filter condition satisfied
+ ...
+ }
+
+ CommandRequest ::= SEQUENCE
+ {
+ command Command,
+ optional NULL OPTIONAL,
+ wildcardReturn NULL OPTIONAL,
+ ...
+ }
+
+ Command ::= CHOICE
+ {
+ addReq AmmRequest,
+ moveReq AmmRequest,
+ modReq AmmRequest,
+ -- Add, Move, Modify requests have the same parameters
+ subtractReq SubtractRequest,
+ auditCapRequest AuditRequest,
+ auditValueRequest AuditRequest,
+ notifyReq NotifyRequest,
+ serviceChangeReq ServiceChangeRequest,
+ ...
+ }
+
+ CommandReply ::= CHOICE
+ {
+ addReply AmmsReply,
+ moveReply AmmsReply,
+ modReply AmmsReply,
+ subtractReply AmmsReply,
+ -- Add, Move, Modify, Subtract replies have the same parameters
+ auditCapReply AuditReply,
+ auditValueReply AuditReply,
+ notifyReply NotifyReply,
+ serviceChangeReply ServiceChangeReply,
+ ...
+ }
+
+ TopologyRequest ::= SEQUENCE
+ {
+ terminationFrom TerminationID,
+ terminationTo TerminationID,
+ topologyDirection ENUMERATED
+ {
+ bothway(0),
+ isolate(1),
+ oneway(2)
+ },
+ ...,
+ streamID StreamID OPTIONAL,
+ topologyDirectionExtension ENUMERATED {
+ onewayexternal(0),
+ onewayboth(1),
+ ...
+ } OPTIONAL
+ }
+
+ -- if present, topologyDirectionExtension takes precedence over
+ -- topologyDirection
+
+ AmmRequest ::= SEQUENCE
+ {
+ terminationID TerminationIDList,
+ }
+
+```
+
+```
+
+ descriptors SEQUENCE OF AmmDescriptor,
+ -- At most one descriptor of each type (see AmmDescriptor)
+ -- allowed in the sequence.
+ ...
+}
+
+AmmDescriptor ::= CHOICE
+{
+ mediaDescriptor MediaDescriptor,
+ modemDescriptor ModemDescriptor,
+ muxDescriptor MuxDescriptor,
+ eventsDescriptor EventsDescriptor,
+ eventBufferDescriptor EventBufferDescriptor,
+ signalsDescriptor SignalsDescriptor,
+ digitMapDescriptor DigitMapDescriptor,
+ auditDescriptor AuditDescriptor,
+ ...,
+ statisticsDescriptor StatisticsDescriptor
+}
+
+AmmsReply ::= SEQUENCE
+{
+ terminationID TerminationIDList,
+ terminationAudit TerminationAudit OPTIONAL,
+ ...
+}
+
+SubtractRequest ::= SEQUENCE
+{
+ terminationID TerminationIDList,
+ auditDescriptor AuditDescriptor OPTIONAL,
+ ...
+}
+
+AuditRequest ::= SEQUENCE
+{
+ terminationID TerminationID,
+ auditDescriptor AuditDescriptor,
+ ...,
+ terminationIDList TerminationIDList OPTIONAL
+}
+-- terminationID shall contain the first termination in the
+-- list when using the terminationIDList construct in AuditRequest
+
+AuditReply ::= CHOICE
+{
+ contextAuditResult TerminationIDList,
+ error ErrorDescriptor,
+ auditResult AuditResult,
+ ...,
+ auditResultTermList TermListAuditResult
+}
+
+AuditResult ::= SEQUENCE
+{
+ terminationID TerminationID,
+ terminationAuditResult TerminationAudit
+}
+
+TermListAuditResult ::= SEQUENCE
+{
+ terminationIDList TerminationIDList,
+ terminationAuditResult TerminationAudit,
+ ...
+}
+
+```
+
+```
+
+TerminationAudit ::= SEQUENCE OF AuditReturnParameter
+
+AuditReturnParameter ::= CHOICE
+{
+ errorDescriptor ErrorDescriptor,
+ mediaDescriptor MediaDescriptor,
+ modemDescriptor ModemDescriptor,
+ muxDescriptor MuxDescriptor,
+ eventsDescriptor EventsDescriptor,
+ eventBufferDescriptor EventBufferDescriptor,
+ signalsDescriptor SignalsDescriptor,
+ digitMapDescriptor DigitMapDescriptor,
+ observedEventsDescriptor ObservedEventsDescriptor,
+ statisticsDescriptor StatisticsDescriptor,
+ packagesDescriptor PackagesDescriptor,
+ emptyDescriptors AuditDescriptor,
+ ...
+}
+
+AuditDescriptor ::= SEQUENCE
+{
+ auditToken BIT STRING
+ {
+ muxToken(0),
+ modemToken(1),
+ mediaToken(2),
+ eventsToken(3),
+ signalsToken(4),
+ digitMapToken(5),
+ statsToken(6),
+ observedEventsToken(7),
+ packagesToken(8),
+ eventBufferToken(9)
+ } OPTIONAL,
+ ...,
+ auditPropertyToken SEQUENCE OF IndAuditParameter OPTIONAL
+}
+
+IndAuditParameter ::= CHOICE
+{
+ inaudmediaDescriptor IndAudMediaDescriptor,
+ inaudeventsDescriptor IndAudEventsDescriptor,
+ inaudeventBufferDescriptor IndAudEventBufferDescriptor,
+ inaudsignalsDescriptor IndAudSignalsDescriptor,
+ inauddigitMapDescriptor IndAudDigitMapDescriptor,
+ inaudstatisticsDescriptor IndAudStatisticsDescriptor,
+ inaudpackagesDescriptor IndAudPackagesDescriptor,
+ ...
+}
+
+IndAudMediaDescriptor ::= SEQUENCE
+{
+ termStateDescr IndAudTerminationStateDescriptor OPTIONAL,
+ streams CHOICE
+ {
+ oneStream IndAudStreamParms,
+ multiStream SEQUENCE OF IndAudStreamDescriptor
+ } OPTIONAL,
+ ...
+}
+
+IndAudStreamDescriptor ::= SEQUENCE
+{
+
+```
+
+```
+
+ streamID StreamID,
+ streamParms IndAudStreamParms
+}
+
+IndAudStreamParms ::= SEQUENCE
+{
+ localControlDescriptor IndAudLocalControlDescriptor OPTIONAL,
+ localDescriptor IndAudLocalRemoteDescriptor OPTIONAL,
+ remoteDescriptor IndAudLocalRemoteDescriptor OPTIONAL,
+ ...,
+ statisticsDescriptor IndAudStatisticsDescriptor OPTIONAL
+}
+
+IndAudLocalControlDescriptor ::= SEQUENCE
+{
+ streamMode NULL OPTIONAL,
+ reserveValue NULL OPTIONAL,
+ reserveGroup NULL OPTIONAL,
+ propertyParms SEQUENCE OF IndAudPropertyParm OPTIONAL,
+ ...,
+ streamModeSel StreamMode OPTIONAL
+}
+-- must not have both streamMode and streamModeSel
+-- if both are present only streamModeSel shall be honoured
+
+IndAudPropertyParm ::= SEQUENCE
+{
+ name PkgdName,
+ ...,
+ propertyParms PropertyParm OPTIONAL
+}
+
+-- to select based on property values
+-- AND/OR selection logic is specified at context level
+
+IndAudLocalRemoteDescriptor ::= SEQUENCE
+{
+ propGroupID INTEGER(0..65535) OPTIONAL,
+ propGrps IndAudPropertyGroup,
+ ...
+}
+
+IndAudPropertyGroup ::= SEQUENCE OF IndAudPropertyParm
+
+IndAudTerminationStateDescriptor ::= SEQUENCE
+{
+ propertyParms SEQUENCE OF IndAudPropertyParm,
+ eventBufferControl NULL OPTIONAL,
+ serviceState NULL OPTIONAL,
+ ...,
+ serviceStateSel ServiceState OPTIONAL
+}
+-- must not have both serviceState and serviceStateSel
+-- if both are present only serviceStateSel shall be honoured
+
+IndAudEventsDescriptor ::= SEQUENCE
+{
+ requestID RequestID OPTIONAL,
+ pkgdName PkgdName,
+ streamID StreamID OPTIONAL,
+ ...
+}
+
+IndAudEventBufferDescriptor ::= SEQUENCE
+
+```
+
+```
+
+{
+ eventName PkgdName,
+ streamID StreamID OPTIONAL,
+ ...
+}
+
+IndAudSignalsDescriptor ::=CHOICE
+{
+ signal IndAudSignal,
+ seqSigList IndAudSeqSigList,
+ ...
+}
+
+IndAudSeqSigList ::= SEQUENCE
+{
+ id INTEGER(0..65535),
+ signalList IndAudSignal OPTIONAL
+}
+
+IndAudSignal ::= SEQUENCE
+{
+ signalName PkgdName,
+ streamID StreamID OPTIONAL,
+ ...,
+ signalRequestID RequestID OPTIONAL
+}
+
+IndAudDigitMapDescriptor ::= SEQUENCE
+{
+ digitMapName DigitMapName OPTIONAL
+}
+
+IndAudStatisticsDescriptor ::= SEQUENCE
+{
+ statName PkgdName
+}
+
+IndAudPackagesDescriptor ::= SEQUENCE
+{
+ packageName Name,
+ packageVersion INTEGER(0..99),
+ ...
+}
+
+NotifyRequest ::= SEQUENCE
+{
+ terminationID TerminationIDList,
+ observedEventsDescriptor ObservedEventsDescriptor,
+ errorDescriptor ErrorDescriptor OPTIONAL,
+ ...
+}
+
+NotifyReply ::= SEQUENCE
+{
+ terminationID TerminationIDList,
+ errorDescriptor ErrorDescriptor OPTIONAL,
+ ...
+}
+
+ObservedEventsDescriptor ::= SEQUENCE
+{
+ requestId RequestID,
+ observedEventLst SEQUENCE OF ObservedEvent
+}
+
+ObservedEvent ::= SEQUENCE
+
+```
+
+```
+
+{
+ eventName EventName,
+ streamID StreamID OPTIONAL,
+ eventParmList SEQUENCE OF EventParameter,
+ timeNotation TimeNotation OPTIONAL,
+ ...
+}
+
+EventName ::= PkgdName
+
+EventParameter ::= SEQUENCE
+{
+ eventParameterName Name,
+ value Value,
+ -- For use of extraInfos see the comment related to PropertyParm
+ extraInfo CHOICE
+ {
+ relation Relation,
+ range BOOLEAN,
+ sublist BOOLEAN
+ } OPTIONAL,
+ ...
+}
+
+ServiceChangeRequest ::= SEQUENCE
+{
+ terminationID TerminationIDList,
+ serviceChangeParms ServiceChangeParm,
+ ...
+}
+
+ServiceChangeReply ::= SEQUENCE
+{
+ terminationID TerminationIDList,
+ serviceChangeResult ServiceChangeResult,
+ ...
+}
+
+-- For ServiceChangeResult, no parameters are mandatory. Hence the
+-- distinction between ServiceChangeParm and ServiceChangeResParm.
+ServiceChangeResult ::= CHOICE
+{
+ errorDescriptor ErrorDescriptor,
+ serviceChangeResParms ServiceChangeResParm
+}
+
+WildcardField ::= OCTET STRING(SIZE(1))
+
+TerminationID ::= SEQUENCE
+{
+ wildcard SEQUENCE OF WildcardField,
+ id OCTET STRING(SIZE(1..8)),
+ ...
+}
+
+-- See A.1 for explanation of wildcarding mechanism.
+-- TerminationID 0xFFFFFFFFFFFFFFFF indicates the Root Termination.
+
+TerminationIDList ::= SEQUENCE OF TerminationID
+
+```
+
+```
+
+MediaDescriptor ::= SEQUENCE
+{
+ termStateDescr TerminationStateDescriptor OPTIONAL,
+ streams CHOICE
+ {
+ oneStream StreamParms,
+ multiStream SEQUENCE OF StreamDescriptor
+ } OPTIONAL,
+ ...
+}
+
+StreamDescriptor ::= SEQUENCE
+{
+ streamID StreamID,
+ streamParms StreamParms
+}
+
+StreamParms ::= SEQUENCE
+{
+ localControlDescriptor LocalControlDescriptor OPTIONAL,
+ localDescriptor LocalRemoteDescriptor OPTIONAL,
+ remoteDescriptor LocalRemoteDescriptor OPTIONAL,
+ ...,
+ statisticsDescriptor StatisticsDescriptor OPTIONAL
+}
+
+LocalControlDescriptor ::= SEQUENCE
+{
+ streamMode StreamMode OPTIONAL,
+ reserveValue BOOLEAN OPTIONAL,
+ reserveGroup BOOLEAN OPTIONAL,
+ propertyParms SEQUENCE OF PropertyParm,
+ ...
+}
+
+StreamMode ::= ENUMERATED
+{
+ sendOnly(0),
+ recvOnly(1),
+ sendRecv(2),
+ inactive(3),
+ loopBack(4),
+ ...
+}
+
+-- In PropertyParm, value is a SEQUENCE OF octet string. When sent
+-- by an MGC the interpretation is as follows:
+-- empty sequence means CHOOSE
+-- one element sequence specifies value
+-- If the sublist field is not selected, a longer sequence means
+-- "choose one of the values" (i.e., value1 or value2 etc., from a
+-- collection of values.
+-- If the sublist field is selected,
+-- a sequence with more than one element encodes the value of a
+-- list-valued property (i.e., a collection of values, value1 and value2
+-- and ...)
+-- Note that when encoding a sub-list of length one, the sublist field
+-- may be left unselected.
+-- The relation field may only be selected if the value sequence
+-- has length 1. It indicates that the MG has to choose a value
+-- for the property. E.g., x > 3 (using the greaterThan
+-- value for relation) instructs the MG to choose any value larger
+-- than 3 for property x.
+
+```
+
+```
+
+-- The range field may only be selected if the value sequence
+-- has length 2. It indicates that the MG has to choose a value
+-- in the range between the first octet in the value sequence and
+-- the trailing octet in the value sequence, including the
+-- boundary values.
+-- When sent by the MG, only responses to an AuditCapability request
+-- may contain multiple values, a range, or a relation field.
+
+```
+
+```
+PropertyParm ::= SEQUENCE
+```
+
+```
+
+{
+ name PkgdName,
+ value SEQUENCE OF OCTET STRING,
+ extraInfo CHOICE
+ {
+ relation Relation,
+ range BOOLEAN,
+ sublist BOOLEAN
+ } OPTIONAL,
+ ...
+}
+
+```
+
+```
+Name ::= OCTET STRING(SIZE(2))
+```
+
+```
+PkgdName ::= OCTET STRING(SIZE(4))
+```
+
+```
+
+-- represents Package Name (2 octets) plus property, event,
+-- signal names or StatisticsID. (2 octets)
+-- To wildcard a package use 0xFFFF for first two octets, CHOOSE
+-- is not allowed. To reference native property tag specified in
+-- Annex C, use 0x0000 as first two octets.
+-- To wildcard a PropertyID, EventID, SignalID, or StatisticsID, use
+-- 0xFFFF for last two octets, CHOOSE is not allowed.
+-- Wildcarding of Package Name is permitted only if PropertyID,
+-- EventID, SignalID, or StatisticsID are also wildcarded.
+
+```
+
+```
+Relation ::= ENUMERATED
+```
+
+```
+
+{
+ greaterThan(0),
+ smallerThan(1),
+ unequalTo(2),
+ ...}
+
+```
+
+```
+LocalRemoteDescriptor ::= SEQUENCE
+```
+
+```
+
+{
+ propGrps SEQUENCE OF PropertyGroup,
+ ...
+}
+
+```
+
+```
+PropertyGroup ::= SEQUENCE OF PropertyParm
+```
+
+```
+TerminationStateDescriptor ::= SEQUENCE
+```
+
+```
+
+{
+ propertyParms SEQUENCE OF PropertyParm,
+ eventBufferControl EventBufferControl OPTIONAL,
+ serviceState ServiceState OPTIONAL,
+ ...
+}
+
+```
+
+```
+EventBufferControl ::= ENUMERATED
+```
+
+```
+
+{
+ off(0),
+ lockStep(1),
+ ...
+}
+
+```
+
+```
+
+ServiceState ::= ENUMERATED
+{
+ test(0),
+ outOfSvc(1),
+ inSvc(2),
+ ...
+}
+
+MuxDescriptor ::= SEQUENCE
+{
+ muxType MuxType,
+ termList SEQUENCE OF TerminationID,
+ nonStandardData NonStandardData OPTIONAL,
+ ...
+}
+
+MuxType ::= ENUMERATED
+{
+ h221(0),
+ h223(1),
+ h226(2),
+ v76(3),
+ ...,
+ nx64k(4)
+}
+
+StreamID ::= INTEGER(0..65535) -- 16-bit unsigned integer
+
+EventsDescriptor ::= SEQUENCE
+{
+ requestID RequestID OPTIONAL,
+ -- RequestID must be present if eventList
+ -- is non empty
+ eventList SEQUENCE OF RequestedEvent,
+ ...
+}
+
+RequestedEvent ::= SEQUENCE
+{
+ pkgdName PkgdName,
+ streamID StreamID OPTIONAL,
+ eventAction RequestedActions OPTIONAL,
+ evParList SEQUENCE OF EventParameter,
+ ...
+}
+
+RegulatedEmbeddedDescriptor ::= SEQUENCE
+{
+ secondEvent SecondEventsDescriptor OPTIONAL,
+ signalsDescriptor SignalsDescriptor OPTIONAL,
+ ...
+}
+
+NotifyBehaviour ::= CHOICE
+{
+ notifyImmediate NULL,
+ notifyRegulated RegulatedEmbeddedDescriptor,
+ neverNotify NULL,
+ ...
+}
+
+RequestedActions ::= SEQUENCE
+{
+ keepActive BOOLEAN OPTIONAL,
+ eventDM EventDM OPTIONAL,
+}
+
+```
+
+```
+
+ secondEvent SecondEventsDescriptor OPTIONAL,
+ signalsDescriptor SignalsDescriptor OPTIONAL,
+ ...,
+ notifyBehaviour NotifyBehaviour OPTIONAL,
+ resetEventsDescriptor NULL OPTIONAL
+ }
+
+ EventDM ::= CHOICE
+ {
+ digitMapName DigitMapName,
+ digitMapValue DigitMapValue
+ }
+
+ SecondEventsDescriptor ::= SEQUENCE
+ {
+ requestID RequestID OPTIONAL,
+ eventList SEQUENCE OF SecondRequestedEvent,
+ ...
+ }
+
+ SecondRequestedEvent ::= SEQUENCE
+ {
+ pkgdName PkgdName,
+ streamID StreamID OPTIONAL,
+ eventAction SecondRequestedActions OPTIONAL,
+ evParList SEQUENCE OF EventParameter,
+ ...
+ }
+
+ SecondRequestedActions ::= SEQUENCE
+ {
+ keepActive BOOLEAN OPTIONAL,
+ eventDM EventDM OPTIONAL,
+ signalsDescriptor SignalsDescriptor OPTIONAL,
+ ...,
+ notifyBehaviour NotifyBehaviour OPTIONAL,
+ resetEventsDescriptor NULL OPTIONAL
+ }
+
+ EventBufferDescriptor ::= SEQUENCE OF EventSpec
+
+ EventSpec ::= SEQUENCE
+ {
+ eventName EventName,
+ streamID StreamID OPTIONAL,
+ eventParList SEQUENCE OF EventParameter,
+ ...
+ }
+
+ SignalsDescriptor ::= SEQUENCE OF SignalRequest
+
+ SignalRequest ::= CHOICE
+ {
+ signal Signal,
+ seqSigList SeqSigList,
+ ...
+ }
+
+ SeqSigList ::= SEQUENCE
+ {
+ id INTEGER(0..65535),
+ signalList SEQUENCE OF Signal
+ }
+
+```
+
+```
+
+Signal ::= SEQUENCE
+{
+ signalName SignalName,
+ streamID StreamID OPTIONAL,
+ sigType SignalType OPTIONAL,
+ duration INTEGER (0..65535) OPTIONAL,
+ notifyCompletion NotifyCompletion OPTIONAL,
+ keepActive BOOLEAN OPTIONAL,
+ sigParList SEQUENCE OF SigParameter,
+ ...
+ direction SignalDirection OPTIONAL,
+ requestID RequestID OPTIONAL,
+ intersigDelay INTEGER (0..65535) OPTIONAL
+}
+
+SignalType ::= ENUMERATED
+{
+ brief(0),
+ onOff(1),
+ timeOut(2),
+ ...
+}
+
+SignalDirection ::= ENUMERATED
+{
+ internal(0),
+ external(1),
+ both(2),
+ ...
+}
+
+SignalName ::= PkgdName
+
+NotifyCompletion ::= BIT STRING
+{
+ onTimeout(0), onInterruptByEvent(1),
+ onInterruptByNewSignalDescr(2), otherReason(3), onIteration(4)
+}
+
+SigParameter ::= SEQUENCE
+{
+ sigParameterName Name,
+ value Value,
+ -- For use of extraInfo see the comment related to PropertyParm
+ extraInfo CHOICE
+ {
+ relation Relation,
+ range BOOLEAN,
+ sublist BOOLEAN
+ } OPTIONAL,
+ ...
+}
+
+-- For an AuditCapReply with all events, the RequestID shall be ALL.
+-- ALL is represented by 0xffffffff.
+RequestID ::= INTEGER(0..4294967295) -- 32-bit unsigned integer
+
+ModemDescriptor ::= SEQUENCE
+{
+ mtl SEQUENCE OF ModemType,
+ mpl SEQUENCE OF PropertyParm,
+ nonStandardData NonStandardData OPTIONAL
+}
+
+```
+
+```
+
+ModemType ::= ENUMERATED
+{
+ v18(0),
+ v22(1),
+ v22bis(2),
+ v32(3),
+ v32bis(4),
+ v34(5),
+ v90(6),
+ v91(7),
+ synchISDN(8),
+ ...
+}
+
+DigitMapDescriptor ::= SEQUENCE
+{
+ digitMapName DigitMapName OPTIONAL,
+ digitMapValue DigitMapValue OPTIONAL
+}
+
+DigitMapName ::= Name
+
+DigitMapValue ::= SEQUENCE
+{
+ startTimer INTEGER(0..99) OPTIONAL,
+ shortTimer INTEGER(0..99) OPTIONAL,
+ longTimer INTEGER(0..99) OPTIONAL,
+ digitMapBody IA5String,
+ -- Units are seconds for start, short and long timers, and hundreds
+ -- of milliseconds for duration timer. Thus start, short, and long
+ -- range from 1 to 99 seconds and duration from 100 ms to 9.9 s
+ -- An exception is the start timer which may equal 0.
+ -- See A.3 for explanation of DigitMap syntax
+ ...,
+ durationTimer INTEGER (0..99) OPTIONAL
+}
+
+ServiceChangeParm ::= SEQUENCE
+{
+ serviceChangeMethod ServiceChangeMethod,
+ serviceChangeAddress ServiceChangeAddress OPTIONAL,
+ serviceChangeVersion INTEGER(0..99) OPTIONAL,
+ serviceChangeProfile ServiceChangeProfile OPTIONAL,
+ serviceChangeReason Value,
+ -- A serviceChangeReason consists of a numeric reason code
+ -- and an optional text description.
+ -- The serviceChangeReason shall be a string consisting of
+ -- a decimal reason code, optionally followed by a single
+ -- space character and a textual description string.
+ -- This string is first BER-encoded as an IA5String.
+ -- The result of this BER-encoding is then encoded as
+ -- an ASN.1 OCTET STRING type, "double wrapping" the
+ -- value as was done for package elements.
+ serviceChangeDelay INTEGER(0..4294967295) OPTIONAL,
+ -- 32-bit unsigned integer
+ serviceChangeMgcId Mid OPTIONAL,
+ timeStamp TimeNotation OPTIONAL,
+ nonStandardData NonStandardData OPTIONAL,
+ ...,
+ serviceChangeInfo AuditDescriptor OPTIONAL,
+ serviceChangeIncompleteFlag NULL OPTIONAL
+}
+
+ServiceChangeAddress ::= CHOICE
+
+```
+
+```
+
+{
+ portNumber INTEGER(0..65535), -- TCP/UDP port number
+ ip4Address IP4Address,
+ ip6Address IP6Address,
+ domainName DomainName,
+ deviceName PathName,
+ mtpAddress OCTET STRING(SIZE(2..4)),
+ ...
+}
+
+ServiceChangeResParm ::= SEQUENCE
+{
+ serviceChangeMgcId Mid OPTIONAL,
+ serviceChangeAddress ServiceChangeAddress OPTIONAL,
+ serviceChangeVersion INTEGER(0..99) OPTIONAL,
+ serviceChangeProfile ServiceChangeProfile OPTIONAL,
+ timestamp TimeNotation OPTIONAL,
+ ...
+}
+
+ServiceChangeMethod ::= ENUMERATED
+{
+ failover(0),
+ forced(1),
+ graceful(2),
+ restart(3),
+ disconnected(4),
+ handOff(5),
+ ...
+}
+
+ServiceChangeProfile ::= SEQUENCE
+{
+ profileName IA5String(SIZE (1..67))
+ -- 64 characters for name, 1 for "/", 2 for version to match ABNF
+}
+
+PackagesDescriptor ::= SEQUENCE OF PackagesItem
+
+PackagesItem ::= SEQUENCE
+{
+ packageName Name,
+ packageVersion INTEGER(0..99),
+ ...
+}
+
+StatisticsDescriptor ::= SEQUENCE OF StatisticsParameter
+
+StatisticsParameter ::= SEQUENCE
+{
+ statName PkgdName,
+ statValue Value OPTIONAL
+}
+-- If statistic consists of a sub-lists there will be more than
+-- one octetstring in statValue.
+
+NonStandardData ::= SEQUENCE
+{
+ nonStandardIdentifier NonStandardIdentifier,
+ data OCTET STRING
+}
+
+```
+
+```
+
+NonStandardIdentifier ::= CHOICE
+{
+ object OBJECT IDENTIFIER,
+ h221NonStandard H221NonStandard,
+ experimental IA5String(SIZE(8)),
+ -- first two characters should be "X-" or "X+"
+ ...
+}
+
+H221NonStandard ::= SEQUENCE
+{
+ t35CountryCode1 INTEGER(0..255),
+ t35CountryCode2 INTEGER(0..255), -- country, as per T.35
+ t35Extension INTEGER(0..255), -- assigned nationally
+ manufacturerCode INTEGER(0..65535), -- assigned nationally
+ ...
+}
+
+TimeNotation ::= SEQUENCE
+{
+ date IA5String(SIZE(8)), -- yyyyymmdd format
+ time IA5String(SIZE(8)) -- hhmmssss format
+ -- per ISO 8601:2004
+}
+
+Value ::= SEQUENCE OF OCTET STRING
+
+END
+
+```
+
+## A.3 DigitMaps and path names
+
+From a syntactic viewpoint, DigitMaps are strings with syntactic restrictions imposed upon them. The syntax of valid DigitMaps is specified in ABNF [IETF RFC 2234]. The syntax for DigitMaps presented in this clause is for illustrative purposes only. The definition of digitMap in Annex B takes precedence in the case of differences between the two.
+
+```
+
+digitMap = (digitString / LWSP "(" LWSP digitStringList LWSP
+ ")" LWSP)
+
+digitStringList = digitString *(LWSP "|" LWSP digitString)
+
+digitString = 1*(digitStringElement)
+
+digitStringElement = digitPosition [DOT]
+
+digitPosition = digitMapLetter / digitMapRange
+
+digitMapRange = ("x" / (LWSP "[" LWSP digitLetter LWSP "]" LWSP))
+
+digitLetter = *((DIGIT "-" DIGIT) / digitMapLetter)
+
+digitMapLetter = DIGIT ;Basic event symbols
+ / %x41-4B / %x61-6B ; a-k, A-K
+ / "L" / "S" / "T" ;Inter-event timers
+ ; (long, short, start)
+ / "Z" ;Long duration modifier
+
+DOT = %x2E ; "."
+
+SP = %x20 ; space
+
+HTAB = %x09 ; horizontal tab
+
+CR = %x0D ; Carriage return
+
+```
+
+```
+
+LF = %x0A ; linefeed
+LWSP = *(WSP / COMMENT / EOL)
+EOL = (CR [LF] / LF)
+WSP = SP / HTAB ; white space
+SafeChar = DIGIT / ALPHA / "+" / "-" / "&" /
+ "!" / " " / "/" / "'" / "?" / "@"/
+ "^" / "`" / "~" / "*" / "$" / "\" /
+ "(" / ")" / "%" / "|" / "."
+RestChar = ";" / "[" / "]" / "{" / "}" / ":" / "," / "#" /
+ "<" / ">" / "="
+DIGIT = %x30-39 ; 0-9
+ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
+
+```
+
+A path name is also a string with syntactic restrictions imposed upon it. The ABNF production defining it is copied from Annex B.
+
+```
+
+; Total length of pathNAME must not exceed 64 chars.
+pathname = ["*"] NAME *("/" / "*" / ALPHA / DIGIT / "_" / "$" )
+ ["@" pathDomainName ]
+
+; ABNF allows two or more consecutive "." although it is meaningless
+; in a path domain name.
+pathDomainName = (ALPHA / DIGIT / "*" ) *63(ALPHA / DIGIT / "-" / "*" / ".")
+NAME = ALPHA *63(ALPHA / DIGIT / "_")
+
+```
+
+# Annex B
+
+## Text encoding of the protocol
+
+(This annex forms an integral part of this Recommendation.)
+
+## B.1 Coding of wildcards
+
+In a text encoding of the protocol, while TerminationIDs are arbitrary, by judicious choice of names, the wildcard character, "\*" may be made more useful. When the wildcard character is encountered, it will "match" all TerminationIDs having the same previous and following characters (if appropriate). For example, if there were TerminationIDs of R13/3/1, R13/3/2 and R13/3/3, the TerminationID R13/3/\* would match all of them. There are some circumstances where all terminations must be referred to. The TerminationID "\*" suffices, and is referred to as ALL. The CHOOSE TerminationID "\$" may be used to signal to the MG that it has to create an ephemeral termination or select an idle physical termination.
+
+## B.2 ABNF specification
+
+The protocol syntax is presented in ABNF according to [IETF RFC 2234].
+
+NOTE 1 – This syntax specification does not enforce all restrictions on element inclusions and values. Some additional restrictions are stated in comments and other restrictions appear in the text of this Recommendation. These additional restrictions are part of the protocol even though not enforced by this Recommendation.
+
+NOTE 2 – The syntax is context-dependent. For example, "Add" can be the AddToken or a NAME depending on the context in which it occurs.
+
+Everything in the ABNF and text encoding is case insensitive. This includes TerminationIDs, DigitMapIDs, etc. SDP is case sensitive as per [IETF RFC 2327].
+
+```
+; NOTE - The ABNF in this section uses the VALUE construct (or lists of
+; VALUE constructs) to encode various package element values (properties,
+; signal parameters, etc.). The types of these values vary and are
+; specified in the relevant package definition. Several such types are
+; described in clause 12.2.
+;
+; The ABNF specification for VALUE allows a quotedString form or a
+; collection of SafeChars. The encoding of package element values into
+; ABNF VALUES is specified below. If a type's encoding allows characters
+; other than SafeChars, the quotedString form must be used for all values
+; of that type, even for specific values that consist only of SafeChars.
+;
+; String: A string must use the quotedString form of VALUE and can
+; contain anything allowable in the quotedString form.
+;
+; Integer, Double, and Unsigned Integer: Decimal values can be encoded
+; using characters 0-9. Hexadecimal values must be prefixed with '0x'
+; and can use characters 0-9,a-f,A-F. An octal format is not supported.
+; Negative integers start with '-' and must be Decimal. The SafeChar
+; form of VALUE must be used.
+;
+; Character: A UTF-8 encoding of a single letter surrounded by double
+; quotes.
+;
+; Enumeration: An enumeration must use the SafeChar form of VALUE
+; and can contain anything allowable in the SafeChar form.
+;
+; Boolean: Boolean values are encoded as "on" and "off" and are
+; case insensitive. The SafeChar form of VALUE must be used.
+```
+
+```
+
+;
+; OctetString: Where a package specifies the data type "OctetString" the
+; hexadecimal form defined in B.3 shall be used. NOTE - The OctetString BNF
+; is only for the carriage of SDP in the Local and Remote Descriptors.
+;
+; Sub-list: Sub-lists are encoded using the "sublist" branch of
+; alternativeValue. A sub-list with a length of one may also be encoded
+; simply as a single VALUE of the appropriate type.
+;
+; Future types: Any defined types must fit within
+; the ABNF specification of VALUE. Specifically, if a type's encoding
+; allows characters other than SafeChars, the quotedString form must
+; be used for all values of that type, even for specific values that
+; consist only of SafeChars.
+;
+; Note that there is no way to use the double quote character within
+; a value.
+;
+; Note that SDP disallows whitespace at the beginning of a line, Megaco
+; ABNF allows whitespace before the beginning of the SDP in the
+; Local/Remote descriptor. Parsers should accept whitespace between the
+; LBRKT following the Local/Remote token and the beginning of the SDP.
+
+megacoMessage = LWSP [authenticationHeader SEP] message
+
+authenticationHeader = AuthToken EQUAL SecurityParmIndex COLON
+ SequenceNum COLON AuthData
+
+SecurityParmIndex = "0x" 8 (HEXDIG)
+SequenceNum = "0x" 8 (HEXDIG)
+AuthData = "0x" 24*64 (HEXDIG)
+
+Message = MegacopToken SLASH Version SEP mId SEP messageBody
+; The version of the protocol defined here is equal to 3.
+
+messageBody = (errorDescriptor / transactionList)
+
+transactionList = 1*(transactionRequest / transactionReply /
+ transactionPending / transactionResponseAck /
+ segmentReply)
+;Use of response acks is dependent on underlying transport
+
+transactionPending = PendingToken EQUAL TransactionID LBRKT RBRKT
+
+transactionResponseAck = ResponseAckToken LBRKT transactionAck
+ *(COMMA transactionAck) RBRKT
+
+transactionAck = TransactionID / (TransactionID "-" TransactionID)
+
+transactionRequest = TransToken EQUAL TransactionID LBRKT
+ actionRequest *(COMMA actionRequest) RBRKT
+
+actionRequest = CtxToken EQUAL ContextID LBRKT ((contextRequest
+ [COMMA commandRequestList]) /
+ commandRequestList) RBRKT
+
+contextRequest = ((contextProperties [COMMA contextAudit])
+ / contextAudit)
+
+contextProperties = contextProperty *(COMMA contextProperty)
+
+; at-most-once
+; EmergencyOff to be used in MG to MGC direction only in ITU-T H.248.1 V1 and V2
+; EmergencyToken or EmergencyOffToken, but not both
+
+```
+
+```
+
+contextProperty = (topologyDescriptor / priority / EmergencyToken /
+ EmergencyOffToken / iepsValue /
+ contextAttrDescriptor)
+
+contextAudit = ContextAuditToken LBRKT (contextAuditProperties
+ *(COMMA contextAuditProperties)) /
+ indAudcontextAttrDescriptor RBRKT
+
+; at-most-once except contextAuditSelector
+contextAuditProperties = (TopologyToken / EmergencyToken /
+ PriorityToken / IEPSToken / pkgdName /
+ contextAuditSelector)
+
+; at-most-once
+contextAuditSelector = priority / emergencyValue / iepsValue /
+ contextAttrDescriptor / auditSelectLogic
+
+auditSelectLogic = [ AndAUDITselectToken / OrAUDITselectToken ]
+; If empty, AND of selection conditions is assumed.
+
+indAudcontextAttrDescriptor
+ = ContextAttrToken LBRKT contextAuditProperties
+ *(COMMA contextAuditProperties) RBRKT
+
+; "O-" indicates an optional command
+; "W-" indicates a wildcarded response to a command
+commandRequestList = ["O-"] ["W-"] commandRequest *(COMMA ["O-"]
+ ["W-"] commandRequest)
+
+commandRequest = (ammRequest / subtractRequest / auditRequest /
+ notifyRequest / serviceChangeRequest)
+
+transactionReply = ReplyToken EQUAL TransactionID [SLASH segmentNumber
+ [SLASH SegmentationCompleteToken]] LBRKT
+ [ImmAckRequiredToken COMMA]
+ (errorDescriptor / actionReplyList) RBRKT
+
+segmentReply = MessageSegmentToken EQUAL TransactionID SLASH
+ segmentNumber [SLASH SegmentationCompleteToken]
+
+segmentNumber = UINT16
+
+actionReplyList = actionReply *(COMMA actionReply)
+
+actionReply = CtxToken EQUAL ContextID [LBRKT (errorDescriptor /
+ commandReply / (commandReply COMMA
+ errorDescriptor)) RBRKT]
+
+commandReply = ((contextProperties [COMMA commandReplyList]) /
+ commandReplyList)
+
+commandReplyList = commandReplies *(COMMA commandReplies)
+
+commandReplies = (serviceChangeReply / auditReply / ammsReply /
+ notifyReply)
+
+;Add, Move and Modify have the same request parameters
+ammRequest = (AddToken / MoveToken / ModifyToken) EQUAL
+ termIDList [LBRKT ammParameter *(COMMA
+ ammParameter) RBRKT]
+
+;at-most-once
+ammParameter = (mediaDescriptor / modemDescriptor / muxDescriptor /
+
+```
+
+```
+
+ eventsDescriptor / signalsDescriptor /
+ digitMapDescriptor / eventBufferDescriptor /
+ auditDescriptor / statisticsDescriptor)
+
+ammsReply = (AddToken / MoveToken / ModifyToken / SubtractToken)
+ EQUAL termIDList [LBRKT terminationAudit RBRKT]
+
+subtractRequest = SubtractToken EQUAL termIDList [LBRKT
+ auditDescriptor RBRKT]
+
+auditRequest = (AuditValueToken / AuditCapToken) EQUAL
+ termIDList LBRKT auditDescriptor RBRKT
+
+auditReply = (AuditValueToken / AuditCapToken)
+ (contextTerminationAudit / auditOther)
+
+auditOther = EQUAL termIDList [LBRKT terminationAudit RBRKT]
+
+terminationAudit = auditReturnParameter *(COMMA auditReturnParameter)
+
+contextTerminationAudit = EQUAL CtxToken (terminationIDList / LBRKT
+ errorDescriptor RBRKT)
+
+auditReturnParameter = (mediaDescriptor / modemDescriptor / muxDescriptor /
+ eventsDescriptor / signalsDescriptor /
+ digitMapDescriptor / observedEventsDescriptor /
+ eventBufferDescriptor / statisticsDescriptor /
+ packagesDescriptor / errorDescriptor /
+ auditReturnItem)
+
+auditReturnItem = (MuxToken / ModemToken / MediaToken /
+ DigitMapToken / StatsToken / ObservedEventsToken /
+ PackagesToken)
+
+auditDescriptor = AuditToken LBRKT [auditItem *(COMMA auditItem)]
+ RBRKT
+
+notifyRequest = NotifyToken EQUAL termIDList LBRKT
+ (observedEventsDescriptor [COMMA errorDescriptor])
+ RBRKT
+
+notifyReply = NotifyToken EQUAL termIDList [LBRKT errorDescriptor
+ RBRKT]
+
+serviceChangeRequest = ServiceChangeToken EQUAL termIDList LBRKT
+ serviceChangeDescriptor RBRKT
+
+serviceChangeReply = ServiceChangeToken EQUAL termIDList [LBRKT
+ (errorDescriptor / serviceChangeReplyDescriptor)
+ RBRKT]
+
+errorDescriptor = ErrorToken EQUAL ErrorCode LBRKT [quotedString]
+ RBRKT
+
+ErrorCode = 1*4(DIGIT) ; could be extended
+
+TransactionID = UINT32
+
+mId = ((domainAddress / domainName) [":" portNumber]) /
+ mtpAddress / deviceName
+
+; ABNF allows two or more consecutive "." although it is meaningless
+; in a domain name.
+domainName = "<" (ALPHA / DIGIT) *63(ALPHA / DIGIT / "-" / ".")
+
+```
+
+```
+
+ ">"
+
+deviceName = pathNAME
+
+;The values 0x0, 0xFFFFFFFF and 0xFFFFFFFF are reserved.
+; '-' is used for NULL context. '*' is ALL. '$' is CHOOSE.
+ContextID = (UINT32 / "*" / "-" / "$")
+
+domainAddress = "[" (IPv4address / IPv6address) "]"
+
+; [IETF RFC 2373] contains the definition of IPv6 addresses.
+IPv6address = hexpart [":" IPv4address]
+
+IPv4address = V4hex DOT V4hex DOT V4hex DOT V4hex
+
+V4hex = 1*3(DIGIT) ; "0".."255"
+
+; this production, while occurring in [IETF RFC 2373], is not referenced
+; IPv6prefix = hexpart SLASH 1*2DIGIT
+
+hexpart = hexseq "::" [hexseq] / "::" [hexseq] / hexseq
+
+hexseq = hex4 *(":" hex4)
+
+hex4 = 1*4HEXDIG
+
+portNumber = UINT16
+
+; Addressing structure of mtpAddress:
+; 25 - 15 0
+; | PC | NI |
+; 24 - 14 bits 2 bits
+; NOTE - 14 bits are defined for international use.
+; Two national options exist where the point code is 16 or 24 bits.
+; To octet align the mtpAddress the MSBs shall be encoded as 0s.
+; An octet shall be represented by 2 hex digits.
+mtpAddress = MTPToken LBRKT 4*8 (HEXDIG) RBRKT
+
+termIDList = (TerminationID / LSBRKT TerminationID 1*(COMMA
+ TerminationID) RSBRKT)
+
+terminationIDList = LBRKT TerminationID *(COMMA TerminationID) RBRKT
+
+; Total length of pathNAME must not exceed 64 chars.
+pathNAME = ["*"] NAME *("/" / "*" / ALPHA / DIGIT / "_" / "$")
+ ["@" pathDomainName]
+
+; ABNF allows two or more consecutive "." although it is meaningless
+; in a path domain name.
+pathDomainName = (ALPHA / DIGIT / "*") *63(ALPHA / DIGIT / "-" /
+ "*" / ".")
+
+; '*' is ALL. '$' is CHOOSE.
+TerminationID = "ROOT" / pathNAME / "$" / "*"
+
+mediaDescriptor = MediaToken LBRKT mediaParm *(COMMA mediaParm) RBRKT
+
+; at-most one terminationStateDescriptor
+; and either streamParm(s) or streamDescriptor(s) but not both
+mediaParm = (streamParm / streamDescriptor /
+ terminationStateDescriptor)
+
+; at-most-once per item
+streamParm = (localDescriptor / remoteDescriptor /
+
+```
+
+```
+
+ localControlDescriptor / statisticsDescriptor)
+
+streamDescriptor = StreamToken EQUAL StreamID LBRKT streamParm *(COMMA
+ streamParm) RBRKT
+
+localControlDescriptor = LocalControlToken LBRKT localParm *(COMMA localParm)
+ RBRKT
+
+; at-most-once per item except for propertyParm
+localParm = (streamMode / propertyParm / reservedValueMode /
+ reservedGroupMode)
+
+reservedValueMode = ReservedValueToken EQUAL ("ON" / "OFF")
+
+reservedGroupMode = ReservedGroupToken EQUAL ("ON" / "OFF")
+
+streamMode = ModeToken EQUAL streamModes
+
+streamModes = (SendonlyToken / RecvonlyToken / SendrecvToken /
+ InactiveToken / LoopbackToken)
+
+propertyParm = pkgdName parmValue
+
+; the (Safe)Char '$' means CHOOSE
+; the (Safe)Char '*' means ALL
+parmValue = (EQUAL alternativeValue / INEQUAL VALUE)
+
+alternativeValue = (VALUE
+ / LSRBRKT VALUE *(COMMA VALUE) RSRBRKT
+ ; sublist
+ / LBRKT VALUE *(COMMA VALUE) RBRKT
+ ; alternatives (i.e., A OR B OR ...)
+ / LSRBRKT VALUE COLON VALUE RSRBRKT
+ ; range
+
+; If the alternative or range branches are used,
+; a sequence means "choose one of the values" (i.e., value1 or value2, etc.
+; from a collection of values).
+; If the sublist branch is used,
+; a sequence with more than one element encodes the value of a
+; list-valued property (i.e., a collection of values, value1 and
+; value2 and ...).
+
+INEQUAL = LWSP (">" / "<" / "#") LWSP ; '#' means "not equal"
+
+LSRBRKT = LWSP "[" LWSP
+
+RSRBRKT = LWSP "]" LWSP
+
+; NOTE - The octet zero is not among the permitted characters in octet
+; string. As the current definition is limited to SDP, and a zero octet
+; would not be a legal character in SDP, this is not a concern.
+localDescriptor = LocalToken LBRKT octetString RBRKT
+
+remoteDescriptor = RemoteToken LBRKT octetString RBRKT
+
+eventBufferDescriptor = EventBufferToken [LBRKT eventSpec*(COMMA eventSpec)
+ RBRKT]
+
+eventSpec = pkgdName [LBRKT eventSpecParameter *(COMMA
+ eventSpecParameter) RBRKT]
+
+eventSpecParameter = (eventStream / eventOther)
+
+```
+
+```
+
+eventBufferControl = BufferToken EQUAL eventBufferControlValue
+eventBufferControlValue = ("OFF" / LockStepToken)
+
+terminationStateDescriptor
+ = TerminationStateToken LBRKT terminationStateParm
+ *(COMMA terminationStateParm) RBRKT
+
+; at-most-once per item except for propertyParm
+terminationStateParm = (propertyParm / serviceStates / eventBufferControl)
+
+serviceStates = ServiceStatesToken EQUAL serviceStatesValue
+serviceStatesValue = (TestToken / OutOfSvcToken / InSvcToken)
+
+muxDescriptor = MuxToken EQUAL MuxType terminationIDList
+
+MuxType = (H221Token / H223Token / H226Token / V76Token /
+ extensionParameter / Nx64kToken)
+
+StreamID = UINT16
+
+pkgdName = (PackageName SLASH ItemID) ;specific item
+ / (PackageName SLASH "*") ;all items in package
+ / ("*" SLASH "*") ; all items supported by the MG
+
+PackageName = NAME
+
+ItemID = NAME
+
+eventsDescriptor = EventsToken [EQUAL RequestID LBRKT requestedEvent
+ *(COMMA requestedEvent) RBRKT]
+
+requestedEvent = pkgdName [LBRKT eventParameter *(COMMA
+ eventParameter) RBRKT]
+
+notifyRegulated = NotifyRegulatedToken [LBRKT (embedWithSig/
+ embedNoSig) RBRKT]
+
+notifyBehaviour = NotifyImmediateToken / notifyRegulated /
+ NeverNotifyToken
+
+; at-most-once each of KeepActiveToken, notifyBehaviour, eventDM,
+; ResetEventsDescriptor and eventStream
+; at most one of either embedWithSig or embedNoSig but not both
+; KeepActiveToken and embedWithSig must not both be present
+eventParameter = (embedWithSig / embedNoSig / KeepActiveToken /
+ eventDM / eventStream / eventOther /
+ notifyBehaviour / ResetEventsDescriptorToken)
+
+embedWithSig = EmbedToken LBRKT signalsDescriptor [COMMA
+ embedFirst] RBRKT
+
+embedNoSig = EmbedToken LBRKT embedFirst RBRKT
+
+; at-most-once of each
+embedFirst = EventsToken [EQUAL RequestID LBRKT
+ secondRequestedEvent *(COMMA secondRequestedEvent)
+ RBRKT]
+
+secondRequestedEvent = pkgdName [LBRKT secondEventParameter *(COMMA
+ secondEventParameter) RBRKT]
+
+; at-most-once each of embedSig, KeepActiveToken, notifyBehaviour, eventDM
+; ResetEventsDescriptor or eventStream
+; KeepActiveToken and embedSig must not both be present
+
+```
+
+```
+
+secondEventParameter = (embedSig / KeepActiveToken / eventDM /
+ eventStream / eventOther / notifyBehaviour /
+ ResetEventsDescriptorToken)
+
+embedSig = EmbedToken LBRKT signalsDescriptor RBRKT
+
+eventStream = StreamToken EQUAL StreamID
+
+eventOther = eventParameterName parmValue
+
+eventParameterName = NAME
+
+eventDM = DigitMapToken EQUAL((digitMapName) / (LBRKT
+ digitMapValue RBRKT))
+
+signalsDescriptor = SignalsToken [LBRKT signalParm *(COMMA signalParm)
+ RBRKT]
+
+signalParm = signalList / signalRequest
+
+signalRequest = signalName [LBRKT sigParameter *(COMMA sigParameter)
+ RBRKT]
+
+signalList = SignalListToken EQUAL signalListId LBRKT
+ signalListParm *(COMMA signalListParm) RBRKT
+
+signalListId = UINT16
+
+;exactly once signalType, at most once duration and every signal
+;parameter
+signalListParm = signalRequest
+
+signalName = pkgdName
+
+;at-most-once sigStream, at-most-once sigSignalType,
+;at-most-once sigDuration, at-most-once sigDirection,
+;at-most-once sigRequestID, at-most-once sigIntsigDelay
+;every signalParameterName at most once
+sigParameter = sigStream / sigSignalType / sigDuration / sigOther /
+ notifyCompletion / KeepActiveToken /
+ sigDirection / sigRequestID / sigIntsigDelay
+
+sigStream = StreamToken EQUAL StreamID
+
+sigOther = sigParameterName parmValue
+
+sigParameterName = NAME
+
+sigSignalType = SignalTypeToken EQUAL signalType
+
+signalType = (OnOffToken / TimeOutToken / BriefToken)
+
+sigDuration = DurationToken EQUAL UINT16
+
+sigDirection = DirectionToken EQUAL direction
+
+direction = ExternalToken / InternalToken / BothToken
+
+sigRequestID = RequestIDToken EQUAL RequestID
+
+sigIntsigDelay = IntsigDelayToken EQUAL UINT16
+
+notifyCompletion = NotifyCompletionToken EQUAL (LBRKT
+ notificationReason *(COMMA notificationReason)
+
+```
+
+```
+
+RBRKT)
+
+notificationReason = TimeOutToken / InterruptByEventToken /
+ InterruptByNewSignalsDescrToken / OtherReasonToken /
+ IterationToken
+
+observedEventsDescriptor = ObservedEventsToken EQUAL RequestID LBRKT
+ observedEvent *(COMMA observedEvent) RBRKT
+
+; time per event, because it might be buffered
+observedEvent = [TimeStamp LWSP COLON] LWSP pkgdName [LBRKT
+ observedEventParameter *(COMMA
+ observedEventParameter) RBRKT]
+
+; at-most-once eventStream, every eventParameterName at most once
+observedEventParameter = eventStream / eventOther
+
+; For an AuditCapReply with all events, the RequestID should be ALL.
+RequestID = UINT32 / "*"
+
+modemDescriptor = ModemToken ((EQUAL modemType) / (LSBRKT modemType
+ *(COMMA modemType) RSBRKT)) [LBRKT propertyParm
+ *(COMMA propertyParm) RBRKT]
+
+; at-most-once except for extensionParameter
+modemType = V32bisToken / V22bisToken / V18Token / V22Token /
+ V32Token / V34Token / V90Token / V91Token /
+ SynchISDNToken / extensionParameter
+
+digitMapDescriptor = DigitMapToken EQUAL ((LBRKT digitMapValue RBRKT) /
+ (digitMapName [LBRKT digitMapValue RBRKT]))
+
+digitMapName = NAME
+
+digitMapValue = ["T" COLON Timer COMMA] ["S" COLON Timer COMMA] ["L"
+ COLON Timer COMMA] ["Z" COLON Timer COMMA] digitMap
+
+Timer = 1*2DIGIT
+; Units are seconds for T, S, and L timers, and hundreds of
+; milliseconds for Z timer. Thus T, S, and L range from 1 to 99
+; seconds and Z from 100 ms to 9.9 s
+; An exception is the start timer which may equal 0.
+digitMap = (digitString / LWSP "(" LWSP digitStringList LWSP
+ ")" LWSP)
+
+digitStringList = digitString *(LWSP "|" LWSP digitString)
+
+digitString = 1*(digitStringElement)
+
+digitStringElement = digitPosition [DOT]
+
+digitPosition = digitMapLetter / digitMapRange
+
+digitMapRange = ("x" / (LWSP "[" LWSP digitLetter LWSP "]" LWSP))
+
+digitLetter = *((DIGIT "-" DIGIT) / digitMapLetter)
+
+digitMapLetter = DIGIT ;Basic event symbols
+ / %x41-4B / %x61-6B ; a-k, A-K
+ / "L" / "S" / "T" ;Inter-event timers
+ ; (long, short, start)
+ / "Z" ;Long duration modifier
+
+```
+
+```
+
+; at-most-once, and DigitMapToken and PackagesToken are not allowed
+; in AuditCapability command
+auditItem = auditReturnItem / SignalsToken / EventBufferToken /
+ EventsToken / indAudterminationAudit
+
+indAudterminationAudit = indAudauditReturnParameter *(COMMA
+ indAudauditReturnParameter)
+
+indAudauditReturnParameter
+ = indAudmediaDescriptor / indAudeventsDescriptor /
+ indAudsignalsDescriptor /
+ indAuddigitMapDescriptor /
+ indAudeventBufferDescriptor /
+ indAudstatisticsDescriptor /
+ indAudpackagesDescriptor
+
+indAudmediaDescriptor = MediaToken LBRKT indAudmediaParm *(COMMA
+ indAudmediaParm) RBRKT
+
+; either streamParm or streamDescriptor but not both
+indAudmediaParm = indAudstreamParm / indAudstreamDescriptor /
+ indAudterminationStateDescriptor
+
+; at-most-once
+indAudstreamParm = (indAudlocalControlDescriptor /
+ indAudstatisticsDescriptor /
+ indAudremoteDescriptor / indAudlocalDescriptor )
+
+indAudremoteDescriptor = RemoteToken LBRKT octetString RBRKT
+indAudlocalDescriptor = LocalToken LBRKT octetString RBRKT
+
+indAudstreamDescriptor = StreamToken EQUAL StreamID LBRKT indAudstreamParm
+ RBRKT
+
+indAudlocalControlDescriptor
+ = LocalControlToken LBRKT indAudlocalParm
+ *(COMMA indAudlocalParm) RBRKT
+
+; at-most-once per item
+indAudlocalParm = ModeToken [(EQUAL/INEQUAL) streamModes] / pkgdName /
+ propertyParm / ReservedValueToken /
+ ReservedGroupToken
+; propertyparm and streamModes are used only to specify audit selection
+; criteria. AND/OR selection logic is specified at context level.
+
+indAudterminationStateDescriptor
+ = TerminationStateToken LBRKT
+ indAudterminationStateParm RBRKT
+; NOTE - There is an inconsistency between request and reply for individual
+; audits. The request does not permit multiple parameters to be contained within
+; a single TerminationState Token whereas the reply permits multiple parameters.
+
+indAudterminationStateParm
+ = pkgdName / propertyParm / ServiceStatesToken
+ [(EQUAL/INEQUAL) serviceStatesValue ] / BufferToken
+; When values are included a Select operation is implied.
+; AND/OR logic is specified at context level.
+
+indAudeventBufferDescriptor
+ = EventBufferToken LBRKT indAudeventSpec RBRKT
+
+indAudeventSpec = pkgdName [LBRKT indAudeventSpecParameter RBRKT]
+
+indAudeventSpecParameter= eventStream / eventParameterName
+
+```
+
+```
+
+indAudeventsDescriptor = EventsToken [EQUAL RequestID] LBRKT
+ indAudrequestedEvent RBRKT
+
+indAudrequestedEvent = pkgdName
+
+indAudsymbolsDescriptor = SymbolsToken LBRKT [indAudsymbolsParm] RBRKT
+
+indAudsymbolsParm = indAudsymbolsList / indAudsymbolsRequest
+
+indAudsymbolsRequest = signalName [LBRKT indAudsymbolsRequestParm
+ *(COMMA indAudsymbolsRequestParm) RBRKT]
+
+indAudsymbolsRequestParm = sigStream / sigRequestID
+
+indAudsymbolsList = SignalListToken EQUAL signalListId [LBRKT
+ indAudsymbolsListParm RBRKT]
+
+indAudsymbolsListParm = indAudsymbolsRequest
+
+indAddigitMapDescriptor= DigitMapToken EQUAL (digitMapName)
+
+indAudstatisticsDescriptor
+ = StatsToken LBRKT pkgdName RBRKT
+
+indAudpackagesDescriptor= PackagesToken LBRKT packagesItem RBRKT
+
+serviceChangeDescriptor = ServicesToken LBRKT serviceChangeParm *(COMMA
+ serviceChangeParm) RBRKT
+
+; each parameter at-most-once, except auditItem
+; at most one of either serviceChangeAddress or serviceChangeMgcId but
+; not both
+; serviceChangeMethod and serviceChangeReason are REQUIRED
+serviceChangeParm = serviceChangeMethod / serviceChangeReason /
+ serviceChangeDelay / serviceChangeAddress /
+ serviceChangeProfile / extension / TimeStamp /
+ serviceChangeMgcId / serviceChangeVersion /
+ ServiceChangeIncompleteToken / auditItem)
+
+serviceChangeReplyDescriptor
+ = ServicesToken LBRKT servChgReplyParm *(COMMA
+ servChgReplyParm) RBRKT
+
+; at-most-once. Version is REQUIRED on first ServiceChange response
+; at most one of either serviceChangeAddress or serviceChangeMgcId but
+; not both
+servChgReplyParm = serviceChangeAddress / serviceChangeMgcId /
+ serviceChangeProfile / serviceChangeVersion /
+ TimeStamp
+
+serviceChangeMethod = MethodToken EQUAL (FailoverToken / ForcedToken /
+ GracefulToken / RestartToken / DisconnectedToken /
+ HandOffToken / extensionParameter)
+
+; A serviceChangeReason consists of a numeric reason code
+; and an optional text description.
+; A serviceChangeReason must be encoded using the quotedString
+; form of VALUE.
+; The quotedString shall contain a decimal reason code,
+; optionally followed by a single space character and a
+; textual description string.
+serviceChangeReason = ReasonToken EQUAL VALUE
+
+```
+
+```
+
+serviceChangeDelay = DelayToken EQUAL UINT32
+serviceChangeAddress = ServiceChangeAddressToken EQUAL (mId / portNumber)
+serviceChangeMgcId = MgcIdToken EQUAL mId
+serviceChangeProfile = ProfileToken EQUAL NAME SLASH Version
+serviceChangeVersion = VersionToken EQUAL Version
+extension = extensionParameter parmValue
+packagesDescriptor = PackagesToken LBRKT packagesItem *(COMMA
+ packagesItem) RBRKT
+Version = 1*2(DIGIT)
+packagesItem = NAME "-" UINT16
+TimeStamp = Date "T" Time ; per ISO 8601:2004
+
+; Date = yyyymmdd
+Date = 8(DIGIT)
+
+; Time = hhmmssss
+Time = 8(DIGIT)
+
+statisticsDescriptor = StatsToken [LBRKT statisticsParameter *(COMMA
+ statisticsParameter) RBRKT]
+
+;at-most-once per item
+statisticsParameter = pkgdName [EQUAL VALUE /
+ (LSBRKT VALUE *(COMMA VALUE) RSBRKT)]
+
+topologyDescriptor = TopologyToken LBRKT topologyTriple *(COMMA
+ topologyTriple) RBRKT
+
+topologyTriple = terminationA COMMA terminationB COMMA
+ topologyDirection [COMMA eventStream]
+
+terminationA = TerminationID
+terminationB = TerminationID
+
+topologyDirection = BothwayToken / IsolateToken / OnewayToken /
+ OnewayExternalToken / OnewayBothToken
+
+priority = PriorityToken EQUAL UINT16
+iepsValue = IEPSToken EQUAL ("ON" / "OFF")
+
+emergencyValue = EmergencyValueToken EQUAL (EmergencyToken /
+ EmergencyOffToken)
+
+contextAttrDescriptor = ContextAttrToken LBRKT (contextIdList /
+ propertyParm *(COMMA propertyParm)) RBRKT
+
+; When using the contextIdList construct, the ContextID in the
+; actionReply construct shall be the same as the ContextID in the
+; associated actionRequest
+contextIdList = ContextListToken EQUAL LBRKT ContextID
+ *(COMMA ContextID) RBRKT
+
+extensionParameter = "X" ("-" / "+") 1*6(ALPHA / DIGIT)
+
+```
+
+```
+
+; octetString is used to describe SDP defined in [IETF RFC 2327].
+; Caution should be taken if CRLF in RFC 2327 is used.
+; To be safe, use EOL in this ABNF.
+; Whenever "}" appears in SDP, it is escaped by "\", e.g., "\}"
+octetString = *(nonEscapeChar)
+
+nonEscapeChar = ("}\" / %x01-7C / %x7E-FF)
+
+; NOTE - The double-quote character is not allowed in quotedString.
+quotedString = DQUOTE *(SafeChar / EOL / %x80-FF / RestChar / WSP)
+DQUOTE
+
+UINT16 = 1*5(DIGIT) ; %x0-FFFF
+
+UINT32 = 1*10(DIGIT) ; %x0-FFFFFFFF
+
+NAME = ALPHA *63(ALPHA / DIGIT / "_")
+
+VALUE = quotedString / 1*(SafeChar / %x80-FF)
+
+SafeChar = DIGIT / ALPHA / "+" / "-" / "&" /
+"!" / " " / "/" / ":" / "?" / "@"/
+"^" / "`" / "~" / "*" / "$" / "\" /
+"(" / ")" / "%" / "|" / "."
+
+EQUAL = LWSP %x3D LWSP ; "="
+
+COLON = %x3A ; ":"
+
+LBRKT = LWSP %x7B LWSP ; "{"
+
+RBRKT = LWSP %x7D LWSP ; "}"
+
+COMMA = LWSP %x2C LWSP ; ","
+
+DOT = %x2E ; "."
+
+SLASH = %x2F ; "/"
+
+ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
+
+DIGIT = %x30-39 ; 0-9
+
+DQUOTE = %x22 ; " (Double Quote)
+
+HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
+
+SP = %x20 ; space
+
+HTAB = %x09 ; horizontal tab
+
+CR = %x0D ; Carriage return
+
+LF = %x0A ; linefeed
+
+LWSP = *(WSP / COMMENT / EOL)
+
+EOL = (CR [LF] / LF)
+
+WSP = SP / HTAB ; white space
+
+SEP = (WSP / EOL / COMMENT) LWSP
+
+```
+
+```
+
+COMMENT = ";" *(SafeChar/ RestChar / WSP / %x22) EOL
+
+RestChar = ";" / "[" / "]" / "{" / "}" / ":" / "," / "#" /
+ "<" / ">" / "="
+
+; New Tokens added to sigParameter must take the format of SPA*
+; * may be of any form i.e., SPAM
+; New Tokens added to eventParameter must take the form of EPA*
+; * may be of any form i.e., EPAD
+
+AddToken = ("Add" / "A")
+AndAUDITSelectToken = ("ANDLgc")
+AuditToken = ("Audit" / "AT")
+AuditCapToken = ("AuditCapability" / "AC")
+AuditValueToken = ("AuditValue" / "AV")
+AuthToken = ("Authentication" / "AU")
+BothToken = ("Both" / "B")
+BothwayToken = ("Bothway" / "BW")
+BriefToken = ("Brief" / "BR")
+BufferToken = ("Buffer" / "BF")
+CtxToken = ("Context" / "C")
+ContextAuditToken = ("ContextAudit" / "CA")
+ContextAttrToken = ("ContextAttr" / "CT")
+ContextListToken = ("ContextList" / "CLT")
+DigitMapToken = ("DigitMap" / "DM")
+DirectionToken = ("SPADirection" / "SPADI")
+DisconnectedToken = ("Disconnected" / "DC")
+DelayToken = ("Delay" / "DL")
+DurationToken = ("Duration" / "DR")
+EmbedToken = ("Embed" / "EM")
+EmergencyToken = ("Emergency" / "EG")
+EmergencyOffToken = ("EmergencyOff" / "EGO")
+EmergencyValueToken = ("EmergencyValue" / "EGV")
+ErrorToken = ("Error" / "ER")
+EventBufferToken = ("EventBuffer" / "EB")
+EventsToken = ("Events" / "E")
+ExternalToken = ("External" / "EX")
+FailoverToken = ("Failover" / "FL")
+ForcedToken = ("Forced" / "FO")
+GracefulToken = ("Graceful" / "GR")
+H221Token = ("H221")
+H223Token = ("H223")
+H226Token = ("H226")
+HandOffToken = ("HandOff" / "HO")
+IEPSToken = ("IEPSCall" / "IEPS")
+ImmAckRequiredToken = ("ImmAckRequired" / "IA")
+InactiveToken = ("Inactive" / "IN")
+InternalToken = ("Internal" / "IT")
+IntsigDelayToken = ("Intersignal" / "SPAIS")
+IsolateToken = ("Isolate" / "IS")
+InSvcToken = ("InService" / "IV")
+InterruptByEventToken = ("IntByEvent" / "IBE")
+InterruptByNewSignalsDescrToken = ("IntBySigDescr" / "IBS")
+IterationToken = ("Iteration" / "IR")
+KeepActiveToken = ("KeepActive" / "KA")
+LocalToken = ("Local" / "L")
+LocalControlToken = ("LocalControl" / "O")
+LockStepToken = ("LockStep" / "SP")
+LoopbackToken = ("Loopback" / "LB")
+MediaToken = ("Media" / "M")
+MegacopToken = ("MEGACO" / "!")
+MessageSegmentToken = ("Segment" / "SM")
+MethodToken = ("Method" / "MT")
+
+```
+
+```
+
+MgcIdToken = ("MgcIdToTry") / "MG"
+ModeToken = ("Mode") / "MO"
+ModifyToken = ("Modify") / "MF"
+ModemToken = ("Modem") / "MD"
+MoveToken = ("Move") / "MV"
+MTPToken = ("MTP") / "MX"
+MuxToken = ("Mux") / "MX"
+NeverNotifyToken = ("NeverNotify") / "NBNN"
+NotifyToken = ("Notify") / "N"
+NotifyCompletionToken = ("NotifyCompletion") / "NC"
+NotifyImmediateToken = ("ImmediateNotify") / "NBIN"
+NotifyRegulatedToken = ("RegulatedNotify") / "NBRN"
+Nx64kToken = ("Nx64Kservice") / "N64"
+ObservedEventsToken = ("ObservedEvents") / "OE"
+OnewayToken = ("Oneway") / "OW"
+OnewayBothToken = ("OnewayBoth") / "OWB"
+OnewayExternalToken = ("OnewayExternal") / "OWE"
+OnOffToken = ("OnOff") / "OO"
+OrAUDITselectToken = ("ORLgc") / "OR"
+OtherReasonToken = ("OtherReason") / "OR"
+OutOfSvcToken = ("OutOfService") / "OS"
+PackagesToken = ("Packages") / "PG"
+PendingToken = ("Pending") / "PN"
+PriorityToken = ("Priority") / "PR"
+ProfileToken = ("Profile") / "PF"
+ReasonToken = ("Reason") / "RE"
+ReconlyToken = ("ReceiveOnly") / "RC"
+ReplyToken = ("Reply") / "P"
+ResetEventsDescriptorToken = ("ResetEventsDescriptor") / "RSE"
+RestartToken = ("Restart") / "RS"
+RemoteToken = ("Remote") / "R"
+RequestIDToken = ("SPARquestID") / "SPARQ"
+ReservedGroupToken = ("ReservedGroup") / "RG"
+ReservedValueToken = ("ReservedValue") / "RV"
+SegmentationCompleteToken = ("END") / "&"
+SendonlyToken = ("SendOnly") / "SO"
+SendrecvToken = ("SendReceive") / "SR"
+ServicesToken = ("Services") / "SV"
+ServiceStatesToken = ("ServiceStates") / "SI"
+ServiceChangeIncompleteToken = ("ServiceChangeInc") / "SIC"
+ServiceChangeToken = ("ServiceChange") / "SC"
+ServiceChangeAddressToken = ("ServiceChangeAddress") / "AD"
+SignalListToken = ("SignalList") / "SL"
+SignalsToken = ("Signals") / "SG"
+SignalTypeToken = ("SignalType") / "SY"
+StatsToken = ("Statistics") / "SA"
+StreamToken = ("Stream") / "ST"
+SubtractToken = ("Subtract") / "S"
+SynchISDNToken = ("SynchISDN") / "SN"
+TerminationStateToken = ("TerminationState") / "TS"
+TestToken = ("Test") / "TE"
+TimeoutToken = ("Timeout") / "TO"
+TopologyToken = ("Topology") / "TP"
+TransToken = ("Transaction") / "T"
+ResponseAckToken = ("TransactionResponseAck") / "K"
+V18Token = ("V18") / "V18"
+V22Token = ("V22") / "V22"
+V22bisToken = ("V22b") / "V22b"
+V32Token = ("V32") / "V32"
+V32bisToken = ("V32b") / "V32b"
+
+```
+
+```
+
+V34Token = ("V34")
+V76Token = ("V76")
+V90Token = ("V90")
+V91Token = ("V91")
+VersionToken = ("Version" / "V")
+
+```
+
+## B.3 Hexadecimal octet coding
+
+Hexadecimal octet coding is a means for representing package elements of type Octet String as a string of hexadecimal digits, with two digits representing each octet. This octet encoding should be used when encoding values of type Octet String in the text version of the protocol.
+
+For each octet, the 8-bit sequence is encoded as two hexadecimal digits. Bit 0 is the first transmitted or left most; bit 7 is the last or right most.
+
+NOTE – This means that Bit 0 is the MSB of the original octet and Bit 7 is the LSB of the original octet, according to the common convention used to specify octet values.
+
+Bits 7-4 are encoded as the first hexadecimal digit, with Bit 7 as MSB of the first hexadecimal digit and Bit 4 as LSB of the first hexadecimal digit. Bits 3-0 are encoded as the second hexadecimal digit, with Bit 3 as MSB of the second hexadecimal digit and Bit 0 as LSB of the second hexadecimal digit.
+
+NOTE – The above encoding results in the reversal of bits from the original octet.
+
+Examples:
+
+| Octet bit pattern | Hexadecimal coding |
+|-------------------------------------|--------------------|
+| 00011011 | D8 |
+| 11100100 | 27 |
+| 10000011 10100010 11001000 00001001 | C1451390 |
+
+This encoding is not applicable to the octetString construct defined in clause B.2
+
+## B.4 Hexadecimal octet sequence
+
+A hexadecimal octet sequence is an even number of hexadecimal digits, terminated by a character.
+
+# Annex C
+
+## Tags for media stream properties
+
+(This annex forms an integral part of this Recommendation.)
+
+Parameters for Local, Remote and LocalControl Descriptors are specified as tag-value pairs if binary encoding is used for the protocol. This annex contains the property names (PropertyID), the tags (Property tag), type of the property (Type) and the values (Value). Values presented in the Value field when the field contains references shall be regarded as "information". The reference contains the normative values. If a value field does not contain a reference, then the values in that field can be considered as "normative".
+
+Referencing of Annex C properties follows the PackageID/PropertyID structure; however Annex C is not in itself a package. Annex C is considered to have PackageID 0x0000 for binary encoding and "anxc" for text encoding. For text encoding of ITU-T H.248.1, Annex C shall only be used if the required property is either not defined by a package or not represented by SDP. The nesting of one Annex C property inside another is forbidden.
+
+Tags are given as hexadecimal numbers in this annex. When setting the value of a property, an MGC may underspecify the value according to one of the mechanisms specified in clause 7.1.1.
+
+It is optional to support the properties in this annex or any of its subclauses. For example, only three properties from clause C.3 and only five properties from clause C.8 might be implemented.
+
+For type "enumeration" the value is represented by the value in brackets, e.g., Send (0), Receive (1). Annex C properties with the types "N bits" or "M Octets" should be treated as octet strings when encoding the protocol. Properties with "N bit integer" shall be treated as an integers. "String" shall be treated as an IA5String when encoding the protocol.
+
+When a type is smaller than one octet, the value shall be stored in the low-order bits of an octet string of size one octet. 0-padding should be used for the remaining high-order bits.
+
+## C.1 General media attributes
+
+| PropertyID | Property tag | Type | Value |
+|------------------|--------------|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Media | 1001 | Enumeration | Audio(0), Video(1), Data(2) |
+| Transmissionmode | 1002 | Enumeration | Send(0), Receive(1), Send&Receive(2) |
+| NumberofChannels | 1003 | Unsigned integer | 0-255 |
+| Samplingrate | 1004 | Unsigned integer | 0-2 32 |
+| Bitrate | 1005 | Integer | (0..4294967295)
NOTE – Units of 100 bit/s. |
+| ACodec | 1006 | Octet string | Audio Codec Type:[ITU-T Q.765.5]
Non-ITU-T codecs are defined with the appropriate standards organization under a defined Organizational Identifier. |
+| Samplepp | 1007 | Unsigned integer | Maximum samples or frames per packet:
0..65535 |
+| Silencesupp | 1008 | Boolean | Silence Suppression: True/False |
+| Encrypttype | 1009 | Octet string | [ITU-T H.245] |
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Encryptkey | 100A | Octet string size (0..65535) | Encryption key [ITU-T H.235.0] |
+| Echocanc | 100B | | Not Used. See E.13 for an example of possible Echo Control Properties. |
+| Gain | 100C | | Not Used. See E.13 for an available gain property. |
+| Jitterbuff | 100D | Unsigned integer | Jitter buffer size in ms: 0..65535 |
+| PropDelay | 100E | Unsigned integer | Propagation Delay: 0..65535
Maximum propagation delay in milliseconds for the bearer connection between two media gateways. The maximum delay will be dependent on the bearer technology. |
+| RTPpayload | 100F | Integer | Payload type in RTP Profile for Audio and Video Conferences with Minimal Control [IETF RFC 1890] |
+| Ptime | 1010 | Integer | Packetization Time
This gives the length of time in milliseconds represented by the media in a packet. [IETF RFC 2327] |
+
+## C.2 Mux properties
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|--------------|---------------------------------------------|
+| H222 | 2001 | Octet string | H222LogicalChannelParameters [ITU-T H.245] |
+| H223 | 2002 | Octet string | H223LogicalChannelParameters [ITU-T H.245] |
+| V76 | 2003 | Octet string | V76LogicalChannelParameters [ITU-T H.245] |
+| H2250 | 2004 | Octet string | H2250LogicalChannelParameters [ITU-T H.245] |
+
+## C.3 General bearer properties
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|-------------|------------------------------------------------------------------------------|
+| Mediatx | 3001 | Enumeration | Media Transport Type
TDM Circuit(0), ATM(1), FR(2), Ipv4(3), Ipv6(4), ... |
+| BIR | 3002 | 4 octets | Value depends on transport technology |
+| NSAP | 3003 | 1-20 octets | See NSAP.
Annex A/[ITU-T X.213] |
+
+## C.4 General ATM properties
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|--------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| AESA | 4001 | 20 octets | ATM End System Address |
+| VPVC | 4002 | 4 octets:
VPCI in first
two least
significant
octets, VCI in
second two
octets | VPCI/VCI
Recommendation ITU-T Q.2931 |
+| SC | 4003 | Enumeration | Service Category: CBR(0), nrt-VBR1(1),
nrt-VBR2(2), nrt-VBR3(3), rt-VBR1(4),
rt-VBR2(5), rt-VBR3(6), UBR1(7),
UBR2(8), ABR(9).
[ATM Forum UNI 4.0] |
+| BCOB | 4004 | 5-bit integer | Broadband Bearer Class
[ITU-T Q.2961.2] |
+| BBTC | 4005 | 7-bit integer | Broadband Transfer Capability
[ITU-T Q.2961.1] |
+| ATC | 4006 | Enumeration | I.371 ATM Traffic Capability
DBR(0), SBR1(1), SBR2(2), SBR3(3),
ABT/IT(4), ABT/DT(5), ABR(6)
[ITU-T I.371] |
+| STC | 4007 | 2 bits | Susceptibility to clipping:
Bits
2 1
0 0 not susceptible to clipping
0 1 susceptible to clipping
[ITU-T Q.2931] |
+| UPCC | 4008 | 2 bits | User Plane Connection configuration:
Bits
2 1
0 0 point-to-point
0 1 point-to-multipoint
[ITU-T Q.2931] |
+| PCR0 | 4009 | 24-bit integer | Peak Cell Rate (For CLP = 0)
[ITU-T Q.2931] |
+| SCR0 | 400A | 24-bit integer | Sustainable Cell Rate (For CLP = 0)
[ITU-T Q.2961.1] |
+| MBS0 | 400B | 24-bit integer | Maximum Burst Size (For CLP = 0)
[ITU-T Q.2961.1] |
+| PCR1 | 400C | 24-bit integer | Peak Cell Rate (For CLP = 0 + 1)
[ITU-T Q.2931] |
+| SCR1 | 400D | 24-bit integer | Sustainable Cell Rate (For CLP = 0 + 1)
[ITU-T Q.2961.1] |
+| MBS1 | 400E | 24-bit integer | Maximum Burst Size (For CLP = 0 + 1)
[ITU-T Q.2961.1] |
+
+| PropertyID | Property tag | Type | Value | | | | | | | | | | | | | | |
+|-------------------|--------------------------------------------------------------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|---------|---|--------------------------------------------------------------------|---|-----------|---|----------|---|----------|---|-----------|---|--------------------|
+| BEI | 400F | Boolean | Best Effort Indicator
Value 1 indicates that BEI is to be included in the ATM signalling; value 0 indicates that BEI is not to be included in the ATM signalling.
[ATM Forum UNI 4.0] | | | | | | | | | | | | | | |
+| TI | 4010 | Boolean | Tagging Indicator
Value 0 indicates that tagging is not allowed; value 1 indicates that tagging is requested.
[ITU-T Q.2961.1] | | | | | | | | | | | | | | |
+| FD | 4011 | Boolean | Frame Discard
Value 0 indicates that no frame discard is allowed; value 1 indicates that frame discard is allowed.
[ATM Forum UNI 4.0] | | | | | | | | | | | | | | |
+| A2PCDV | 4012 | 24-bit integer | Acceptable 2-point CDV
[ITU-T Q.2965.2] | | | | | | | | | | | | | | |
+| C2PCDV | 4013 | 24-bit integer | Cumulative 2-point CDV
[ITU-T Q.2965.2] | | | | | | | | | | | | | | |
+| APPCDV | 4014 | 24-bit integer | Acceptable P-P CDV
[ATM Forum UNI 4.0] | | | | | | | | | | | | | | |
+| CPPCDV | 4015 | 24-bit integer | Cumulative P-P CDV
[ATM Forum UNI 4.0] | | | | | | | | | | | | | | |
+| ACLR | 4016 | 8-bit integer | Acceptable Cell Loss Ratio
[ITU-T Q.2965.2], [ATM Forum UNI 4.0] | | | | | | | | | | | | | | |
+| MEETD | 4017 | 16-bit integer | Maximum End-to-end transit delay
[ITU-T Q.2965.2], [ATM Forum UNI 4.0] | | | | | | | | | | | | | | |
+| CEETD | 4018 | 16-bit integer | Cumulative End-to-end transit delay
[ITU-T Q.2965.2], [ATM Forum UNI 4.0] | | | | | | | | | | | | | | |
+| QosClass | 4019 | Integer 0-5 | QoS Class
| QoS Class | Meaning |
| 0 | Default QoS associated with the ATC as defined in [ITU-T Q.2961.2] |
| 1 | Stringent |
| 2 | Tolerant |
| 3 | Bi-level |
| 4 | Unbounded |
| 5 | Stringent Bi-level |
[ITU-T Q.2965.1] | QoS Class | Meaning | 0 | Default QoS associated with the ATC as defined in [ITU-T Q.2961.2] | 1 | Stringent | 2 | Tolerant | 3 | Bi-level | 4 | Unbounded | 5 | Stringent Bi-level |
+| QoS Class | Meaning | | | | | | | | | | | | | | | | |
+| 0 | Default QoS associated with the ATC as defined in [ITU-T Q.2961.2] | | | | | | | | | | | | | | | | |
+| 1 | Stringent | | | | | | | | | | | | | | | | |
+| 2 | Tolerant | | | | | | | | | | | | | | | | |
+| 3 | Bi-level | | | | | | | | | | | | | | | | |
+| 4 | Unbounded | | | | | | | | | | | | | | | | |
+| 5 | Stringent Bi-level | | | | | | | | | | | | | | | | |
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| AALtype | 401A | 1 octet | AAL Type
Bits
8 7 6 5 4 3 2 1
0 0 0 0 0 0 0 0 AAL for voice
0 0 0 0 0 0 0 1 AAL type 1
0 0 0 0 0 0 1 0 AAL type 2
0 0 0 0 0 0 1 1 AAL type 3/4
0 0 0 0 0 1 0 1 AAL type 5
0 0 0 1 0 0 0 0 user-defined AAL
[ITU-T Q.2931] |
+
+## C.5 Frame relay
+
+| PropertyID | Property tag | Type | Value |
+|---------------------|--------------|------------------|-----------------------------------------------|
+| DLCI | 5001 | Unsigned integer | Data link connection ID |
+| CID | 5002 | Unsigned integer | sub-channel ID |
+| SIDNoiselevel | 5003 | Unsigned integer | silence insertion descriptor |
+| PrimaryPayload type | 5004 | Unsigned integer | Primary Payload Type
Covers FAX and codecs |
+
+## C.6 IP
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
+| IPv4 | 6001 | 32 bits
Ipv4Address | IPv4Address
[IETF RFC 791] |
+| IPv6 | 6002 | 128 bits | IPv6 Address
[IETF RFC 2460] |
+| Port | 6003 | Unsigned integer | 0..65535 |
+| Porttype | 6004 | Enumerated | TCP(0), UDP(1), SCTP(2) |
+| RtcpbwRS | 6005 | Integer | RS RTCP bandwidth modifier indicates the RTCP bandwidth allocated to active data senders (as defined by the RTP specification)
[IETF RFC 3556] |
+| RtcpbwRR | 6006 | Integer | RR RTCP bandwidth modifier indicates the RTCP bandwidth allocated to other participants in the RTP session (i.e., receivers)
[IETF RFC 3556] |
+
+## C.7 ATM AAL 2
+
+| PropertyID | Property tag | Type | Value |
+|------------|----------------|------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| AESA | 7001 | 20 octets | AAL 2 service endpoint address as defined in the referenced Recommendation.
ESEA
NSEA
[ITU-T Q.2630.1] |
+| BIR | See clause C.3 | 4 octets | Served user-generated reference as defined in the referenced Recommendation.
SUGR
[ITU-T Q.2630.1] |
+| ALC | 7002 | 12 octets | AAL 2 link characteristics as defined in the referenced Recommendation.
Maximum/Average CPS-SDU bit rate;
Maximum/Average CPS-SDU size
[ITU-T Q.2630.1] |
+| SSCS | 7003 | I.366.2:
Audio
(8 octets);
Multirate
(3 octets), or
I.366.1:
SAR-assured
(14 octets);
SAR-
unassured
(7 octets). | Service specific convergence sublayer information as defined in:
– [ITU-T Q.2630.1],
and used in:
– [ITU-T I.366.2]: Audio/Multirate;
– [ITU-T I.366.1]: SAR-assured/-
unassured.
[ITU-T Q.2630.1], [ITU-T I.366.1] and
[ITU-T I.366.2] |
+| SUT | 7004 | 1..254 octets | Served user transport parameter as defined in the referenced Recommendation.
[ITU-T Q.2630.1] |
+| TCI | 7005 | Boolean | Test connection indicator as defined in the referenced Recommendation.
[ITU-T Q.2630.1] |
+| Timer_CU | 7006 | 32-bit integer | Timer-CU
Milliseconds to hold partially filled cell before sending. |
+| MaxCPSSDU | 7007 | 8-bit integer | Maximum Common Part Sublayer Service Data Unit
[ITU-T Q.2630.1] |
+| CID | 7008 | 8 bits | Subchannel ID: 0-255
[ITU-T I.363.2] |
+
+## C.8 ATM AAL 1
+
+| PropertyID | Property tag | Type | Value |
+|------------|-------------------------|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| BIR | See table in clause C.3 | 4-29 octets | GIT (Generic Identifier Transport)
[ITU-T Q.2941.1] |
+| AAL1ST | 8001 | 1 octet | AAL 1 Subtype
Bits
8 7 6 5 4 3 2 1
0 0 0 0 0 0 0 0 null
0 0 0 0 0 0 0 1 voiceband signal transport on 64 kbit/s
0 0 0 0 0 0 1 0 circuit transport
0 0 0 0 0 1 0 0 high-quality audio signal transport
0 0 0 0 0 1 0 1 video signal transport
[ITU-T Q.2931] |
+| CBRR | 8002 | 1 octet | CBR Rate
Bits
8 7 6 5 4 3 2 1
0 0 0 0 0 0 0 1 64 kbit/s
0 0 0 0 0 1 0 0 1544 kbit/s
0 0 0 0 0 1 0 1 6312 kbit/s
0 0 0 0 0 1 1 0 32 064 kbit/s
0 0 0 0 0 1 1 1 44 736 kbit/s
0 0 0 0 1 0 0 0 97 728 kbit/s
0 0 0 1 0 0 0 0 2048 kbit/s
0 0 0 1 0 0 0 1 8448 kbit/s
0 0 0 1 0 0 1 0 34 368 kbit/s
0 0 0 1 0 0 1 1 139 264 kbit/s
0 1 0 0 0 0 0 0 $n \times 64$ kbit/s
0 1 0 0 0 0 0 1 $n \times 8$ kbit/s
[ITU-T Q.2931] |
+| MULT | See table in clause C.9 | | Multiplier, or $n \times 64\text{k}/8\text{k}/300$
[ITU-T Q.2931] |
+| SCRI | 8003 | 1 octet | Source Clock Frequency Recovery Method
Bits
8 7 6 5 4 3 2 1
0 0 0 0 0 0 0 0 null
0 0 0 0 0 0 0 1 SRTS
0 0 0 0 0 0 1 0 ACM
[ITU-T Q.2931] |
+| ECM | 8004 | 1 octet | Error Correction Method
Bits
8 7 6 5 4 3 2 1
0 0 0 0 0 0 0 0 null
0 0 0 0 0 0 0 1 FEC – Loss
0 0 0 0 0 0 1 0 FEC – Delay
[ITU-T Q.2931] |
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|----------------|----------------------------------------------------------------------------------------|
+| SDTB | 8005 | 16-bit integer | Structured Data Transfer Blocksize
Block size of SDT CBR service
[ITU-T I.363.1] |
+| PFCI | 8006 | 8-bit integer | Partially filled cells identifier
1-47
[ITU-T I.363.1] |
+
+## C.9 Bearer capabilities
+
+The table entries referencing [ITU-T Q.931] refer to the encoding in the bearer capability information element of ITU-T Q.931, not to the low layer information element.
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| TMR | 9001 | 1 octet | Transmission Medium Requirement [ITU-T Q.763]
Bits
8 7 6 5 4 3 2 1
0 0 0 0 0 0 0 0 speech
0 0 0 0 0 0 0 1 spare
0 0 0 0 0 0 1 0 64 kbit/s unrestricted
0 0 0 0 0 0 1 1 3.1 kHz audio
0 0 0 0 0 1 0 0 reserved for alternate speech
(service 2)/64 kbit/s
unrestricted (service 1)
0 0 0 0 0 1 0 1 reserved for alternate
64 kbit/s unrestricted
(service 1)/speech (service 2)
0 0 0 0 0 1 1 0 64 kbit/s preferred
0 0 0 0 0 1 1 1 2 × 64 kbit/s unrestricted
0 0 0 0 1 0 0 0 384 kbit/s unrestricted
0 0 0 0 1 0 0 1 1536 kbit/s unrestricted
0 0 0 0 1 0 1 0 1920 kbit/s unrestricted
0 0 0 0 1 0 1 1
through spare
0 0 0 0 1 1 1 1
0 0 0 1 0 0 0 0 3 × 64 kbit/s unrestricted
0 0 0 1 0 0 0 1 4 × 64 kbit/s unrestricted
0 0 0 1 0 0 1 0 5 × 64 kbit/s unrestricted
0 0 0 1 0 0 1 1 spare
0 0 0 1 0 1 0 0 7 × 64 kbit/s unrestricted
0 0 0 1 0 1 0 1 8 × 64 kbit/s unrestricted
0 0 0 1 0 1 1 0 9 × 64 kbit/s unrestricted
0 0 0 1 0 1 1 1 10 × 64 kbit/s unrestricted
0 0 0 1 1 0 0 0 11 × 64 kbit/s unrestricted
0 0 0 1 1 0 0 1 12 × 64 kbit/s unrestricted
0 0 0 1 1 0 1 0 13 × 64 kbit/s unrestricted
0 0 0 1 1 0 1 1 14 × 64 kbit/s unrestricted
0 0 0 1 1 1 0 0 15 × 64 kbit/s unrestricted
0 0 0 1 1 1 0 1 16 × 64 kbit/s unrestricted
0 0 0 1 1 1 1 0 17 × 64 kbit/s unrestricted
0 0 0 1 1 1 1 1 18 × 64 kbit/s unrestricted
0 0 1 0 0 0 0 0 19 × 64 kbit/s unrestricted |
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| | | | 0 0 1 0 0 0 0 1 20 × 64 kbit/s unrestricted
0 0 1 0 0 0 1 0 21 × 64 kbit/s unrestricted
0 0 1 0 0 0 1 1 22 × 64 kbit/s unrestricted
0 0 1 0 0 1 0 0 23 × 64 kbit/s unrestricted
0 0 1 0 0 1 0 1 spare |
+| | | | 0 0 1 0 0 1 1 0 25 × 64 kbit/s unrestricted
0 0 1 0 0 1 1 1 26 × 64 kbit/s unrestricted
0 0 1 0 1 0 0 0 27 × 64 kbit/s unrestricted
0 0 1 0 1 0 0 1 28 × 64 kbit/s unrestricted
0 0 1 0 1 0 1 0 29 × 64 kbit/s unrestricted
0 0 1 0 1 0 1 1
through spare
1 1 1 1 1 1 1 1
[ITU-T Q.763] |
+| TMRSP | 9002 | 1 octet | Transmission Medium Requirement Subrate
0 unspecified
1 8 kbit/s
2 16 kbit/s
3 32 kbit/s |
+| Contcheck | 9003 | Boolean | Continuity Check
0 continuity check not required on this circuit
1 continuity check required on this circuit
[ITU-T Q.763] |
+| ITC | 9004 | 5 bits | Information Transfer Capability
Bits
5 4 3 2 1
0 0 0 0 0 Speech
0 1 0 0 0 Unrestricted digital information
0 1 0 0 1 Restricted digital information
1 0 0 0 0 3.1 kHz audio
1 0 0 0 1 Unrestricted digital information
with tones/announcements
1 1 0 0 0 Video
All other values are reserved.
[ITU-T Q.763] |
+| TransMode | 9005 | 2 bits | Transfer Mode
Bits
2 1
0 0 Circuit mode
1 0 Packet mode
[ITU-T Q.931] |
+
+| PropertyID | Property tag | Type | Value |
+|-------------|--------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| TransRate | 9006 | 5 bits | Transfer Rate
Bits
5 4 3 2 1
0 0 0 0 0 This code shall be used for packet mode calls
1 0 0 0 0 64 kbit/s
1 0 0 0 1 2 × 64 kbit/s
1 0 0 1 1 384 kbit/s
1 0 1 0 1 1536 kbit/s
1 0 1 1 1 1920 kbit/s
1 1 0 0 0 Multirate (64 kbit/s base rate)
[ITU-T Q.931] |
+| MULT | 9007 | 7 bits | Rate Multiplier
Any value from 2 to n (maximum number of B-channels)
[ITU-T Q.931] |
+| layer1prot | 9008 | 5 bits | User Information Layer 1 Protocol
Bits
5 4 3 2 1
0 0 0 0 1 ITU-T standardized rate adaption V.110 and X.30.
0 0 0 1 0 Rec. ITU-T G.711 µ-law
0 0 0 1 1 Rec. ITU-T G.711 A-law
0 0 1 0 0 Rec. ITU-T G.726 32 kbit/s ADPCM and Rec. ITU-T I.460
0 0 1 0 1 Recs ITU-T H.221 and H.242
0 0 1 1 0 Recs ITU-T H.223 and H.245
0 0 1 1 1 Non-ITU-T standardized rate adaption.
0 1 0 0 0 ITU-T standardized rate adaption V.120.
0 1 0 0 1 ITU-T standardized rate adaption X.31 HDLC flag stuffing
All other values are reserved.
[ITU-T Q.931] |
+| syncasync | 9009 | Boolean | Synchronous/Asynchronous
0 Synchronous data
1 Asynchronous data
[ITU-T Q.931] |
+| negotiation | 900A | Boolean | Negotiation
0 In-band negotiation possible
1 In-band negotiation not possible
[ITU-T Q.931] |
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Userrate | 900B | 5 bits | User Rate
Bits
5 4 3 2 1
0 0 0 0 0 Rate is indicated by E-bits specified in Rec. ITU-T I.460 or may be negotiated in-band
0 0 0 0 1 0.6 kbit/s Recs ITU-T V.6 and X.1
0 0 0 1 0 1.2 kbit/s Rec. ITU-T V.6
0 0 0 1 1 2.4 kbit/s Recs ITU-T V.6 and X.1
0 0 1 0 0 3.6 kbit/s Rec. ITU-T V.6
0 0 1 0 1 4.8 kbit/s Recs ITU-T V.6 and X.1
0 0 1 1 0 7.2 kbit/s Rec. ITU-T V.6
0 0 1 1 1 8 kbit/s Rec. ITU-T I.460
0 1 0 0 0 9.6 kbit/s Recs ITU-T V.6 and X.1
0 1 0 0 1 14.4 kbit/s Rec. ITU-T V.6
0 1 0 1 0 16 kbit/s Rec. ITU-T I.460
0 1 0 1 1 19.2 kbit/s Rec. ITU-T V.6
0 1 1 0 0 32 kbit/s Rec. ITU-T I.460
0 1 1 0 1 38.4 kbit/s Rec. ITU-T V.110
0 1 1 1 0 48 kbit/s Recs ITU-T V.6 and X.1
0 1 1 1 1 56 kbit/s Rec. ITU-T V.6
1 0 0 1 0 57.6 kbit/s Rec. ITU-T V.14 extended
1 0 0 1 1 28.8 kbit/s Rec. ITU-T V.110
1 0 1 0 0 24 kbit/s Rec. ITU-T V.110
1 0 1 0 1 0.1345 kbit/s Rec. ITU-T X.1
1 0 1 1 0 0.100 kbit/s Rec. ITU-T X.1
1 0 1 1 1 0.075/1.2 kbit/s Recs ITU-T V.6 and X.1
1 1 0 0 0 1.2/0.075 kbit/s Recs ITU-T V.6 and X.1
1 1 0 0 1 0.050 kbit/s Recs ITU-T V.6 and X.1
1 1 0 1 0 0.075 kbit/s Recs ITU-T V.6 and X.1
1 1 0 1 1 0.110 kbit/s Recs ITU-T V.6 and X.1
1 1 1 0 0 0.150 kbit/s Recs ITU-T V.6 and X.1
1 1 1 0 1 0.200 kbit/s Recs ITU-T V.6 and X.1
1 1 1 1 0 0.300 kbit/s Recs ITU-T V.6 and X.1
1 1 1 1 1 12 kbit/s Rec. ITU-T V.6
All other values are reserved.
[ITU-T Q.931] |
+
+| PropertyID | Property tag | Type | Value |
+|--------------|--------------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| INTRATE | 900C | 2 bits | Intermediate Rate
Bits
2 1
0 0 Not used
0 1 8 kbit/s
1 0 16 kbit/s
1 1 32 kbit/s
[ITU-T Q.931] |
+| nictx | 900D | Boolean | Network Independent Clock (NIC) on transmission
0 Not required to send data with network independent clock
1 Required to send data with network independent clock
[ITU-T Q.931] |
+| nicrx | 900E | Boolean | Network independent clock (NIC) on reception
0 Cannot accept data with network independent clock
(i.e., sender does not support this optional procedure)
1 Can accept data with network independent clock
(i.e., sender does support this optional procedure)
[ITU-T Q.931] |
+| flowconttx | 900F | Boolean | Flow Control on transmission (Tx)
0 Not required to send data with flow control mechanism
1 Required to send data with flow control mechanism
[ITU-T Q.931] |
+| flowcontrx | 9010 | Boolean | Flow control on reception (Rx)
0 Cannot accept data with flow control mechanism
(i.e., sender does not support this optional procedure)
1 Can accept data with flow control mechanism (i.e., sender does support this optional procedure)
ITU-T Q.931] |
+| rateadapthdr | 9011 | Boolean | Rate adaption header/no header
0 Rate adaption header not included
1 Rate adaption header included
[ITU-T Q.931] |
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| multiframe | 9012 | Boolean | Multiple frame establishment support in data link
0 Multiple frame establishment not supported. Only UI frames allowed
1 Multiple frame establishment supported [ITU-T Q.931] |
+| OPMODE | 9013 | Boolean | Mode of operation
0 Bit transparent mode of operation
1 Protocol sensitive mode of operation [ITU-T Q.931] |
+| llidnegot | 9014 | Boolean | Logical link identifier negotiation
0 Default, LLI = 256 only
1 Full protocol negotiation [ITU-T Q.931] |
+| assign | 9015 | Boolean | Assignor/assignee
0 Message originator is "default assignee"
1 Message originator is "assignor only" [ITU-T Q.931] |
+| inbandneg | 9016 | Boolean | In-band/out-band negotiation
0 Negotiation is done with USER INFORMATION messages on a temporary signalling connection
1 Negotiation is done in-band using logical link zero [ITU-T Q.931] |
+| stopbits | 9017 | 2 bits | Number of stop bits
Bits
2 1
0 0 Not used
0 1 1 bit
1 0 1.5 bits
1 1 2 bits [ITU-T Q.931] |
+| databits | 9018 | 2 bits | Number of data bits excluding parity bit if present
Bits
2 1
0 0 Not used
0 1 5 bits
1 0 7 bits
1 1 8 bits [ITU-T Q.931] |
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| parity | 9019 | 3 bits | Parity information
Bits
3 2 1
0 0 0 Odd
0 1 0 Even
0 1 1 None
1 0 0 Forced to 0
1 0 1 Forced to 1
All other values are reserved.
[ITU-T Q.931] |
+| duplexmode | 901A | Boolean | Mode duplex
0 Half duplex
1 Full duplex
[ITU-T Q.931] |
+| modem | 901B | 6 bits | Modem Type
Bits
6 5 4 3 2 1
0 0 0 0 0 0
through National use
0 0 0 1 0 1
0 1 0 0 0 1 Rec. ITU-T V.21
0 1 0 0 1 0 Rec. ITU-T V.22
0 1 0 0 1 1 Rec. ITU-T V.22 bis
0 1 0 1 0 0 Rec. ITU-T V.23
0 1 0 1 0 1 Rec. ITU-T V.26
0 1 1 0 0 1 Rec. ITU-T V.26 bis
0 1 0 1 1 1 Rec. ITU-T V.26 ter
0 1 1 0 0 0 Rec. ITU-T V.27
0 1 1 0 0 1 Rec. ITU-T V.27 bis
0 1 1 0 1 0 Rec. ITU-T V.27 ter
0 1 1 0 1 1 Rec. ITU-T V.29
0 1 1 1 0 1 Rec. ITU-T V.32
0 1 1 1 1 0 Rec. ITU-T V.34
1 0 0 0 0 0
through National use
1 0 1 1 1 1
1 1 0 0 0 0
through User specified
1 1 1 1 1 1
[ITU-T Q.931] |
+| layer2prot | 901C | 5 bits | User information layer 2 protocol
Bits
5 4 3 2 1
0 0 0 1 0 Rec. ITU-T Q.921/L.441
0 0 1 1 0 Rec. ITU-T X.25, link layer
0 1 1 0 0 LAN logical link control
(ISO/IEC 8802-2)
All other values are reserved.
[ITU-T Q.931] |
+
+| PropertyID | Property tag | Type | Value |
+|---------------|--------------|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| layer3prot | 901D | 5 bits | User information layer 3 protocol
Bits
5 4 3 2 1
0 0 0 1 0 Rec. ITU-T Q.931
0 0 1 1 0 Rec. ITU-T X.25, packet layer
0 1 0 1 1 ISO/IEC TR 9577 (Protocol identification in the network layer)
All other values are reserved.
[ITU-T Q.931] |
+| addlayer3prot | 901E | Octet | Additional User Information layer 3 protocol
Bits Bits
4 3 2 1 4 3 2 1
1 1 0 0 1 1 0 0 Internet Protocol
(RFC 791)
(ISO/IEC TR 9577)
1 1 0 0 1 1 1 1 Point-to-point Protocol
(RFC 1661)
[ITU-T Q.931] |
+| DialledN | 901F | 30 octets | Dialled Number |
+| DiallingN | 9020 | 30 octets | Dialling Number |
+| ECHOCI | 9021 | | Not Used. See E.13 for an example of possible Echo Control Properties. |
+| NCI | 9022 | 1 octet | Nature of Connection Indicators
Bits
2 1 Satellite Indicator
0 0 no satellite circuit in the connection
0 1 one satellite circuit in the connection
1 0 two satellite circuits in the connection
1 1 spare
Bits
4 3 Continuity check indicator
0 0 continuity check not required
0 1 continuity check required on this circuit
1 0 continuity check performed on a previous circuit
1 1 spare
Bit
5 Echo control device indicator
0 outgoing echo control device not included
1 outgoing echo control device included
Bits
8 7 6 Spare
[ITU-T Q.763] |
+| USI | 9023 | Octet string | User Service Information
Clause 3.57/[ITU-T Q.763] |
+
+## C.10 AAL 5 properties
+
+| PropertyID | Property tag | Type | Value |
+|------------|-------------------------|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
+| FMSDU | A001 | 32-bit integer | Forward Maximum CPCS-SDU Size:
Maximum CPCS-SDU size sent in the direction from the calling user to the called user.
[ITU-T Q.2931] |
+| BMSDU | A002 | 32-bit integer | Backwards Maximum CPCS-SDU Size:
Maximum CPCS-SDU size sent in the direction from the called user to the calling user.
[ITU-T Q.2931] |
+| SSCS | See table in clause C.7 | See table in clause C.7 | See table in clause C.7
Additional values:
VPI/VCI |
+
+## C.11 SDP equivalents
+
+The SDP equivalents are subject to the SDP exceptions outlined in clause 7.1.8 for the text encoding of the protocol. For example, the CHOOSE wildcard is allowed to be used in the MGC to MG direction irrespective of the encoding (binary or text) of the protocol.
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|--------|-------------------------------------------------|
+| SDP_V | B001 | String | Protocol Version
[IETF RFC 2327] |
+| SDP_O | B002 | String | Owner/creator and session ID
[IETF RFC 2327] |
+| SDP_S | B003 | String | Session name
[IETF RFC 2327] |
+| SDP_I | B004 | String | Session identifier
[IETF RFC 2327] |
+| SDP_U | B005 | String | URI of descriptor
[IETF RFC 2327] |
+| SDC_E | B006 | String | email address
[IETF RFC 2327] |
+| SDP_P | B007 | String | phone number
[IETF RFC 2327] |
+| SDP_C | B008 | String | Connection information
[IETF RFC 2327] |
+| SDP_B | B009 | String | Bandwidth Information
[IETF RFC 2327] |
+| SDP_Z | B00A | String | Time zone adjustment
[IETF RFC 2327] |
+| SDP_K | B00B | String | Encryption Key
[IETF RFC 2327] |
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|--------|-----------------------------------------------------------|
+| SDP_A | B00C | String | Zero or more session attributes
[IETF RFC 2327] |
+| SDP_T | B00D | String | Active Session Time
[IETF RFC 2327] |
+| SDP_R | B00E | String | Zero or more repeat times
[IETF RFC 2327] |
+| SDP_M | B00F | String | Media type, port, transport and format
[IETF RFC 2327] |
+
+## C.12 H.245
+
+| PropertyID | Property tag | Type | Value |
+|------------|--------------|--------------|-----------------------------------------------------------------------------------|
+| OLC | C001 | Octet string | The value of ITU-T H.245
OpenLogicalChannel structure.
[ITU-T H.245] |
+| OLCack | C002 | Octet string | The value of ITU-T H.245
OpenLogicalChannelAck structure.
[ITU-T H.245] |
+| OLCcnf | C003 | Octet string | The value of ITU-T H.245
OpenLogicalChannelConfirm structure.
[ITU-T H.245] |
+| OLCrej | C004 | Octet string | The value of ITU-T H.245
OpenLogicalChannelReject structure.
[ITU-T H.245] |
+| CLC | C005 | Octet string | The value of ITU-T H.245
CloseLogicalChannel structure.
[ITU-T H.245] |
+| CLCack | C006 | Octet string | The value of ITU-T H.245
CloseLogicalChannelAck structure.
[ITU-T H.245] |
+| LCN | C007 | Integer | The value of ITU-T H.245 Local Channel
Number 0-65535.
[ITU-T H.245] |
+
+# Annex D
+
+## Transport over IP
+
+(This annex forms an integral part of this Recommendation.)
+
+## D.1 Transport over IP/UDP using Application Level Framing (ALF)
+
+Protocol messages defined in this Recommendation may be transmitted over UDP. When no port is provided by the peer (see clause 7.2.8), commands should be sent to the default port number: 2944 for text-encoded operation, or 2945 for binary-encoded operation. Responses must be sent to the address and port from which the corresponding commands were sent.
+
+ALF is a set of techniques that allows an application, as opposed to a stack, to affect how messages are sent to the other side. A typical ALF technique is to allow an application to change the order of messages sent when there is a queue after it has queued them. There is no formal specification for ALF. The procedures in clause D.1 contain a minimum suggested set of ALF behaviours.
+
+Implementors using IP/UDP with ALF should be aware of the restrictions of the MTU on the maximum message size.
+
+### D.1.1 Providing at-most-once functionality
+
+Messages carried over UDP may be subject to losses. In the absence of a timely response, commands are repeated. Most commands are not idempotent. The state of the MG would become unpredictable if, for example, Add Commands were executed several times. The transmission procedures shall thus provide an "At-Most-Once" functionality.
+
+Peer protocol entities are expected to keep in memory a list of the responses that they sent to recent transactions and a list of the transactions that are currently outstanding. The TransactionID of each incoming message is compared to the TransactionIDs of the recent responses sent to the same MID. If a match is found, the entity does not execute the transaction, but simply repeats the response. If no match is found, the message will be compared to the list of currently outstanding transactions. If a match is found in that list, indicating a duplicate transaction, the entity does not execute the transaction (see clause D.1.4 for procedures on sending TransactionPending).
+
+The procedure uses a long timer value, noted LONG-TIMER in the following. The timer should be set larger than the maximum duration of a transaction, which should take into account the maximum number of repetitions, the maximum value of the repetition timer and the maximum propagation delay of a packet in the network. A suggested value is 30 seconds.
+
+The copy of the responses may be destroyed either LONG-TIMER seconds after the response is issued, or when the entity receives a confirmation that the response has been received, through the "Response Acknowledgement parameter". For transactions that are acknowledged through this parameter, the entity shall keep a copy of the TransactionID for LONG-TIMER seconds after the response is issued, in order to detect and ignore duplicate copies of the transaction request that could be produced by the network.
+
+### D.1.2 Transaction identifiers and three-way handshake
+
+#### D.1.2.1 Transaction identifiers
+
+TransactionIDs are 32-bit integer numbers. A Media Gateway Controller may decide to use a specific number space for each of the MGs that they manage, or to use the same number space for all MGs that belong to some arbitrary group. MGCs may decide to share the load of managing a large MG between several independent processes. These processes will share the same transaction number space. There are multiple possible implementations of this sharing, such as having a centralized allocation of TransactionIDs, or pre-allocating non-overlapping ranges of identifiers to
+
+different processes. The implementations shall guarantee that unique TransactionIDs are allocated to all transactions that originate from a logical MGC (identical MID). MGs can simply detect duplicate transactions by looking at the TransactionID and MID only.
+
+#### D.1.2.2 Three-way handshake
+
+The TransactionResponseAcknowledgement parameter can be found in any message. It carries a set of "confirmed TransactionID ranges". Entities may choose to delete the copies of the responses to transactions whose ID is included in "confirmed TransactionID ranges" received in the transaction response messages. They should silently discard further commands when the TransactionID falls within these ranges.
+
+The "confirmed TransactionID ranges" values shall not be used if more than LONG-TIMER seconds have elapsed since the MG issued its last response to that MGC, or when an MG resumes operation. In this situation, transactions should be accepted and processed, without any test on the TransactionID.
+
+Messages that carry the "TransactionResponseAcknowledgement" parameter may be transmitted in any order. The entity shall retain the "confirmed TransactionID ranges" received for LONG-TIMER seconds.
+
+In the binary encoding, if only the `firstAck` is present in a response acknowledgement (see clause A.2), only one transaction is acknowledged. If both `firstAck` and `lastAck` are present, then the range of transactions from `firstAck` to `lastAck` is acknowledged. In the text encoding, a horizontal dash is used to indicate a range of transactions being acknowledged (see clause B.2).
+
+### D.1.3 Computing retransmission timers
+
+It is the responsibility of the requesting entity to provide suitable timeouts for all outstanding transactions, and to retry transactions when timeouts have been exceeded. Furthermore, when repeated transactions fail to be acknowledged, it is the responsibility of the requesting entity to seek redundant services and/or clear existing or pending connections.
+
+The specification purposely avoids specifying any value for the retransmission timers. These values are typically network-dependent. The retransmission timers should normally estimate the timer value by measuring the time spent between the sending of a command and the return of a response. Implementations shall ensure that the algorithm used to calculate retransmission timing performs an exponentially increasing backoff of the retransmission timeout for each retransmission or repetition after the first one.
+
+NOTE – One possibility is to use the algorithm implemented in TCP-IP, which uses two variables:
+
+- The average acknowledgement delay (AAD), estimated through an exponentially smoothed average of the observed delays.
+- The average deviation (ADEV), estimated through an exponentially smoothed average of the absolute value of the difference between the observed delay and the current average. The retransmission timer, in TCP, is set to the sum of the average delay plus N times the average deviation. The maximum value of the timer should however be bounded for the protocol defined in this Recommendation, in order to guarantee that no repeated packet would be received by the gateways after LONG-TIMER seconds. A suggested maximum value is 4 seconds.
+
+After any retransmission, the entity should do the following:
+
+- It should double the estimated value of the average delay, AAD.
+- It should compute a random value, uniformly distributed between 0.5 AAD and AAD.
+- It should set the retransmission timer to the sum of that random value and N times the average deviation.
+
+This procedure has two effects. Because it includes an exponentially increasing component, it will automatically slow down the stream of messages in case of congestion. Because it includes a random component, it will break the potential synchronization between notifications triggered by the same external event.
+
+### **D.1.4 Provisional responses**
+
+Executing some transactions may require a long time. Long execution times may interact with the timer-based retransmission procedure. This may result either in an inordinate number of retransmissions, or in timer values that become too long to be efficient. Entities that can predict that a transaction will require a long execution time may send a provisional response, "TransactionPending". They should send this response if they receive a repetition of a transaction that is still being executed.
+
+Entities that receive a TransactionPending shall switch to a different repetition timer for repeating requests. Upon receipt of a final response following receipt of provisional responses, an immediate confirmation shall be sent, and normal repetition timers shall be used thereafter. An entity that sends a provisional response shall include the immAckRequired field in the ensuing final response, indicating that an immediate confirmation is expected. Receipt of a TransactionPending after receipt of a reply shall be ignored.
+
+### **D.1.5 Repeating requests, responses and acknowledgements**
+
+The protocol is organized as a set of transactions, each of which is composed of a request and a response, commonly referred to as an acknowledgement. The protocol messages, being carried over UDP, may be subject to losses. In the absence of a timely response, transactions are repeated. Entities are expected to keep in memory a list of the responses that they sent to recent transactions, i.e., a list of all the responses they sent over the last LONG-TIMER seconds, and a list of the transactions that are currently being executed.
+
+The repetition mechanism is used to guard against three types of possible errors:
+
+- transmission errors, when, for example, a packet is lost due to noise on a line, or congestion in a queue;
+- component failure, when, for example, an interface to an entity becomes unavailable;
+- entity failure, when, for example, an entire entity becomes unavailable.
+
+The entities should be able to derive from the past history an estimate of the packet loss rate due to transmission errors. In a properly configured system, this loss rate should be kept very low, typically less than 1%. If a Media Gateway Controller or a Media Gateway has to repeat a message more than a few times, it is legitimate to assume that something else than a transmission error is occurring. For example, given a loss rate of 1%, the probability that five consecutive transmission attempts fail is 1 in 100 billion, an event that should occur less than once every 10 days for a Media Gateway Controller that processes 1000 transactions per second. (Indeed, the number of repetitions that is considered excessive should be a function of the prevailing packet loss rate.) We should note that the "suspicion threshold", which we will call "Max1", is normally lower than the "disconnection threshold", which should be set to a larger value.
+
+A classic retransmission algorithm would simply count the number of successive repetitions, and conclude that the association is broken after retransmitting the packet an excessive number of times (typically between 7 and 11 times). In order to account for the possibility of an undetected or in-progress "failover", we modify the classic algorithm so that if the Media Gateway receives a valid ServiceChange message announcing a failover, it will start transmitting outstanding commands to that new MGC. Responses to commands are still transmitted to the source address of the command.
+
+In order to automatically adapt to network load, this Recommendation specifies exponentially increasing timers. If the initial timer is set to 200 milliseconds, the loss of a fifth retransmission will be detected after about 6 seconds. This is probably an acceptable waiting delay to detect a failover. The repetitions should continue after that delay not only in order to perhaps overcome a transient connectivity problem, but also in order to allow some more time for the execution of a failover (waiting a total delay of 30 seconds is probably acceptable).
+
+It is, however, important that the maximum delay of retransmissions be bounded. Prior to any retransmission, it should be checked that the time elapsed since the sending of the initial datagram is no greater than T-MAX. If more than T-MAX time has elapsed, the MG concludes that the MGC has failed, and that it begins its recovery process as described in clause 11.5. If the MG retries to connect to the current MGC, it shall use a ServiceChange with ServiceChangeMethod set to Disconnected so that the new MGC will be aware that the MG lost one or more transactions. The value T-MAX is related to the LONG-TIMER value: the LONG-TIMER value is obtained by adding to T-MAX the maximum propagation delay in the network.
+
+## **D.2 Using TCP**
+
+Protocol messages as defined in this Recommendation may be transmitted over TCP. When no port is specified by the other side (see clause 7.2.8) the commands should be sent to the default port. The defined protocol has messages as the unit of transfer, while TCP is a stream-oriented protocol. TPKT, according to [IETF RFC 1006], shall be used to delineate messages within the TCP stream.
+
+In a transaction-oriented protocol, there are still ways for transaction requests or responses to be lost. As such, it is recommended that entities using TCP transport implement application level timers for each request and each response, similar to those specified for application level framing over UDP.
+
+### **D.2.1 Providing the at-most-once functionality**
+
+Messages carried over TCP are not subject to transport losses, but loss of a transaction request or its reply may nonetheless be noted in real implementations. In the absence of a timely response, commands are repeated. Most commands are not idempotent. The state of the MG would become unpredictable if, for example, Add Commands were executed several times.
+
+To guard against such losses, it is recommended that entities follow the procedures in clause D.1.1.
+
+### **D.2.2 Transaction identifiers and three-way handshake**
+
+For the same reasons, it is possible that transaction replies may be lost even with a reliable delivery protocol such as TCP. It is recommended that entities follow the procedures in clause D.1.2.2.
+
+### **D.2.3 Computing retransmission timers**
+
+With reliable delivery, the incidence of loss of a transaction request or reply is expected to be very low. Therefore, only simple timer mechanisms are required. Exponential back-off algorithms should not be necessary, although they could be employed where, as in an MGC, the code to do so is already required since MGCs must implement ALF/UDP as well as TCP.
+
+### **D.2.4 Provisional responses**
+
+As with UDP, executing some transactions may require a long time. Entities that can predict that a transaction will require a long execution time may send a provisional response, "TransactionPending". They should send this response if they receive a repetition of a transaction that is still being executed.
+
+Entities that receive a TransactionPending shall switch to a longer repetition timer for that transaction.
+
+Entities shall retain transactions and replies until they are confirmed. The basic procedure of clause D.1.4 should be followed, but simple timer values should be sufficient. There is no need to send an immediate confirmation upon receipt of a final response.
+
+### **D.2.5 Ordering of commands**
+
+TCP provides ordered delivery of transactions. No special procedures are required. It should be noted that ALF/UDP allows the sending entity to modify its behaviour under congestion, and in particular, could reorder transactions when congestion is encountered. TCP could not achieve the same results.
+
+# Annex E
+
+## Basic packages
+
+(This annex forms an integral part of this Recommendation.)
+
+This annex contains definitions of some packages for use with this Recommendation.
+
+## E.1 Generic
+
+**Package name:** Generic
+**Package ID:** g (0x0001)
+**Description:** Generic package for commonly encountered items
+**Version:** 2
+**Extends:** None
+Version 2 of the Generic Package requires at least version 3 of the protocol.
+
+### E.1.1 Properties
+
+None.
+
+### E.1.2 Events
+
+#### E.1.2.1 Cause
+
+**Event name:** Cause
+**Event ID:** cause (0x0001)
+**Description:** Generic error event
+**EventsDescriptor Parameters:** None
+**ObservedEvents Descriptor Parameters:**
+
+##### General Cause
+
+**Parameter name:** General Cause
+**Parameter ID:** Generalcause (0x0001)
+**Description:** This parameter groups the failures into six groups, which the MGC may act upon.
+**Type:** enumeration
+**Optional:** No
+**Possible values:** "NR" (0x0001): Normal Release
+"UR" (0x0002): Unavailable Resources
+"FT" (0x0003): Failure, Temporary
+"FP" (0x0004): Failure, Permanent
+"IW" (0x0005): Interworking Error
+"UN" (0x0006): Unsupported
+**Default:** None
+
+##### Failure Cause
+
+| | |
+|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name: | Failure Cause |
+| Parameter ID: | Failurecause (0x0002) |
+| Description: | The Failure Cause is the value generated by the Released equipment, i.e., a released network connection. The concerned value is defined in the appropriate bearer control protocol. |
+| Type: | OCTET STRING |
+| Optional: | Yes |
+| Possible values: | OCTET STRING |
+| Default: | None |
+
+#### E.1.2.2 Signal Completion
+
+| | |
+|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Event name: | Signal Completion |
+| Event ID: | sc (0x0002) |
+| Description: | Indicates the termination of a signal for which the NotifyCompletion parameter was set to enable reporting of a completion event. For further procedural description, see clauses 7.1.1, 7.1.11 and 7.2.7. |
+
+**EventsDescriptor Parameters:** None
+
+**ObservedEvents Descriptor Parameters:**
+
+##### Signal Identity
+
+| | |
+|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name: | Signal Identity |
+| Parameter ID: | SigID (0x0001) |
+| Description: | This parameter identifies the signal which has terminated. For a signal that is contained in a SignalList, the SignalListID parameter should also be returned indicating the appropriate list. |
+| Type: | Binary:octet (string), Text:string |
+| Optional: | No |
+| Possible values: | a signal which has terminated. A signal shall be identified using the pkgdName syntax without wildcarding. |
+| Default: | None |
+
+##### Termination Method
+
+| | |
+|------------------------|-----------------------------------------------------|
+| Parameter name: | Termination Method |
+| Parameter ID: | Meth (0x0002) |
+| Description: | Indicates the means by which the signal terminated. |
+| Type: | Enumeration |
+| Optional: | No |
+
+**Possible values:** "TO" (0x0001):Signal timed out or otherwise completed on its own
+"EV" (0x0002): Interrupted by event
+"SD" (0x0003): Halted by new Signals Descriptor
+"NC" (0x0004): Not completed, other cause
+"PI" (0x0005): First to penultimate iteration. For last iteration, use TO.
+
+**Default:** None
+
+##### **Signal List ID**
+
+**Parameter name:** Signal List ID
+
+**Parameter ID:** SLID (0x0003)
+
+**Description:** Indicates to which SignalList a signal belongs. The SignalListID is only returned in cases where the signal resides in a SignalList.
+
+**Type:** Integer
+
+**Optional:** Yes (only supported if signal lists are used)
+
+**Possible values:** 1-65535
+
+**Default:** None
+
+##### **Request ID**
+
+**Parameter name:** Request ID
+
+**Parameter ID:** RID (0x0004)
+
+**Description:** Indicates to which NotifyCompletion request the SignalID is associated.
+
+**Type:** Integer
+
+**Optional:** Yes (only supported if signal lists are used)
+
+**Possible values:** 1-4294967295
+
+**Default:** None
+
+### **E.1.3 Signals**
+
+None.
+
+### **E.1.4 Statistics**
+
+None.
+
+## **E.2 Base Root Package**
+
+**Package name:** Base Root Package
+
+**Package ID:** root (0x0002)
+
+**Description:** This package defines Gateway wide properties.
+
+**Version:** 2
+
+**Extends:** None
+Version 2 of the Base Root Package requires at least version 2 of the protocol.
+
+### E.2.1 Properties
+
+#### E.2.1.1 Maximum Number of Contexts
+
+**Property name:** MaxNrOfContexts
+**Property ID:** maxNumberOfContexts (0x0001)
+**Description:** The value of this property gives the maximum number of contexts that can exist at any time. The NULL Context is not included in this number.
+The maximum number of contexts may be calculated by an MG in different ways, e.g., dependent on the number of connection models to be supported, dependent on applied stream, termination and/or context admission control functions, or specific, MG-internal QoS support mechanisms (e.g., best effort versus over-provisioning models), or other reasons.
+The value of the property must be therefore interpreted as a best-case figure. Requests for additional contexts over and above this number may receive an error response.
+**Type:** Double
+**Possible values:** 1 and up
+**Default:** Provisioned
+**Defined in:** TerminationState
+**Characteristics:** ReadOnly
+
+#### E.2.1.2 Maximum Terminations Per Context
+
+**Property name:** MaxTerminationsPerContext
+**Property ID:** maxTerminationsPerContext (0x0002)
+**Description:** The maximum number of allowed terminations in a context, see clause 6.1. This is not related to the capacity of the NULL Context. This is related to non-Root termination types (physical, ephemeral), including multiplexing terminations.
+**Type:** Integer
+**Possible values:** any positive integer
+**Default:** Provisioned
+**Defined in:** TerminationState
+**Characteristics:** ReadOnly
+
+#### E.2.1.3 Normal MG Execution Time
+
+**Property name:** normalMGExecutionTime
+**Property ID:** normalMGExecutionTime (0x0003)
+
+**Description:** Settable by the MGC to indicate the interval within which the MGC expects a response to any transaction from the MG (exclusive of network delay).
+
+**Type:** Integer
+
+**Possible values:** any positive integer; represents milliseconds
+
+**Default:** Provisioned
+
+**Defined in:** TerminationState
+
+**Characteristics:** Read/Write
+
+#### E.2.1.4 Normal MGC Execution Time
+
+**Property name:** normalMGCExecutionTime
+
+**Property ID:** normalMGCExecutionTime (0x0004)
+
+**Description:** Settable by the MGC to indicate the interval within which the MG should expect a response to any transaction from the MGC (exclusive of network delay).
+
+**Type:** Integer
+
+**Possible values:** any positive integer; represents milliseconds
+
+**Default:** Provisioned
+
+**Defined in:** TerminationState
+
+**Characteristics:** Read/Write
+
+#### E.2.1.5 MG Provisional Response Timer Value
+
+**Property name:** MGProvisionalResponseTimerValue
+
+**Property ID:** MGProvisionalResponseTimerValue (0x0005)
+
+**Description:** Indicates the time within which the MGC should expect a Pending Response from the MG if a transaction cannot be completed. Initially set to normalMGCExecutionTime plus network delay, but may be lowered.
+
+**Type:** Integer
+
+**Possible values:** any positive integer; represents milliseconds
+
+**Default:** Provisioned
+
+**Defined in:** TerminationState
+
+**Characteristics:** Read/Write
+
+#### E.2.1.6 MGC Provisional Response Timer Value
+
+**Property name:** MGCProvisionalResponseTimerValue
+
+**Property ID:** MGCProvisionalResponseTimerValue (0x0006)
+
+**Description:** Indicates the time within which the MG should expect a Pending Response from the MGC if a transaction cannot be completed. Initially set to normalMGCExecutionTime plus network delay, but may be lowered.
+
+**Type:** Integer
+
+**Possible values:** any positive integer; represents milliseconds
+**Default:** Provisioned
+**Defined in:** TerminationState
+**Characteristics:** Read/Write
+
+#### **E.2.1.7 MGC Originated Pending Limit**
+
+**Property name:** MGCOriGINatedPendingLimit
+**Property ID:** MGCOriGINatedPendingLimit (0x0007)
+**Description:** Indicates the number of TransactionPendings that can be received from the MGC. Once this limit is exceeded, the MGC should issue a TransactionReply with Error 506 ("Number of TransactionPendings Exceeded"); otherwise, the MG can assume the transaction to be in error.
+**Type:** Integer
+**Possible values:** any positive integer
+**Default:** Provisioned
+**Defined in:** TerminationState
+**Characteristics:** Read/Write
+
+#### **E.2.1.8 MG Originated Pending Limit**
+
+**Property name:** MGOriginatedPendingLimit
+**Property ID:** MGOriginatedPendingLimit (0x0008)
+**Description:** Indicates the number of TransactionPendings that can be received from the MG. Once this limit is exceeded, the MG should issue a TransactionReply with Error 506 ("Number of TransactionPendings Exceeded"); otherwise, the MGC can assume the transaction to be in error.
+**Type:** Integer
+**Possible values:** any positive integer
+**Default:** Provisioned
+**Defined in:** TerminationState
+**Characteristics:** Read/Write
+
+### **E.2.2 Events**
+
+None.
+
+### **E.2.3 Signals**
+
+None.
+
+### **E.2.4 Statistics**
+
+None.
+
+### **E.2.5 Procedures**
+
+None.
+
+## E.3 Tone Generator Package
+
+| | |
+|--------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Package name: | Tone Generator Package |
+| Package ID: | tonegen (0x0003) |
+| Description: | This package defines signals to generate audio tones. This package does not specify parameter values. It is intended to be extendable. Generally, tones are defined as an individual signal with a parameter, ind, representing "interdigit" time delay, and a tone ID to be used with playtone. A tone ID should be kept consistent with any tone generation for the same tone. MGs are expected to be provisioned with the characteristics of appropriate tones for the country in which the MG is located. |
+| Version: | 2 |
+| Designed to be extended only: | Yes |
+| Extends: | None |
+
+### E.3.1 Properties
+
+None.
+
+### E.3.2 Events
+
+None.
+
+### E.3.3 Signals
+
+#### E.3.3.1 Play Tone
+
+| | |
+|---------------------|----------------------------------------|
+| Signal name: | Play Tone |
+| Signal ID: | pt (0x0001) |
+| Description: | Plays audio tone over an audio channel |
+| Signal Type: | Brief |
+| Duration: | Provisioned |
+
+##### Additional parameters:
+
+##### Tone ID list
+
+| | |
+|-------------------------|-------------------------------------------------|
+| Parameter name: | Tone ID List |
+| Parameter ID: | tl (0x0001) |
+| Description: | List of tones to be played in sequence. |
+| Type: | Sublist of Enumeration |
+| Optional: | No |
+| Possible values: | The sublist shall contain one or more tone IDs. |
+| Default: | None |
+
+##### Inter-signal duration
+
+| | |
+|------------------------|-------------------------------------------------------|
+| Parameter name: | Inter-signal duration |
+| Parameter ID: | ind (0x0002) |
+| Description: | Timeout between two consecutive tones in milliseconds |
+
+**Type:** Integer
+**Optional:** Yes
+**Possible values:** Any integer greater than or equal to 0
+**Default:** Provisioned
+
+##### **Tone Direction**
+
+**Parameter name:** Tone Direction
+**Parameter ID:** btd (0x0003)
+**Description:** Direction the tone should progress from the termination.
+**Type:** Enumeration
+**Optional:** Yes
+**Possible values:** "EXT" (0x0001) External
+ "INT" (0x0002) Internal
+ "BOTH" (0x0003) Both
+**Default:** External
+
+### **E.3.4 Statistics**
+
+None.
+
+### **E.3.5 Procedures**
+
+No tone IDs are specified in this package. Packages that extend this package can add possible values for tone ID as well as adding individual tone signals.
+
+## **E.4 Tone Detection Package**
+
+**Package name:** Tone Detection Package
+**Package ID:** tonedet (0x0004)
+**Description:** This package defines events for audio tone detection. Tones are selected by name (tone ID). MGs are expected to be provisioned with the characteristics of appropriate tones for the country in which the MG is located.
+
+ This package does not specify parameter values. It is intended to be extendable.
+**Version:** 1
+**Designed to be extended only:** Yes
+**Extends:** None
+
+### **E.4.1 Properties**
+
+None.
+
+### **E.4.2 Events**
+
+#### **E.4.2.1 Start Tone Detected**
+
+**Event name:** Start tone detected
+**Event ID:** std (0x0001)
+**Description:** Detects the start of a tone. The characteristics of positive tone detection are implementation dependent.
+
+###### **EventsDescriptor Parameters:**
+
+##### **Tone ID List**
+
+**Parameter name:** Tone ID List
+**Parameter ID:** tl (0x0001)
+**Type:** Sublist of Enumeration
+**Optional:** No
+**Possible values:** The only tone ID defined in this package is "wild card" which is "\*" in text encoding and 0x0000 in binary. Extensions to this package would add possible values for tone ID. If tl is "wildcard", any tone ID is detected.
+**Default:** None
+
+##### **ObservedEventsDescriptor Parameters:**
+
+###### **Tone ID**
+
+**Parameter name:** Tone ID
+**Parameter ID:** tid (0x0003)
+**Description:** The tone ID of the detected tone.
+**Type:** Enumeration
+**Optional:** No
+**Possible values:** "wildcard" as defined above is the only value defined in this package. Extensions to this package would add additional possible values for tone ID.
+**Default:** None
+
+#### **E.4.2.2 End Tone Detected**
+
+**Event name:** End tone detected
+**Event ID:** etd (0x0002)
+**Description:** Detects the end of a tone.
+
+##### **EventsDescriptor Parameters:**
+
+##### **Tone ID List**
+
+**Parameter name:** Tone ID List
+
+**Parameter ID:** tl (0x0001)
+**Description:** A list of tone IDs to be detected.
+**Type:** Sublist of enumeration
+**Optional:** No
+**Possible values:** The only tone id defined in this package is "wild card" which is "\*" in text encoding and 0x0000 in binary. Extensions to this package would add possible values for tone ID. If property tl is set to "wild card", any tone id is detected.
+**Default:** None
+
+##### **ObservedEventsDescriptor Parameters:**
+
+##### **Tone ID**
+
+**Parameter name:** Tone ID
+**Parameter ID:** tid (0x0003)
+**Description:** The tone ID of the detected tone.
+**Type:** Enumeration
+**Optional:** No
+**Possible values:** "wildcard" as defined above is the only value defined in this package. Extensions to this package would add possible values for tone ID.
+**Default:** None
+
+##### **Duration**
+
+**Parameter name:** Duration
+**Parameter ID:** dur (0x0002)
+**Description:** This parameter contains the duration of the tone from first detection until it stopped.
+**Type:** Integer
+**Optional:** Yes
+**Possible values:** Any positive integer in milliseconds
+**Default:** None
+
+#### **E.4.2.3 Long Tone Detected**
+
+**Event name:** Long Tone Detected
+**Event ID:** ltd (0x0003)
+**Description:** Detects that a tone has been playing for at least a certain amount of time
+
+##### **EventsDescriptor Parameters:**
+
+##### **Tone ID List**
+
+**Parameter name:** Tone ID List
+
+**Parameter ID:** tl (0x0001)
+**Description:** A list of tone IDs to be detected.
+**Type:** Sublist of Enumeration
+**Optional:** No
+**Possible values:** "wildcard" as defined above is the only value defined in this package. Extensions to this package would add possible values for tone ID.
+**Default:** None
+
+##### **Duration**
+
+**Parameter name:** Duration
+**Parameter ID:** dur (0x0002)
+**Description:** The duration to test against.
+**Type:** Integer
+**Optional:** Yes
+**Possible values:** any positive integer, expressed in milliseconds
+**Default:** Provisioned
+
+##### **ObservedEventsDescriptor Parameters:**
+
+##### **Tone ID**
+
+**Parameter name:** Tone ID
+**Parameter ID:** tid (0x0003)
+**Description:** The tone ID of the detected tone.
+**Type:** Enumeration
+**Optional:** No
+**Possible values:** No possible values are specified in this package. Extensions to this package would add possible values for tone ID.
+**Default:** None
+
+### **E.4.3 Signals**
+
+None.
+
+### **E.4.4 Statistics**
+
+None.
+
+### **E.4.5 Procedures**
+
+None.
+
+## **E.5 Basic DTMF Generator Package**
+
+**Package name:** Basic DTMF Generator Package
+**Package ID:** dg (0x0005)
+**Description:** This package defines the basic DTMF tones as signals and extends the allowed values of parameter tl of playtone in tonegen.
+**Version:** 2
+**Extends:** tonegen version 2
+
+### **E.5.1 Properties**
+
+None.
+
+### **E.5.2 Events**
+
+None.
+
+### **E.5.3 Signals**
+
+#### **E.5.3.1 DTMF Character 0**
+
+**Signal name:** DTMF Character 0
+**Signal ID:** d0 (0x0010)
+**Description:** Generate DTMF 0 tone. The physical characteristic of DTMF 0 is defined in the gateway.
+**Signal Type:** Brief
+**Duration:** Provisioned
+**Additional parameters:**
+
+##### **Tone Direction**
+
+**Parameter name:** Tone Direction
+**Parameter ID:** btd (0x0001)
+**Description:** Direction the tone should progress from the termination.
+**Type:** Enumeration
+**Optional:** Yes
+**Possible values:** "EXT" (0x0001) External
+"INT" (0x0002) Internal
+"BOTH" (0x0003) Both
+**Default:** External
+
+**Additional values:** d0 (0x0010) is defined as a tone ID for playtone.
+
+The other DTMF characters are specified in exactly the same way. A table with all signal names and SignalIDs is included. Note that each DTMF character is defined as both a signal and a tone ID, thus extending the basic tone generation package. Also note that DTMF SignalIDs are different from the names used in a DigitMap.
+
+| Signal name | SignalID/Tone ID |
+|------------------|------------------|
+| DTMF character 0 | d0 (0x0010) |
+| DTMF character 1 | d1 (0x0011) |
+| DTMF character 2 | d2 (0x0012) |
+| DTMF character 3 | d3 (0x0013) |
+| DTMF character 4 | d4 (0x0014) |
+| DTMF character 5 | d5 (0x0015) |
+| DTMF character 6 | d6 (0x0016) |
+| DTMF character 7 | d7 (0x0017) |
+| DTMF character 8 | d8 (0x0018) |
+| DTMF character 9 | d9 (0x0019) |
+| DTMF character * | ds (0x0020) |
+| DTMF character # | do (0x0021) |
+| DTMF character A | da (0x001a) |
+| DTMF character B | db (0x001b) |
+| DTMF character C | dc (0x001c) |
+| DTMF character D | dd (0x001d) |
+
+### E.5.4 Statistics
+
+None.
+
+### E.5.5 Procedures
+
+None.
+
+## E.6 DTMF Detection Package
+
+**Package name:** DTMF Detection Package
+
+**Package ID:** dd (0x0006)
+
+**Description:** This package defines the basic DTMF tones detection. This package extends the possible values of tone ID in the Start Tone Detected, End Tone Detected and Long Tone Detected Events.
+
+Additional tone ID values are all tone IDs described in package dg (Basic DTMF Generator Package).
+
+The following table maps DTMF events to DigitMap symbols as described in clause 7.1.14.
+
+| DTMF | Event Symbol |
+|------|--------------|
+| d0 | "0" |
+| d1 | "1" |
+| d2 | "2" |
+| d3 | "3" |
+| d4 | "4" |
+| d5 | "5" |
+| d6 | "6" |
+| d7 | "7" |
+| d8 | "8" |
+| d9 | "9" |
+| da | "A" or "a" |
+| db | "B" or "b" |
+| dc | "C" or "c" |
+| dd | "D" or "d" |
+| ds | "E" or "e" |
+| do | "F" or "f" |
+
+**Version:** 2
+
+**Extends:** tonedet version 1
+
+### E.6.1 Properties
+
+None.
+
+### E.6.2 Events
+
+#### E.6.2.1 DTMF Digits
+
+**Event name:** DTMF Digits
+
+**Event ID:** EventIDs are defined with the same names as the SignalIDs defined in the table found in clause E.5.3.
+
+**Description:** Generated when the MG detects a digit.
+
+**EventsDescriptor
+Parameters:** None
+
+**ObservedEvents
+Descriptor
+Parameters:** None
+
+#### E.6.2.2 DigitMap Completion Event
+
+**Event name:** DigitMap Completion Event
+
+**Event ID:** ce (0x0004)
+
+**Description:** Generated when a DigitMap completes as described in clause 7.1.14.
+
+###### **EventsDescriptor**
+
+###### **Parameters:**
+
+###### **Unsuccessful Match Reporting**
+
+**Parameter name:** Unsuccessful Match Reporting
+**Parameter ID:** umr (0x0001)
+**Description:** The MGC may use this parameter to control whether the DigitMap Completion Event is generated in the event of an unsuccessful DigitMap match (i.e., match with method "Partial match" or "Full Match").
+**Type:** Boolean
+**Optional:** Yes
+**Possible values:** *On* Generate DigitMap Completion Event on unsuccessful match.
+*Off* Do not generate a DigitMap Completion Event on an unsuccessful match.
+**Default:** *On*
+
+##### **ObservedEventsDescriptor Parameters:**
+
+###### **DigitString**
+
+**Parameter name:** DigitString
+**Parameter ID:** ds (0x0001)
+**Description:** the portion of the current dial string as described in clause 7.1.14 which matched part or all of an alternative event sequence specified in the DigitMap.
+**Type:** String of DigitMap symbols (possibly empty) returned as a quotedString
+**Optional:** No
+**Possible values:** a sequence of the characters "0" through "9", "A" through "F", and the long duration modifier "Z".
+**Default:** None
+
+##### **Termination Method**
+
+**Parameter name:** Termination Method
+**Parameter ID:** Meth (0x0003)
+**Description:** indicates the reason for generation of the event. See the procedures in clause 7.1.14.
+**Type:** Enumeration
+**Optional:** No
+
+**Possible values:** "UM" (0x0001) Unambiguous match
+"PM" (0x0002) Partial match, completion by timer expiry or unmatched event
+"FM" (0x0003) Full match, completion by timer expiry or unmatched event
+
+**Default:** None
+
+### E.6.3 Signals
+
+None.
+
+### E.6.4 Statistics
+
+None.
+
+### E.6.5 Procedures
+
+DigitMap processing is activated only if an Events Descriptor is activated that contains a DigitMap completion event as defined in clause E.6.2 and that DigitMap completion event contains an EventDM field in the requested actions as defined in clause 7.1.9. Other parameters such as KeepActive or embedded Events or Signals Descriptors may also be present in the Events Descriptor and do not affect the activation of DigitMap processing. By default DigitMaps are processed according to the procedures of 7.1.14 and when the DigitMap has completed (see clause 7.1.14.4) it is notified to the MGC, and any embedded signals and embedded events are triggered. However, if the Unsuccessful Match Reporting is set to "*off*" and the DigitMap completion was triggered as a result of an unsuccessful match, then the DigitMap completion event is not notified to the MGC nor are embedded signals and/or embedded events triggered. The DigitMap however will be de-activated.
+
+## E.7 Call Progress Tones Generator Package
+
+**Package name:** Call Progress Tones Generator Package
+
+**Package ID:** cg 0x0007
+
+**Description:** This package defines the basic call progress tones as signals and extends the allowed values of the tl parameter of playtone in tonegen.
+
+**Version:** 2
+
+**Extends:** tonegen version 2
+
+### E.7.1 Properties
+
+None.
+
+### E.7.2 Events
+
+None.
+
+### E.7.3 Signals
+
+#### E.7.3.1 Dial Tone
+
+**Signal name:** Dial Tone
+
+**Signal ID:** dt (0x0030)
+
+**Description:** Generate dial tone. The physical characteristic of dial tone is available in the gateway.
+
+**Signal Type:** TimeOut
+**Duration:** Provisioned
+**Additional parameters:** None
+**Additional values:** dt (0x0030) is defined as a tone ID for playtone
+
+The other tones of this package are defined in exactly the same way. A table with all signal names and SignalIDs is included. Note that each tone is defined as both a signal and a tone ID, thus extending the basic tone generation package.
+
+| Signal name | SignalID/tone ID |
+|---------------------------|------------------|
+| Dial Tone | dt (0x0030) |
+| Ringing Tone | rt (0x0031) |
+| Busy Tone | bt (0x0032) |
+| Congestion Tone | ct (0x0033) |
+| Special Information Tone | sit (0x0034) |
+| (Recording) Warning Tone | wt (0x0035) |
+| Payphone Recognition Tone | prt (0x0036) |
+| Call Waiting Tone | cw (0x0037) |
+| Caller Waiting Tone | cr (0x0038) |
+
+### E.7.4 Statistics
+
+None.
+
+### E.7.5 Procedures
+
+NOTE – The required set of tone IDs corresponds to those defined in [b-ITU-T E.180]. See [b-ITU-T E.180] for definition of the meanings of these tones.
+
+## E.8 Call progress tones detection package
+
+**Package name:** Call Progress Tones Detection Package
+**Package ID:** cd (0x0008)
+**Description:** This package defines the basic call progress detection tones. This package extends the possible values of tone ID in the Start Tone Detected, End Tone Detected and Long Tone Detected Events.
+**Additional values:** Tone ID values are defined for Start Tone Detected, End Tone Detected and Long Tone Detected with the same values as those in package cg (Call Progress Tones Generation Package).
+The required set of tone IDs corresponds to [b-ITU-T E.180]. See [b-ITU-T E.180] for definition of the meanings of these tones.
+**Version:** 1
+**Extends:** tonedet version 1
+
+### E.8.1 Properties
+
+None.
+
+### E.8.2 Events
+
+Events are defined as in the Call Progress Tones Generator Package (cg) for the tones listed in the table of E.7.3.
+
+### E.8.3 Signals
+
+None.
+
+### E.8.4 Statistics
+
+None.
+
+### E.8.5 Procedures
+
+None.
+
+## E.9 Analog Line Supervision Package
+
+| | |
+|----------------------|-------------------------------------------------------------|
+| Package name: | Analog Line Supervision Package |
+| Package ID: | al (0x0009) |
+| Description: | This package defines events and signals for an analog line. |
+| Version: | 1 |
+| Extends: | None |
+
+### E.9.1 Properties
+
+None.
+
+### E.9.2 Events
+
+#### E.9.2.1 On-hook
+
+| | |
+|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Event name: | On-hook |
+| Event ID: | on (0x0004) |
+| Description: | Detects handset going on-hook. Whenever an Events Descriptor is activated that requests monitoring for an on-hook event and the line is already on-hook, then the MG shall behave according to the setting of the "strict" parameter. |
+
+##### EventsDescriptor Parameters:
+
+##### Strict Transition
+
+| | |
+|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name: | Strict Transition |
+| Parameter ID: | strict (0x0001) |
+| Description: | Indicates how the on-hook event is detected. |
+| Type: | Enumeration |
+| Optional: | Yes |
+| Possible values: | "exact" (0x0000): Only an actual hook state transition to on-hook is to be recognized
"state" (0x0001): The event is to be recognized either if the hook state transition is detected or if the hook state is already on-hook
"failWrong" (0x0002): If the hook state is already on-hook, the command fails and an error is reported |
+| Default: | Exact |
+
+##### ObservedEventsDescriptor Parameters:
+
+##### Initial State
+
+| | |
+|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name: | Initial State |
+| Parameter ID: | init (0x0002) |
+| Description: | The reason for reporting the on-hook transition. Only returned if the Strict Transition parameter is set to "state". |
+| Type: | Boolean |
+| Possible values: | "True" The line was already on-hook when the Events Descriptor containing this event was activated "False" An actual state transition to on-hook was detected. |
+| Default: | None |
+
+#### E.9.2.2 Off-hook
+
+| | |
+|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Event name: | Off-hook |
+| Event ID: | of (0x0005) |
+| Description: | Detects handset going off-hook. Whenever an Events Descriptor is activated that requests monitoring for an off-hook event and the line is already off-hook, then the MG shall behave according to the setting of the "strict" parameter. |
+
+##### EventsDescriptor Parameters:
+
+##### Strict Transition
+
+| | |
+|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name: | Strict Transition |
+| Parameter ID: | strict (0x0001) |
+| Description: | Indicates how the off-hook event is detected. |
+| Type: | Enumeration |
+| Possible values: | "exact" (0x0000) Only an actual hook state transition to off-hook is to be recognized "state" (0x0001) The event is to be recognized either if the hook state transition is detected or if the hook state is already off-hook "failWrong" (0x0002) If the hook state is already off-hook, the command fails and an error is reported |
+| Default: | Exact |
+
+##### ObservedEventsDescriptor Parameters:
+
+##### Initial State
+
+| | |
+|-------------------------|-----------------------------------------------------------------------------------------------------------------------|
+| Parameter name: | Initial State |
+| Parameter ID: | init (0x0002) |
+| Description: | The reason for reporting the off-hook transition. Only returned if the Strict Transition parameter is set to "state". |
+| Type: | Boolean |
+| Optional: | Yes |
+| Possible values: | "True" The line was already off-hook when the Events |
+
+Descriptor containing this event was activated "False" An actual state transition to off-hook was detected.
+
+**Default:** None
+
+#### E.9.2.3 Flashhook
+
+**Event name:** Flashhook
+
+**Event ID:** fl (0x0006)
+
+**Description:** Detects handset flash. A flash occurs when an on-hook is followed by an off-hook between a minimum and maximum duration.
+
+##### EventsDescriptor Parameters:
+
+##### Minimum Duration
+
+**Parameter name:** Minimum Duration
+
+**Parameter ID:** mindur (0x0004)
+
+**Description:** The minimum time between an on-hook and an off-hook to be detected as a flash.
+
+**Type:** Integer
+
+**Optional:** Yes
+
+**Possible values:** Any positive integer in milliseconds
+
+**Default:** Provisioned.
+
+##### Maximum Duration
+
+**Parameter name:** Maximum Duration
+
+**Parameter ID:** maxdur (0x0005)
+
+**Description:** The maximum time between an on-hook and an off-hook to be detected as a flash.
+
+**Type:** Integer
+
+**Optional:** Yes
+
+**Possible values:** Any positive integer in milliseconds
+
+**Default:** Provisioned.
+
+**ObservedEventsDescriptor Parameters:** None
+
+### E.9.3 Signals
+
+#### E.9.3.1 Ring
+
+**Signal name:** Ring
+
+**Signal ID:** ri (0x0002)
+
+**Description:** Applies ringing on the line
+
+**Signal Type:** TimeOut
+
+**Duration:** Provisioned
+
+**Additional parameters:**
+
+**Cadence**
+
+| | |
+|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Parameter name: | Cadence |
+| Parameter ID: | cad (0x0006) |
+| Description: | Represents durations of alternating on and off segments, constituting a complete ringing cycle starting with an on. Restricted function MGs may ignore cadence values they are incapable of generating. |
+| Type: | Sublist of Integer |
+| Optional: | Yes |
+| Possible values: | Any positive integer in milliseconds |
+| Default: | Provisioned |
+| Frequency | |
+| Parameter name: | Frequency |
+| Parameter ID: | freq (0x0007) |
+| Description: | The frequency of the ringing. Restricted function MGs may ignore frequency values they are incapable of generating. |
+| Type: | Integer |
+| Optional: | Yes |
+| Possible values: | Any positive integer in Hz |
+| Default: | Provisioned. |
+
+### E.9.4 Statistics
+
+None.
+
+### E.9.5 Error codes
+
+| | |
+|--------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Error Code #: | 540 |
+| Name: | Unexpected initial hook state |
+| Definition: | This error is generated when the MGC has tried to request a hook state transition event with the Strict Parameter set to "failWrong", and the hook state is already what the transition implies. |
+| Error Text in the Error Descriptor: | – |
+| Comment: | – |
+
+### E.9.6 Procedures
+
+If the MGC sets an Events Descriptor containing a hook state transition event (on-hook or off-hook) with the Strict (0x0001) Parameter set to "failWrong", and the hook state is already what the transition implies, the execution of the command containing that Events Descriptor fails. The MG shall include Error Code 540 ("Unexpected initial hook state") in its response.
+
+## E.10 Basic Continuity Package
+
+| | |
+|----------------------|------------------------------------------------------------------|
+| Package name: | Basic Continuity Package |
+| Package ID: | ct (0x000a) |
+| Description: | This package defines events and signals for continuity test. The |
+
+continuity test includes provision of either a loopback or transceiver functionality.
+
+**Version:** 1
+**Extends:** None
+
+### E.10.1 Properties
+
+None.
+
+### E.10.2 Events
+
+#### E.10.2.1 Continuity Test Completion
+
+**Event name:** Completion
+**Event ID:** cmp (0x0005)
+**Description:** This event detects the completion of a continuity test.
+**EventsDescriptor Parameters:** None
+**ObservedEventsDescriptor Parameters:**
+
+##### Continuity Test Result
+
+**Parameter name:** Result
+**Parameter ID:** res (0x0008)
+**Description:** Indicates the result of the continuity test.
+**Type:** Enumeration
+**Optional:** No
+**Possible values:** "SUCCESS" (0x0001) Success "FAILURE" (0x0000) Failure
+**Default:** None
+
+### E.10.3 Signals
+
+#### E.10.3.1 Continuity Test
+
+**Signal name:** Continuity Test
+**Signal ID:** ct (0x0003)
+**Discussion:** Initiates sending of continuity test tone on the termination to which it is applied.
+**Signal Type:** TimeOut
+**Default:** Provisioned
+**Additional parameters:** None
+
+#### E.10.3.2 Respond to Continuity Test
+
+**Signal name:** Respond
+**Signal ID:** rsp (0x0004)
+**Description:** The signal is used to respond to a continuity test. See E.10.5 for further explanation.
+
+| | |
+|-------------------------------|-------------|
+| Signal Type: | On/Off |
+| Default: | Provisioned |
+| Additional parameters: | None |
+
+### E.10.4 Statistics
+
+None.
+
+### E.10.5 Procedures
+
+When an MGC wants to initiate a continuity test, it sends a command to the MG containing:
+
+- a Signals Descriptor with the ct Signal; and
+- an Events Descriptor containing the cmp Event.
+
+Upon reception of a command containing the ct Signal and cmp Event, the MG initiates the continuity test tone for the specified termination. If the return tone is detected and any other required conditions are satisfied before the signal times out, the cmp Event shall be generated with the value of the result parameter equal to success. In all other cases, the cmp Event shall be generated with the value of the result parameter equal to failure.
+
+When an MGC wants the MG to respond to a continuity test, it sends a command to the MG containing a Signals Descriptor with the rsp Signal. Upon reception of a command with the rsp Signal, the MG either applies a loopback or (for 2-wire circuits) awaits reception of a continuity test tone. In the loopback case, any incoming information shall be reflected back as outgoing information. In the 2-wire case, any time the appropriate test tone is received, the appropriate response tone should be sent. The MGC determines when to remove the rsp Signal.
+
+When a continuity test is performed on a termination, no echo devices or codecs shall be active on that termination. The termination under test does not need to have its ServiceStates Property set to Test.
+
+Performing voice path assurance as part of continuity testing is provisioned by bilateral agreement between network operators.
+
+NOTE – Example tones and test procedure details are given in clauses 7 and 8/[b-ITU-T Q.724], 2.1.8/[b-ITU-T Q.764] and [b-ITU-T Q.1902.4].
+
+## E.11 Network Package
+
+| | |
+|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
+| Package name: | Network Package |
+| Package ID: | nt (0x000b) |
+| Description: | This package defines properties of network terminations independent of network type. This includes, but is not limited to, TDM, IP and ATM. |
+| Version: | 1 |
+| Extends: | None |
+
+### E.11.1 Properties
+
+#### E.11.1.1 Maximum Jitter Buffer
+
+| | |
+|-----------------------|---------------------------------------------------------|
+| Property name: | Maximum Jitter Buffer |
+| Property ID: | jit (0x0007) |
+| Description: | This property puts a maximum size on the jitter buffer. |
+
+**Type:** Integer
+**Possible values:** Any positive integer in milliseconds.
+**Default:** Provisioned
+**Defined in:** LocalControl Descriptor
+**Characteristics:** Read/Write
+
+### E.11.2 Events
+
+#### E.11.2.1 Network Failure
+
+**Event name:** Network Failure
+**Event ID:** netfail (0x0005)
+**Description:** The termination generates this event upon detection of a failure due to external or internal network reasons.
+
+**EventsDescriptor Parameters:** None
+
+**ObservedEventsDescriptor Parameters:**
+
+##### Cause
+
+**Parameter name:** Cause
+**Parameter ID:** cs (0x0001)
+**Description:** This parameter may be included with the failure event to provide diagnostic information on the reason of failure.
+**Type:** String
+**Optional:** Yes
+**Possible values:** any text string
+**Default:** None
+
+#### E.11.2.2 Quality Alert
+
+**Event name:** Quality Alert
+**Event ID:** qualert (0x0006)
+**Description:** This event allows the MG to indicate a loss of quality of the network connection. The MG may do this by measuring packet loss, inter-arrival jitter, propagation delay and then indicating this using a percentage of quality loss.
+
+**EventsDescriptor Parameters:**
+
+##### Threshold
+
+**Parameter name:** Threshold
+**Parameter ID:** th (0x0001)
+**Description:** threshold for percent of quality loss measured, calculated based on a provisioned method that could take into consideration packet loss, jitter, and delay for example. Event is triggered when calculation exceeds the threshold.
+**Type:** Integer
+
+**Optional:** Yes
+**Possible values:** 0 to 99
+**Default:** Provisioned
+
+##### **ObservedEventsDescriptor Parameters:**
+
+##### **Threshold**
+
+**Parameter name:** Threshold
+**Parameter ID:** th (0x0001)
+**Description:** percent of quality loss measured, calculated based on a provisioned method that could take into consideration packet loss, jitter, and delay for example.
+**Type:** Integer
+**Optional:** Yes
+**Possible values:** 0 to 99
+**Default:** None
+
+### **E.11.3 Signals**
+
+None.
+
+### **E.11.4 Statistics**
+
+#### **E.11.4.1 Duration**
+
+**Statistic name:** Duration
+**Statistics ID:** dur (0x0001)
+**Description:** provides duration of time the termination has existed or been out of the NULL context.
+**Type:** Double
+**Possible values:** Any positive integer in milliseconds
+**Level:** Either
+
+#### **E.11.4.2 Octets Sent**
+
+**Statistic name:** Octets Sent
+**Statistic ID:** os (0x0002)
+**Description:** Provides the number of octets sent from the termination or stream since the termination has existed or been out of the NULL Context. The octets represent the egress media flow excluding all transport overhead. At the termination level, it is equal to the sum of the egress flows over all streams.
+ For analogue transmission media, the octet count shall be set equal to zero.
+**Type:** Double
+**Possible values:** any 64-bit integer 0 and up
+**Level:** Either
+
+#### **E.11.4.3 Octets Received**
+
+| | |
+|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Statistic name: | Octets Received |
+| Statistic ID: | or (0x0003) |
+| Type: | Double |
+| Description: | Provides the number of octets received on the termination or stream since the termination has existed or been out of the NULL Context. The octets represent the ingress media flow excluding all transport overhead. At the termination level, it is equal to the sum of the ingress flows over all streams.
For analogue transmission media, the octet count shall be set equal to zero.
|
+| Possible values: | any 64-bit integer 0 and up |
+| Level: | Either |
+
+### **E.11.5 Procedures**
+
+#### **E.11.5.1 Procedures for application of the Network Failure and Quality Alert events**
+
+The application of the two events defined by the package depends on:
+
+- the specific bearer type (e.g., TDM, Analog Line, RTP, IP, AAL 2, AAL 1, etc.);
+- the underlying transmission layer technology (e.g., analog, PDH, SDH, SONET, xDSL, 802.3, 802.11, etc.);
+- whether the event is associated with resources internal or external to the MG.
+
+##### **E.11.5.1.1 Common for both events**
+
+The application of either event requires an understanding between the MGC and the MG. If the MG and MGC lack a consistent view of their meaning, the MGC will not be able to act on them effectively.
+
+Explicit recommendations are beyond the scope of the ITU-T H.248.1 core protocol. The specific usage of these events should be rather specified in ITU-T H.248 Profile specifications.
+
+##### **E.11.5.1.2 Specific to event "Network Failure"**
+
+The Cause Parameter can be used to distinguish between different failure modes. The termination type also helps in the interpretation of the event.
+
+##### **E.11.5.1.3 Specific to event "Quality Alert"**
+
+The detection logic should be based on one or more performance metrics related to quality of service from which a value comparable to the Threshold Parameter may be derived.
+
+The details of the underlying measurement and estimation process (the QoS-related observation variables, the filter mechanisms, the update period lengths, etc.) may be specified in an ITU-T H.248 Profile.
+
+##### **E.11.5.1.4 Relationship to ServiceChange procedures**
+
+A Network Failure or Quality Alert Event may trigger a ServiceChange procedure on the termination(s) affected. The transition to OutOfService may be initiated by the MG or the MGC, depending on circumstances.
+
+##### E.11.5.1.5 Calculating the Octets Sent and Octets Received Statistics
+
+When calculating the *os* and *or* statistics, the transport overhead is to be excluded. This means that the network transport overhead is not included, but overhead for the transport protocol and application layer is included in the count. For example, in an IP network using UDP for the transport protocol, to calculate the *os* statistic, the overhead associated with layers 1-3 (IP and below) is excluded, but overhead for layers 4-7 (UDP and above) is included in the count. Figure E.1 illustrates the concept of an IP stack and various possibilities for the definition of transport overhead. For the *nt* package, option c is the correct definition.
+
+
+
+H.248.1 v3(13)\_FE.1
+
+Figure E.1: Possible transport overhead calculations for IP-based networks. The diagram shows a protocol stack with five layers: L1 (bottom), L2, L3: IP (Network protocol), L4: UDP, TCP, ... (Transport protocol), and Application level framing protocol (RTP, UDPTL, ...). Above the framing protocol is Application data (e.g., audio codec). Five vertical bars (a, b, c, d, e) show different ways to define transport overhead. Bar 'a' includes all layers above L1. Bar 'b' includes layers above L2. Bar 'c' includes layers above L3 (L4 and above). Bar 'd' includes layers above L4. Bar 'e' includes only the application data. A legend indicates that orange dotted areas represent 'Transport overhead' and green cross-hatched areas represent 'Reported traffic volume'.
+
+Figure E.1 – Possible transport overhead calculations for IP-based networks
+
+## E.12 RTP Package
+
+| | |
+|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
+| Package name: | RTP Package |
+| Package ID: | rtp (0x000c) |
+| Description: | This package is used to support packet-based multimedia data transfer by means of the Real-time Transport Protocol (RTP) [IETF RFC 3550]. |
+| Version: | 2 |
+| Extends: | nt version 1 |
+
+### E.12.1 Properties
+
+None.
+
+### E.12.2 Events
+
+#### E.12.2.1 Payload Transition
+
+| | |
+|--------------------|--------------------|
+| Event name: | Payload Transition |
+| Event ID: | pltrans (0x0001) |
+
+**Description:** This event detects and notifies when there is a transition of the RTP payload format from one format to another.
+
+**EventsDescriptor Parameters:** None
+
+**ObservedEventsDescriptor Parameters:**
+
+##### **RTP Payload Type**
+
+**Parameter name:** rtppayload
+**Parameter ID:** rtpptype (0x0001)
+**Description:** The payload format to which the transition was made.
+**Type:** Sublist of Enumeration
+**Optional:** No
+**Possible values:** The encoding method shall be specified by using one or several valid encoding names, as defined in the RTP AV Profile or registered with IANA.
+**Default:** None
+
+### **E.12.3 Signals**
+
+None.
+
+### **E.12.4 Statistics**
+
+#### **E.12.4.1 Packets Sent**
+
+**Statistic name:** Packets Sent
+**Statistic ID:** ps (0x0004)
+**Description:** Provides the number of RTP packets sent from the termination or stream since the termination has existed or been out of the NULL Context and the statistic has been enabled.
+**Type:** Double
+**Possible values:** any 64-bit integer 0 and up
+**Level:** Either
+
+#### **E.12.4.2 Packets Received**
+
+**Statistic name:** Packets Received
+**Statistic ID:** pr (0x0005)
+**Description:** Provides the number of RTP packets received on the termination or stream since the termination has existed or been out of the NULL Context and the statistic has been enabled.
+**Type:** Double
+**Possible values:** any 64-bit integer 0 and up
+**Level:** Either
+
+#### **E.12.4.3 Packet Loss**
+
+**Statistic name:** Packet Loss
+**Statistic ID:** pl (0x0006)
+
+**Description:** Describes the current rate of packet loss on an RTP stream, as defined in [IETF RFC 3550]. Packet loss is expressed as percentage value: number of packets lost in the interval between two reception reports, divided by the number of packets expected during that interval.
+
+**Type:** Double
+
+**Possible values:** a 32-bit whole number and a 32-bit fraction.
+
+The actual data type is a fixed point number, which is mapped on the ITU-T H.248 type "double". The whole number and the fractional part shall be interpreted as 32-bit integer each, thus the "double" type for rtp/pl shall be encoded as the concatenation of two integers. The fractional part must be therefore first converted into an integer, i.e., multiplied by $2^{32}$ .
+
+For example, given the percentage 23.625, to express this in the Packet Loss Statistic we perform the following steps:
+
+1. Convert the number to binary: $23.625_{10}$ equals $10111.101_2$ .
+2. Multiply the binary number by $2^{32}$ . Note that multiplying a binary number by a power of two is the same as shifting it to the left the same number of places as the power of two by which it is being multiplied. $101111010000000000000000000000000000000000000000$ is the binary value of our statistic.
+3. Convert the binary value to a decimal double: the statistic is reported as having value 101468602368.
+
+To return the statistic back to its fractional representation, the steps are reversed. Once the double is converted back to its binary form, the lower 32 bits represent the fraction and the rest are the whole number. From there, conversion back to a floating point number is fairly straightforward.
+
+Binary encoding shall be as described in clause A.2 for type "integer".
+
+**Level:** Either
+
+#### E.12.4.4 Jitter
+
+**Statistic name:** Jitter
+
+**Statistic ID:** jit (0x0007)
+
+**Description:** Requests the current value of the inter-arrival jitter on an RTP stream as defined in [IETF RFC 3550]. Jitter measures the variation in inter-arrival time for RTP data packets.
+
+**Type:** Double
+
+**Possible values:** any 64-bit integer 0 and up
+
+**Level:** Either
+
+#### E.12.4.5 Delay
+
+**Statistic name:** Delay
+
+| | |
+|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Statistic ID: | delay (0x0008) |
+| Description: | Requests the current value (Note 1) of packet round-trip propagation delay (RTPD) expressed in timestamp units. The computation of RTPD may be based upon RTCP sender reports and receiver reports (Note 2).
NOTE 1 – The term "current value" mentioned in the description is the latest (most recently measured) RTPD.
NOTE 2 – The arrival of a new RTCP SR/RR packet leads to the computation of a new latest (most recently measured) RTPD value. This is based on the RTCP protocol elements "delay since last SR (DLSR)" and "last SR timestamp (LSR)" as well as the report block arrival time, according to section 6.4.1 of [IETF RFC 3550].
|
+| Type: | Double |
+| Possible values: | any 64-bit integer 0 and up |
+| Level: | Either |
+
+#### E.12.4.6 Cumulative Packet Loss
+
+| | |
+|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Statistic name: | Cumulative Packet Loss |
+| Statistic ID: | cpl (0x001c) |
+| Description: | Provides the total number of incoming packets that were lost since the statistic was enabled. This number is defined to be the number of packets expected less the number of packets actually received, where the number of packets received includes any which are late or duplicates. Thus, packets that arrive late are not counted as lost, and the loss may be negative if there are duplicates.
See [IETF RFC 3550] for further details.
|
+| Type: | Double |
+| Possible values: | Any value |
+| Level: | Either |
+
+### E.12.5 Procedures
+
+#### E.12.5.1 Working with RTP
+
+When RTCP is associated with an RTP stream, RTCP shall remain unaffected by the ITU-T H.248.1 Mode Property in the LocalControl Descriptor.
+
+When RTCP is associated with an RTP stream and the MG receives an Empty Remote Descriptor for that stream, the MG shall stop the RTCP stream along with the corresponding RTP stream.
+
+Where the Payload Transition (*pltrans*) event is used, the codec currently used by the relevant Stream on the MG is the start codec. In the case where an MG has not selected a codec for use, it can be assumed that the initial codec is the first one listed in the Local Descriptor (e.g., SDP). Therefore, an MG receiving the *pltrans* event from the MGC should consider the first codec listed as the "start codec". If the MG chooses another codec, it should send a Notify.req with the *pltrans* observed event.
+
+#### E.12.5.2 Calculation of the Octets Sent and Octets Received Statistics
+
+Because the *os* and *or* statistics are inherited from the *nt* package, they must retain the same calculation for both packages. Therefore, these statistics are calculated as defined in the *nt* package,
+
+even when addressed in the *rtp* package. This means that the octet counts include all data from layer 4 and above, including UDP, RTP and the application data.
+
+#### E.12.5.3 Time-based statistics and applicability to multi-flow streams
+
+The time-based statistics *Jitter* and *Delay* are expressed in terms of RTP timestamp units, i.e., a relative time basis. This may lead to ambiguities in particular situations, e.g., when the MGC would enable multiple media formats, with different timestamp units, in a single RTP session. Such an RTP media flow on an ITU-T H.248 stream may be created by using a *ReserveValue* setting of 'True'. For example, the MGC could enable narrowband and wideband audio codec types "in parallel" on an RTP endpoint, which may lead to a mutual transmission of RTP packet sequences with different sample rates (and thus different timestamp units). The use of time-based statistics in multiflow streams may lead to undefined behaviour. It should be noted that behaviour may be defined by a profile specification. Therefore, where multi-flow streams are used, other statistics based on RTCP extended report (e.g., [b-IETF RFC 3611]) such as those defined in [ITU-T H.248.30] or other Recommendations subsequently defined should be used.
+
+NOTE – The correspondent metrics defined by RTCP extended reports are unambiguous due to absolute time.
+
+## E.13 TDM Circuit Package
+
+| | |
+|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Package name: | TDM Circuit Package |
+| Package ID: | tdmc (0x000d) |
+| Description: | This package may be used by any termination that supports gain and echo control. It was originally intended for use on TDM circuits but may be more widely used.
New versions or extensions of this package should take non-TDM use into account.
|
+| Version: | 1 |
+| Extends: | Network Package version 1 |
+
+### E.13.1 Properties
+
+#### E.13.1.1 Echo Cancellation
+
+| | |
+|-------------------------|----------------------------------------------------------------------------------|
+| Property name: | Echo Cancellation |
+| Property ID: | ec (0x0008) |
+| Type: | Boolean |
+| Possible values: | "True" (when the echo cancellation is requested) "False" (when it is turned off) |
+| Default: | Provisioned |
+| Defined in: | LocalControl Descriptor |
+| Characteristics: | Read/Write |
+
+#### E.13.1.2 Gain Control
+
+| | |
+|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Property name: | Gain Control |
+| Property ID: | gain (0x000a) |
+| Description: | Gain control, or usage of signal level adaptation and noise level reduction, is used to adapt the level of the outbound signal. However, it is necessary, for example for modem calls, to turn off
|
+
+this function. When the value is set to "automatic", the termination serves as an automatic level control (ALC) with a target level provisioned on the MG and the direction being outward.
+
+| | |
+|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Type: | Integer |
+| Possible values: | The gain control specifies the gain in decibels (positive or negative), with the maximum positive integer, 214748647 (0x7fffffff), reserved to represent "automatic". |
+| Default: | Provisioned |
+| Defined in: | LocalControl Descriptor |
+| Characteristics: | Read/Write |
+
+### E.13.2 Events
+
+None.
+
+### E.13.3 Signals
+
+None.
+
+### E.13.4 Statistics
+
+None.
+
+### E.13.5 Procedures
+
+None.
+
+## E.14 Segmentation Package
+
+| | |
+|----------------------|----------------------------------------------------------------------------------------------------------------------|
+| Package name: | Segmentation Package |
+| Package ID: | seg (0x00A3) |
+| Description: | This package defines properties for use when performing ITU-T H.248-based segmentation on non-segmenting transports. |
+| Version: | 1 |
+| Extends: | root version 2. Version 2 of the Segmentation Package requires at least version 3 of the protocol. |
+
+### E.14.1 Properties
+
+#### E.14.1.1 MG Segmentation Timer Value
+
+| | |
+|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Property name: | MGSegmentationTimerValue |
+| Property ID: | MGSegmentationTimerValue (0x0009) |
+| Description: | Indicates the time within which the MGC should expect the reception of any outstanding message segments from the MG once the SegmentationCompleteToken is received. Initially set to MGProvisionalResponseTimerValue, but may be changed. |
+| Type: | Integer |
+| Possible values: | any positive integer in milliseconds |
+| Default: | Provisioned |
+| Defined in: | TerminationState |
+
+**Characteristics:** Read/Write
+
+#### **E.14.1.2 MGC Segmentation Timer Value**
+
+**Property name:** MGCSegmentationTimerValue
+
+**Property ID:** MGCSegmentationTimerValue (0x000A)
+
+**Description:** Indicates the time within which the MG should expect the reception of any outstanding message segments from the MGC once the SegmentationCompleteToken is received. Initially set to MGCProvisionalResponseTimerValue, but may be changed.
+
+**Type:** Integer
+
+**Possible values:** any positive integer in milliseconds
+
+**Default:** Provisioned
+
+**Defined in:** TerminationState
+
+**Characteristics:** Read/Write
+
+#### **E.14.1.3 MG Maximum PDU Size**
+
+**Property name:** MGMaxPDUSize
+
+**Property ID:** MGMaxPDUSize (0x000B)
+
+**Description:** Indicates the maximum size of the MG's incoming protocol data unit for the control association's transport protocol. The MGC should avoid building messages that exceed this size.
+
+**Type:** Integer
+
+**Possible values:** any positive integer in bytes
+
+**Default:** Provisioned
+
+**Defined in:** TerminationState
+
+**Characteristics:** ReadOnly
+
+#### **E.14.1.4 MGC Maximum PDU Size**
+
+**Property name:** MGCMaxPDUSize
+
+**Property ID:** MGCMaxPDUSize (0x000C)
+
+**Description:** Indicates the maximum size of the MGC's incoming protocol data unit for the control association's transport protocol. The MG should avoid building messages that exceed this size.
+
+**Type:** Integer
+
+**Possible values:** any positive integer in bytes
+
+**Default:** Provisioned
+
+**Defined in:** TerminationState
+
+**Characteristics:** Read/Write
+
+### **E.14.2 Events**
+
+None.
+
+### E.14.3 Signals
+
+None.
+
+### E.14.4 Statistics
+
+None.
+
+### E.14.5 Error Codes
+
+| | |
+|--------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
+| Error Code #: | 459 |
+| Name: | Segments not received |
+| Definition: | This error indicates that the recipient of a segmented TransactionReply timed out waiting for all the segments to be delivered. |
+| Error Text in the Error Descriptor: | The TransactionID followed by the missing segment numbers are included. |
+| Comment: | – |
+
+### E.14.6 Procedures
+
+Because some transports do not automatically segment messages that exceed the maximum transmission unit of the transport, messages may end up being truncated. If the message in question contains multiple TransactionReplies, the sender should send each TransactionReply in a separate message. If there remain messages that exceed the MTU length, the sender may implement the following segmentation procedures for TransactionReplies. TransactionRequests shall not be segmented.
+
+When segmenting a transaction reply, the sender shall ensure that the message contains complete commands and/or actions. Each segment is indicated by additional segment information at the transaction level. Each segment shall use the same TransactionID, and shall not repeat commands or completed actions in subsequent segments. Each segment shall be numbered serially starting at 1 and continuing through the last segment, which is denoted by inclusion of the SegmentationCompleteToken. In all cases, the segmented messages shall be syntactically valid constructs. The receiver replies to each segment in turn, utilizing the segmentation response. Because the segments are complete messages in themselves, the receiving entity does not need to wait for further segments before processing any particular segment.
+
+Upon reception of the final segment, the receiver shall determine if it has received all the message segments. If it has, then the receiver shall respond with a TransactionResponseAcknowledgement.
+
+If the receiver has not received all the segments, it shall start a timer, and wait for any missing segments. The length of the timer shall be provisionable upon the receiver, but should be the same length as the ProvisionalResponseTimerValue (see clause E.2.1) of the other entity. If the missing segments do not arrive before the timer expires, the receiver shall reply with Error Code 459 ("Segments not received").
+
+#### Example 1:
+
+```
+Sender: !/3 [12.34.56.78]:2944 P=1/1{C=1{AV=term1{...}, AV=term2{...}}}
+Receiver: !/3 [12.34.56.79]:2944 SM=1/1
+Sender: !/3 [12.34.56.78]:2944 P=1/2{C=1{AV=term3{...}}, C=2{AV=term4{...}}}
+Receiver: !/3 [12.34.56.79]:2944 SM=1/2
+Sender: !/3 [12.34.56.78]:2944 P=1/3/&{C=3{AV=term5{...}}}
+Receiver: !/3 [12.34.56.79]:2944 SM=1/3/&
+Receiver: !/3 [12.34.56.79]:2944 K={1}
+```
+
+#### Example 2:
+
+```
+
+Sender: !/3 [12.34.56.78]:2944 P=6/1{C=1{AV=term1{...}, AV=term2{...}}}
+Receiver: !/3 [12.34.56.79]:2944 SM=6/1
+Sender: !/3 [12.34.56.78]:2944 P=6/4/&{C=3{AV=term5{...}}}
+Receiver: !/3 [12.34.56.79]:2944 SM=6/4/&
+/* Segmentation Timer Expires */
+Receiver: !/3 [12.34.56.79]:2944 ER=459{"6, 2, 3"}
+
+```
+
+## E.15 Notification Behaviour
+
+**Package name:** Notification Behaviour Package
+**Package ID:** nb (0x009a)
+**Description:** The package has functionality that enables the MG at the request of the MGC to regulate the sending of Notify Commands. This package has an interaction with the NotifyBehaviour flag described in clause 7.1.9. This version of the package describes regulation behaviour based upon a percentage regulation. Other types of regulation behaviour are for further study.
+**Version:** 1
+**Extends:** None
+ Version 1 of the Notification Behaviour Package requires at least version 3 of the protocol.
+
+### E.15.1 Properties
+
+#### E.15.1.1 Notification Regulation
+
+**Property name:** Notification Regulation
+**PropertyId:** notreg (0x0001)
+**Description:** Indicates the percentage of notifications on the MG that should be suppressed. A value of 0% indicates no suppression. A value of 100% indicates all notifies should be suppressed. This property shall be defined only on the Root Termination. When "Regulated Notify" is sent on a particular event, the MG uses the Notification Regulation Property to determine the correct percentage of Notifies to regulate (i.e., suppress).
+**Type:** Integer
+**Possible values:** 0-100
+**Default:** None
+**Defined in:** TerminationState
+**Characteristics:** Read/Write
+
+### E.15.2 Events
+
+None.
+
+### E.15.3 Signals
+
+None.
+
+### E.15.4 Statistics
+
+None.
+
+### **E.15.5 Procedures**
+
+#### **E.15.5.1 NotifyBehaviour**
+
+The NotifyBehaviour mechanism allows the MGC to manage how it should receive Notify.request commands from the MG.
+
+##### **E.15.5.1.1 NeverNotify**
+
+There may be instances where the MGC may not be interested in receiving a Notify.request command. For example: when detection of the occurrence of this event is essential to trigger an embedded signal or event, but the MGC does not need to be informed. Setting NotifyBehaviour Parameter to "NeverNotify" on an event ensures that the detection of the event is not notified to the MGC; however, any embedded signals or events are executed. NeverNotify does not have any relation to the Notification Regulation Property (nb/notreg) and events so marked are not included in the regulation calculations.
+
+##### **E.15.5.1.2 NotifyImmediate**
+
+The MGC may want to be notified of important events such as an 'Emergency Call' event, even though some other events are being regulated. This is achieved by setting the NotifyBehaviour Parameter to "NotifyImmediate" for that particular event. This is the current default behaviour when events are detected. NotifyImmediate does not have any relation to the Notification Regulation Property (nb/notreg) and events so marked are not included in the regulation calculations.
+
+##### **E.15.5.1.3 RegulatedNotify**
+
+###### **E.15.5.1.3.1 Percentage Based Regulated Notify**
+
+When the NotifyBehaviour Parameter is set to "NotifyRegulated" on a particular event, the decision to send to the MGC a notification for any particular event occurrence is governed by the Notification Regulation (nb/notreg) Property on the Root Termination. The value of this property is determined and set by the MGC. For example, the regulation rate could correspond to the MGC congestion level. The MG will then be responsible for determining the correct percentage of Notify.Commands to be suppressed amongst the events that are marked as "NotifyRegulated" across the entire MG.
+
+The MG may implement any algorithm that achieves the set Notification Regulation percentage. The algorithm should be chosen so that the risk of synchronization between different MGs is minimized. A suggested algorithm is given below:
+
+For a given regulation percentage (e.g., 10%) the MG would do the following for events that had the RegulatedNotify flag:
+
+- 1) Suppress a number of notifications (e.g., Notification 1).
+- 2) Accept a number of subsequent notifications until the NotificationRegulation percentage is reached (e.g., accept 9 Notifications).
+- 3) Repeat steps 1 and 2 until the Regulation Percentage is modified.
+- 4) To avoid problems with synchronization the MG should start in a random position in the suggested sequence above.
+
+If an event has the NotifyBehaviour Parameter set to "RegulatedNotify" and the Notification Regulation Property is set to zero, this will have the same effect as if the event was set to "ImmediateNotify", which is the default behaviour for event notification.
+
+The NotifyBehaviour mechanism should be used with caution to avoid incorrect states. For example, if the notification of an "off-hook" event is suppressed by the MG, then the MGC will not be able to provide the correct response (e.g., dial tone, congestion tone). This incorrect behaviour is avoided through the use of the embedded signal or embedded events mechanism to return an
+
+appropriate response without the MGC being involved at that time. The MGC may set both an embedded Signals or Events Descriptor to be triggered when an event marked "NotifyRegulated" is detected and accepted (i.e., notification not suppressed) and a separate regulated embedded Signals or Events Descriptor to be triggered when the event is detected and regulated (i.e., notification suppressed).
+
+NOTE – Even in the above case the MG is still unaware of what constitutes a call. It is simply performing a pre-programmed task rather than call control functionality.
+
+#### E.15.5.2 Example Scenario
+
+Given the scenario where an MGC and an MG are terminating analogue lines, the MGC/MG may exhibit different behaviour based on whether the MGC is in an overload state or not and whether the analogue line (ALN) is originating an emergency call or not. The different behaviours are shown in Table E.1 below:
+
+**Table E.1 – Potential MGC/MG Overload Behaviour**
+
+| MG Behaviour
Task: "Handling of analogue line call signalling (ALS)" = call control signalling traffic for POTS terminals (ALN; analogue line interfaces) | | 1) Call/Context Type | |
+|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------|------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
+| | | Emergency call | Non-emergency call |
+| 2) MGC Load State
NOTE – two-state model assumed. | Non-overload state (e.g.,) low, medium, high load) | I) MG:
Normal ALS processing with highest priority | II) MG:
Normal ALS processing with lower priority |
+| | Overload state | III) MG:
Normal ALS processing
==> Call control
signalling forwarded to
MGC in "usual H.248
mode" | IV) MG:
Programmed local ALS
handling
==> MGC not involved
==> Call protocol
compliant rejected via
"congestion tone" |
+
+##### E.15.5.2.1 Quadrant I and II Behaviour
+
+No special NotifyBehaviour is required on the MG as the MGC is not in overload and can receive all messages (notifications) from the MG. However, once the MGC has determined the type of call, it may set a priority in the MG by using an appropriate Context Attribute (i.e., the priority indicator).
+
+##### E.15.5.2.2 Quadrant III and IV Behaviour
+
+When the MGC has determined it is in an overloaded state, it may send the following command to all or some selected group of the terminations in the NULL Context.
+
+```
+Example message:
+Transaction=1234{
+ Context = - {
+ Modify = aln/* { ; select terminations as desired
+ Events = 1234 {
+ al/of {
+ RegulatedNotify {
+ Embed {
+ Signals {cg/dt} ,
+ ; If the off-hook is regulated apply dial tone.
+ Events = 1235 {
+ xdd/xce {
+```
+
+```
+
+ DigitMap = PriorityDialPlan1,
+ bc = 20,
+ mp = enhanced,
+ ImmediateNotify
+ },
+; If emergency generate notify to MGC
+ xdd/xce {
+ DigitMap = NonPriorityDialPlan1,
+ bc = 20,
+ mp = enhanced,
+ NeverNotify,
+ Embed{
+ Signals {cg/ct}
+ }
+ },
+; If non-priority send congestion tone and never notify
+ al/on {
+ NeverNotify,
+ ResetEventsDescriptor
+ }
+; If on-hook is detected then reset the EventsDescriptor
+; and never notify
+ }
+ }
+ }
+ }
+}
+
+```
+
+NOTE – The context identity may be specific or NULL and the terminationID may be wildcarded or specific depending on how and when this behaviour is set on the MG. Use of Wildcard reply will limit the number of responses if the overload behaviour is loaded as the MGC goes into overload.
+
+### E.15.5.2.3 If the Notification Regulation Property is set to non-zero (overloaded state)
+
+The behaviour of the MG in the case that an off-hook is detected and it is regulated would be to:
+
+- suppress the notification of an off-hook to the MGC;
+- apply dial tone;
+- receive digits dialled by the subscriber;
+- if it has been determined that the user has dialled an emergency number, always generate the notification of the match with the "priority dial plan";
+- if it has been determined that the user has dialled a non-priority number, always suppress the notification of the match with the "non-priority dial plan" and apply congestion tone;
+- enable the detection of on-hook (with NeverNotify) which on the receipt of an on-hook would cause the Events Descriptor on the termination to be reset back to the state before embedding was activated (or the MG-provisioned Events Descriptor).
+
+### E.15.5.2.4 If the Notification Regulation Property is set equal to zero (non-overloaded state)
+
+The behaviour of the MG in the above case would be to:
+
+- send a notification of off-hook to the MGC.
+
+If the overload behaviour Events Descriptor is set using explicit Modify Commands from the MGC (as opposed to using MG provisioning), then whilst the MGC remains in the overloaded condition, the overload behaviour Events Descriptor will be reloaded for each termination as part of the clearing sequence of any call/call attempt notified to the MGC.
+
+178 Rec. ITU-T H.248.1 (03/2013)
+
+When the MGC overload condition has ceased, the MGC may reset terminations in the NULL Context back to default non-overload behaviour. Alternatively, the MGC should set the Notification Regulation property equal to zero.
+
+# Annex F
+
+# ServiceChange Procedures
+
+(This annex forms an integral part of this Recommendation.)
+
+## F.1 Introduction
+
+This annex describes the use of ServiceChange procedures when certain events occur on an MG or MGC. It serves to clarify the ServiceChange procedures as described in clauses 7.2.8 and 11. Where there are discrepancies between this annex and this Recommendation, the procedures of the main body of this Recommendation, take precedence over those described in this annex.
+
+The events leading to the sending of a ServiceChange Command described in this annex are:
+
+- 1) MG Registration – The MG registers with an MGC and a control association is established.
+- 2) MG Re-Registration – The MG registers with an MGC after it has been requested to do so by an MGC.
+- 3) MG Service Cancellation – The MG informs the MGC that terminations or the MG as a whole is to be taken Out-of-Service.
+- 4) MG Service Restoration – The MG has recovered after failure and notifies the MGC.
+- 5) MG Redundant Takeover – A secondary MG takes over in the instance of failure or maintenance of a primary MG.
+- 6) MG Lost Communication – The MG informs the MGC that it had previously lost communication with the MGC but this communication has now been restored.
+- 7) MG Capability Change – The MG informs the MGC that the capabilities of terminations or the MG as a whole has changed.
+- 8) MGC Initiated MG Re-Registration – The MGC informs the MG that the MG should re-register with the same MGC or another MGC.
+- 9) MGC Initiated Service Restoration – The MGC has recovered after failure and orders the MG to place the relevant terminations in an initial state.
+- 10) MGC Initiated Service Cancellation – The MGC informs the MG that terminations or the MG as a whole is being taken OutOfService.
+- 11) MGC Redundant Failover – The primary MGC is failing and directs the MG to register with a specific secondary MGC.
+
+Figure F.1 illustrates these ServiceChange triggering events, the entity in which the event appears and which event pairs are correlated. Figure F.2 shows a state model to which the MG and terminations on the MG will conform.
+
+
+
+This diagram illustrates the trigger events for ServiceChange between a Media Gateway Controller (MGC) and a Media Gateway (MG). The MGC is shown at the top with 'Primary' and 'Secondary' components, and the MG is at the bottom with similar components. A vertical line labeled 'Control association' connects them. Numbered circles (1-11) represent specific events, with arrows indicating where the event occurs and dashed lines showing related mechanisms.
+
+MGC initiated:
+
+- 8 – MG re-registration
+- 10 – MG service cancellation
+- 9 – MG service restoration
+
+MG initiated:
+
+- 1 – MG registration
+- 2 – MG re-registration
+- 3 – MG service cancellation
+- 4 – MG service restoration
+- 5 – MG redundant takeover
+- 6 – MG lost communication
+- 7 – MG capability change
+- 11 – MGC redundant failover
+
+**Legend:**
+
+- Indicates where the ServiceChange triggering event occurs
+- - - Indicates related ServiceChange mechanisms
+
+H.248.1 v3(13)\_FF.1
+
+Diagram of trigger events for ServiceChange between an MGC and an MG.
+
+**Figure F.1 – Trigger events for ServiceChange**
+
+
+
+This state model diagram shows the transitions between three states: 'Out-of-service', 'In-service', and 'Test'. Transitions are labeled with specific ServiceChange types or commands.
+
+- Out-of-service to In-service:**
+ - Restart, Disconnected, Failover, Handoff
+ - Forced
+- In-service to Out-of-service:**
+ - Forced, Graceful
+- Out-of-service to Test:**
+ - Test (Modify command)
+ - Forced
+- Test to Out-of-service:**
+ - Forced, Subtract
+- In-service to Test:**
+ - Test (Modify command)
+ - Graceful
+- Test to In-service:**
+ - Restart
+ - Graceful
+- Internal Transitions (Self-loops):**
+ - Out-of-service:** Forced, Graceful
+ - In-service:** Restart, Disconnected, Failover, Handoff; Restart, Disconnected
+ - Test:** Graceful
+- Graceful delay:** A dashed oval representing a mechanism that can be applied during 'Graceful' transitions between 'Out-of-service' and 'In-service' states.
+
+H.248.1 v3(13)\_FF.2
+
+Simple ServiceChange state model diagram.
+
+**Figure F.2 – Simple ServiceChange state model**
+
+## F.2 Control Association Definition
+
+A control association is a communication relationship whereby an MGC is controlling an MG. A control association is instantiated via registration. The control association is terminated by the MG going OutOfService, being successfully handed off to an alternate MGC, or successfully failing over to an alternate MGC. An MG shall have at most one control association at any time except where a physical MG is split into one or more Virtual MGs. In the Virtual MG case, each Virtual MG shall have at most one control association. Only MGs may instantiate control associations. Control associations as defined here apply only within the context of media gateway control signalling. This definition should not be confused with that of control associations in the context of transport (TCP, UDP, etc.).
+
+The use of ServiceChange Commands on the Root Termination only affects the Virtual MG to which the Root Termination belongs. Other Virtual MGs on the same physical MG are unaffected.
+
+## F.3 Events leading to ServiceChange Procedures
+
+### F.3.1 MG Registration
+
+The MG may register in one of three ways:
+
+- Announce its initial presence, or "registration" by using the ServiceChangeMethod "Restart" with ServiceChangeReasons 901 ("Cold Boot") or 902 ("Warm Boot"),
+- Indicate that it is changing its association via the ServiceChangeMethod "Failover" and ServiceChangeReason 909 ("MGC Impending Failure") or 908 ("MG Impending Failure"),
+- Indicate that it was commanded to change its association via the ServiceChangeMethod "Handoff" and ServiceChangeReason 903 ("MGC Directed Change") (Clause F.3.11).
+
+Registration starts when the initial ServiceChange Command is sent from the MG to the MGC and completes when the command is replied by the MGC without an alternate address or an error and the ServiceChangeProfile is agreed between the MGC and MG. The control association is established upon completion of registration. Registration always occurs on the Root Termination. Any existing control association between the MGC and MG is terminated upon initiation of a new registration. All commands from the previous control association shall be ignored.
+
+ServiceChangeProfile is used by registration. See clause F.5.5 for details.
+
+ServiceChangeVersion is used by registration. See clause F.5.6 for details.
+
+### F.3.2 MG Re-Registration
+
+MG Re-registration occurs in two cases:
+
+- 1) When the MGC requests the MG to re-register (clause F.3.8). The MG shall then send a ServiceChange with ServiceChangeMethod "Handoff", ServiceChangeReason 903 ("MGC Directed Change") and the designated "ServiceChangeMgcID".
+- 2) When the MGC initiates service restoration (clause F.3.9). The MG shall reregister by sending a ServiceChange with ServiceChangeMethod "Restart".
+
+The re-registration is complete when the command is replied by an MGC without an alternate address or an error and the ServiceChangeProfile is agreed between the MGC and MG. If no response is received from the primary MGC then the MG shall follow the procedures of clause F.3.1. ServiceChangeReasons 903 ("MGC Directed Change") or 909 ("MGC Impending Failure") are recommended.
+
+The control association is established upon completion of registration. Registration always occurs on the Root Termination. Any existing control association between the MGC and MG is terminated upon initiation of the re-registration. All commands from the previous control association shall be ignored.
+
+ServiceChangeProfile is used by re-registration. See clause F.5.5 for details.
+
+ServiceChangeVersion is used by re-registration. See clause F.5.6 for details.
+
+### **F.3.3 MG Service Cancellation**
+
+To place the MG "OutOfService", the MG sends a ServiceChange Command with a ServiceChangeMethod of "Forced" or "Graceful" on the Root Termination. See clause F.4.1.1 for details.
+
+To place a termination or group of terminations "OutOfService", the MG sends a ServiceChange with a ServiceChangeMethod of "Forced" or "Graceful" on the termination(s) in question. See clauses F.4.1.2 and F.4.1.3 for details.
+
+ServiceChangeDelay indicates the length of time before the service cancellation will occur. See clause F.5.3 for details.
+
+To cancel a previously issued (and acknowledged) Graceful for the entire MG, the MG sends a ServiceChange Command on the Root Termination with a ServiceChangeMethod of "Restart" and ServiceChangeReason 918, "Cancel Graceful". The MG shall remain InService, and all terminations previously set OutOfService are returned to service unless otherwise signalled by the MG. In the event that a Cancel Graceful is received after the Delay timer has expired, the MG shall be deemed to have re-registered, just as if it had sent a Cold Boot.
+
+To cancel a previously issued (and acknowledged) Graceful on a termination or group of terminations, the MG sends a ServiceChange with a ServiceChangeMethod of "Restart" and a ServiceChangeReason of "Cancel Graceful" on the termination(s) in question. The termination shall remain InService. In the event that the termination has already transitioned OutOfService, it shall be returned to service just as it would with any ServiceChange Restart.
+
+### **F.3.4 MG Service Restoration**
+
+The MG Service Restoration event occurs when an MG returns to service after a failure or maintenance action.
+
+When sent by the MG, the MG sends a ServiceChange Command to the MGC announcing that it has restarted or wishes to renegotiate the protocol version or ITU-T H.248 profile. ServiceChangeMethod "Restart" and ServiceChangeReason 900 ("Service Restored") are used in this case. The ServiceChangeReason will indicate what actions may need to be taken by the MGC.
+
+### **F.3.5 MG Redundant Takeover**
+
+There are two cases for MG redundant takeover:
+
+#### 1) Takeover initiated by Primary MG:
+
+When an MG is going OutOfService and wishes to relinquish processing to a designated secondary MG, it sends a ServiceChange Command to the MGC with ServiceChangeMethod "Failover" and a ServiceChangeReason of 908 ("MG Impending Failure"). The MGC will cease messaging to the primary MG and terminate the control association. The secondary MG shall then send a ServiceChange Command with ServiceChangeMethod "Restart" and a ServiceChangeReason of 900 ("Service Restored"). The MGC shall then establish a new control association with the secondary MG.
+
+#### 2) Takeover initiated by Secondary MG:
+
+When an optional secondary unit of an MG detects a maintenance or failure outage of the primary MG unit and the primary is unable to notify the MGC of the failure, the secondary MG shall send a ServiceChange Command to the MGC with ServiceChangeMethod "Failover" and a ServiceChangeReason of either 919 ("Warm Failover") or 920 ("Cold Failover"), as appropriate. The procedures of clause F.3.4 apply.
+
+The MGC shall ignore all attempts at redundant takeover by unknown MGs. The MGC must have knowledge, through provisioning or other means, that the secondary MG announcing takeover is associated with the failed primary MG and therefore has authorization to takeover for the primary MG.
+
+If the secondary MG is known and has the authority to takeover for the primary MG, the MGC shall attempt to communicate with the primary MG to determine if it still functions. This may be done via an empty AuditValue Command or other suitable method (see clause 11.5). If the primary MG answers, the MGC shall reject the failover attempt. If the primary MG fails to answer, the MGC shall assume that it has failed, and accept the warm or cold failover. When the MGC accepts the warm or cold failover, the control association with the primary MG is removed and a new control association with the secondary MG is established.
+
+### **F.3.6 MG Lost Communication**
+
+When the MG has detected a loss and subsequent re-establishment of communication with the MGC (Note 1), the MG sends a ServiceChange Command (Note 2) with a ServiceChangeMethod of "Disconnected" to the MGC in the current control association. If the MGC fails to respond, the MG then sends a ServiceChange Command with a ServiceChangeMethod of "Failover" and ServiceChangeReason 909 ("MGC Impending Failure") to each MGC in its list in turn until it has successfully established a new control association, or it has exhausted its list of MGCs. If the MGC does respond, the control association continues as if it were not interrupted.
+
+NOTE 1 – The two main causes for lost communications between the MGC and MG are 1) failures or short-term interruptions of the ITU-T H.248 transport connection, or 2) the primary MGC going "OutOfService". The MG will not necessarily be able to discriminate between the two, therefore the ServiceChange procedures are the same in both cases.
+
+NOTE 2 – The MG may send one or more ServiceChange Commands. The transmission of subsequent ServiceChange Commands may be timer-controlled. Multiple re-establishment attempts may help in situations with short-term failures, either of the transport connection or of the MGC, thereby avoiding the invocation of failover procedures when they are not warranted.
+
+If the MGC in the original control association replies to the ServiceChange Command, the control association continues without interruption, and all commands are processed as if there had been no loss of communication. Otherwise, the original control association is terminated when the MG sends a ServiceChange to a new MGC, and all commands from the previous control association are ignored. A new control association is established once the new MGC replies to the ServiceChange, completing the registration.
+
+If the MG exhausts its list of MGCs without successfully establishing a control association, the MG waits a random amount of time and then attempts registration with the MGCs in its list again, starting with the MGC from the original control association. The MG will send a ServiceChange with a ServiceChangeMethod of "Disconnected" to the MGC from the original control association each time the MG attempts to contact it. The MG sends a ServiceChange with a ServiceChangeMethod of "Failover" to all other MGCs.
+
+MGCs that receive ServiceChange Commands with a ServiceChangeMethod of "Disconnected" should audit the MG to determine if a state mismatch has occurred due to lost messaging.
+
+In these scenarios, ServiceChangeReason 900 ("Service Restored") is recommended, though particular scenarios may require different ServiceChangeReason codes.
+
+### **F.3.7 MG Capability Change**
+
+To announce a change in capabilities of the MG, the MG sends a ServiceChange with an appropriate ServiceChangeMethod and a ServiceChangeReason of 916 ("Packages Change") or 917 ("Capabilities Change"). The MGC should audit the MG to determine the new capabilities of the MG. For an inservice MG that sends a ServiceChange Command with ServiceChangeMethod
+
+"Restart", the control association continues uninterrupted through a capability change, and the MG is not considered to have undergone a system restart.
+
+### **F.3.8 MGC Initiated MG Re-Registration**
+
+The MGC may request the MG to re-register by issuing a ServiceChange Command on Root with ServiceChangeMethod "Handoff", ServiceChangeReason 903 ("MGC Directed Change") and its own ServiceChangeMgcID (that is, that of the current MGC).
+
+See clause F.3.2 for action taken by the MG.
+
+### **F.3.9 MGC Initiated Service Restoration**
+
+To request that the MG restart itself, the MGC sends a ServiceChange Command to the MG with ServiceChangeMethod "Restart" and an appropriate ServiceChangeReason such as 900 ("Service Restored") or 901 ("Cold Boot"). The MG must establish a new control association in accordance with clause F.3.2 using the indicated ServiceChangeReason.
+
+To restore service to a termination or group of terminations, the MGC sends a ServiceChange with ServiceChangeMethod "Restart" on the termination(s) in question. See clauses F.4.1.2 and F.4.1.3 for actions to be taken by the MGC.
+
+ServiceChangeDelay indicates the length of time before the service restoration will occur. See clause F.5.3 for details.
+
+### **F.3.10 MGC Initiated Service Cancellation**
+
+#### **F.3.10.1 Root Termination**
+
+To place the MG "OutOfService", the MGC sends a ServiceChange Command with a ServiceChangeMethod of "Forced" or "Graceful" on the Root Termination. Appropriate ServiceChangeReasons may include 905 ("Termination taken out of service"), among others. See clause F.4.1.1 for actions to be taken by the MGC.
+
+ServiceChangeDelay indicates the time period at the end of which the service cancellation will occur. See clause F.5.3 for details.
+
+To cancel a previously issued (and acknowledged) Graceful for the entire MG, the MGC sends a ServiceChange Command on the Root Termination with a ServiceChangeMethod of "Restart" and ServiceChangeReason 918 ("Cancel Graceful"). The MG shall remain InService, and all terminations previously set OutOfService are returned to service unless otherwise signalled by the MG. In the event that a Cancel Graceful is received after the Delay timer has expired, the MG shall report an Error Code 502 ("Not Ready") to the MGC. The MG will be required to re-register to return to service.
+
+#### **F.3.10.2 Physical Terminations**
+
+To place a termination or group of terminations "OutOfService", the MGC sends a ServiceChange Command with a ServiceChangeMethod of "Forced" or "Graceful" on the termination(s) in question. Appropriate ServiceChangeReasons may include 904 ("Termination malfunctioning"), 905 ("Termination taken out of service"), 906 ("Loss of lower layer connectivity"), or 907 ("Transmission failure"), among others. See clauses F.4.1.2 and F.4.1.3 for actions to be taken by the MGC.
+
+ServiceChangeDelay indicates the time period at the end of which the service cancellation will occur. See clause F.5.3 for details.
+
+To cancel a previously issued (and acknowledged) Graceful on a termination or group of terminations, the MG sends a ServiceChange with a ServiceChangeMethod of "Restart" and ServiceChangeReason 918 ("Cancel Graceful") on the termination(s) in question. The termination
+
+shall remain InService. In the event that the termination has already transitioned OutOfService, it shall be returned to service just as it would with any ServiceChange Restart.
+
+#### **F.3.10.3 Ephemeral Terminations**
+
+The MGC shall not use ServiceChange to cancel service to ephemeral terminations. Subtracting the termination from context is sufficient to eliminate the termination.
+
+### **F.3.11 MGC Redundant Failover**
+
+When the MGC in a control association encounters a maintenance or failure condition such that it must go OutOfService, it may direct the MG to a specific secondary MGC by sending a ServiceChange Command with a ServiceChangeMethod of "Handoff", a ServiceChangeReason of 903 ("MGC Directed Change") and the address of the new MGC in the ServiceChangeMgcID parameter. The control association is terminated upon the receipt of the command reply from the MG. The MG then sends a ServiceChange Command to the specified MGC with a ServiceChangeMethod of "Handoff" and a ServiceChangeReason of 903 ("MGC Directed Change"). A new control association is established upon receipt of the command reply from the MGC.
+
+In the event that the specified MGC rejects the handoff attempt or the MGC is unable to send a ServiceChange Command with ServiceChangeMethod Handoff due to failure, the MG shall revert to the procedures for lost communication outlined in clause F.3.6, starting with its provisioned primary.
+
+## **F.4 ServiceChange Element Description**
+
+### **F.4.1 ServiceChangeMethod**
+
+This clause describes the behaviour of the ServiceChangeMethod on the different termination types. This clause is organized into:
+
+- The Root Termination;
+- Physical terminations;
+- Ephemeral terminations.
+
+#### **F.4.1.1 ServiceChange Method Behaviour on the Root Termination**
+
+The ServiceChange Command on Root has different effects depending upon the ServiceChangeMethod. The results of each ServiceChangeMethod are described below:
+
+- 1) Restart – Sent by the MG to announce that it has restarted, wishes to renegotiate the protocol version, profile, or is announcing a capability change. The ServiceChangeReason indicates what actions may need to be taken by the MGC. When sent by the MGC, the MG shall restart itself using the indicated ServiceChangeReason.
+- 2) Forced – When sent by the MG, the MG indicates that it is going OutOfService immediately. The control association is terminated by the MG upon receipt of the command reply from the MGC. When sent by the MGC, the MG shall take itself OutOfService, and terminate the control association after sending the command reply. Note that an MGC cannot bring an MG back into service, even though it may request it to go OutOfService. The MG initiates registration to the MGC to establish a new control association and indicate service restoration, just as it would for any other registration. ServiceChangeDelay has no effect on ServiceChangeMethod "Forced".
+- 3) Graceful – When sent by the MG, it indicates that the MG is going OutOfService at the end of the ServiceChangeDelay period. The control association is terminated at the end of the ServiceChangeDelay period. When sent by the MGC, the MG shall take itself OutOfService and terminate the control association at the end of the ServiceChangeDelay
+
+period. Using a ServiceChangeDelay equal to zero or an absent ServiceChangeDelay indicates that the MG shall go OutOfService and terminate the control association when the last context is removed through subtraction of its terminations, and that the MGC shall not add new connections. The MG should set the Root Termination ServiceStates Property at the expiry of ServiceChangeDelay or the removal of all terminations from active contexts (whichever is first), to "OutOfService". To cancel a previously sent (and acknowledged) ServiceChange with ServiceChangeMethod of "Graceful", the entity initiating the ServiceChangeMethod Graceful sends a ServiceChange Command with ServiceChangeMethod Restart and the ServiceChangeReason 918 ("Cancel Graceful").
+
+- 4) Failover – When sent by the MG to an MGC that is not in the current control association, the MG indicates that its current MGC has failed, and it is attempting to register with the recipient of the command. When sent by the MG to the MGC in the current control association, the primary MG indicates that a secondary MG has taken over for the failed primary. In either instance, the previous control association is terminated upon the sending of the ServiceChange Command, and the new control association is established between the MG and new MGC, or MGC and new MG upon receipt of the command reply. MGCs shall not send ServiceChange Commands with the ServiceChangeMethod "Failover".
+- 5) Handoff – When sent by the MGC, the MGC indicates that the MG is being transferred to a new MGC. This terminates the current control association, upon receipt of the command reply. When sent from the MG to the MGC, this indicates that the MG is attempting to establish a new control association in accordance with a handoff command received from the MGC in its previous control association. When sent from the MG to the MGC, a handoff is a registration, and a new control association is established upon receipt of the command reply. The MG shall not use Handoff without being commanded to do so by an MGC.
+- 6) Disconnected – When sent by the MG, it indicates that communication in the current control association had been lost, but is now re-established. The current control association is renewed. MGCs shall not send ServiceChange Commands with the ServiceChangeMethod "Disconnected".
+
+#### F.4.1.2 ServiceChange Method Behaviour on Physical Terminations
+
+While the MG is in an active control association, issuing the ServiceChange Command on a physical termination has different effects depending on the ServiceChangeMethod. The results of each method are described below:
+
+- 1) Restart – When sent by the MG, the MG announces that the termination(s) have restarted, or is announcing a capability change. The ServiceChangeReason indicates what actions may need to be taken by the MGC. When sent by the MGC, the MG shall restart the termination(s) using the indicated ServiceChangeReason.
+- 2) Forced – When sent by the MG, it indicates that the termination is going OutOfService immediately. When sent by the MGC, the MG shall take the termination OutOfService immediately. In both cases, the ServiceStates parameter shall be set to "OutOfService" and the MGC is responsible for cleaning up any contexts or resources associated with the termination. ServiceChangeDelay has no effect on the ServiceChangeMethod "Forced".
+- 3) Graceful – When sent by the MG, it indicates that the termination(s) is going OutOfService after the ServiceChangeDelay. When sent by the MGC, the MG shall take the termination(s) OutOfService at the end of the ServiceChangeDelay period. The ServiceStates Property shall be set to "OutOfService" upon expiry of the ServiceChangeDelay or when the termination(s) is removed from an active context (whichever is first) and the MGC is responsible for cleaning up any contexts or resources associated with the termination(s). Using a ServiceChangeDelay equal to zero or an absent ServiceChangeDelay indicates that the termination shall go OutOfService when it is
+
+removed from context through subtraction. Terminations already in the NULL Context shall go out of service immediately. The MGC shall not use the indicated termination(s) for connection until the Graceful is cancelled or the termination is brought back into service by a subsequent ServiceChange Command. To cancel a previously sent (and acknowledged) ServiceChange with ServiceChangeMethod of "Graceful", the entity initiating the Graceful sends a ServiceChange Command with ServiceChangeMethod "Restart" and the ServiceChangeReason 918 ("Cancel Graceful").
+
+- 4) Failover – The ServiceChangeMethod "Failover" shall not be used with non-Root terminations.
+- 5) Handoff – The ServiceChangeMethod "Handoff" shall not be used with non-Root terminations.
+- 6) Disconnected – The ServiceChangeMethod "Disconnected" shall not be used with non-Root terminations.
+
+#### **F.4.1.3 ServiceChange Method Behaviour on Ephemeral Terminations**
+
+While the MG is in an active control association, issuing the ServiceChange Command on an ephemeral termination has different effects depending on the ServiceChangeMethod. The results of each method are described below:
+
+- 1) Restart – When sent by the MG, the MG announces that the termination(s) has restarted, or is announcing a capability change. The ServiceChangeReason indicates what actions may need to be taken by the MGC. The MGC shall not send ServiceChangeMethod "Restart" for ephemeral terminations.
+- 2) Forced – When sent by the MG, it indicates that the termination(s) is going OutOfService immediately. The MGC is responsible for subtracting the termination. The MGC shall not send ServiceChangeMethod "Forced" for ephemeral terminations. ServiceChangeDelay has no effect on ServiceChangeMethod "Forced".
+- 3) Graceful – When sent by the MG, it indicates that the termination(s) is going OutOfService at the end of the ServiceChangeDelay period. The MGC is responsible for subtracting the termination(s) at the expiry of the ServiceChangeDelay. The MGC shall not send ServiceChangeMethod "Graceful" for ephemeral terminations. Using a ServiceChangeDelay equal to zero indicates that the termination is going OutOfService immediately. The MG should set the termination's ServiceStates Property at the expiry of ServiceChangeDelay to "Out of Service". The MGC is responsible for subtracting the termination in either case. To cancel a previously sent (and acknowledged) ServiceChange with ServiceChangeMethod of "Graceful", the entity initiating the Graceful sends a ServiceChange Command with ServiceChangeMethod Restart and the ServiceChangeReason of 918 "Cancel Graceful".
+- 4) Failover – The ServiceChangeMethod "Failover" shall not be used with non-Root terminations.
+- 5) Handoff – The ServiceChangeMethod "Handoff" shall not be used with non-Root terminations.
+- 6) Disconnected – The ServiceChangeMethod "Disconnected" shall not be used with non-Root terminations.
+
+## **F.5 Use of ServiceChange parameters**
+
+### **F.5.1 ServiceChangeMethod**
+
+See the usage outlined in clause F.4.
+
+### F.5.2 ServiceChangeReason
+
+ServiceChangeReasons allow the receiving party to alter its behaviour to fit a particular situation. For example, if an MG sent a ServiceChangeReason 901 ("Cold Boot") to the MGC when it Restarted, the MGC could assume that the MG had lost all its state and therefore it would not perform maintenance and audit tasks to assess and clean up the MG to a useable state.
+
+Table F.1 shows with which ServiceChangeMethods particular ServiceChangeReasons may be sent.
+
+**Table F.1 – ServiceChangeMethod and ServiceChangeReason mapping**
+
+| SC Reason | SC Method | | | | | | Description |
+|-----------|-----------|----------------------|----------------------|----------------------|----------------------|-----------|----------------------------------|
+| | Restart | Forced | Graceful | Disconnected | Failover | Handoff | |
+| 900 | X | | | Root only
MG only | | | Service Restored |
+| 901 | Root only | | | | | | Cold Boot |
+| 902 | Root only | | | | | | Warm Boot |
+| 903 | | | | | | Root only | MGC Directed Change |
+| 904 | | X | X | | | | Term Malfunction |
+| 905 | | X | X | | | | Term Taken OOS |
+| 906 | | X | X | | | | Loss of lower layer connectivity |
+| 907 | | X | X | | | | Transmission failure |
+| 908 | | Root only
MG only | Root only
MG only | | Root only
MG only | | MG Impending Failure |
+| 909 | | | | | Root only
MG only | | MGC Impending Failure |
+| 910 | MG only | X | X | | | | Media Capability Failure |
+| 911 | MG only | X | X | | | | Modem Capability Failure |
+| 912 | MG only | X | X | | | | Mux Capability Failure |
+| 913 | MG only | X | X | | | | Signal Capability Failure |
+| 914 | MG only | X | X | | | | Event Capability Failure |
+| 915 | | X | X | | | | State Loss |
+| 916 | X | | | Root only
MG only | Root only
MG only | | Packages Change |
+
+**Table F.1 – ServiceChangeMethod and ServiceChangeReason mapping**
+
+| SC Reason | SC Method | | | | | | Description |
+|-----------|-----------|--------|----------|----------------------|----------------------|---------|-------------------|
+| | Restart | Forced | Graceful | Disconnected | Failover | Handoff | |
+| 917 | X | | | Root only
MG only | Root only
MG only | | Capability Change |
+| 918 | X | | | | | | Cancel Graceful |
+| 919 | | | | | Root only
MG only | | Warm Failover |
+| 920 | | | | | Root only
MG only | | Cold Failover |
+
+### F.5.3 ServiceChangeDelay
+
+The ServiceChangeDelay is used to provide a delay before the ServiceChange Command takes effect and the ServiceStates Property of the MG or termination(s) is changed. The ServiceChange Command is replied as if execution happened upon receipt of the message, but the MG or termination(s) does not actually change state until the ServiceChangeDelay expires. A ServiceChangeDelay equal to zero is equivalent to no ServiceChangeDelay, with the exception of its combined use with the ServiceChangeMethod "Graceful". See clause F.4 for the effects of ServiceChangeDelay on the various ServiceChangeMethods.
+
+### F.5.4 ServiceChangeAddress
+
+The use of the ServiceChangeAddress parameter is described in clause 7.2.8. If the parameter is present, it may only be used with ServiceChange Commands on the Root Termination, and any new transactions shall be sent to the new address and/or port number specified. Replies shall be sent back to the address from which the corresponding request came.
+
+### F.5.5 ServiceChangeProfile
+
+The ServiceChangeProfile parameter allows the MGC and MG to negotiate the ITU-T H.248 profile to be used in the control association. The MGC may still audit the MG to determine other supported MG capabilities. ServiceChangeProfile shall only be sent on registration or re-registration commands.
+
+### F.5.6 ServiceChangeVersion
+
+ServiceChangeVersion is used to negotiate the ITU-T H.248 protocol version to be used between the MGC and MG. ServiceChangeVersion is mandatory on initial registration, and should be sent on any other registration commands where protocol version negotiation is to take place. ServiceChangeVersion shall not be sent on non-registration commands. See clause F.3.1 for registration procedures.
+
+### F.5.7 ServiceChangeMgcID
+
+The use of the ServiceChangeMgcID parameter is described in clause 7.2.8, specifically clause 7.2.8.1.3. The MGC may send this parameter in a ServiceChange Command directed toward the Root Termination. Upon receipt during a registration attempt, the MG shall attempt registration with the MGC at the specified address (see Note). When received in a ServiceChange Handoff Command from the MG's primary MGC, the MG shall utilize the procedures outlined in clause 11.5.
+
+NOTE – In case of a name format, a name-to-address resolution is implied, see clause 7.2.8.1.3.
+
+The MGC should not use the ServiceChangeMgcID parameter in a ServiceChange Reply when responding to a ServiceChange Forced or Graceful Command with reason 908.
+
+The MGC may use the ServiceChangeMgcID parameter in a ServiceChange Reply when responding to a ServiceChange Disconnected with reason 900 (see also clause 8.4 of [b-ITU-T H-Sup.7]).
+
+### **F.5.8 TimeStamp**
+
+The use of the optional TimeStamp parameter is described in clause 7.2.8. The TimeStamp parameter has no effect on the execution of ServiceChange Commands, but may be of use to the receiver of the ServiceChange Command for other purposes, such as billing or timing coordination.
+
+## **F.6 ServiceChange versus TerminationState**
+
+The ServiceStates Property in the TerminationState Descriptor holds the current value of the state of the termination. ServiceStates may have three values: "InService", "OutOfService", and "Test".
+
+The MGC shall only use Modify Commands to set the ServiceStates Property to or from Test. All other Modifies of the ServiceStates Property are a violation of protocol, and shall receive Error Code 401 ("Protocol Error"). To change the state from "InService" to "OutOfService" or vice versa, the ServiceChange Command must be used.
+
+For terminations in the Test state, the MG shall only send ServiceChanges with a ServiceChangeMethod of "Forced" or "Graceful" to the MGC. Subsequent ServiceChange Commands may then set the termination's ServiceState Property to "InService".
+
+Receivers should make every reasonable attempt to accept ServiceChange Commands, but in some instances rejection of the command is warranted. For example, if an MG sent a ServiceChange Command to bring a termination into service, but the MGC does not have the resources allocated to service that termination due to lack of provisioning or other reason, then the MGC may reject the command. If the receiving entity rejects the ServiceChange Command, the state of the termination remains unchanged. The sender may choose to wait some length of time and try again, or wait for the receiver to attempt to alter the termination state. Requests to take a termination OutOfService should be honoured.
+
+Table F.2 shows which commands may be used to effect a state change on a termination.
+
+**Table F.2 – State transition commands and their effects**
+
+| Current State | New State | Command | MGC Allowed? | MG Allowed? |
+|----------------------|------------------|----------------|-----------------------------|--------------------|
+| InService | Test | ServiceChange | Not Possible | Not Possible |
+| | | Modify | Yes | Not Possible |
+| InService | OutOfService | ServiceChange | Yes, physical and Root only | Yes |
+| | | Modify | No | Not Possible |
+| OutOfService | InService | ServiceChange | Yes, but not on Root | Yes |
+| | | Modify | No | Not Possible |
+| OutOfService | Test | ServiceChange | Not Possible | Not Possible |
+| | | Modify | Yes | Not Possible |
+| Test | InService | ServiceChange | No | No |
+| | | Modify | Yes | Not Possible |
+| Test | OutOfService | ServiceChange | No | Yes |
+| | | Modify | Yes | Not Possible |
+
+# Appendix I
+
+## Example call flows
+
+(This appendix does not form an integral part of this Recommendation.)
+
+All ITU-T H.248.1 implementors must read the normative part of this Recommendation carefully before implementing from it. No one should use the examples in this appendix as stand-alone explanations of how to create protocol messages.
+
+The examples in this appendix use SDP for encoding of the Local and Remote Descriptors. SDP is defined in [IETF RFC 2327]. If there is any discrepancy between the SDP in the examples and [IETF RFC 2327], the RFC should be consulted for verification. Audio profiles used are those defined in [IETF RFC 3551], and others registered with IANA. For example, ITU-T G.711 A-law is called PCMA in SDP, and is assigned profile 8. ITU-T G.723.1 is called G723 and is profile 4; ITU-T H.263 is called H263 and is profile 34. See also .
+
+## I.1 Residential gateway to residential gateway call
+
+This example scenario illustrates the use of the elements of the protocol to set up a Residential Gateway to Residential Gateway call over an IP-based network. For simplicity, this example assumes that both Residential Gateways involved in the call are controlled by the same Media Gateway Controller.
+
+### I.1.1 Programming residential GW analog line terminations for idle behaviour
+
+The following illustrates the API invocations from the Media Gateway Controller and Media Gateways to get the terminations in this scenario programmed for idle behaviour. Both the originating and terminating Media Gateways have idle analog line terminations programmed to look for call initiation events (i.e., offhook) by using the Modify Command with the appropriate parameters. The NULL Context is used to indicate that the terminations are not yet involved in a context. The Root Termination is used to indicate the entire MG instead of a termination within the MG.
+
+In this example, MG1 has the IP address 124.124.124.222, MG2 is 125.125.125.111, and the MGC is 123.123.123.4. The Megaco port is 55555 for all three.
+
+- 1) An MG registers with an MGC using the ServiceChange Command:
+
+MG1 to MGC:
+
+```
+MEGACO/1 [124.124.124.222]
+Transaction = 9998 {
+ Context = - {
+ ServiceChange = ROOT {Services {
+ Method=Restart, Version=3,
+ ServiceChangeAddress=55555, Profile=ResGW/1}
+ }
+ }
+}
+```
+
+- 2) The MGC sends a reply:
+
+MGC to MG1:
+
+```
+MEGACO/1 [123.123.123.4]:55555
+Reply = 9998 {
+ Context = - {ServiceChange = ROOT {
+ Services {ServiceChangeAddress=55555} } }
+```
+
+}
+
+- 3) The MGC programs a termination in the NULL Context. The TerminationID is A4444, the streamID is 1, the requestID in the Events Descriptor is 2222. The MID is the identifier of the sender of this message; in this case, it is the IP address and port [123.123.123.4]:55555. The Mode Property for this stream is set to Inactive. "al" is the analog line supervision package. The Local and Remote Descriptors are assumed to be provisioned.
+
+```
+MGC to MG1:
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 9999 {
+ Context = - {
+ Modify = A4444 {
+ Media { Stream = 1 {
+ LocalControl {
+ Mode = Inactive,
+ tdm/gain=2, ; in dB,
+ tdm/ec=on
+ },
+ }
+ },
+ Events = 2222 {al/of {strict=state}}
+ }
+}
+```
+
+The dialplan script could have been loaded into the MG previously. Its function would be to wait for the off-hook, turn on dialtone and start collecting DTMF digits. However, in this example, we use the DigitMap, which is put into place after the off-hook is detected (step 5) below).
+
+Note that the embedded Events Descriptor could have been used to combine steps 3) and 4) with steps 8) and 9), eliminating steps 6) and 7).
+
+- 4) The MG1 accepts the Modify with this reply:
+
+```
+MG1 to MGC:
+MEGACO/3 [124.124.124.222]:55555
+Reply = 9999 {
+ Context = - {Modify = A4444}
+}
+```
+
+- 5) A similar exchange happens between MG2 and the MGC, resulting in an idle termination called A5555.
+
+### I.1.2 Collecting originator digits and initiating termination
+
+The following builds upon the previously shown conditions. It illustrates the transactions from the Media Gateway Controller and originating Media Gateway (MG1) to get the originating termination (A4444) through the stages of digit collection required to initiate a connection to the terminating Media Gateway (MG2).
+
+- 6) MG1 detects an off-hook event from User 1 and reports it to the Media Gateway Controller via the Notify Command.
+
+```
+MG1 to MGC:
+MEGACO/3 [124.124.124.222]:55555
+Transaction = 10000 {
+ Context = - {
+ Notify = A4444 {ObservedEvents =2222 {
+ 19990729T22000000:al/of{init=OFF}}}
+ }
+}
+```
+
+7) And the Notify is acknowledged.
+
+```
+MGC to MG1:
+MEGACO/3 [123.123.123.4]:55555
+Reply = 10000 {
+ Context = - {Notify = A4444}
+}
+```
+
+8) The MGC modifies the termination to play dial tone, to look for digits according to Dialplan0 and to look for the on-hook event now.
+
+```
+MGC to MG1:
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 10001 {
+ Context = - {
+ Modify = A4444 {
+ Events = 2223 {
+ al/on{strict=state}, dd/ce {DigitMap=Dialplan0}
+ },
+ Signals {cg/dt},
+ DigitMap= Dialplan0{
+(0| 00|[1-7]xxx|8xxxxxxx|Fxxxxxxx|Exx|91xxxxxxxxxxx|9011x.)}
+ }
+ }
+ }
+}
+```
+
+9) And the Modify is acknowledged.
+
+```
+MG1 to MGC:
+MEGACO/3 [124.124.124.222]:55555
+Reply = 10001 {
+ Context = - {Modify = A4444}
+}
+```
+
+10) Next, digits are accumulated by MG1 as they are dialled by User 1. Dialtone is stopped upon detection of the first digit. When an appropriate match is made of collected digits against the currently programmed dialplan for A4444, another Notify is sent to the Media Gateway Controller.
+
+```
+MG1 to MGC:
+MEGACO/3 [124.124.124.222]:55555
+Transaction = 10002 {
+ Context = - {
+ Notify = A4444 {ObservedEvents =2223 {
+ 19990729T22010001:dd/ce{ds="916135551212",Meth=UM}}}
+ }
+ }
+}
+```
+
+11) And the Notify is acknowledged.
+
+```
+MGC to MG1:
+MEGACO/3 [123.123.123.4]:55555
+Reply = 10002 {
+ Context = - {Notify = A4444}
+}
+```
+
+12) The controller then analyses the digits and determines that a connection needs to be made from MG1 to MG2. Both the physical termination A4444, and an ephemeral termination are added to a new context in MG1. Mode is RecvOnly since Remote Descriptor values are not yet specified. Preferred codecs are in the MGC's preferred order of choice.
+
+```
+MGC to MG1:
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 10003 {
+```
+
+```
+
+Context = $ {
+ Add = A4444 { LocalControl {
+ Mode = SendRecv } },
+ Add = $ {
+ Media {
+ Stream = 1 {
+ LocalControl {
+ Mode = RecvOnly,
+ nt/jit=40 ; in ms
+ },
+ Local {
+v=0
+c=IN IP4 $
+m=audio $ RTP/AVP 4
+a=ptime:30
+v=0
+c=IN IP4 $
+m=audio $ RTP/AVP 0
+ }
+ }
+ }
+ }
+}
+
+```
+
+NOTE – The MGC states its preferred parameter values as a series of SDP blocks in Local. The MG fills in the Local Descriptor in the Reply.
+
+13) MG1 acknowledges the new termination and fills in the Local IP address and UDP port. It also makes a choice for the codec based on the MGC preferences in Local. MG1 sets the RTP port to 2222.
+
+```
+
+MEGACO/3 [124.124.124.222]:55555
+Reply = 10003 {
+ Context = 2000 {
+ Add = A4444,
+ Add=A4445{
+ Media {
+ Stream = 1 {
+ Local {
+v=0
+o=- 2890844526 2890842807 IN IP4 124.124.124.222
+s=-
+c=IN IP4 124.124.124.222
+t= 0 0
+m=audio 2222 RTP/AVP 4
+a=ptime:30
+ } ; RTP profile for G.723.1 is 4
+ }
+ }
+ }
+ }
+}
+
+```
+
+14) The MGC will now associate A5555 with a new context on MG2, and establish an RTP Stream (i.e., A5556 will be assigned), SendRecv connection through to the originating user, User 1. The MGC also sets ring on A5555.
+
+```
+
+MGC to MG2:
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 50003 {
+ Context = $ {
+ Add = A5555 { Media {
+
+```
+
+196 **Rec. ITU-T H.248.1 (03/2013)**
+
+```
+
+ Stream = 1 {
+ LocalControl {Mode = SendRecv} },
+ Events=1234{al/of{strict=state}},
+ Signals {al/ri}
+ },
+ Add = $ {Media {
+ Stream = 1 {
+ LocalControl {
+ Mode = SendRecv,
+ nt/jit=40 ; in ms
+ },
+ Local {
+v=0
+c=IN IP4 $
+m=audio $ RTP/AVP 4
+a=ptime:30
+ },
+ Remote {
+v=0
+c=IN IP4 124.124.124.222
+m=audio 2222 RTP/AVP 4
+a=ptime:30
+ } ; RTP profile for G.723.1 is 4
+ }
+ }
+ }
+}
+}
+}
+
+```
+
+15) This is acknowledged. The stream port number is different from the control port number. In this case it is 1111 (in SDP).
+
+```
+
+MG2 to MGC:
+MEGACO/3 [125.125.125.111]:55555
+Reply = 50003 {
+ Context = 5000 {
+ Add = A5555,
+ Add = A5556{
+ Media {
+ Stream = 1 {
+ Local {
+v=0
+o=- 7736844526 7736842807 IN IP4 125.125.125.111
+s=-
+c=IN IP4 125.125.125.111
+t= 0 0
+m=audio 1111 RTP/AVP 4
+ }
+ } ; RTP profile for G.723.1 is 4
+ }
+ }
+ }
+}
+}
+}
+}
+
+```
+
+16) The above IPAddr and UDPport need to be given to MG1 now.
+
+```
+
+MGC to MG1:
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 10005 {
+ Context = 2000 {
+ Modify = A4444 {
+ Signals {cg/rt}
+ },
+ Modify = A4445 {
+
+```
+
+```
+
+Media {
+ Stream = 1 {
+ Remote {
+v=0
+o=- 7736844526 7736842807 IN IP4 125.125.125.111
+s=-
+c=IN IP4 125.125.125.111
+t= 0 0
+m=audio 1111 RTP/AVP 4
+ }
+ } ; RTP profile for G.723.1 is 4
+ }
+}
+
+```
+
+MG1 to MGC:
+
+```
+
+MEGACO/3 [124.124.124.222]:55555
+Reply = 10005 {
+ Context = 2000 {Modify = A4444, Modify = A4445}
+}
+
+```
+
+- 17) The two gateways are now connected and User 1 hears the ringback. The MG2 now waits until User2 picks up the receiver and then the two-way call is established.
+
+From MG2 to MGC:
+
+```
+
+MEGACO/3 [125.125.125.111]:55555
+Transaction = 50005 {
+ Context = 5000 {
+ Notify = A5555 {ObservedEvents =1234 {
+ 19990729T22020002:al/of{init=off}}}
+ }
+}
+
+```
+
+From MGC to MG2:
+
+```
+
+MEGACO/3 [123.123.123.4]:55555
+Reply = 50005 {
+ Context = - {Notify = A5555}
+}
+
+```
+
+From MGC to MG2:
+
+```
+
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 50006 {
+ Context = 5000 {
+ Modify = A5555 {
+ Events = 1235 {al/on{strict=state}},
+ Signals ; to turn off ringing
+ }
+ }
+}
+
+```
+
+From MG2 to MGC:
+
+```
+
+MEGACO/3 [125.125.125.111]:55555
+Reply = 50006 {
+ Context = 5000 {Modify = A4445}
+}
+
+```
+
+- 18) Change mode on MG1 to SendRecv, and stop the ringback.
+
+MGC to MG1:
+
+```
+
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 10006 {
+ Context = 2000 {
+ Modify = A4445 {
+ Media {
+ Stream = 1 {
+ LocalControl {
+ Mode=SendRecv
+ }
+ }
+ }
+ }
+ },
+ Modify = A4444 {
+ Signals
+ }
+}
+}
+
+```
+
+from MG1 to MGC:
+
+```
+
+MEGACO/3 [124.124.124.222]:55555
+Reply = 10006 {
+ Context = 2000 {Modify = A4445, Modify = A4444}}
+
+```
+
+19) The MGC decides to Audit the RTP termination on MG2.
+
+```
+
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 50007 {
+ Context = 5000 {AuditValue = A5556{
+ Audit{Media, DigitMap, Events, Signals, Packages, Statistics }}
+ }
+}
+
+```
+
+20) The MG2 replies.
+
+```
+
+MEGACO/3 [125.125.125.111]:55555
+Reply = 50007 {
+ Context = 5000 {
+ AuditValue = A5556 {
+ Media {
+ TerminationState { ServiceStates = InService,
+ Buffer = OFF },
+ Stream = 1 {
+ LocalControl { Mode = SendRecv,
+ nt/jit=40 },
+ Local {
+v=0
+o=- 7736844526 7736842807 IN IP4 125.125.125.111
+s=-
+c=IN IP4 125.125.125.111
+t= 0 0
+m=audio 1111 RTP/AVP 4
+a=ptime:30
+ },
+ Remote {
+v=0
+o=- 2890844526 2890842807 IN IP4 124.124.124.222
+s=-
+c=IN IP4 124.124.124.222
+t= 0 0
+m=audio 2222 RTP/AVP 4
+a=ptime:30
+ } } },
+ DigitMap,
+ Events,
+ Signals,
+ }
+ }
+ }
+}
+
+```
+
+```
+
+ Packages {nt-1, rtp-1},
+ Statistics { rtp/ps=1200, ; packets sent
+ nt/os=62300, ; octets sent
+ rtp/pr=700, ; packets received
+ nt/or=45100, ; octets received
+ rtp/pl=0.2, ; % packet loss
+ rtp/jit=20,
+ rtp/delay=40 } ; avg latency
+ }
+ }
+}
+
+```
+
+- 21) When the MGC receives an on-hook signal from one of the MGs, it brings down the call. In this example, the user at MG2 hangs up first.
+
+From MG2 to MGC:
+
+```
+
+MEGACO/3 [125.125.125.111]:55555
+Transaction = 50008 {
+ Context = 5000 {
+ Notify = A5555 {ObservedEvents =1235 {
+ 19990729T24020002:al/on{init=off}}
+ }
+ }
+}
+
+```
+
+From MGC to MG2:
+
+```
+
+MEGACO/3 [123.123.123.4]:55555
+Reply = 50008 {
+ Context = - {Notify = A5555}
+}
+
+```
+
+- 22) The MGC now sends both MGs a Subtract to take down the call. Only the Subtract Commands to MG2 are shown here. Each termination has its own set of statistics that it gathers. An MGC may not need to request both to be returned. A5555 is a physical termination, and A5556 is an RTP termination.
+
+From MGC to MG2:
+
+```
+
+MEGACO/3 [123.123.123.4]:55555
+Transaction = 50009 {
+ Context = 5000 {
+ Subtract = A5555 {Audit{Statistics}},
+ Subtract = A5556 {Audit{Statistics}}
+ }
+}
+
+```
+
+From MG2 to MGC:
+
+```
+
+MEGACO/3 [125.125.125.111]:55555
+Reply = 50009 {
+ Context = 5000 {
+ Subtract = A5555 {
+ Statistics {
+ nt/os=45123, ; Octets Sent
+ nt/or=45123, ; Octets Received
+ nt/dur=40000 ; in milliseconds
+ }
+ },
+ Subtract = A5556 {
+ Statistics {
+
+```
+
+```
+
+ rtp/ps=1245, ; packets sent
+ nt/os=62345, ; octets sent
+ rtp/pr=780, ; packets received
+ nt/or=45123, ; octets received
+ rtp/pl=10, ; % packets lost
+ rtp/jit=27,
+ rtp/delay=48, ; average latency
+ nt/dur=38000 ; in millisecond
+ }
+}
+}
+}
+
+```
+
+- 23) The MGC now sets up both MG1 and MG2 to be ready to detect the next off-hook event. (See step 1). Note that this could be the default state of a termination in the NULL context, and if this were the case, no message need be sent from the MGC to the MG. Once a termination returns to the NULL context, it goes back to the default termination values for that termination.
+
+# Appendix II
+
+## ITU-T H.248 Package template
+
+(This appendix does not form an integral part of this Recommendation.)
+
+New and updated ITU-T H.248 packages should be defined using the following template. It is in an ITU Recommendation format. Editors from non-ITU organizations should, at a minimum, use the structures in clause 6 of the template. The ITU-T H.248 packages keywords are indicated in bold. Sections to be filled in are indicated by "< >". For detailed information on how to create a new package, see clause 12.
+
+NOTE – Package specific error codes require IANA registration. Error Code assignment shall follow the same rules as described in clause 4.1 of [ITU-T H.248.8], "*Assigning Error Codes*".
+
+## **Recommendation ITU-T H.248.**
+
+## **Gateway Control Protocol: Packages**
+
+### **1 Scope**
+
+
+
+## **2 References**
+
+The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation
+
+[ITU-T H.248.1] Recommendation ITU-T H.248.1 (), *Gateway Control Protocol: Version< x>*.
+
+
+
+### **3 Definitions**
+
+### **3.1 Terms defined elsewhere**
+
+This Recommendation uses the following terms defined elsewhere:
+
+ /
+
+### **3.2 Terms defined in this Recommendation**
+
+This Recommendation defines the following terms:
+
+ /
+
+## **4 Abbreviations and acronyms**
+
+This Recommendation uses the following abbreviations and acronyms:
+
+
+
+## 5 Conventions
+
+
+
+## 6
+
+NOTE – The ID value of Packages, Properties, Events, Parameters, Signals, etc. are designated below by "textID" (a string representing its text ID) and by "0x???" (the ID hexadecimal representation).
+
+**Package name:**
+**Package ID:**
+**Description:**
+**Version:**
+**Extends:**
+
+### 6.1 Properties
+
+#### 6.1.1
+
+**Property name:**
+**Property ID:**
+**Description:**
+**Type:**
+**Possible values:**
+**Default:**
+**Defined in:**
+**Characteristics:**
+
+### 6.2 Events
+
+#### 6.2.1
+
+**Event name:**
+**Event ID:**
+**Description:**
+
+##### 6.2.1.1 EventsDescriptor parameters
+
+###### 6.2.1.1.1
+
+**Parameter name:**
+**Parameter ID:**
+**Description:**
+**Type:**
+**Optional:**
+**Possible values:**
+**Default:**
+
+##### 6.2.1.2 ObservedEventsDescriptor parameters
+
+###### 6.2.1.2.1
+
+**Parameter name:**
+**Parameter ID:**
+**Description:**
+**Type:**
+**Optional:**
+**Possible values:**
+**Default:**
+
+### 6.3 Signals
+
+#### 6.3.1
+
+**Signal name:**
+**Signal ID:**
+**Description:**
+**Signal Type:**
+**Duration:**
+
+##### 6.3.1.1 Additional parameters
+
+###### 6.3.1.1.1
+
+**Parameter name:**
+**Parameter ID:**
+**Description:**
+**Type:**
+**Optional:**
+**Possible values:**
+**Default:**
+
+### 6.4 Statistics
+
+#### 6.4.1
+
+**Statistic name:**
+**Statistic ID:**
+**Description:**
+**Type:**
+**Possible values:**
+**Level:**
+
+### 6.5 Error Codes
+
+#### 6.5.1
+
+**Error Code #:**
+
+**Name:**
+
+**Definition:**
+
+**Error text in the Error Descriptor:**
+
+**Comment:**
+
+### 6.6 Procedures
+
+
+
+# Appendix III
+
+## ITU-T H.248 profile definition template
+
+(This appendix does not form an integral part of this Recommendation.)
+
+New ITU-T H.248 profiles should be defined using the following profile template. It is in an ITU-T Recommendation format. Editors from non-ITU organizations should, at a minimum, use the structures in clause 6 below. If this template format is not used, then editors of profiles should ensure that the headings and points in this appendix are covered by their profile.
+
+## Support of profile elements
+
+The headings in the structure below represent items that may be considered as optional. For profile definitions, a certain ITU-T H.248.1 item may be unused despite being mandatory in ITU-T H.248.1; these items are also included in the structure below. Non-listed items are to be considered mandatory by the ITU-T H.248.1 protocol. In the profile template below, elements can be defined as "optional" or "mandatory". "Optional" means that it is optional for either the sender or the receiver to include the element in a message.
+
+The MGC may use the ITU-T H.248 packages audit mechanism to determine which of the optional packages are supported by the MG.
+
+Within each of the cited (mandatory and optional) packages, individual properties, signals, events or statistics are tagged as being optional or mandatory. The interpretation of this categorization in this profile is as follows:-
+
+- Any property, signal, event or statistic that is tagged as mandatory in a mandatory package must be supported by the MG. Such properties, signals, events and statistics may optionally be used by the MGC.
+- Any property, signal, event or statistic that is tagged as mandatory in an optional package must be supported by the MG if the MG supports that optional package. As the MGC is the master, it determines when properties/signals/events and statistics are set on the MG and as such, properties, signals and events may optionally be used by the MGC.
+- Any property, signal, event or statistic that is tagged as optional in a mandatory or optional package may be supported by the MG if the MG supports that package. Such properties, signals and events may optionally be used by the MGC. Should the MGC attempt to use such an unsupported optional property/signal/event/statistic, the MG shall respond with error code 501 (Not Implemented). If the MGC receives statistics that are not understood, then they are ignored.
+
+Where the cited properties, events, signals and statistics have associated parameters, such parameters are also tagged as being mandatory or optional. Where a parameter is designated in the Package description to be "Optional: No" the Profile definition shall not specify this parameter to be "Optional". The interpretation of this categorization in this profile is as follows:
+
+- any parameter that is tagged as mandatory may be included by the sending entity and must be supported by the receiving entity;
+- any parameter that is tagged as optional may be included by the sending entity and may be supported by the receiving entity. If the receiving entity receives an optional element that it has not implemented as per clause 6.2.3, it should send Error Code 501 ("Not Implemented").
+
+The editor should provide written description in each of the subclauses below if it furthers clarifies ITU-T H.248.1 behaviour. For example, if the Move Command (see clause 6.8.4) is limited to certain termination types, this should be indicated.
+
+Italics text is to be removed.
+
+ in brackets is to be filled in.
+
+### **Recommendation ITU-T **
+
+### ****
+
+### **1 Scope**
+
+
+
+### **2 References**
+
+
+
+### **3 Definitions**
+
+#### **3.1 Terms defined elsewhere**
+
+This Recommendation uses the following terms defined elsewhere:
+
+ /
+
+### **3.2 Terms defined in this Recommendation**
+
+This Recommendation defines the following terms:
+
+ /
+
+## **4 Abbreviations and acronyms**
+
+This Recommendation uses the following abbreviations:
+
+
+
+### **5 Conventions**
+
+
+
+## **6 Profile description**
+
+### **6.1 Profile identification**
+
+| | |
+|---------------|------------------------|
+| Profile name: | |
+| Version: | |
+
+*The name and version of the profile that is sent in the ServiceChange Command.*
+
+### **6.2 Summary**
+
+
+
+*A description of what the profile is.*
+
+### 6.3 Gateway Control Protocol version
+
+
+
+*The minimum ITU-T H.248 version required to support the profile. This should be based upon base syntax support and not an arbitrary version assignment. This is related to the ServiceChangeVersion in clause 6.8.8.*
+
+### 6.4 Connection model
+
+
+
+*A description of the allowed termination configurations in a context.*
+
+| | |
+|------------------------------------------------------------|---------------------------------------------------------|
+| Maximum number of contexts: | |
+| Maximum number of terminations per context: | |
+| Allowed termination type combinations in a context: | |
+
+### 6.5 Context attributes
+
+| Context attribute | Supported | Values supported |
+|------------------------------------|------------------|-----------------------------------------------------------------|
+| Topology | | See 6.7.8 |
+| Priority Indicator | | <1-15> |
+| Emergency Indicator | | NA |
+| IEPS call indicator | | NA |
+| ContextAttribute Descriptor | | If "Yes", see clause 6.8.9 for details of supported attributes. |
+| ContextIDList Parameter | | NA |
+
+*Is the AND/OR Select operation Context Attribute supported?*
+
+| | | |
+|---------------------------------|----------|---------------|
+| AND/OR Context Attribute | | |
+|---------------------------------|----------|---------------|
+
+### 6.6 Terminations
+
+#### 6.6.1 Termination names
+
+
+
+*Identify the termination identities associated with physical, ephemeral and multiplex terminations.*
+
+#### 6.6.2 Multiplexed terminations
+
+| | |
+|------------------------------------------|----------|
+| Multiplex terminations supported? | |
+|------------------------------------------|----------|
+
+*If yes, then:*
+
+| | |
+|---------------------------------------------------------------|---------------------------------------|
+| Multiplex types supported: | < H.221, H.223, H.226, V.76, N × 64K> |
+| Maximum number of terminations connected to multiplex: | |
+
+*Are multiplexed terminations used? If so, describe.*
+
+### 6.7 Descriptors
+
+#### 6.7.1 Stream Descriptor
+
+| | | |
+|-------------------------------------------------------|-------------------|-----------|
+| Maximum number of streams per termination type | | |
+|-------------------------------------------------------|-------------------|-----------|
+
+*If more than 1:*
+
+| | |
+|------------------------------|------------------------------------------------------------------------------------|
+| Stream configuration: | |
+|------------------------------|------------------------------------------------------------------------------------|
+
+##### 6.7.1.1 LocalControl Descriptor
+
+*Are the ReserveGroup and ReserveValue properties used?*
+
+| If not generic, list appropriate termination and stream types. | | Termination type | Stream type |
+|-----------------------------------------------------------------------|----------|-------------------------|--------------------|
+| ReserveGroup used: | | | |
+| ReserveValue used: | | | |
+
+*Which StreamMode values are used?*
+
+| Termination type | Stream type | Allowed StreamMode values |
+|-------------------------|--------------------|------------------------------------------|
+| | | |
+
+#### 6.7.2 Events Descriptor
+
+*All events contained in this profile may be set on any termination/stream [with the following exceptions].*
+
+*NOTE – The text in [] is optional and only included if there are such exceptions.*
+
+| | | | |
+|---------------------------------------------------------------|-------------------------------------------------------------------------------|-------------------------|---------------------------------------------------|
+| Events settable on termination types and stream types: | | | |
+| If yes | EventID | Termination type | Stream type |
+| | | | |
+
+*Is EventBuffer Control used?*
+
+| | |
+|----------------------------------|----------|
+| EventBuffer Control used: | |
+|----------------------------------|----------|
+
+*Is event KeepActive used?*
+
+| | |
+|-----------------------------------|----------|
+| KeepActive used on events: | |
+|-----------------------------------|----------|
+
+*Is embedding in Events used?*
+
+| | |
+|-------------------------------------------------|----------|
+| Embedded events in an Events Descriptor: | |
+|-------------------------------------------------|----------|
+
+| | |
+|--------------------------------------------------|----------|
+| Embedded signals in an Events Descriptor: | |
+|--------------------------------------------------|----------|
+
+*Are Regulated EmbeddedEvents Supported?*
+
+| | |
+|----------------------------------------------------|---------------------------------|
+| Regulated Embedded events are triggered on: | |
+|----------------------------------------------------|---------------------------------|
+
+*Is the ResetEventsDescriptor Flag used?*
+
+| | |
+|------------------------------------------------|-------------------------------------|
+| ResetEventsDescriptor used with events: | |
+|------------------------------------------------|-------------------------------------|
+
+*What Notification Behaviour is supported?*
+
+| | |
+|-------------------------|---------------------------------------------|
+| NotifyImmediate: | |
+| NotifyRegulated: | |
+| NeverNotify: | |
+
+#### 6.7.3 EventBuffer Descriptor
+
+*Is this supported?*
+
+| | | |
+|-------------------------------------|-----------------|--------------------------------------------------------------------------------------|
+| EventBuffer Descriptor used: | | |
+| If yes | EventIDs | |
+
+#### 6.7.4 Signals Descriptor
+
+*All signals contained in this profile may be set on any termination/stream [with the following exceptions].*
+
+*NOTE – The text in [] is optional and only included if there are such exceptions.*
+
+| | | | |
+|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|---------------------------------------------------|
+| The setting of signals is dependent on termination or streams types: |
NOTE – "No" means that all signals can be played on any termination or stream. If "Yes", any signal not listed below may be played on any termination or stream. | | |
+| If yes | SignalID | Termination Type | Stream Type/ID |
+| | | | |
+
+*Are signal lists supported? If supported, what is the maximum number of signals per list per termination/stream type supporting lists.*
+
+| | | |
+|---------------------------------|----------------------------------------------------|------------|
+| Signals Lists supported: | | |
+| If yes | Termination Type Supporting Lists: | |
+| | Stream Type Supporting lists: | |
+| | Maximum number of signals to a signal list: | |
+| | Intersignal delay parameter supported: | |
+
+*Is overriding signal type and duration supported?*
+
+| | | |
+|--------------------------------------------|---------------------------------------------------------------------------------|----------------------------------|
+| Signal type and duration supported: | | |
+| If yes | SignalID | Type or duration override |
+| | | |
+
+*Is Signal Direction supported?*
+
+| | |
+|------------------------------------|----------|
+| Signal Direction supported: | |
+|------------------------------------|----------|
+
+*Is "notifyCompletion" supported? What types are supported? Is the RequestID used with "NotifyCompletion"?*
+
+| | | |
+|---------------------------------------|-------------------------------------------------------------------------------|-------------------------------------|
+| NotifyCompletion supported: | | |
+| If yes | SignalID | Type of completion supported |
+| | | |
+| RequestID Parameter supported: | | |
+
+*Can multiple signals be played simultaneously?*
+
+| | | |
+|---------------------------------------|-----------------------------------------------------|-------------------------------------------------------------------------------|
+| Signals played simultaneously: | | |
+| If yes | SignalIDs that can be played simultaneously: | |
+
+*Is "KeepActive" supported for signals?*
+
+| | |
+|------------------------------------|----------|
+| KeepActive used on signals: | |
+|------------------------------------|----------|
+
+#### 6.7.5 DigitMap Descriptor
+
+*Are DigitMaps supported? If so describe the names, structures and timers.*
+
+| | | | |
+|-----------------------------|----------------------|------------------|---------------|
+| DigitMaps supported: | | | |
+| If yes | DigitMap name | Structure | Timers |
+| | | | |
+
+#### 6.7.6 Statistics Descriptor
+
+*Are statistics supported on terminations, streams or both?*
+
+| | |
+|---------------------------------|---------------------------|
+| Statistics supported on: | |
+|---------------------------------|---------------------------|
+
+*Are statistics to be reported?*
+
+| | | |
+|-----------------------------------------|-------------------------------|-----------------------------------------------------------------------------------|
+| Statistics reported on Subtract: | | |
+| If yes | StatisticIDs reported: | |
+
+#### 6.7.7 ObservedEvents Descriptor
+
+*Is the detection time supported?*
+
+| | |
+|----------------------------------------|----------|
+| Event detection time supported: | |
+|----------------------------------------|----------|
+
+#### 6.7.8 Topology Descriptor
+
+*If used what are the allowed settings?*
+
+| | |
+|------------------|--------------------------|
+| Allowed triples: | <(T1, T2, oneway), etc.> |
+|------------------|--------------------------|
+
+#### 6.7.9 Error Descriptor
+
+*Which ITU-T H.248.8 and package defined error codes are supported?*
+
+**Error Codes sent by the MGC:**
+
+| | |
+|---------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
+| Supported ITU-T H.248.8 Error Codes: | |
+| Supported Error Codes defined in packages: | For a list of error codes see clause 6.14.x
|
+
+**Error Codes sent by the MG:**
+
+| | |
+|---------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
+| Supported ITU-T H.248.8 Error Codes: | |
+| Supported Error Codes defined in packages: | For a list of error codes see clause 6.14.x
|
+
+#### 6.7.10 TerminationState Descriptor
+
+*What values of TerminationState are supported?*
+
+| | |
+|----------------------------------------------|-------------------------------|
+| TerminationState : ServiceStates | |
+| TerminationState : EventBufferControl | |
+
+*For other package defined Termination State Properties see clause 6.14.*
+
+### 6.8 Command API
+
+*NOTE – It is assumed that an Error Descriptor may be returned in any command reply.*
+
+#### 6.8.1 Add
+
+*What descriptors can be used in an Add request?*
+
+| | |
+|-----------------------------------------|-------------------------------------------------------------|
+| Descriptors used by Add request: | |
+|-----------------------------------------|-------------------------------------------------------------|
+
+*What descriptors can be used in an Add reply?*
+
+| | |
+|---------------------------------------|-------------------------------------------------------------------------|
+| Descriptors used by Add reply: | |
+|---------------------------------------|-------------------------------------------------------------------------|
+
+#### 6.8.2 Modify
+
+*What descriptors can be used in a Modify request?*
+
+| | |
+|--------------------------------------------|-------------------------------------------------------------|
+| Descriptors used by Modify request: | |
+|--------------------------------------------|-------------------------------------------------------------|
+
+*What descriptors can be used in a Modify reply?*
+
+| | |
+|------------------------------------------|-------------------------------------------------------------|
+| Descriptors used by Modify reply: | |
+|------------------------------------------|-------------------------------------------------------------|
+
+#### 6.8.3 Subtract
+
+*Can an Audit Descriptor be used in a Subtract request?*
+
+| | |
+|----------------------------------------------|---------|
+| Descriptors used by Subtract request: | |
+|----------------------------------------------|---------|
+
+*Can a Statistics Descriptor be used in a Subtract reply?*
+
+| | |
+|--------------------------------------------|--------------|
+| Descriptors used by Subtract reply: | |
+|--------------------------------------------|--------------|
+
+#### 6.8.4 Move
+
+*Is the Move command used? Some context configurations may not use this.*
+
+| | |
+|---------------------------|----------|
+| Move command used: | |
+|---------------------------|----------|
+
+*If used:*
+
+| | |
+|------------------------------------------|-------------------------------------------------------------------------|
+| Descriptors used by Move request: | |
+| Descriptors used by Move reply: | |
+
+#### 6.8.5 AuditValue
+
+*Which descriptors and/or individual properties, signal, events or statistics can be audited?*
+
+| | | |
+|---------------------------------|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|
+| Audited Properties: | | |
+| Audited Statistics: | | |
+| Audited Signals: | | |
+| Audited Events: | | |
+| Packages Audit possible: | Can the Package Descriptor be audited?
| |
+
+#### 6.8.6 AuditCapability
+
+*Which descriptors and/or individual properties, signal, events or statistics can be audited?*
+
+| | | |
+|----------------------------|-----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|
+| Audited Properties: | | |
+| Audited Statistics: | | |
+| Audited Signals: | | |
+| Audited Events: | | |
+
+*Is scoped auditing possible?*
+
+| | |
+|----------------------------------------------------------------------|-------------------------------|
+| Audited Properties/ContextAttributes used for a scoped audit: | |
+|----------------------------------------------------------------------|-------------------------------|
+
+#### 6.8.7 Notify
+
+*Which descriptors can be used in a Notify request?*
+
+| | |
+|--------------------------------------------|-------------------------|
+| Descriptors used by Notify request: | |
+|--------------------------------------------|-------------------------|
+
+*What descriptors can be used in a Notify reply?*
+
+| | |
+|------------------------------------------|---------|
+| Descriptors used by Notify reply: | |
+|------------------------------------------|---------|
+
+#### 6.8.8 ServiceChange
+
+*Which ServiceChangeMethods and Reasons are supported?*
+
+**ServiceChangeMethods and ServiceChangeReasons sent by MGC:**
+
+| ServiceChangeMethods supported: | ServiceChangeReasons supported: |
+|-------------------------------------------------------------|----------------------------------------|
+| | < 900-920 > |
+
+**ServiceChangeMethods and ServiceChangeReasons sent by MG:**
+
+| ServiceChangeMethods supported: | ServiceChangeReasons supported: |
+|---------------------------------------------------------------------------|----------------------------------------|
+| | < 900-920 > |
+
+*Is ServiceChangeAddress used?*
+
+| | |
+|-----------------------------------|----------|
+| ServiceChangeAddress used: | |
+|-----------------------------------|----------|
+
+*Is ServiceChangeMgcId used?*
+
+| | |
+|---------------------------------|----------|
+| ServiceChangeMgcId used: | |
+|---------------------------------|----------|
+
+*Is ServiceChangeDelay used?*
+
+| | | |
+|---------------------------------|---------------------------|----------|
+|