1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
|
Network Working Group B. Foster
Request for Comments: 3064 Cisco Systems
Category: Informational February 2001
MGCP CAS Packages
Status of this Memo
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2001). All Rights Reserved.
Abstract
This document contains a collection of media gateway Channel
Associated Signaling (CAS) packages for R1 CAS, North American CAS,
CAS PBX interconnect as well as basic FXO support. Included are six
packages. The "MS" package covers MF single stage dialing trunks.
This includes wink start and immediate start PBX DID/DOD trunks as
well as basic R1 and Feature Group D (FGD) Terminating protocol [3].
The "DT "package covers immediate start and basic DTMF and dial-pulse
trunks and the "BL" package covers the interface to a basic PBX
(digital or FXS interface). In addition to the Terminating protocol,
there are three other FGD protocols described in [3]. These include
EAIN and EANA which is covered by the enclosed "MD" package and the
Operator Service Signaling protocol which is handled by the "MO"
package. Support for basic FXO interconnect is provided by "DO"
package.
Conventions used in this document
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in RFC-2119.
IESG Note:
This document is being published for the information of the
community. It describes a protocol that is currently being deployed
in a number of products. Implementers should be aware of
developments in the IETF Megaco Working Group and ITU SG16 who are
currently working on a potential successor to this protocol.
Foster Informational [Page 1]
^L
RFC 3064 MGCP CAS Packages February 2001
Table of Contents
1.0.Introduction ................................................ 3
1.1. Functional Partitioning .................................... 3
1.2. CAS Trunk Types ............................................ 4
1.2.1. "MS" Package ............................................. 5
1.2.2. "DT" Package ............................................. 5
1.2.3. "BL" Package ............................................. 6
1.2.4. "DO" Package ............................................. 6
1.2.5. "MD" Package ............................................. 6
1.2.6. "MO" Package ............................................. 7
2.0. Event Packages ............................................. 7
2.1. Events and Signals for the "MS" package .................... 9
2.2. Events and Signals for the "DT" package .................... 10
2.3. Events and Signals for the "BL" package (Basic PBX) ........ 10
2.4. Events and Signals for the "DO" package .................... 11
2.5. Events and Signals for the "MD" package .................... 12
2.6. Events and Signals for the "MO" package .................... 13
2.7. Event and Signal Descriptions .............................. 13
3.0. Hook-State Signals and Events .............................. 23
3.1. Overview of Approach ....................................... 23
3.2. Suspend/Resume Processing .................................. 23
3.3. Control over Disconnect for E911 ........................... 24
3.3. Release and Release Complete ............................... 24
3.4. Blocking CAS Trunks ........................................ 26
3.5. Summary of Hook-State Events ............................... 26
4.0. Glare Handling ............................................. 27
4.1. Glare on MF Bi-directional Wink-start Trunks ............... 27
4.2. Glare Handling - Basic PBX Trunks .......................... 27
5.0. Example Call Flows ......................................... 28
5.1. PBX to PBX ("MS", "DT, and "BL" packages)................... 28
5.1.1. Call Setup Flows ......................................... 28
5.1.2. Call Tear-Down ........................................... 34
5.1.2.1. Origination End Initiates the Release .................. 35
5.1.2.2. Termination End Initiates the Release .................. 38
5.2. Example Call Flows - "DO" package .......................... 40
5.2.1. Call Setup Flows ......................................... 40
5.2.2. Call Tear-Down ........................................... 42
5.3. Example Call Setup - "MD" Package .......................... 44
5.4. Example Call Setup - "MO" Package .......................... 51
Acknowledgements ................................................ 54
References ...................................................... 55
Author's Address ................................................ 55
Full Copyright Statement ........................................ 56
Foster Informational [Page 2]
^L
RFC 3064 MGCP CAS Packages February 2001
1.0.Introduction
1.1. Functional Partitioning
There are a number of different possible approaches for partitioning
the functional responsibility between the Call Agent and the Media
Gateway:
* The Call Agent takes all of the responsibility for the CAS state
machine giving the media gateway detailed commands
* The media gateway contains the CAS state machine and provides an
abstract interface to the Call Agent
Timing requirements of CAS protocols often involve reacting within
time intervals measured in tens of milliseconds which makes direct
control of timing impossible. The approach used here is to allow the
media gateway to handle low level CAS protocol and timing details
where at all possible and have the Call Agent involved only whenever
higher level processing is required.
Taking this approach, the ideal situation would be to allow the Call
Agent to treat as many CAS protocols in a similar way, leaving the
details to the media gateway. Example: for an incoming MF trunk that
involves a single incoming digit string, the Call Agent should not
care whether this is a wink start trunk or an immediate start trunk
(media gateway should not have to provide the wink-start signal).
Some goals in partitioning responsibility between the media gateway
and media gateway:
* Minimize the number of interactions between the Call Agent and the
media gateway.
* The media gateway should not have to do digit analysis (e.g., to
determine that the incoming digits contain carrier access
information). This is a Call Agent's responsibility.
* Provide some reasonable level of abstraction for the Call Agent so
that it can reuse call flows when possible (e.g., Call Agent
should not have to differentiate between wink start and immediate
start interfaces when only one digit string is involved).
* The media gateway should take care of the CAS protocol (and
timeouts) where possible with the Call Agent taking over
responsibility where the media gateway leaves off.
Foster Informational [Page 3]
^L
RFC 3064 MGCP CAS Packages February 2001
Use of Embedded Notifications: Rather than depending on the use of
embedded notifications, signals and events were defined that had the
specific semantics required. There are two reasons for this:
a) It allows an abstract interface for the Call Agent so that for
example, the same incoming call-setup event can be used in the case
of MF wink start and MF immediate start trunks, presenting a common
interface to the Call Agent even though the semantics at the CAS
state-machine level are slightly different (i.e., in the MF wink
start case, a wink-start signal is provided reflexively as a result
of an incoming seizure, where as in the immediate start case, this is
not required).
b) Potential events that might trigger an embedded notification
(e.g., the incoming seizure mentioned above) typically needed to be
visible to the Call Agent for billing anyway.
This does not say that embedded notifications cannot be used. It
simply does not necessitate their use.
Out-pulsing Approach: In order to provide the semantics for
outpulsing, special higher level signals (e.g., "sup" for call set-up
and "inf" for information) are included that contain the necessary
semantics.
Off-hook and On-hook Signals and Events: A higher level view of off-
hook and on-hook events is taken in order to make the interface
Q.931-like. This provides the advantage that:
* Similar call flows result when dealing with Q.931-based interfaces
(e.g., PRI)
* It's more evident (for ease in debug) when looking at message as
to exactly what is going on without having to refer to previous
events
1.2. CAS Trunk Types
The following describes the types of trunks supported by the various
packages. Configuration of the specific trunk type (e.g., wink start
versus immediate start) is done within the Media Gateway (MG) via
provisioning facilities outside the scope of MGCP. The Call Agent's
responsibility is to support the particular package (i.e., in general
the Call Agent does not have to differentiate between wink start and
immediate start, since those differences are taken care of by the
MG). However, the Call Agent needs to know which trunks are
incoming, outgoing or bi-directional.
Foster Informational [Page 4]
^L
RFC 3064 MGCP CAS Packages February 2001
1.2.1. "MS" Package
The "MS" package is used for PBX DID/DOD trunks as indicated in the
following table. It is also used for incoming or outgoing MF wink
start trunks (R1 and FGD Terminating protocol [6]).
Table 1 MF PBX Trunks
--------------------------------------------------
| Trunk Type | Direction (w.r.t. the gateway) |
--------------------------------------------------
|MF, wink start |Incoming - originate from PBX |
| |(the same as FGD terminating |
| | protocol) |
|MF, wink start |Outgoing - terminate on PBX |
|MF, wink start |Bi-directional |
|MF, Immediate |Incoming (originate from PBX) |
| start | |
|MF, Immediate |Outgoing (terminate on PBX) |
| start | |
--------------------------------------------------
1.2.2. "DT" Package
DTMF and dial-pulse (DP) trunks (except basic PBX) are covered by the
"DT" package along with the DTMF "D" package:
Table 2 DTMF and DP Wink Start and Immediate Start Trunks
--------------------------------------------------
| Trunk Type | Direction (w.r.t. the gateway) |
--------------------------------------------------
|DTMF, Immediate |Incoming (originate from PBX) |
| start, wink | |
| start | |
|DTMF, Immediate |Outgoing (terminate on PBX) |
| start, wink | |
| start | |
--------------------------------------------------
Foster Informational [Page 5]
^L
RFC 3064 MGCP CAS Packages February 2001
1.2.3. "BL" Package
DTMF and dial-pulse (DP) basic PBX trunks are covered by the "BL"
package - along with the DTMF "D" package (essentially this is like a
"basic line with no features") - either digital or FXS trunk
interface:
Table 3 Basic FXS Interface
--------------------------------------
| Trunk Type | Direction |
| | (w.r.t. the gateway) |
--------------------------------------
|Basic, DTMF and |Bi-directional |
|DP, Loop Start | |
|Basic, DTMF and |Bi-directional |
|DP, Ground Start| |
--------------------------------------
1.2.4. "DO" Package
The "DO" package is used for analog FXO loop-start and ground-start
analog trunks as indicated in the following table.
Table 4 FXO analog PBX Trunks
--------------------------------------
| Trunk Type | Direction |
| | (w.r.t. the gateway) |
--------------------------------------
|FXO, loop-start|Bi-directional |
|FXO, ground- |Bi-directional |
| start | |
--------------------------------------
1.2.5. "MD" Package
The MD package provides support for North American MF Feature Group D
EANA and EAIN [3], allowing the Media Gateway to be at either the end
office, the carrier or the tandem side of the circuit. The CAS
Signaling Type column of the following tables is intended to indicate
signaling differences that are of common interest to both the Call
Agent and Media Gateway. Configuration information that is only of
interest to the Media Gateway is not identified.
Foster Informational [Page 6]
^L
RFC 3064 MGCP CAS Packages February 2001
Table 4 Feature Group D MF Trunks Supported
--------------------------------------------------
| Trunk Type | Direction (w.r.t. the gateway) |
--------------------------------------------------
|FGD, EANA |Outgoing (End Office to Carrier) |
|FGD, EANA |Incoming (Carrier to End Office) |
|FGD, EAIN |Outgoing (End Office to Carrier) |
|FGD, EAIN |Incoming (Carrier to End Office) |
--------------------------------------------------
Note that EANA and EAIN signaling may be requested on the same trunk
on a call-by-call basis.
1.2.6. "MO" Package
The "MO" package is used for FGD Operator Services Signaling,
outgoing trunks only. Feature Group C can also be supported by the
same interface.
2.0. Event Packages
This section defines the event packages. The terms "signal" and
"event" are used to differentiate a command from a Call Agent to a
Media Gateway ("signal") from an "event" that is detected by the
Media Gateway and then is "Notified" to the Call Agent.
Each package definition includes a package name, plus the event name
codes and the definitions for each of the events in the package. In
the tables of events/signals for each package, there are five
columns:
* Code The package unique event code used for the
event/signal.
* Description A short description of the event/signal.
* Event An "x" appears in this column if the event can be
Requested by the Call Agent. Alternatively, one or
more of the following symbols may appear:
- "P" indicating that the event is persistent,
- "S" indicating that the event is an event-state that may be
audited,
Foster Informational [Page 7]
^L
RFC 3064 MGCP CAS Packages February 2001
- "C" indicating that the event/signal may be detected/applied
on a connection. If "C" is associated with an event, this
refers to an event that can occur on the media stream.
However, "C" may also be associated with a signal (in the
signal column), the signal can be requested to sent over a
connection.
Note that the intent of being able to audit state ("S") in an event
in the following packages is to answer one of the two questions:
1. Has a call been initiated on this line/trunk? For example in
the packages that follow, call setup initiation is indicated by
either a "sup" event or an "hd" (FXS - "BL" packages) or in the
case of the "DO" package below (FXO), by the "rg" event so that
those events have an "S" in the event column indicating that they
are auditable.
2. The other question of interest is to know whether the telephony
leg of the call is in the idle state so that a new call can be
initiated. This is indicate by the "rlc" (release complete)
event-state for packages that have that event.
* Signal If nothing appears in this column then this event
cannot be signaled on request by the Call Agent.
Otherwise, one of the following symbols is provided
to identify the type of signal:
- "OO" On/Off signal. The signal is turned on until commanded
by the Call Agent to turn it off, and vice versa.
- "TO" Timeout signal. The signal lasts for a given duration
unless it is superseded by a new signal or terminated on
detection of an event. Default time-out values are
supplied. A value of zero indicates that the time-out
period is infinite. The provisioning process may alter
these default values.
- "BR" Brief signal. The signal has a short, known duration.
* Additional info Provides additional information about the
event/signal, e.g., the default duration of TO signals.
Unless otherwise stated, all of the events/signals are
detected/applied on endpoints and audio generated by them is not
forwarded on any connection the endpoint may have. Audio generated
by events/signals that are detected/applied on a connection will
however be forwarded on the associated connection irrespective of the
connection mode.
Foster Informational [Page 8]
^L
RFC 3064 MGCP CAS Packages February 2001
2.1. Events and Signals for the "MS" package:
The following codes are used to identify events and signals for the
"MS" package:
Table 5 "MS" Package Events and Signals
---------------------------------------------------------------------
|Code|Description |Event|Signal |Additional Info |
|---------------------------------------------------------------------|
|ans |Call Answer | P | BR | |
| bl |Block | S | BR | |
| bz |Busy tone | - | TO |Time-out = 30 seconds |
|inf |Information Digits| x | - | |
| oc |Operation Complete| x | - | |
| of |Operation Fail | x | - | |
|rel |Release Call | P | BR | |
|res |Resume call | P | BR | |
|rlc |Release complete | P,S | BR | |
| ro |Reorder tone | - | TO |Time-out = 30 seconds |
| rt |Ringback tone | - | TO |Time-out = 180 seconds |
|sup |Call Setup | P,S | TO |Time-out when signal completes |
| | | | |out-pulsing |
|sus |Suspend call | P | BR | |
---------------------------------------------------------------------
Foster Informational [Page 9]
^L
RFC 3064 MGCP CAS Packages February 2001
2.2. Events and Signals for the "DT" package:
The following codes are used to identify events and signals for the
"DT" package:
Table 6 "DT" Package Events and Signals
---------------------------------------------------------------------
|Code|Description |Event|Signal |Additional Info |
|---------------------------------------------------------------------|
|ans |Call Answer | P | BR | |
| bl |Block | S | BR | |
| bz |Busy tone | - | TO |Time-out = 30 seconds |
| dl |Dial tone | - | TO |Time-out = 16 seconds |
| oc |Operation Complete| x | - | |
| of |Operation Fail | x | - | |
|rel |Release Call | P | BR | |
|res |Resume call | P | BR | |
|rlc |Release complete | P,S | BR | |
| ro |Reorder tone | - | TO |Time-out = 30 seconds |
| rt |Ringback tone | - | TO |Time-out = 180 seconds |
|sup |Call Setup | P,S | TO |Time-out when signals completed|
| | | | |out-pulsing |
|sus |Suspend call | P | BR | |
---------------------------------------------------------------------
2.3. Events and Signals for the "BL" package (Basic PBX)
The following codes are used to identify events and signals for the
"BL" package. This package looks very much like a simplified line
package:
Table 7 "BL" Package Events and Signals
---------------------------------------------------------------------
|Code|Description |Event|Signal |Additional Info |
|---------------------------------------------------------------------|
| bz |Busy tone | - | TO |Time-out = 30 seconds |
| dl |Dial tone | - | TO |Time-out = 16 seconds |
| hd |Off-hook | P,S | - | |
| hf |Flash hook | P | - | |
| hu |On-hook | P,S | - | |
| oc |Operation Complete| x | - | |
| of |Operation Fail | x | - | |
| rel|Release | - | BR | |
| rg |Ringing | - | TO |Time-out = 180 seconds |
| ro |Reorder tone | - | TO |Time-out = 30 seconds |
| rt |Ringback tone | - | C,TO |Time-out = 180 seconds |
---------------------------------------------------------------------
Foster Informational [Page 10]
^L
RFC 3064 MGCP CAS Packages February 2001
2.4. Events and Signals for the "DO" package:
The following codes are used to identify events and signals for the
"DO" package:
Table 8 "DO" Package Events and Signals
---------------------------------------------------------------------
|Code|Description |Event|Signal |Additional Info |
|---------------------------------------------------------------------|
| ci |Caller id | x | - | |
| hd |Offhook | - | BR | |
| hf |Hook flash | - | BR | |
| hu |Onhook | - | BR | |
| oc |Operation Complete| x | - | |
| of |Operation Fail | x | - | |
|rel |Release call | P | - | |
| rg |Ringing | P,S | - | |
|rlc |Release complete | P,S | - | |
|sup |Call Setup | - | TO |Time-out when signal completes |
| | | | | out-pulsing |
---------------------------------------------------------------------
Foster Informational [Page 11]
^L
RFC 3064 MGCP CAS Packages February 2001
2.5. Events and Signals for the "MD" package:
The following codes are used to identify events and signals for the
"MD" package.
Table 9 "MD" Package Events and Signals
---------------------------------------------------------------------
|Code|Description |Event|Signal |Additional Info |
|---------------------------------------------------------------------|
|ans |Call Answer | P | BR | |
|awk |Acknowledge wink | P | BR | |
| bl |Call Block | S | BR | |
| bz |Busy tone | - | TO |Time-out = 30 seconds |
|cwk |Continue Wink | - | BR | |
|inf |Information Digits| x | TO |Time-out when signals completed|
| | | | | out-pulsing |
| oc |Operation Complete| x | - | |
| of |Operation Fail | x | - | |
|rel |Release Call | P | BR | |
|res |Resume call | P | BR | |
|rlc |Release complete | P,S | BR | |
| ro |Reorder tone | - | TO |Time-out = 30 seconds |
| rt |Ringback tone | - | TO |Time-out = 180 seconds |
|sup |Call Setup | P,S | TO |Time-out when signals completed|
| | | | | out-pulsing |
|sus |Suspend call | P | BR | |
|swk |Start Wink | x | - | |
---------------------------------------------------------------------
Foster Informational [Page 12]
^L
RFC 3064 MGCP CAS Packages February 2001
2.6. Events and Signals for the "MO" package:
The following codes are used to identify events and signals for the
"MO" package.
Table 10 "MO" Package Events and Signals
---------------------------------------------------------------------
|Code|Description |Event|Signal |Additional Info |
|---------------------------------------------------------------------|
|ans |Call Answer !Note | P | - | |
| oc |Operation Complete| x | - | |
| of |Operation Fail | x | - | |
|orbk|Operator Ringback | x | - | |
|rbz |Reverse make busy | P,S | - | |
|rcl |Operator Recall | - | BR | |
|rel |Release Call | P | BR | |
|res |Resume Call | - | BR | |
|rlc |Release complete | P,S | BR | |
|sup |Call Setup | - | TO | |
|sus |Suspend Call | - | BR | |
|swk |Start Wink | x | - | |
---------------------------------------------------------------------
!Note: There is no indication that the operator answered the call.
The "ans" event is an indication that off-hook was received
from the far end which simply indicates that the destination
address was received properly and the calling number is in the
process of being outpulsed.
2.7. Event and Signal Descriptions
The following provides a list of the event and signal descriptions.
The event/signal name appears in parenthesis followed by the
corresponding Event + Signal attribute code plus a list of the
packages in which the event/signal occurs.
Call answer (ans; P + BR; DT,MD,MS,MO): Off-hook signal normally
indicates that the call has been answered and that cut-through has
been established. The exception is the "MO" package where it simply
indicates that off-hook was received and the calling number is in the
process of being sent (i.e., there is no event available to indicate
that the operator answered the call for operator services signaling).
Acknowledgement Wink (awk; P + BR; MD): This event is only applicable
to the "md" package. It provides an indication that all digits have
been received correctly. In an outgoing trunk, the event is
requested and when received indicates that the connecting switch
Foster Informational [Page 13]
^L
RFC 3064 MGCP CAS Packages February 2001
received all of the addressing information. On an originating trunk,
this signal is sent to inform the other end that all addressing
information has been received. If the Call Agent is providing a
transit application for example, in which incoming and outgoing
trunks are both EANA trunks, then after acknowledgement wink is
received from the terminating trunk, it is passed to the originating
side so that the originating side knows that addressing has passed to
the destination switch.
Call Block (bl; S + BR; DT,MS,MD): A steady off-hook signal applied
to one-way incoming trunks to indicate that no further calls will be
accepted. When "bl" is used as a signal then the "rel" signal is
used to release the blocking condition.
A Call Agent should only request the "bl" event in a case where it
knows that this is a one-way outgoing trunk, and it should never see
an incoming call-setup request ("sup" event). As such if "bl" is
requested as an event, then "sup" is suppressed as a persistent
event.
Busy tone (bz ; - + TO; BL,DT,MD,MS): Refer to ITU E.180. The
definition of the tone is defined by the national characteristics and
may be established via provisioning. Station Busy is defined in GR-
506-CORE - LSSGR, SIGNALING, Section 17.2.6. as a combination of two
AC tones with frequencies of 480 and 620 Hertz and levels of -24 dBm
each, to give a combined level of -21 dBm. The cadence for Station
Busy Tone is 0.5 seconds on followed by 0.5 seconds off, repeating.
Caller Id (ci(time, number, name); x + -; DO): See TR-NWT-001188,
GR-30-CORE, and TR-NWT-000031. Each of the three fields are
optional, however each of the commas will always be included.
The time parameter is coded as "MM/DD/HH/MM", where MM is a two-
digit value for Month between 01 and 12, DD is a two-digit value
for Day between 1 and 31, and Hour and Minute are two-digit values
coded according to military local time, e.g., 00 is midnight, 01
is 1 a.m., and 13 is 1 p.m.
The number parameter is coded as an ASCII character string of
decimal digits that identify the calling line number. White
spaces are permitted if the string is quoted, however they
will be ignored.
The name parameter is coded as a string of ASCII characters that
identify the calling line name. White spaces are permitted if the
string is quoted.
Foster Informational [Page 14]
^L
RFC 3064 MGCP CAS Packages February 2001
A "P" in the number or name field is used to indicate a private
number or name, and an "O" is used to indicate an unavailable number
or name. The following example illustrates the use of the caller-id
event:
O: ci(10/14/17/26, "555 1212", somename)
Continue Wink (cwk ; - + BR; MD): This signal is only applicable to
the "md" package. It provides an indication that digits sent have
been accepted, and further digits must be sent in order to process
the call. For example, when using FGD EAIN signaling, this would
correspond to sending a wink after the country access code had been
received to indicate readiness to receive identification and address
fields.
Dial-tone (dl ; - + TO; BL,DT): Refer to ITU E.180. The definition
of the tone is defined by the national characteristics and may be
established via provisioning. In GR-506-CORE - LSSGR, SIGNALING,
Section 17.2.1, sial Tone is defined as a combination of two
continuous AC tones with frequencies of 350 and 440 Hertz and levels
of -13dBm each to give a combined level of -10 dBm. It is considered
an error to try and play dial-tone on a phone that is on hook and an
error should consequently be returned when such attempts are made
(error code 402 - phone on hook).
Information Digits (inf(<inf-digits>); x + TO; MS,MD): On an outgoing
call ("md" package only) it is used as a signal to out-pulse the
address information when doing overlapped sending.
On an incoming call it is used as an event to indicate that an MF
digit string has been received. In this case, <inf-digits> are all
of the digits accumulated up to and including the digit delimiters
ST, ST', ST'', ST'''. Multiple sequences of digits ending with one
of the ST digits may be passed in a single "inf" event. (Note that
K0 is the same as KP, K1 is sometimes referred to as KP' etc.
Similarly S0 is the same as ST, S1 is the same as ST' and so on.
The value of <inf-digits> is a comma separated list of MF digits:
MF1, MF2, ..., MFn
where each of MFi will be one of the following MF digit symbols:
Foster Informational [Page 15]
^L
RFC 3064 MGCP CAS Packages February 2001
Table 11 MF Digit Symbols
-------------------------
| Symbol |MF digit |
| 0 | MF 0 |
| 1 | MF 1 |
| 2 | MF 2 |
| 3 | MF 3 |
| 4 | MF 4 |
| 5 | MF 5 |
| 6 | MF 6 |
| 7 | MF 7 |
| 8 | MF 8 |
| 9 | MF 9 |
| K0 | MF K0 or KP |
| K1 | MF K1 |
| K2 | MF K2 |
| S0 | MF S0 or ST |
| S1 | MF S1 or ST' |
| S2 | MF S2 or ST'' |
| S3 | MF S3 or ST'''|
--------------------------
Thus, an example signal or event might look like:
inf(k0, 5,5,5,1,2,3,4, s0)
An example where the inter-digit timer expired after the 5,5,5 would
appear as follows:
inf(k0, 5,5,5)
Operation Complete (oc ; x + -; all): The operation complete event is
generated when the gateway was asked to apply one or several signals
of type TO on the endpoint, and one or more of those signals
completed without being stopped by the detection of a requested or
persistent event such as setup. The completion report may carry as a
parameter the name of the signal that came to the end of its live
time, as in:
O: ms/oc(ms/sup)
or
O: bl/oc(bl/rg)
When the operation complete event is requested, it cannot be
parameterized with any event parameters.
Foster Informational [Page 16]
^L
RFC 3064 MGCP CAS Packages February 2001
Note that when requested at the same a signal for "sup" (out-pulsing
- a TO event), the operation complete event will indicate when out-
pulsing is complete.
Operation failure (of; x + -; all): In general, the operation
failure event may be generated when the endpoint was asked to apply
one or several signals of type TO on the endpoint, and one or more of
those signals failed prior to timing out. The completion report may
carry as a parameter the name of the signal that failed, as in:
O: ms/of(ms/sup)
or
O: bl/of(bl/rg)
When the operation failure event is requested, it cannot be
parameterized with any event parameters.
Operator ringback (orbk; x + -; MO): The description of the signaling
MF CAS signaling that results in this event is describe in the
appendix of TR-NPL-000258 [3]. In brief, it is normally a wink-on
signal which may or may not be followed by an MF tone. This event
will be generated when the operator service requests that the calling
party be alerted ("mo" package only).
Reverse make busy (rbz; P + -; MO): This event corresponds to a
"blocking" (off-hook) generated by the other end of the one-way
operator services trunk ("mo" package). It has the same semantics as
of the "bl" event in other packages.
Operator recall (rcl; - + BR; MO): This signal may be applied to
invoke operator recall, e.g., due to customer hook-flash to bring the
operator back.
Release call (rel; P,S + BR; BL,DT,MD,MO,MS,DO): A "rel" signal sent
by the Call Agent to the Media Gateway is a request to release all of
the resources associated with the telephony leg of the call. This
may also result in an off-hook signal being sent when appropriate.
As a result of an "rel" signal, the gateway will respond with an
"rcl" event, whenever the resources have been released. Releasing
resources associated with the telephony leg of the call does not
affect existing connections (network legs). It's up to the Call
Agent to send the appropriate delete connection commands in order to
release any network connections to that endpoint.
Foster Informational [Page 17]
^L
RFC 3064 MGCP CAS Packages February 2001
In the case of the FXS ("BL") package, the "rel" signal is used to
provide a tip-ground release for ground-start trunks. In the case of
loop-start trunks, requesting to play this signal has no effect.
The Media Gateway generates a "release call" event whenever a call is
released as a result of an on-hook event from an originating end of a
call (normal release) or due to abnormal event that resulted in
releasing the call. The event may be parameterized with one of the
following cause codes indicating the reason for the release:
Table 12 Release Reason Codes
-----------------------------------------------------------------
|Cause Code |Reason |
|-----------------------------------------------------------------
| 0 |Normal release |
| 44 |Requested channel/circuit not available |
| |(glare or incoming seizure detected during call |
| | setup) |
| 111 |Protocol/signaling error, unspecified (e.g. timeout) |
-----------------------------------------------------------------
Note that a "rel" event with reason code "0" indicating normal
release (due to an incoming on-hook) will only be "notified" by a
gateway where a call origination occurred. This behavior follows the
rule that when an originator releases the call, all resources may be
released. The corresponding event for on-hook on the terminating end
of a call is the "sus" event which only indicates hook-status and
does not result in any resources being released. It is always up to
the Call Agent to release the call (by sending the "rel" signal) for
the terminating end of a call.
For FXO ground-start case ("DO" package), the Media Gateway generates
a "release call" event whenever a call is released as a result of a
tip-ground release event from the far end.
Resume call (res ; P + BR; DT,MD,MS,MO): This indicates that the
called party resumed the call, i.e., the party went off-hook after a
previous suspend ("sus") but before the originating switch released
("rel") the trunk. The "sus" and "res" events/signals are used to
propagate on-hook and off-hook events without releasing the resources
associated with the call. In all but the operator services case
("MO" package), these events would normally be propagated from the
terminating to the originating end (i.e., requested as events from
the terminating end of the call and sent to the gateway as signals to
a gateway on the originating side of the call).
Foster Informational [Page 18]
^L
RFC 3064 MGCP CAS Packages February 2001
However, it is up to the Call Agent to decide whether it wants to do
"suspend"/"resume" processing. If it doesn't, when it receives a
"sup" event from the terminating end of the call it can simply go
ahead and tear down the call immediately (send "rel" and delete
connections to the endpoints on gateways at both originating and
terminating end of the call).
In the case of operator services and 911, "sus" and "res" are used to
pass off-hook and on-hook signals to the operator without releasing
any of the resources associated with the call.
Ringing (rg; P,S + TO; BL,DO): This signal is used for outgoing basic
trunks ("bl" package). See GR-506-CORE - LSSGR: SIGNALING, Section
14. The provisioning process may define the ringing cadence. It is
considered an error to try and ring if the trunk indicates off hook
and an error should consequently be returned when such attempts are
made (error code 401 - phone off hook).
In the case of the "DO" package, "rg" is defined as an event used to
indicate detection of ringing.
Release complete (rlc;P,S + BR; DO,DT,MD,MO,MS): The endpoint and
Call Agent use the release complete event/signal to confirm the call
has been released and the trunk is available for another call. For
FXO ground-start ("DO" package), this represents the release of the
tip-ground event from the PBX after the gateway goes on-hook.
Reorder tone (ro; - + TO; BL,DT,MD,MS): Reorder tone is a combination
of two AC tones with frequencies of 480 and 620 Hertz and levels of
-24 dBm each, to give a combined level of -21 dBm. The cadence for
reorder tone is 0.25 seconds on followed by 0.25 seconds off,
repeating continuously. See GR-506-CORE - LSSGR: SIGNALING, Section
17.2.7.
Ring back tone (rt; - + TO; BL,DT,MD,MS): Audible Ring Tone is a
combination of two AC tones with frequencies of 440 and 480 Hertz and
levels of -19 dBm each, to give a combined level of -16 dBm. In the
US the cadence for Audible Ring Tone is defined to be 2 seconds on
followed by 4 seconds off. The definition of the tone is defined by
the national characteristics of the Ring-back Tone, and MAY be
established via provisioning. See GR-506-CORE - LSSGR: SIGNALING,
Section 17.2.5.
Call Setup (sup ; P,S + TO; DO,DT,MD,MS,MO): The event/signal is used
both for outgoing and incoming call setups. Each will be described
separately in the following.
Foster Informational [Page 19]
^L
RFC 3064 MGCP CAS Packages February 2001
Outgoing call setup:
On an outgoing trunk, the "sup" signal is used to seize a trunk and
out-pulse digits. The "sup" signal is parameterized with up to four
parameters sup(<ct>, <ca>, <id>, <addr>), depending on the package.
The order of these parameters does not matter. The following table
indicates which ones are mandatory ("M"), optional ("O") or forbidden
("F") for the various packages.
Table 13 "sup" parameters.
------------------------------------
| Parameter | MS | DT | MO | MD | DO |
|------------------------------------|
| <ct> | F | F | F | M | F |
| <ca> | F | F | F | O | F |
| <id> | F | F | M | M | F |
| <addr> | M | M | M | O | M |
------------------------------------
The <ct> parameter is of the format ct(<ct-value>) where <ct-value>
indicates the CAS signaling type and can have one of two values "nda"
(North American Direct Access) for EANA and "nta" (North American
Tandem Access) for EAIN. The reason this parameter is needed in the
case of trunks that handle the "MD" packages is because the same
trunk can be used for both. The <addr> field contains the
destination number and when present will be on the form
addr(dig1, dig2, ..., dign)
The <id> field contains the identification of the caller and when
present will be of the form:
id(dig1, dig2, ..., dign)
The <ca> field contains the country address information and when
present will be of the form:
ca(dig1, dig2, ..., dign)
When present, the <addr> field contains the destination number and
will be of the form
addr(dig1, dig2, ..., dign)
where digi is an MF symbol as defined in table 11 in the case of
"MS", "MO", and "MD" packages and digi is a DTMF symbol (0-9,
*,#,A,B,C,D) in the case of the "DT" and "DO" packages.
Foster Informational [Page 20]
^L
RFC 3064 MGCP CAS Packages February 2001
The following table shows some interactions between the Media Gateway
(MG) and the Switched Circuit Network (SCN) for single stage
outpulsing applications ("DT", "MS" and "DO" packages):
Table 14 SCN Sequencing during Call Setup (single stage outpulsing)
------------------------------------------------------------------
|Interface Type |Setup | Interactions |
|------------------------------------------------------------------|
|wink start |sup(add(<addrvalue>)) |MG| off-hook -> |SCN|
| | |MG| <- wink |SCN|
| | |MG| <addrvalue> -> |SCN|
|------------------------------------------------------------------|
|Immediate Start|(sup(addr(<addrvalue>)) |MG| off-hook -> |SCN|
| or FXO) | |MG| <addrvalue> -> |SCN|
------------------------------------------------------------------
Call setup signal example for this case (MF signaling):
sup(addr(s0,5,5,5,1,2,3,4,k0))
The "MO" and "MD" packages involve multi-stage signaling and multiple
parameters. In the case of the "MD" package the following table
shows some of the interactions:
Table 15 SCN Sequencing during Call Setup (EANA and EAIN)
------------------------------------------------------------------
|Setup | Interactions |
|------------------------------------------------------------------|
| sup(ct(nda),addr(<addrvalue>), |MG| off-hook -> |SCN|
| id(<idvalue>)) |MG| <- wink |SCN|
| |MG| <idvalue> -> |SCN|
| |MG| <addrvalue> -> |SCN|
|------------------------------------------------------------------|
| sup(ct(nta), ca(<cavalue>), |MG| off-hook -> |SCN|
| addr(<addrvalue>), id(<idvalue>)) |MG| <- wink |SCN|
| |MG| <cavalue> -> |SCN|
| |MG| <- wink |SCN|
| |MG| <idvalue> -> |SCN|
| |MG| <addrvalue> -> |SCN|
|------------------------------------------------------------------|
| sup(ct(nta), ca(<cavalue>), |MG| off-hook -> |SCN|
| id(<idvalue>)) |MG| <- wink |SCN|
| |MG| <cavalue> -> |SCN|
| |MG| <- wink |SCN|
| |MG| <idvalue> -> |SCN|
------------------------------------------------------------------
Foster Informational [Page 21]
^L
RFC 3064 MGCP CAS Packages February 2001
The last example is an overlapped sending example where the address
value would be sent later using the "inf" signal.
An example setup:
sup(ct(nta),ca(k0,1,3,8,9,9,0,0,1,0,s0),id(k0,0,5,5,5,1,2,3,4,s0))
In all of the above cases, the "ans" event is an indication of off-
hook from the far end (the other end answered). However, in the case
of the operator service signaling (OSS) protocol of Feature Group D -
shown in the following table, off-hook from the operator is part of
the protocol (a request for the calling number) so that "ans" in this
case does not indicate that the operator answered (only that off-
hook/request for calling number was received).
Table 16 SCN Sequencing during Call Setup OSS Protocol ("MO" Package)
------------------------------------------------------------------
|Setup | Interactions |
|------------------------------------------------------------------|
| sup(ct(nda),addr(<addrvalue>), |MG| off-hook -> |SCN|
| id(<idvalue>)) |MG| <- wink |SCN|
| |MG| <- off-hook |SCN|
| |MG| <addrvalue> -> |SCN|
| |MG| <idvalue> -> |SCN|
------------------------------------------------------------------
Incoming Call Setup: A "sup" event is used to indicate when an
incoming call arrives (corresponding to the incoming off-hook event).
The event is provided without parameters.
Suspend call (sus; P + BR; DT,MD,MS,MO): Suspend ("sus") is an on-
hook event that is an indication that the called party went on-hook.
An on-hook event will be "notified" to a Call Agent as a "sus" event
for interfaces that use the "MS", "DT" and "MD" packages from an
endpoint at a terminating end of a call (as compared to a "rel" event
from the originating side). The "sus" event from the terminating
endpoint gives the Call Agent the option of doing "suspend/resume"
processing or to simply release the call.
The "sus" signal may be used to send an on-hook to the originating
party without releasing the resources associated with the telephony
leg of the call. The "rel" signal on the other hand would send an
on-hook and release the resources associated with the call.
Foster Informational [Page 22]
^L
RFC 3064 MGCP CAS Packages February 2001
Because of this "sus" can be followed by "res" (off-hook) and allow
the call to resume, while "rel" cannot be followed by "res" because
the call no longer exists.
For E911 ("MO" package), the operator is normally in control of
releasing the call so that, "sus" (on-hook), "res" (off-hook) and
"rcl" (flash-hook) can be used to pass user hook events to the
operator without releasing the call.
Start Wink (swk; x + - MD,MO):. An Call Agent can optionally request
the MG to notify it when the wink start signal occurs. Note that
wink start ("swk") cannot be applied by the Call Agent as a signal.
The occurrence of wink-start on an incoming trunk is a reflexive
action that does not require Call Agent involvement.
3.0. Hook-State Signals and Events
3.1. Overview of Approach
As mentioned in the introduction, a higher level view is taken for
on-hook and off-hook events for many of the CAS packages to make the
interface Q.931-like. This provides the advantage that:
* Similar call flows result as when dealing with Q.931-based
interfaces (e.g., PRI)
* It's more evident (for ease in debug) when looking at message as
to exactly what is going on without having to refer to previous
flows.
This does require that media gateways maintain some state but this is
a relatively small price to pay.
One example of this is the "sup" signal which involves sending off-
hook followed by digits as a high level signal. The "ans" event is
also used to represent off-hook but from the terminating end at the
point where the call is answered.
3.2. Suspend/Resume Processing
Other signals and events "sus" for suspend, "res" for resume and
"rel" for release are based on the concept that one end (the
originator) is in control of the call. If the controlling end goes
on-hook a "rel" is notified to the Call Agent, and results in a the
call being released. However, if the non-controlling (terminating)
end goes on-hook, a "sus" event occurs (instead of the "rel" event).
This gives the Call Agent the option of doing suspend/resume
processing.
Foster Informational [Page 23]
^L
RFC 3064 MGCP CAS Packages February 2001
If the Call Agent decides not to do suspend/resume processing, it can
simply send "rel" and delete connection commands to the endpoints
after it receives "sus" from the non-controlling (terminating) end of
the call.
On the other hand, if it decides to do suspend/resume processing, it
can start a timeout when it receives the "sus" event from the non-
controlling (terminating) end of the call and continue the call if it
receives a "res" (off-hook) event. It also has the option of
propagating the "sus" and "res" as signals back to the ingress
gateway and allow it an opportunity to release the call ("rel" event)
or not. In any case the use of "sus" and "res" signals give another
level of control over the "rel" signal which will not only send on-
hook but also release the resources associated with the telephony leg
of the call.
3.3. Control over Disconnect for E911
Note that for E911 (the "MO" package) is a special case in that the
operator (terminating end) is always the controlling end. The "sus"
and "res" signals are used to pass user hook state forward to the
operator. The "rel" event is passed back as a notify to the Call
Agent when on-hook is received from the operator indicating that the
Call should be released. If the "rel" is not received the call
should continue to stay up.
3.3. Release and Release Complete
The "rel" signal/event generally means on-hook but more that that it
also indicates "release of resources" for the telephony leg of the
call. If a Call Agent sends a "rel" signal instead of "sus" it is
requesting the call to be abandoned (i.e., "rel" cannot be followed
by "res").
The "rel" signal does not also imply that connections should be
deleted so that to completely release the call including connections
would require a DLCX in addition to (or conjunction with) the signal
"rel".
In addition to being a signal, "rel" can also be an event triggered
by either:
* An on-hook from the controlling end of the call, or
* Some abnormal event within the media gateway such that the
telephony leg of the call can no longer be maintained.
Foster Informational [Page 24]
^L
RFC 3064 MGCP CAS Packages February 2001
In any case, "rel" (release) is generally followed by an "rlc"
(release complete). The release complete signal/event indicates that
the trunk resources are now completely released and available for
another call. This is also an event state that can be audited as
indicated by the "S" in the column for that event (allowing the Call
Agent to check to see if that trunk is released and available).
Examples of the use of "rel" and "rlc":
* Call Agent sends a "rel" to release a trunk, resulting in an
outgoing off-hook being sent for that trunk. When the media
gateway receives the on-hook from the other end, it returns an
"rlc" event indicating that the trunk is released and available.
* The media gateway receives a on-hook from the trunk at the
controlling end of the call, resulting in a "rel" event being sent
to the Call Agent. The Call Agent then sends an "rlc" to the
media gateway, resulting in on-hook being sent in the opposite
direction.
* An "rel" event is sent to the Call Agent in the event of some
abnormal condition in which the media gateway is unable to sustain
the telephony leg of the call (e.g., glare condition). The Call
Agent sends an "rlc" to the gateway to complete the release of the
call. (note that "rlc may not correspond to on-hook but is
generally sent anyway in response to a "rel".)
* The Call Agent can send a "rel" (instead of "sus") signal to the
controlling (originating) end of the call to abandon the call.
The gateway will return with "rlc" when an off-hook has been
received from the other end and all the resources have been
released.
* A "rel" can be sent on one-way incoming trunk to release a block
("bl") sent earlier.
The "BL" (FXS) package is a simple line package, so does not have
these events (uses "hd", "hf", and "hu" as the only hook state
events).
The "DO" (FXO) package, however, does have "rel" and "rlc" because in
the ground-start case there is the ability to "release" the call as
result of a tip-ground release. The signal "rel" is used if the PBX
releases the call first (followed by S: hu from the call Agent to
complete the release). Alternatively, the Call Agent can send the S:
hu to initiate the release - followed by an "rlc" event from the
media gateway to Call Agent when the PBX does the tip ground release.
Although the loop-start trunks would not normally have this behavior
(only applies to ground-start), the media gateway should emulate the
behavior in the case of loop-start in order to allow the Call Agent a
common interface.
Foster Informational [Page 25]
^L
RFC 3064 MGCP CAS Packages February 2001
3.4. Blocking CAS Trunks
In addition to the above signals and events, there is the "bl"
signal/event which is used for blocking one-way trunks (does not work
for two way trunks) by providing a continuous off-hook.
3.5. Summary of Hook-State Events
The following summarizes the use of the various events that involve
off-hook and on-hook from call establishment to tear-down. This
applies mainly to "MS", "DT", "MD" and to a lesser extent the "DO"
package.
* The "sup" event represents off-hook origination.
* The "sup" signal with parameters provides off-hook with digit
outpulsing on the terminating side.
* Once outpulsing is completed, an "ans" event indicates off-hook
from the termination side (the called party has answered).
* The call agent can then send an "ans" signal (off-hook) to the
originating end to indicate to the caller that the called party
has answered.
* The Call Agent can send a "rel" to either end at any time to tear
down the call (e.g., to abort the call).
* The media gateway can send "rel" to indicate abnormal termination
of the call (with a reason as a parameter).
* However, under normal operation once a call is established, the
Call Agent can expect a "sus" (suspend) event from the termination
end to indicate that the caller went on-hook and a "res" if the
called party goes off-hook again before the Call Agent tears down
the call. The Call Agent can send these same signals to the
originating end to indicate off-hook and on-hook to the calling
party without tearing down the call.
* During normal operation, once the call is established, on-hook
from the calling party (origination side) would result in a "rel"
signal. The Call Agent would then normally send the "rel" signal
to the terminating end to terminate the call. "rel is normally
followed by "rlc" (e.g., media gateway indicates calling party on-
hook with "rel" and the Call Agent responds with "rlc", which
sends on on-hook back to the calling party to indicated release
complete.
The "MO" package is a bit different in that normally only the
terminating side (the operator) can release the call ("rel" event).
The "sus" and "res" are forward signals to the operator indicating
user hook-status.
Foster Informational [Page 26]
^L
RFC 3064 MGCP CAS Packages February 2001
4.0. Glare Handling
4.1. Glare on MF Bi-directional Wink-start Trunks
Gateways may have a configurable glare bit on a per-DS0 basis that
can be set to indicate whether the gateway is the controlling or
non-controlling "switch". However, in general, PBXs are either pre-
configured or can be configured to behave as non-controlling
switches. In this case if they see an off-hook that exceeds
allowable wink length, they will attach a receiver, go on-hook, and
await digits for a new call. Meanwhile the PBX will retry its
original call on another trunk.
If the gateway behaves like a controlling switch, when glare is
detected, the gateway will wait for up to some timeout value (default
value of 4 seconds) until the incoming off-hook changes to an on-hook
state at which time it will start out-pulsing in the normal manner.
If the timeout occurs before the state change to on-hook occurs, the
gateway will send a release event to the Call Agent (a "rel(44)"
event - cause code indicating glare).
When "rel(44)" is sent by the gateway, that is an indication to the
Call Agent that the call is in the process of being released and that
the Call Agent should give up on that trunk. However, the gateway
may not actually want to send the on-hook at that time in order to
avoid the possibility that the other end takes the on-hook as a wink.
Instead, it may start a second timer and wait some longer period of
time (e.g., 16 seconds or so) before releasing the trunk. If it
receives an on-hook prior the timeout, it completes the release by
going on-hook. If, on the other hand, the timer expires before the
other end goes on-hook, it will simply go on-hook and wait for the
other end to go on-hook. In any case, once both ends have returned
to the on-hook state, an "rlc" event is sent to the Call Agent.
4.2. Glare Handling - Basic PBX Trunks
In order to reduce the chances of glare, the gateway should try a
ringing pre-trip test prior to sending ringing on a basic ground
start trunk. If glare is detected on an outgoing seizure of a basic
PBX trunk, the request for ringing should be "Nacked" (error code 401
- phone off-hook) to the Call Agent.
Foster Informational [Page 27]
^L
RFC 3064 MGCP CAS Packages February 2001
5.0. Example Call Flows
5.1. PBX to PBX ("MS", "DT, and "BL" packages).
The following call flows involve a single Call Agent that handles
both sides of the call (i.e., the inter-Call-Agent signaling is
ignored). The components involved in the call are:
* The Call Agent (CA)
* The originating Media Gateway (GW-o) and
* The terminating Media Gateway (GW-t)
5.1.1. Call Setup Flows
The following describes some PBX to PBX call. The table gives an
overview of the initial part of the call flow with details to follow.
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | NTFY[seizure] -> |
| A2 | <- Ack |
| A3 | <- RQNT[request digits] |
| A4 | Ack -> |
| A5 | NTFY[digits] -> |
| A6 | <- Ack |
| B1 | <- CRCX [M:recvonly, LCO] |
| B2 | Ack[SDP1] -> |
| B3 | CRCX [M:sendrecv, LCO, SDP1] -> |
| B4 | <- Ack [SDP2] |
| B5 | <- MDCX [recvonly,SDP2] |
| B6 | Ack -> |
---------------------------------------------------------------------
Step A1 PBX seizure results in a notify to the Call Agent
indicating the start of a call setup:
NTFY 3001 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 0123456789AF
O: ms/sup (or dt/sup)
Foster Informational [Page 28]
^L
RFC 3064 MGCP CAS Packages February 2001
In the case of the "BL" package (basic PBX) the interface looks
like a simplified line interface with the standard "hd" event for
off-hook:
NTFY 3001 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 0123456789AF
O: bl/hd
Another alternative would have been to use an embedded request in the
RQNT that resulted in this notify and combine that request with step
A3. Example - "ms" package:
RQNT 2001 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 0123456789AF
R: ms/sup(E(R(ms/inf, ms/rel))
Step 3 could also be eliminated by the use of "loop" mode e.g.:
RQNT 2001 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 0123456789AF
Q:loop
R: ms/sup, ms/inf, ms/rel
This would result in both notifies occurring without requiring the
RQNT in step A3.
Step A2 The Call Agent sends an Ack:
200 3001 OK
Step A3 The Call Agent requests that digits be collected. The
approach used here depends on the type of PBX interface. For an MF
interface the Call Agent requests that information digits be
collected as follows:
RQNT 2001 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 0123456789B0
R: ms/inf, ms/rel
The Call Agent also asks to be told if the trunk gets released
for some reason ("rel" event) in the process of call setup
(release event may be due to some signaling error for example).
For DTMF trunks (wink-start, immediate start and Basic PBX), the
request is based on a digit map so looks a bit different:
RQNT 2001 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 0123456789B0
R: d/[0-9*#T](D), dt/rel (bl/hd in the case of Basic PBX)
Foster Informational [Page 29]
^L
RFC 3064 MGCP CAS Packages February 2001
D: (xxxxxxx | x.[T#])
S: dt/dl
Note: the request to signal dial-tone may or may not be here
depending on PBX interface requirement - bl/dl required for
Basic PBX; dt/dl for some Immediate Start interfaces.
Step A4 The gateway responds with an ack:
200 2001 OK
Step A5 Once the digits are collected the gateway notifies the call
agent. In the case of an MF interface, the resulting notify will
look like the following
NTFY 3002 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 0123456789B0
O: ms/inf(k0,5,5,5,1,2,3,4,s0)
In the case of a DTMF interface (including Basic PBX), it will
look like the following:
NTFY 3002 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 0123456789B0
O: d/5,d/5,d/5,d/1,d/2,d/3,d/4
Step A6 The Call Agent responds with an ack:
200 3002 OK
Step B1 The Call Agent now requests that a receive-only connection
be made.
CRCX 2002 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
C: A7453949499
L: a:PCMU,s:off,e:on
M: recvonly
X: 0123456789B1
R: ms/rel (or dt/rel or bl/hu).
Step B2 The Gateway acks with a connection ID and provides the SDP
information:
200 2002 OK
I: 23474FE
Foster Informational [Page 30]
^L
RFC 3064 MGCP CAS Packages February 2001
v=0
o=- A7453949499 0 IN IP4 128.96.41.1
s=-
c=IN IP4 128.96.41.1
t=0 0
m= audio 3456 RTP/AVP 0
Step B3 The Call Agent passes this SDP information to the
terminating gateway (GW-t) as part of the connection request:
CRCX 4001 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
C: A7453949499
X: 45375840
L: a:PCMU,s:off,e:on
M: sendrecv
v=0
o=- A7453949499 0 IN IP4 128.96.41.1
s=-
c=IN IP4 128.96.41.1
t=0 0
m=audio 3456 RTP/AVP 0
Note that the call setup on the terminating trunk can be done with
this CRCX, although in this call flow - it is shown later (step C1).
Step B4 The terminating gateway, responds with an ack and its SDP
information:
200 4001 OK
I: 34738A
v=0
o=- A7453949499 0 IN IP4 47.123.34.33
s=-
c=IN IP4 47.123.34.33
t=0 0
m= audio 3456 RTP/AVP 0
Step B5 Call Agent sends a modify connection request with
connection mode receive-only to the origination gateway and includes
the SDP information with the selected profile from the termination
gateway.
MDCX 2003 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
C: A7453949499
I: 34738A
M: recvonly
Foster Informational [Page 31]
^L
RFC 3064 MGCP CAS Packages February 2001
v=0
o=- A7453949499 0 IN IP4 47.123.34.33
s=-
c=IN IP4 47.123.34.33
t=0 0
m= audio 3456 RTP/AVP 0
Step B6 The Gateway Acks the modify connection request
200 2003 OK
The following table shows the remainder of the call flow to set up
the call except for Basic PBX (Basic PBX shown in) with details to
follow.
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| C1 | RQNT [S: ms/sup, R: ms/oc, ms/rel, ms/ans] ->|
| C2 | <- Ack |
| C3 | <- NTFY [O:ms/oc(ms/sup)]|
| C4 | Ack -> |
| C5 | <- NTFY [O: ms/ans] |
| C6 | Ack -> |
| C7 | <- MDCX [M:sendrecv, S: ms/ans, R: ms/rel] |
| C8 | Ack -> |
| C9 | RQNT[R: ms/sus] -> |
| C10 | <- Ack |
---------------------------------------------------------------------
Step C1 The Call Agent does a setup request to the terminating
gateway The setup request for an MF PBX interface (wink start or
immediate start) will be the following:
RQNT 4002 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375841
Q: loop
S: ms/sup(addr(ko,5,5,5,1,2,3,4,s0))
R: ms/oc, ms/rel, ms/ans
Note that the result of the "sup" signal is the following
sequence on the interface to the PBX:
* off-hook -> PBX
* wink -> PBX (for wink-start trunks; for immediate start this
part of the sequence does is not included)
* Digits sent to PBX
Foster Informational [Page 32]
^L
RFC 3064 MGCP CAS Packages February 2001
For DTMF PBX interface (except Basic PBX), the only difference is
that the MF start and end delimiters (k0 and s0) are not
included:
RQNT 4002 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375841
Q: loop
S: dt/sup(addr(5,5,5,1,2,3,4))
R: dt/oc, dt/rel, dt/ans
Basic PBX requires ringing and ring-back instead i.e.:
RQNT 4002 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375841
Q: loop
S: bl/rg,bl/rt@34738A
R: bl/oc,bl/hd
In this case ringback will come from the gateway and will start
immediately with the signal request for rt@connectionID. It will
end as soon as an event occurs (off-hook representing answer
event) In the case of other PBX's, the ringback tone comes from
the PBX so does not have to be generated by the gateway.
Note that these requests could be done as easily at the same time
as the connection request (B3) saving some post-dial delay time.
Step C2 The gateway responds with an ack:
200 4002 OK
Step C3 Except for the basic PBX, case (where digits are not
outpulsed) when the digits have completed being sent out, the gateway
will notify the fact by indicate that the operation is complete.
NTFY 1001 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375841
O: ms/oc(ms/sup) (or dt/oc(dt/sup))
Step C4 The Call Agent acks the notify
200 1001 OK
In the case of the BL package, steps C3 and C4 will not exist.
Foster Informational [Page 33]
^L
RFC 3064 MGCP CAS Packages February 2001
Step C5 When an answer is obtained from the other end (off-hook
from the PBX), the gateway sends a notify to indicate:
NTFY 1002 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375841
O: ms/ans (or dt/ans or bl/hd)
Step C6 The Call Agent acks
200 1002 OK
Step C7 The Call Agent now sends a request to make the connection
full duplex and indicates that the other end has answered the phone.
MDCX 2004 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
C: A7453949499
X: 45375842
I: 34738A
M: sendrecv
S: ms/ans ( or dt/ans but S: not included in the case where the
originating gateway uses the BL package)
Step C8 The Gateway acks the request
200 2004 OK
Step C9 The Call Agent sends a notification request to be told
when the trunk to be released.
RQNT 4003 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375842
R: ms/rel,ms/sus (or R: dt/rel,dt/sus or R: bl/hu)
Step C10 The gateway acks the request
200 4003 OK
The call is now setup.
5.1.2. Call Tear-Down
Two cases are included here, one where the origination end initiates
the release (section 5.1.2.1) and one where the termination end
initiates the release (section 5.1.2.2).
Foster Informational [Page 34]
^L
RFC 3064 MGCP CAS Packages February 2001
5.1.2.1. Origination End Initiates the Release
The following call flow shows an example where the origination end
initiates the release for the "MS" package (similar for "DT"
Package).
--------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|-------------------------------------------------------------------- |
| A1 | NTFY[O: ms/rel] -> |
| A2 | <- Ack |
| A3 | RQNT [S: ms/rel, R: ms/rlc] -> |
| A4 | <- Ack |
| A5 | <- NTFY [O: ms/rlc] |
| A6 | Ack -> |
| A7 | <- DLCX [S: ms/rlc, R: ms/sup] |
| A8 | Ack [perf info] -> |
| A9 | DLCX [R: ms/sup]-> |
| A10 | <- Ack [perf info] |
---------------------------------------------------------------------
The same call flow for the "BL" package is shown below
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | NTFY[O: bl/hu] -> |
| A2 | <- Ack |
| A3 | RQNT [S: bl/dl, R: bl/hu] -> |
| A4 | <- Ack |
| A5 | <- NTFY [O: bl/hu] |
| A6 | Ack -> |
| A7 | <- DLCX [R: bl/hd] |
| A8 | Ack [perf info] -> |
| A9 | DLCX [R: bl/hd]-> |
| A10 | <- Ack [perf info] |
---------------------------------------------------------------------
Step A1 The originating user goes on-hook resulting in a Notify
from the gateway to indicate that the trunk is being released (reason
indicating normal release)
NTFY 3005 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
X: 45375842
O: ms/rel(0) (or dt/rel(0) or bl/hu)
Foster Informational [Page 35]
^L
RFC 3064 MGCP CAS Packages February 2001
Step A2 The Call Agent Acks the Notify
200 3005 OK
Step A3 The Call Agent sends a request to release the trunk. (For
all but Basic PBX.)
RQNT 4004 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375843
S: ms/rel (or dt/rel)
R: ms/rlc (or dt/rlc)
For the Basic PBX ("BL" package), dial-tone is played
RQNT 4004 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375843
S: bl/dl
R: bl/hu
Step A4 The Gateways acks the request
200 4004 OK
Step A5 The other end releases the call by going on-hook and a
Notify is sent to the Call Agent to indicate that release is
complete.
NTFY 1004 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375843
O: ms/rlc (or dt/rlc)
In the case of Basic PBX, this is:
NTFY 1004 ds/ds1-5/3@gw-o.whatever.net MGCP 1.0
X: 45375843
O: bl/hu
Step A6 The Call Agent returns an Ack
200 1004 OK
Foster Informational [Page 36]
^L
RFC 3064 MGCP CAS Packages February 2001
Step A7 The Call Agent sends a delete connection to the originating
gateway with a request to do a release complete (which results in
sending on-hook to the PBX).
DLCX 4005 ds/ds1-5/3@gw-o.whatever.net MGCP 1.0
X: 45375844
I: 34738A
S: ms/rlc (or dt/rlc)
R: ms/sup (or dt/sup)
Or in the case of Basic PBX ("BL" package):
DLCX 4005 ds/ds1-5/3@gw-o.whatever.net MGCP 1.0
X: 45375844
I: 34738A
R: bl/hd
Step A8 The Gateway Acks and provides performance information.
250 4005 OK
P: PS=1245, OS=62345, PR=0, OR=0, PL=0, JI=0, LA=48
Step A9 The Call Agent sends a DLCX to the terminating gateway.
DLCX 2004 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 0123456789B3
I: 23474FE
R: ms/sup (or dt/sup or bl/hd)
Step A10 The gateway acks with performance information
250 2004 OK
P: PS=1245, OS=62345, PR=0, OR=0, PL=0, JI=0, LA=48
Foster Informational [Page 37]
^L
RFC 3064 MGCP CAS Packages February 2001
5.1.2.2. Termination End Initiates the Release
The following call flow gives an example of the terminating end
releasing a call for all but Basic PBX ("MS" package - "DT" package
is similar).
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | <- NTFY[O: ms/sus] |
| A2 | Ack -> |
| A3 | <- RQNT [S: ms/sus, R: ms/rel ] |
| A4 | Ack -> |
| A5 | RQNT [R: ms/res] -> |
| A6 | <- Ack |
| A7 | NTFY [O: ms/rel] -> |
| A8 | <- Ack |
| A9 | DLCX [S: ms/rel, R: ms/rlc] -> |
| A10 | <- Ack [perf info] |
| A11 | <- Notify [O: ms/rlc] |
| A12 | Ack -> |
| A13 | <- DLCX [S: ms/rlc, R: ms/sup ] |
| A14 | Ack [perf info] -> |
---------------------------------------------------------------------
The following shows the same call flow but for Basic PBX. There is
no equivalent to steps A3-A6 and A11-A12 - so these are not included.
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | <- NTFY[O: bl/hu] |
| A2 | Ack -> |
| A7 | NTFY [O: bl/hu] -> |
| A8 | <- Ack |
| A9 | DLCX [R: bl/hd] -> |
| A10 | <- Ack [perf info] |
| A13 | <- DLCX [bl/hd] |
| A14 | Ack [perf info] -> |
---------------------------------------------------------------------
Step A1 An on-hook is received from the PBX. In the case of all
but the "BL" package, this results in a notify with event "sus" for
suspend.
Foster Informational [Page 38]
^L
RFC 3064 MGCP CAS Packages February 2001
Step A2 The Call Agent returns an acknowledge
The Call Agent starts a timer at this point (typically 10
seconds). If an off-hook is received from the PBX connected to
GW-t before the origination side releases, the call is continued
(this would appear as a "res" event or "hd" in the case of Basic
PBX interface). If the origination side goes on-hook or the
timer expires, then the call is torn down.
Note that for Basic PBX (the "BL" package), steps A3 - A6 are
missing (these steps do not exist for basic PBX).
Step A3 A "sus" signal is sent to the originating side resulting in
a on-hook being sent to the originating PBX.
Step A4 GW-o acks the request.
Step A5 The Call Agent sends a request to see off-hook or resume
("res") events.
Note: this depends on whether the Call Agent wants to do
suspend/resume processing. If not, the Call Agent may simply send
"rel" along with DLCX to both ends.
Step A6 GW-t acks the request.
Step A7 An on-hook is received from the originating PBX resulting
in a notify from GW-o with event "rel" ("hu" for Basic PBX
interface).
Step A8 The Call Agent "acks"
Step A9 A delete connection is sent to the terminating gateway with
signal "rel" which results in on-hook being sent to the terminating
PBX (except for basic PBX - where there is no such signal)
Step A10 GW-t acks the DLCX and provides performance information
Steps A11 and A12 do not exist for the basic PBX case.
Step A11 GW-t returns an "rlc" event
Step A12 The Call Agent "acks" the notify
Step A13 A delete connection is sent to the originating side (with
signal "rlc" except in the case of the "BL" package).
Step A14 GW-o returns an "ack" with performance information.
Foster Informational [Page 39]
^L
RFC 3064 MGCP CAS Packages February 2001
5.2. Example Call Flows - "DO" package
5.2.1. Call Setup Flows
The following describes some PBX to PBX call. The table gives an
overview of the initial part of the call flow with details to follow.
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | NTFY[O: do/rg] -> |
| A2 | <- Ack |
| B1 | <- CRCX [S: do/hd, R: do/rel, M:recvonly, LCO] |
| B2 | Ack[SDP1] -> |
| B3 | CRCX [M:sendrecv, LCO, SDP1] -> |
| B4 | <- Ack [SDP2] |
| B5 | <- MDCX [recvonly,SDP2] |
| B6 | Ack -> |
| C1 | RQNT [S: do/sup, R: do/oc] -> |
| C2 | <- Ack |
| C3 | <- NTFY [O:do/oc(do/sup)]|
| C4 | Ack -> |
| C5 | <- MDCX [M:sendrecv, R: do/rel] |
| C6 | Ack -> |
| C7 | RQNT[R: do/rel] -> |
| C8 | <- Ack |
---------------------------------------------------------------------
Step A1 PBX rings results in a notify to the Call Agent indicating
the start of a call setup:
NTFY 3001 aaln/0@gw-o.whatever.net MGCP 1.0
X: 0123456789AF
O: do/rg
Step A2 The Call Agent sends an Ack:
Step B1 The Call Agent now requests that a receive-only connection
be made.
If the endpoint is running FXO ground-start, the call would also
request detection of disconnect supervision from the PBX (R:
do/rel) and should send an off-hook (S: do/hd) in response to
ringing.
Step B2 The Gateway acks with a connection ID and provides the SDP
information.
Foster Informational [Page 40]
^L
RFC 3064 MGCP CAS Packages February 2001
Step B3 The Call Agent passes this SDP information to the
terminating gateway (GW-t) as part of the connection request.
Step B4 The terminating gateway, responds with an ack and its SDP
information.
Step B5 Call Agent sends a modify connection request with
connection mode receive-only to the origination gateway and includes
the SDP information with the selected profile from the termination
gateway.
Step B6 The Gateway Acks the modify connection request
Step C1 The Call Agent does a setup request to the terminating
gateway The setup request will be the following:
RQNT 4002 aaln/0@gw-t.whatever.net MGCP 1.0
X: 45375841
S: do/sup(addr(5,5,5,1,2,3,4))
R: do/oc
Note that the result of the "sup" signal is the following
sequence on the interface to the PBX:
* off-hook -> PBX
* tip-ground <- PBX (for loop-start this step does not apply)
* digits sent to PBX
Step C2 The gateway responds with an ack:
200 4002 OK
Step C3 When the digits have been completely sent out, the gateway
will notify the fact by indicate that the operation is complete.
NTFY 1001 aaln/0@gw-t.whatever.net MGCP 1.0
X: 45375841
O: do/oc(do/sup)
Step C4 The Call Agent acks the notify
200 1001 OK
Foster Informational [Page 41]
^L
RFC 3064 MGCP CAS Packages February 2001
Step C5 The Call Agent now sends a request to make the connection
full duplex and indicates that the other end has answered the phone.
If the endpoint is running FXO ground-start, the call would also
requests detection of disconnect supervision from the PBX
(R:do/rel)
Step C6 The Gateway acks the request
Step C7 If the endpoint is running FXO ground-start, the Call Agent
sends a notification request to be told when the trunk to be
released (R: do/rel). This step and step C8 are not needed if the
endpoint is running FXO loop-start.
Step C8 The gateway acks the request and the call is now setup.
5.2.2. Call Tear-Down
If the endpoint is running FXO loop-start, the PBX cannot
initiate call release. In this case, call release is always
initiated by the Media Gateway by going onhook. Disconnect
supervision from the PBX is provided only for FXO ground-start.
However, it does not matter whether the origination end or the
termination end initiates the release. The call flows for either
case are the same. Therefore, only the case where the origination
end initiates the release is illustrated in this section.
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | NTFY[O: do/rel] -> |
| A2 | <- Ack |
| A3 | RQNT [S: do/hu, R: do/rlc] -> |
| A4 | <- Ack |
| A5 | <- NTFY [O: do/rlc] |
| A6 | Ack -> |
| A7 | <- DLCX [S: hu, R: rg] |
| A8 | Ack [perf info] -> |
| A9 | DLCX [R: do/rg]-> |
| A10 | <- Ack [perf info] |
---------------------------------------------------------------------
Foster Informational [Page 42]
^L
RFC 3064 MGCP CAS Packages February 2001
Step A1 The originating PBX goes on-hook resulting in a Notify from
the gateway to indicate that the trunk is being released (reason
indicating normal release).
NTFY 3005 aaln/0@gw-o.whatever.net MGCP 1.0
X: 45375842
O: do/rel(0)
Step A2 The Call Agent Acks the Notify
200 3005 OK
Step A3 The Call Agent sends a request to release the trunk.
Step A4 The Gateways acks the request
Step A5 PBX at the terminating end releases the call by releasing
tip-ground and a Notify is then sent to the Call Agent to indicate
that release is complete.
Note that there is no ground signal in case of loop-start.
However, this NTFY message is still generated as soon as hu
signal is applied.
Step A6 The Call Agent returns an Ack
Step A7 The Call Agent sends a delete connection to the originating
gateway with a request to go onhook.
Step A8 The Gateway Acks and provides performance information.
Step A9 The Call Agent sends a DLCX to the terminating gateway.
Step A10 The gateway acks with performance information
Foster Informational [Page 43]
^L
RFC 3064 MGCP CAS Packages February 2001
5.3. Example Call Setup - "MD" Package
The following describes Feature Group D call setup using the "MD"
package. The table gives an overview of the initial part of the call
flow with details to follow.
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | NTFY[O:md/sup] -> |
| A2 | <- Ack |
| A3 | NTFY[O:md/inf(<id>)] -> |
| A4 | <- Ack |
| A5 | NTFY[O:md/inf(<addr>)] -> |
| A6 | <- Ack |
| B1 | <- CRCX [M:recvonly, LCO, R: md/rel] |
| B2 | Ack[SDP1] -> |
| B3 | CRCX [M:sendrecv, LCO, SDP1] -> |
| B4 | <- Ack [SDP2] |
| B5 | <- MDCX [recvonly,SDP2] |
| B6 | Ack -> |
---------------------------------------------------------------------
The assumption is that prior to the initial "notify", the Call Agent
has sent a request to be informed of "sup" and "inf" events using
quarantine handling "Q: loop".
Step A1 Trunk seizure results in a notify to the Call Agent
indicating the start of a call setup:
NTFY 3001 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/sup
Step A2 The Call Agent sends an Ack.
Step A3 Once the digits for the identification field are collected
the gateway notifies the call agent:
NTFY 3002 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/inf(k0,0,0,4,0,8,5,5,5,1,2,3,4,s0)
Step A4 The Call Agent responds with an ack.
Foster Informational [Page 44]
^L
RFC 3064 MGCP CAS Packages February 2001
Step A5 When the digits are collected for the address field,
another notify is sent:
NTFY 3003 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/inf(k0,5,1,2,5,5,5,4,5,6,7,s0)
Step A6 The Call Agent "acks"
Step B1 Create connection - receive only:
CRCX 2002 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
C: A3C47F21456789F1
L: p:10, a:PCMU
M: sendrecv
X: 0123456789B1
R: md/rel
Step B2 The Gateway "acks" the request and provides connection ID
and SDP information.
Step B3 The Call Agent passes this SDP information to the
terminating gateway (GW-t) as part of the connection request.
Step B4 The terminating gateway, responds with an ack and its SDP
information.
Step B5 Call Agent sends a modify connection request with
connection mode receive-only to the origination gateway and includes
the SDP information with the selected profile from the termination
gateway.
Step B6 The Gateway Acks the modify connection request.
Foster Informational [Page 45]
^L
RFC 3064 MGCP CAS Packages February 2001
In the case of EAIN signaling there is some additional information
provided so that this initial part of the call setup looks slightly
different:
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | NTFY[O:md/sup] -> |
| A2 | <- Ack |
| A3 | NTFY[O:md/inf(<ca>)] -> |
| A4 | <- Ack |
| A5 | <- RQNT[S:md/cwk, R:md/inf,md/rel] |
| A6 | <- Ack |
| A7 | NTFY[O:md/inf(<id>)] -> |
| A8 | <- Ack |
| A9 | NTFY[O:md/inf(<addr>)] -> |
| A10 | <- Ack |
| B1 | <- CRCX [M:recvonly, LCO, R: md/rel] |
| B2 | Ack[SDP1] -> |
| B3 | CRCX [M:sendrecv, LCO, SDP1] -> |
| B4 | <- Ack [SDP2] |
| B5 | <- MDCX [recvonly,SDP2] |
| B6 | Ack -> |
---------------------------------------------------------------------
The assumption is that prior to the initial "notify", the Call Agent
has sent a request to be informed of "sup" and "inf" events using
quarantine handling "Q: loop".
Step A1 Trunk seizure results in a notify to the Call Agent
indicating the start of a call setup:
NTFY 3001 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/sup
Step A2 The Call Agent sends an Ack
Step A3 The initial digit string contains the country address
field:
NTFY 3002 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/inf(k0,1,3,8,9,9,0,0,1,9,s0)
Step A4 The Call Agent responds with an ack
Foster Informational [Page 46]
^L
RFC 3064 MGCP CAS Packages February 2001
Step A5 The Call Agent does processing on the country address field
and sends a request to initiate further input (sends a continue
wink):
RQNT 2002 ds/*@mgw45.whatever.net MGCP 1.0
X: 0123456789B1
Q: loop
R: md/inf,md/rel
S: md/cwk
Step A6 The Gateway "acks" the request.
Step A7 Once the digits for the identification field are collected
the gateway notifies the call agent:
NTFY 3003 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/inf(k0,0,0,4,0,8,5,5,5,1,2,3,4,s0)
Step A8 The Call Agent responds with an ack
Step A9 When the digits are collected for the address field,
another notify is sent:
NTFY 3004 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/inf(k0,5,1,2,5,5,5,4,5,6,7,s0)
Step A10 The Call Agent "acks"
Step B1 Create connection - receive only:
CRCX 2002 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
C: A3C47F21456789F1
L: p:10, a:PCMU
M: sendrecv
X: 0123456789B1
R: md/rel
Step B2 The Gateway "acks" the request and provides connection ID
and SDP information
Step B3 The Call Agent passes this SDP information to the
terminating gateway (GW-t) as part of the connection request.
Step B4 The terminating gateway, responds with an ack and its SDP
information
Foster Informational [Page 47]
^L
RFC 3064 MGCP CAS Packages February 2001
Step B5 Call Agent sends a modify connection request with
connection mode receive-only to the origination gateway and includes
the SDP information with the selected profile from the termination
gateway.
Step B6 The Gateway Acks the modify connection request
The following table shows the remainder of the call flow to set up
the call for FGD EANA.
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| C1 | RQNT [S:sup, R:md/swk,md/oc, md/rel,md/awk, md/ans] ->|
| C2 | <- Ack |
| C3 | <- NTFY [O:md/swk)] |
| C4 | Ack -> |
| C5 | <- NTFY [O:md/oc(md/sup)]|
| C6 | Ack -> |
| C7 | <- NTFY [O:md/awk)] |
| C8 | Ack -> |
| C9 | <- RQNT[S:md/awk] |
| C10 | Ack -> |
| C11 | <- NTFY [O: md/ans] |
| C12 | Ack -> |
| C13 | <- MDCX [M:sendrecv, S: md/ans, R: md/rel] |
| C14 | Ack -> |
| C15 | RQNT [R: md/sus, md/rel] -> |
| C16 | <- Ack |
---------------------------------------------------------------------
Step C1 The Call Agent does a setup request to the terminating
gateway The setup request for an MF EANA FGD interface will be the
following:
RQNT 2001 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375841
Q: loop
S:
md/sup(ct(nda),addr(k0,5,5,5,5,2,2,1,2,3,4,s0),id(k0,0,5,5,5,1,
2,3,4,s2))
R: md/swk,md/oc,md/rel,md/awk,md/ans
Foster Informational [Page 48]
^L
RFC 3064 MGCP CAS Packages February 2001
Note that the result of the "sup" signal is the following
sequence on the interface to the PBX:
* off-hook -> SCN
* wink <- SCN
* caller ID digits sent to SCN
* address digits sent to SCN
Step C2 The gateway responds with an ack
Step C3 "Notify" the CA that the start of signaling has occurred
(incoming wink start has occurred) i.e.:
NTFY 3000 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/swk
Step C4 The Call Agent "acks".
Step C5 "Notify" that out-pulsing is complete:
NTFY 3001 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/oc(md/sup)
Step C6 The Call Agent "acks".
Step C7 "Notify" that the acknowledgement wink has been received:
NTFY 3002 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/awk
Step C8 The Call Agent "acks".
Step C9 The acknowledge wink is passed to the originating gateway:
RQNT 2001 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375842
S: md/awk
R: md/rel
Step C10 GW-o "acks".
Foster Informational [Page 49]
^L
RFC 3064 MGCP CAS Packages February 2001
Step C11 "Notify" off-hook event (the person at the other end has
answered):
NTFY 3003 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B0
O: md/ans
Step C12 The Call Agent "acks".
Step C13 The Call Agent now sends a request to make the connection
full duplex and indicates that the other end has answered the phone
(S: ans sent)
Step C14 The Gateway acks the request
In the case of FGD EAIN, there is an additional digits string
(country address and/or carrier access code that has to be
included so that step C1 looks like the following in a case where
there is no overlapped sending:
RQNT 2001 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375841
Q: loop
S:md/sup(ct(nta),ca(k0,1,3,8,9,9,0,0,1,0,s0),id(k0,
0,5,5,5,1,2,3,4,s0),addr(ko,0,1,1,3,8,1,2,3,4,7,6,5,s0))
R: md/swk,md/oc,md/rel,md/awk,md/ans
If overlapped sending is done, only the country address and
caller ID digit strings are sent out in step C1:
RQNT 2001 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
X: 45375841
Q: loop
S:md/sup(ct(nta),ca(k0,1,3,8,9,9,0,0,1,0,s0),id(k0,0,
5,5,5,1,2,3,4,s0))
R: md/swk,md/oc,md/rel,md/ans
Then after these digits go out indicated by event "oc(sup)" in
step C5, and as soon as the Call Agent has the address
information, it sends it out using the "inf" signal:
RQNT 2002 ds/ds1-3/6@mgw45.whatever.net MGCP 1.0
X: 0123456789B1
Q: loop
R: md/oc,md/rel,md/awk,md/ans
S: md/inf(ko,0,1,1,3,8,1,2,3,4,7,6,5,s0)
Foster Informational [Page 50]
^L
RFC 3064 MGCP CAS Packages February 2001
The Call Agent will then get a further "md/oc(md/sup)" event when
these digits have gone out.
Step C15 The Call Agent requests to be told of on-hook ("sus")
events
or abnormal release ("rel") events.
Step C16 The gateway "acks" the request.
5.4. Example Call Setup - "MO" Package
The following describes Feature Group D operator services signaling
call setup (911 call) using the "MO" package. The table gives an
overview of the initial part of the call flow with details to follow.
In this case GW-o is a residential gateway using the line package and
GW-t connects to the E911 tandem.
---------------------------------------------------------------------
| Steps | GW-o | CA | GW-t |
|---------------------------------------------------------------------|
| A1 | NTFY[O:hd] -> |
| A2 | <- Ack |
| A3 | <- RQNT S: dl, R: [0-9*#T](D) |
| A4 | Ack -> |
| A5 | NTFY[O: 9,1,1] -> |
| A6 | <- Ack |
| B1 | <- CRCX [M:recvonly, R: hu] |
| B2 | Ack[SDP1] -> |
| B3 | CRCX [M:sendrecv, LCO, SDP1, S: mo/sup] -> |
| B4 | <- Ack [SDP2] |
| B5 | <- NTFY [O: oc(sup)] |
| B6 | Ack -> |
| B5 | <- MDCX [sendrecv,SDP2] |
| B6 | Ack -> |
---------------------------------------------------------------------
Note: the originating side in this case is a line-side gateway.
Step A1 The user goes off-hook:
NTFY 3001 aaln/1@gw-o.whatever.net MGCP 1.0
X: 0123456789AF
O: l/hd
Step A2 The Call Agent sends an Ack:
200 3001 OK
Foster Informational [Page 51]
^L
RFC 3064 MGCP CAS Packages February 2001
Step A3 The Call Agent sends dial-tone and requests that digits be
collected:
RQNT 2001 aaln/1@gw-o.whatever.net MGCP 1.0
X: 0123456789B0
S: l/dl
R: d/[0-9#*T](D), hu
Step A4 The gateway responds with an ack:
200 2001 OK
Step A5 Once the digits are collected the gateway notifies the Call
Agent. In this case, it is a 911 call
NTFY 3002 aaln/1@gw-o.whatever.net MGCP 1.0
X: 0123456789B0
O: d/9,d/1,d/1
Step A6 The Call Agent responds with an ack:
200 3002 OK
Step B1 The Call Agent now requests that a receive-only connection
be made.
CRCX 2002 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
C: A7453949499
L: a:PCMU,s:off,e:on
M: recvonly
X: 0123456789B1
R: l/hu.
Step B2 The Gateway acks with a connection ID and provides the SDP
information:
200 2002 OK
I: 23474FE
v=0
o=- A7453949499 0 IN IP4 128.96.41.1
s=-
c=IN IP4 128.96.41.1
t=0 0
m= audio 3456 RTP/AVP 0
Foster Informational [Page 52]
^L
RFC 3064 MGCP CAS Packages February 2001
Step B3 The Call Agent passes this SDP information to the
terminating gateway (GW-t) as part of the connection request and does
a call setup request at the same time:
CRCX 4001 ds/ds1-5/3@gw-t.whatever.net MGCP 1.0
C: A7453949499
X: 45375840
L: a:PCMU,s:off,e:on
M: sendrecv
Q: loop
R: oc, rel, orbk
S: sup(addr(k0,9,1,1,s2),id(k0,0,8,3,4,5,6,7,8,s0))
v=0
o=- A7453949499 0 IN IP4 128.96.41.1
s=-
c=IN IP4 128.96.41.1
t=0 0
m=audio 3456 RTP/AVP 0
As a result of this request, the following signaling interactions
will occur between GW-t and the Switched Circuit Network (SCN - in
this case, the E911 tandem):
* Off-hook -> SCN
* Wink <- SCN
* k0,9,1,1,s2 -> SCN
* Off-hook <- SCN
* k0,0,8,3,4,5,6,7,8,s0
Note that off-hook from the SCN is part of the protocol (a
request for the caller ID) and does not provide an indication of
whether the operator answered or not.
Step B4 The terminating gateway, responds with an ack and its SDP
information:
200 4001 OK
I: 34738A
v=0
o=- A7453949499 0 IN IP4 47.123.34.33
s=-
c=IN IP4 47.123.34.33
t=0 0
m= audio 3456 RTP/AVP 0
Foster Informational [Page 53]
^L
RFC 3064 MGCP CAS Packages February 2001
Step B5 The Call Agent will get a further notify when outpulsing of
all of the digits is complete.
NTFY 3003 aaln/1@gw-o.whatever.net MGCP 1.0
X: 45375840
O: oc(sup)
Step B6 The Call Agent returns an "ack"
200 3003 OK
Step B7 Call Agent sends a modify connection request with
connection mode receive-only to the origination gateway and includes
the SDP information with the selected profile from the termination
gateway.
MDCX 2003 ds/ds1-3/6@gw-o.whatever.net MGCP 1.0
C: A7453949499
I: 34738A
M: sendrecv
v=0
o=- A7453949499 0 IN IP4 47.123.34.33
s=-
c=IN IP4 47.123.34.33
t=0 0
m= audio 3456 RTP/AVP 0
Step B8 The Gateway Acks the modify connection request
200 2003 OK
The call is now established between the user and the operator.
Acknowledgements
The source for some these packages are Flemming Andreasen, Wai-Tak
Siu - Cisco Systems, and Don Stanwyck - IP Unity. Special thanks to
Joe Clark, Telcordia Technologies for his CAS interface expertise.
Also thanks to all the reviewers for all their comments, including
but not limited to the following people: Charles Eckel, Cisco
Systems; Jerry Kamitses, Sonus Networks.
Foster Informational [Page 54]
^L
RFC 3064 MGCP CAS Packages February 2001
References
[1] Arango, M., Dugan, A., Elliott, I., Huitema, C. and S. Pickett,
"Media Gateway Control Protocol (MGCP) Version 1.0", RFC 2705,
October 1999.
[2] Handley, M. and V. Jacobson, "SDP: Session Description Protocol",
RFC 2327, April 1998.
[3] Bellcore, Compatibility Information for Feature Group D Switched
Access Service, TR-NPL-000258, Issue 1, October 1985.
[4] Bellcore, Interoffice LATA Switching Systems Generic Requirements
(LSSGR): Verification Connections (25-05-0903), TR-TSY-000531,
Issue 2, July 1987.
[5] Bellcore, LSSGR: Signaling for Analog Interfaces, GR-506-CORE,
Issue 1, June 1996.
[6] PacketCableTM PSTN Gateway Call Signaling Protocol Specification,
Pkt-SP-TGCP-I01-991201
Author's Address
Bill Foster
170 West Tasman Dr
San Jose, CA, 95134
Phone: 408-527-8791
EMail: bfoster@cisco.com
Foster Informational [Page 55]
^L
RFC 3064 MGCP CAS Packages February 2001
Full Copyright Statement
Copyright (C) The Internet Society (2001). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Foster Informational [Page 56]
^L
|