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 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501
|
<pre>Internet Engineering Task Force (IETF) S. McGlashan
Request for Comments: 6231 Hewlett-Packard
Category: Standards Track T. Melanchuk
ISSN: 2070-1721 Rainwillow
C. Boulton
NS-Technologies
May 2011
<span class="h1">An Interactive Voice Response (IVR) Control Package</span>
<span class="h1">for the Media Control Channel Framework</span>
Abstract
This document defines a Media Control Channel Framework Package for
Interactive Voice Response (IVR) dialog interaction on media
connections and conferences. The package defines dialog management
request elements for preparing, starting, and terminating dialog
interactions, as well as associated responses and notifications.
Dialog interactions are specified in a dialog language. This package
defines a lightweight IVR dialog language (supporting prompt
playback, runtime controls, Dual-Tone Multi-Frequency (DTMF)
collection, and media recording) and allows other dialog languages to
be used. The package also defines elements for auditing package
capabilities and IVR dialogs.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc6231">http://www.rfc-editor.org/info/rfc6231</a>.
Copyright Notice
Copyright (c) 2011 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
<span class="grey">McGlashan, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-2">2</a>. Conventions and Terminology . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3">3</a>. Control Package Definition . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-3.1">3.1</a>. Control Package Name . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-3.2">3.2</a>. Framework Message Usage . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-3.3">3.3</a>. Common XML Support . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-3.4">3.4</a>. CONTROL Message Body . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-3.5">3.5</a>. REPORT Message Body . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-3.6">3.6</a>. Audit . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-3.7">3.7</a>. Examples . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-4">4</a>. Element Definitions . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-4.1">4.1</a>. <mscivr> . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-4.2">4.2</a>. Dialog Management Elements . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-4.2.1">4.2.1</a>. <dialogprepare> . . . . . . . . . . . . . . . . . . . <a href="#page-18">18</a>
<a href="#section-4.2.2">4.2.2</a>. <dialogstart> . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-4.2.2.1">4.2.2.1</a>. <subscribe> . . . . . . . . . . . . . . . . . . . <a href="#page-24">24</a>
<a href="#section-4.2.2.1.1">4.2.2.1.1</a>. <dtmfsub> . . . . . . . . . . . . . . . . . . <a href="#page-25">25</a>
<a href="#section-4.2.2.2">4.2.2.2</a>. <stream> . . . . . . . . . . . . . . . . . . . . <a href="#page-26">26</a>
<a href="#section-4.2.2.2.1">4.2.2.2.1</a>. <region> . . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#section-4.2.2.2.2">4.2.2.2.2</a>. <priority> . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#section-4.2.3">4.2.3</a>. <dialogterminate> . . . . . . . . . . . . . . . . . . <a href="#page-28">28</a>
<a href="#section-4.2.4">4.2.4</a>. <response> . . . . . . . . . . . . . . . . . . . . . <a href="#page-28">28</a>
<a href="#section-4.2.5">4.2.5</a>. <event> . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-30">30</a>
<a href="#section-4.2.5.1">4.2.5.1</a>. <dialogexit> . . . . . . . . . . . . . . . . . . <a href="#page-30">30</a>
<a href="#section-4.2.5.2">4.2.5.2</a>. <dtmfnotify> . . . . . . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#section-4.2.6">4.2.6</a>. <params> . . . . . . . . . . . . . . . . . . . . . . <a href="#page-33">33</a>
<a href="#section-4.2.6.1">4.2.6.1</a>. <param> . . . . . . . . . . . . . . . . . . . . . <a href="#page-33">33</a>
<span class="grey">McGlashan, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<a href="#section-4.3">4.3</a>. IVR Dialog Elements . . . . . . . . . . . . . . . . . . . <a href="#page-34">34</a>
<a href="#section-4.3.1">4.3.1</a>. <dialog> . . . . . . . . . . . . . . . . . . . . . . <a href="#page-35">35</a>
<a href="#section-4.3.1.1">4.3.1.1</a>. <prompt> . . . . . . . . . . . . . . . . . . . . <a href="#page-38">38</a>
<a href="#section-4.3.1.1.1">4.3.1.1.1</a>. <variable> . . . . . . . . . . . . . . . . . <a href="#page-39">39</a>
<a href="#section-4.3.1.1.1.1">4.3.1.1.1.1</a>. Date Type . . . . . . . . . . . . . . . . <a href="#page-40">40</a>
<a href="#section-4.3.1.1.1.2">4.3.1.1.1.2</a>. Time Type . . . . . . . . . . . . . . . . <a href="#page-41">41</a>
<a href="#section-4.3.1.1.1.3">4.3.1.1.1.3</a>. Digits Type . . . . . . . . . . . . . . . <a href="#page-42">42</a>
<a href="#section-4.3.1.1.2">4.3.1.1.2</a>. <dtmf> . . . . . . . . . . . . . . . . . . . <a href="#page-42">42</a>
<a href="#section-4.3.1.1.3">4.3.1.1.3</a>. <par> . . . . . . . . . . . . . . . . . . . . <a href="#page-43">43</a>
<a href="#section-4.3.1.1.3.1">4.3.1.1.3.1</a>. <seq> . . . . . . . . . . . . . . . . . . <a href="#page-45">45</a>
<a href="#section-4.3.1.2">4.3.1.2</a>. <control> . . . . . . . . . . . . . . . . . . . . <a href="#page-46">46</a>
<a href="#section-4.3.1.3">4.3.1.3</a>. <collect> . . . . . . . . . . . . . . . . . . . . <a href="#page-49">49</a>
<a href="#section-4.3.1.3.1">4.3.1.3.1</a>. <grammar> . . . . . . . . . . . . . . . . . . <a href="#page-52">52</a>
<a href="#section-4.3.1.4">4.3.1.4</a>. <record> . . . . . . . . . . . . . . . . . . . . <a href="#page-53">53</a>
<a href="#section-4.3.1.5">4.3.1.5</a>. <media> . . . . . . . . . . . . . . . . . . . . . <a href="#page-57">57</a>
<a href="#section-4.3.2">4.3.2</a>. Exit Information . . . . . . . . . . . . . . . . . . <a href="#page-59">59</a>
<a href="#section-4.3.2.1">4.3.2.1</a>. <promptinfo> . . . . . . . . . . . . . . . . . . <a href="#page-59">59</a>
<a href="#section-4.3.2.2">4.3.2.2</a>. <controlinfo> . . . . . . . . . . . . . . . . . . <a href="#page-59">59</a>
<a href="#section-4.3.2.2.1">4.3.2.2.1</a>. <controlmatch> . . . . . . . . . . . . . . . <a href="#page-59">59</a>
<a href="#section-4.3.2.3">4.3.2.3</a>. <collectinfo> . . . . . . . . . . . . . . . . . . <a href="#page-60">60</a>
<a href="#section-4.3.2.4">4.3.2.4</a>. <recordinfo> . . . . . . . . . . . . . . . . . . <a href="#page-60">60</a>
<a href="#section-4.3.2.4.1">4.3.2.4.1</a>. <mediainfo> . . . . . . . . . . . . . . . . . <a href="#page-61">61</a>
<a href="#section-4.4">4.4</a>. Audit Elements . . . . . . . . . . . . . . . . . . . . . <a href="#page-61">61</a>
<a href="#section-4.4.1">4.4.1</a>. <audit> . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-61">61</a>
<a href="#section-4.4.2">4.4.2</a>. <auditresponse> . . . . . . . . . . . . . . . . . . . <a href="#page-63">63</a>
<a href="#section-4.4.2.1">4.4.2.1</a>. <codecs> . . . . . . . . . . . . . . . . . . . . <a href="#page-65">65</a>
<a href="#section-4.4.2.1.1">4.4.2.1.1</a>. <codec> . . . . . . . . . . . . . . . . . . . <a href="#page-65">65</a>
<a href="#section-4.4.2.2">4.4.2.2</a>. <capabilities> . . . . . . . . . . . . . . . . . <a href="#page-66">66</a>
<a href="#section-4.4.2.2.1">4.4.2.2.1</a>. <dialoglanguages> . . . . . . . . . . . . . . <a href="#page-68">68</a>
<a href="#section-4.4.2.2.2">4.4.2.2.2</a>. <grammartypes> . . . . . . . . . . . . . . . <a href="#page-68">68</a>
<a href="#section-4.4.2.2.3">4.4.2.2.3</a>. <recordtypes> . . . . . . . . . . . . . . . . <a href="#page-68">68</a>
<a href="#section-4.4.2.2.4">4.4.2.2.4</a>. <prompttypes> . . . . . . . . . . . . . . . . <a href="#page-68">68</a>
<a href="#section-4.4.2.2.5">4.4.2.2.5</a>. <variables> . . . . . . . . . . . . . . . . . <a href="#page-69">69</a>
<a href="#section-4.4.2.2.5.1">4.4.2.2.5.1</a>. <variabletype> . . . . . . . . . . . . . <a href="#page-69">69</a>
<a href="#section-4.4.2.2.6">4.4.2.2.6</a>. <maxpreparedduration> . . . . . . . . . . . . <a href="#page-70">70</a>
<a href="#section-4.4.2.2.7">4.4.2.2.7</a>. <maxrecordduration> . . . . . . . . . . . . . <a href="#page-70">70</a>
<a href="#section-4.4.2.3">4.4.2.3</a>. <dialogs> . . . . . . . . . . . . . . . . . . . . <a href="#page-70">70</a>
<a href="#section-4.4.2.3.1">4.4.2.3.1</a>. <dialogaudit> . . . . . . . . . . . . . . . . <a href="#page-71">71</a>
<a href="#section-4.5">4.5</a>. Response Status Codes . . . . . . . . . . . . . . . . . . <a href="#page-71">71</a>
<a href="#section-4.6">4.6</a>. Type Definitions . . . . . . . . . . . . . . . . . . . . <a href="#page-77">77</a>
<a href="#section-4.6.1">4.6.1</a>. Boolean . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-77">77</a>
<a href="#section-4.6.2">4.6.2</a>. DTMFChar . . . . . . . . . . . . . . . . . . . . . . <a href="#page-77">77</a>
<a href="#section-4.6.3">4.6.3</a>. DTMFString . . . . . . . . . . . . . . . . . . . . . <a href="#page-77">77</a>
<a href="#section-4.6.4">4.6.4</a>. Non-Negative Integer . . . . . . . . . . . . . . . . <a href="#page-77">77</a>
<a href="#section-4.6.5">4.6.5</a>. Positive Integer . . . . . . . . . . . . . . . . . . <a href="#page-77">77</a>
<a href="#section-4.6.6">4.6.6</a>. String . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-78">78</a>
<a href="#section-4.6.7">4.6.7</a>. Time Designation . . . . . . . . . . . . . . . . . . <a href="#page-78">78</a>
<a href="#section-4.6.8">4.6.8</a>. Percentage . . . . . . . . . . . . . . . . . . . . . <a href="#page-78">78</a>
<span class="grey">McGlashan, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<a href="#section-4.6.9">4.6.9</a>. URI . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-78">78</a>
<a href="#section-4.6.10">4.6.10</a>. MIME Media Type . . . . . . . . . . . . . . . . . . . <a href="#page-78">78</a>
<a href="#section-4.6.11">4.6.11</a>. Language Identifier . . . . . . . . . . . . . . . . . <a href="#page-78">78</a>
<a href="#section-4.6.12">4.6.12</a>. DateTime . . . . . . . . . . . . . . . . . . . . . . <a href="#page-79">79</a>
<a href="#section-5">5</a>. Formal Syntax . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-79">79</a>
<a href="#section-6">6</a>. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-105">105</a>
<a href="#section-6.1">6.1</a>. AS-MS Dialog Interaction Examples . . . . . . . . . . . . <a href="#page-105">105</a>
<a href="#section-6.1.1">6.1.1</a>. Starting an IVR Dialog . . . . . . . . . . . . . . . <a href="#page-105">105</a>
<a href="#section-6.1.2">6.1.2</a>. IVR Dialog Fails to Start . . . . . . . . . . . . . . <a href="#page-106">106</a>
<a href="#section-6.1.3">6.1.3</a>. Preparing and Starting an IVR Dialog . . . . . . . . <a href="#page-107">107</a>
<a href="#section-6.1.4">6.1.4</a>. Terminating a Dialog . . . . . . . . . . . . . . . . <a href="#page-108">108</a>
<a href="#section-6.2">6.2</a>. IVR Dialog Examples . . . . . . . . . . . . . . . . . . . <a href="#page-108">108</a>
<a href="#section-6.2.1">6.2.1</a>. Playing Announcements . . . . . . . . . . . . . . . . <a href="#page-109">109</a>
<a href="#section-6.2.2">6.2.2</a>. Prompt and Collect . . . . . . . . . . . . . . . . . <a href="#page-109">109</a>
<a href="#section-6.2.3">6.2.3</a>. Prompt and Record . . . . . . . . . . . . . . . . . . <a href="#page-111">111</a>
<a href="#section-6.2.4">6.2.4</a>. Runtime Controls . . . . . . . . . . . . . . . . . . <a href="#page-112">112</a>
<a href="#section-6.2.5">6.2.5</a>. Subscriptions and Notifications . . . . . . . . . . . <a href="#page-113">113</a>
<a href="#section-6.2.6">6.2.6</a>. Dialog Repetition until DTMF Collection Complete . . <a href="#page-113">113</a>
<a href="#section-6.3">6.3</a>. Other Dialog Languages . . . . . . . . . . . . . . . . . <a href="#page-114">114</a>
<a href="#section-6.4">6.4</a>. Foreign Namespace Attributes and Elements . . . . . . . . <a href="#page-115">115</a>
<a href="#section-7">7</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-116">116</a>
<a href="#section-8">8</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-119">119</a>
<a href="#section-8.1">8.1</a>. Control Package Registration . . . . . . . . . . . . . . <a href="#page-119">119</a>
<a href="#section-8.2">8.2</a>. URN Sub-Namespace Registration . . . . . . . . . . . . . <a href="#page-120">120</a>
<a href="#section-8.3">8.3</a>. XML Schema Registration . . . . . . . . . . . . . . . . . <a href="#page-120">120</a>
8.4. MIME Media Type Registration for
application/msc-ivr+xml . . . . . . . . . . . . . . . . . <a href="#page-120">120</a>
<a href="#section-8.5">8.5</a>. IVR Prompt Variable Type Registration Information . . . . <a href="#page-121">121</a>
<a href="#section-9">9</a>. Using VoiceXML as a Dialog Language . . . . . . . . . . . . . <a href="#page-122">122</a>
<a href="#section-9.1">9.1</a>. Preparing a VoiceXML Dialog . . . . . . . . . . . . . . . <a href="#page-122">122</a>
<a href="#section-9.2">9.2</a>. Starting a VoiceXML Dialog . . . . . . . . . . . . . . . <a href="#page-123">123</a>
<a href="#section-9.2.1">9.2.1</a>. Session Protocol Information . . . . . . . . . . . . <a href="#page-124">124</a>
<a href="#section-9.2.2">9.2.2</a>. Session Media Stream Information . . . . . . . . . . <a href="#page-125">125</a>
<a href="#section-9.2.3">9.2.3</a>. Session Parameter Information . . . . . . . . . . . . <a href="#page-127">127</a>
<a href="#section-9.3">9.3</a>. Terminating a VoiceXML Dialog . . . . . . . . . . . . . . <a href="#page-128">128</a>
<a href="#section-9.4">9.4</a>. Exiting a VoiceXML Dialog . . . . . . . . . . . . . . . . <a href="#page-128">128</a>
<a href="#section-9.5">9.5</a>. Call Transfer . . . . . . . . . . . . . . . . . . . . . . <a href="#page-129">129</a>
<a href="#section-10">10</a>. Contributors . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-130">130</a>
<a href="#section-11">11</a>. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-130">130</a>
<a href="#section-12">12</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-130">130</a>
<a href="#section-12.1">12.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-130">130</a>
<a href="#section-12.2">12.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-132">132</a>
<span class="grey">McGlashan, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Media Control Channel Framework [<a href="./rfc6230" title=""Media Control Channel Framework"">RFC6230</a>] provides a generic
approach for establishment and reporting capabilities of remotely
initiated commands. The Channel Framework -- an equivalent term for
the Media Control Channel Framework -- utilizes many functions
provided by the Session Initiation Protocol (SIP) [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>] for the
rendezvous and establishment of a reliable channel for control
interactions. The Control Framework also introduces the concept of a
Control Package. A Control Package is an explicit usage of the
Control Framework for a particular interaction set. This document
defines a Control Package for Interactive Voice Response (IVR)
dialogs on media connections and conferences. The term 'dialog' in
this document refers to an IVR dialog and is completely unrelated to
the notion of a SIP dialog. The term 'IVR' is used in its inclusive
sense, allowing media other than voice for dialog interaction.
The package defines dialog management request elements for preparing,
starting, and terminating dialog interactions, as well as associated
responses and notifications. Dialog interactions are specified using
a dialog language where the language specifies a well-defined syntax
and semantics for permitted operations (play a prompt, record input
from the user, etc.). This package defines a lightweight IVR dialog
language (supporting prompt playback, runtime controls, DTMF
collection, and media recording) and allows other dialog languages to
be used. These dialog languages are specified inside dialog
management elements for preparing and starting dialog interactions.
The package also defines elements for auditing package capabilities
and IVR dialogs.
This package has been designed to satisfy IVR requirements documented
in "Media Server Control Protocol Requirements" [<a href="./rfc5167" title=""Media Server Control Protocol Requirements"">RFC5167</a>] -- more
specifically, REQ-MCP-28, REQ-MCP-29, and REQ-MCP-30. It achieves
this by building upon two major approaches to IVR dialog design.
These approaches address a wide range of IVR use cases and are used
in many applications that are extensively deployed today.
First, the package is designed to provide the major IVR functionality
of SIP media server languages such as netann [<a href="./rfc4240" title=""Basic Network Media Services with SIP"">RFC4240</a>], Media Server
Control Markup Language (MSCML) [<a href="./rfc5022" title=""Media Server Control Markup Language (MSCML) and Protocol"">RFC5022</a>], and Media Server Markup
Language (MSML) [<a href="./rfc5707" title=""Media Server Markup Language (MSML)"">RFC5707</a>], which themselves build upon more
traditional non-SIP languages ([<a href="#ref-H.248.9" title=""Gateway control protocol: Advanced media server packages"">H.248.9</a>], [<a href="./rfc2897" title=""Proposal for an MGCP Advanced Audio Package"">RFC2897</a>]). A key
differentiator is that this package provides IVR functionality using
the Channel Framework.
Second, its design is aligned with key concepts of the web model as
defined in W3C Voice Browser languages. The key dialog management
mechanism is closely aligned with Call Control XML (CCXML) [<a href="#ref-CCXML10" title=""Voice Browser Call Control: CCXML Version 1.0"">CCXML10</a>].
<span class="grey">McGlashan, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The dialog functionality defined in this package can be largely seen
as a subset of VoiceXML ([<a href="#ref-VXML20" title=""Voice Extensible Markup Language (VoiceXML) Version 2.0"">VXML20</a>], [<a href="#ref-VXML21" title=""Voice Extensible Markup Language (VoiceXML) Version 2.1"">VXML21</a>]): where possible, basic
prompting, DTMF collection, and media recording features are
incorporated, but not any advanced VoiceXML constructs (such as
<form>, its interpretation algorithm, or a dynamic data model). As
W3C develops VoiceXML 3.0 [<a href="#ref-VXML30" title=""Voice Extensible Markup Language (VoiceXML) Version 3.0"">VXML30</a>], we expect to see further
alignment, especially in providing a set of basic independent
primitive elements (such as prompt, collect, record, and runtime
controls) that can be reused in different dialog languages.
By reusing and building upon design patterns from these approaches to
IVR languages, this package is intended to provide a foundation that
is familiar to current IVR developers and sufficient for most IVR
applications, as well as a path to other languages that address more
advanced applications.
This Control Package defines a lightweight IVR dialog language. The
scope of this dialog language is the following IVR functionality:
o playing one or more media resources as a prompt to the user
o runtime controls (including VCR controls like speed and volume)
o collecting DTMF input from the user according to a grammar
o recording user media input
Out of scope for this dialog language are more advanced functions
including ASR (Automatic Speech Recognition), TTS (Text-to-Speech),
fax, automatic prompt recovery ('media fallback'), and media
transformation. Such functionality can be addressed by other dialog
languages (such as VoiceXML) used with this package, extensions to
this package (addition of foreign elements or attributes from another
namespace), or other Control Packages.
The functionality of this package is defined by messages, containing
XML [<a href="#ref-XML" title=""Extensible Markup Language (XML) 1.0 (Third Edition)"">XML</a>] elements, transported using the Media Control Channel
Framework. The XML elements can be divided into three types: dialog
management elements; a dialog element that defines a lightweight IVR
dialog language used with dialog management elements; and finally,
elements for auditing package capabilities as well as dialogs managed
by the package.
Dialog management elements are designed to manage the general
lifecycle of a dialog. Elements are provided for preparing a dialog,
starting the dialog on a conference or connection, and terminating
execution of a dialog. Each of these elements is contained in a
Media Control Channel Framework CONTROL message sent to the media
<span class="grey">McGlashan, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
server. When the appropriate action has been executed, the media
server sends a REPORT message (or a 200 response to the CONTROL
message if it can execute in time) with a response element indicating
whether or not the operation was successful (e.g., if the dialog
cannot be started, then the error is reported in this response).
Once a dialog has been successfully started, the media server can
send further event notifications in a framework CONTROL message.
This package defines two event notifications: a DTMF event indicating
the DTMF activity, and a dialogexit event indicating that the dialog
has exited. If the dialog has executed successfully, the dialogexit
event includes information collected during the dialog. If an error
occurs during execution (e.g., a media resource failed to play, no
recording resource available, etc.), then error information is
reported in the dialogexit event. Once a dialogexit event is sent,
the dialog lifecycle is terminated.
The dialog management elements for preparing and starting a dialog
specify the dialog using a dialog language. A dialog language has
well-defined syntax and semantics for defined dialog operations.
Typically, dialog languages are written in XML where the root element
has a designated XML namespace and, when used as standalone
documents, have an associated MIME media type. For example, VoiceXML
is an XML dialog language with the root element <vxml> with the
designated namespace 'http://www.w3.org/2001/vxml' and standalone
documents are associated with the MIME media type 'application/
voicexml+xml' [<a href="./rfc4267" title=""The W3C Speech Interface Framework Media Types: application/voicexml+xml, application/ssml+xml, application/srgs, application/srgs+xml, application/ ccxml+xml, and application/pls+xml"">RFC4267</a>].
This Control Package defines its own lightweight IVR dialog language.
The language has a root element (<dialog>) with the same designated
namespace as used for other elements defined in this package (see
<a href="#section-8.2">Section 8.2</a>). The root element contains child elements for playing
prompts to the user, specifying runtime controls, collecting DTMF
input from the user, and recording media input from the user. The
child elements can co-occur so as to provide 'play announcement',
'prompt and collect', as well as 'prompt and record' functionality.
The dialog management elements for preparing and starting a dialog
can specify the dialog language either by including inline a fragment
with the root element or by referencing an external dialog document.
The dialog language defined in this package is specified inline.
Other dialog languages, such as VoiceXML, can be used by referencing
an external dialog document.
The document is organized as follows. <a href="#section-3">Section 3</a> describes how this
Control Package fulfills the requirements for a Media Control Channel
Framework Control Package. <a href="#section-4">Section 4</a> describes the syntax and
semantics of defined elements, including dialog management
(<a href="#section-4.2">Section 4.2</a>), the IVR dialog element (<a href="#section-4.3">Section 4.3</a>), and audit
<span class="grey">McGlashan, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
elements (<a href="#section-4.4">Section 4.4</a>). <a href="#section-5">Section 5</a> describes an XML schema for these
elements and provides extensibility by allowing attributes and
elements from other namespaces. <a href="#section-6">Section 6</a> provides examples of
package usage. <a href="#section-7">Section 7</a> describes important security considerations
for use of this Control Package. <a href="#section-8">Section 8</a> provides information on
IANA registration of this Control Package, including its name, XML
namespace, and MIME media type. It also establishes a registry for
prompt variables. Finally, <a href="#section-9">Section 9</a> provides additional information
on using VoiceXML when supported as an external dialog language.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions and Terminology</span>
In this document, <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>] defines the key words "MUST",
"MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",
"RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL". In
addition, <a href="https://www.rfc-editor.org/bcp/bcp15">BCP 15</a> indicates requirement levels for compliant
implementations.
The following additional terms are defined for use in this document:
Dialog: A dialog performs media interaction with a user following
the concept of an IVR (Interactive Voice Response) dialog (this
sense of 'dialog' is completely unrelated to a SIP dialog). A
dialog is specified as inline XML or via a URI reference to an
external dialog document. Traditional IVR dialogs typically
feature capabilities such as playing audio prompts, collecting
DTMF input, and recording audio input from the user. More
inclusive definitions include support for other media types,
runtime controls, synthesized speech, recording and playback of
video, recognition of spoken input, and mixed initiative
conversations.
Application Server: A SIP [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>] application server (AS) hosts
and executes services such as interactive media and conferencing
in an operator's network. An AS influences and impacts the SIP
session, in particular by terminating SIP sessions on a media
server, which is under its control.
Media Server: A media server (MS) processes media streams on behalf
of an AS by offering functionality such as interactive media,
conferencing, and transcoding to the end user. Interactive media
functionality is realized by way of dialogs that are initiated by
the application server.
<span class="grey">McGlashan, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Control Package Definition</span>
This section fulfills the mandatory requirement for information that
MUST be specified during the definition of a Control Framework
Package, as detailed in <a href="./rfc6230#section-7">Section 7 of [RFC6230]</a>.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Control Package Name</span>
The Control Framework requires a Control Package to specify and
register a unique name.
The name of this Control Package is "msc-ivr/1.0" (Media Server
Control - Interactive Voice Response - version 1.0). Its IANA
registration is specified in <a href="#section-8.1">Section 8.1</a>.
Since this is the initial ("1.0") version of the Control Package,
there are no backwards-compatibility issues to address.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Framework Message Usage</span>
The Control Framework requires a Control Package to explicitly detail
the CONTROL messages that can be used as well as provide an
indication of directionality between entities. This will include
which role type is allowed to initiate a request type.
This package specifies Control and response messages in terms of XML
elements defined in <a href="#section-4">Section 4</a>, where the message bodies have the MIME
media type defined in <a href="#section-8.4">Section 8.4</a>. These elements describe requests,
responses, and notifications and all are contained within a root
<mscivr> element (<a href="#section-4.1">Section 4.1</a>).
In this package, the MS operates as a Control Server in receiving
requests from, and sending responses to, the AS (operating as Control
Client). Dialog management requests and responses are defined in
<a href="#section-4.2">Section 4.2</a>. Audit requests and responses are defined in
<a href="#section-4.4">Section 4.4</a>. Dialog management and audit responses are carried in a
framework 200 response or REPORT message bodies. This package's
response codes are defined in <a href="#section-4.5">Section 4.5</a>.
Note that package responses are different from framework response
codes. Framework error response codes (see <a href="./rfc6230#section-7">Section 7 of [RFC6230]</a>)
are used when the request or event notification is invalid; for
example, a request is invalid XML (400), or not understood (500).
The MS also operates as a Control Client in sending event
notification to the AS (Control Server). Event notifications
(<a href="#section-4.2.5">Section 4.2.5</a>) are carried in CONTROL message bodies. The AS MUST
respond with a Control Framework 200 response.
<span class="grey">McGlashan, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Common XML Support</span>
The Control Framework requires a Control Package definition to
specify if the attributes for media dialog or conference references
are required.
This package requires that the XML schema in Section A.1 of [<a href="./rfc6230" title=""Media Control Channel Framework"">RFC6230</a>]
MUST be supported for media dialogs and conferences.
The package uses "connectionid" and "conferenceid" attributes for
various element definitions (<a href="#section-4">Section 4</a>). The XML schema (<a href="#section-5">Section 5</a>)
imports the definitions of these attributes from the framework
schema.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. CONTROL Message Body</span>
The Control Framework requires a Control Package to define the
control body that can be contained within a CONTROL command request
and to indicate the location of detailed syntax definitions and
semantics for the appropriate body types.
When operating as Control Server, the MS receives Control message
bodies with the MIME media type defined in <a href="#section-8.4">Section 8.4</a> and containing
an <mscivr> element (<a href="#section-4.1">Section 4.1</a>) with either a dialog management or
audit request child element.
The following dialog management request elements are carried in
CONTROL message bodies to the MS: <dialogprepare> (<a href="#section-4.2.1">Section 4.2.1</a>),
<dialogstart> (<a href="#section-4.2.2">Section 4.2.2</a>), and <dialogterminate> (<a href="#section-4.2.3">Section 4.2.3</a>)
elements.
The <audit> request element (<a href="#section-4.4.1">Section 4.4.1</a>) is also carried in
CONTROL message bodies.
When operating as Control Client, the MS sends CONTROL messages with
the MIME media type defined in <a href="#section-8.4">Section 8.4</a> and a body containing an
<mscivr> element (<a href="#section-4.1">Section 4.1</a>) with a notification <event> child
element (<a href="#section-4.2.5">Section 4.2.5</a>).
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. REPORT Message Body</span>
The Control Framework requires a Control Package definition to define
the REPORT body that can be contained within a REPORT command
request, or that no report package body is required. This section
indicates the location of detailed syntax definitions and semantics
for the appropriate body types.
<span class="grey">McGlashan, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
When operating as Control Server, the MS sends REPORT bodies with the
MIME media type defined in <a href="#section-8.4">Section 8.4</a> and containing a <mscivr>
element (<a href="#section-4.1">Section 4.1</a>) with a response child element. The response
element for dialog management requests is a <response> element
(<a href="#section-4.2.4">Section 4.2.4</a>). The response element for an audit request is an
<auditresponse> element (<a href="#section-4.4.2">Section 4.4.2</a>).
<span class="h3"><a class="selflink" id="section-3.6" href="#section-3.6">3.6</a>. Audit</span>
The Control Framework encourages Control Packages to specify whether
auditing is available, how it is triggered, as well as the query/
response formats.
This Control Package supports auditing of package capabilities and
dialogs on the MS. An audit request is carried in a CONTROL message
(see <a href="#section-3.4">Section 3.4</a>) and an audit response in a REPORT message (or a 200
response to the CONTROL if it can execute the audit in time) (see
<a href="#section-3.5">Section 3.5</a>).
The syntax and semantics of audit request and response elements are
defined in <a href="#section-4.4">Section 4.4</a>.
<span class="h3"><a class="selflink" id="section-3.7" href="#section-3.7">3.7</a>. Examples</span>
The Control Framework recommends Control Packages to provide a range
of message flows that represent common flows using the package and
this framework document.
This Control Package provides examples of such message flows in
<a href="#section-6">Section 6</a>.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Element Definitions</span>
This section defines the XML elements for this package. The elements
are defined in the XML namespace specified in <a href="#section-8.2">Section 8.2</a>.
The root element is <mscivr> (<a href="#section-4.1">Section 4.1</a>). All other XML elements
(requests, responses, and notification elements) are contained within
it. Child elements describe dialog management (<a href="#section-4.2">Section 4.2</a>) and
audit (<a href="#section-4.4">Section 4.4</a>) functionality. The IVR dialog element (contained
within dialog management elements) is defined in <a href="#section-4.3">Section 4.3</a>.
Response status codes are defined in <a href="#section-4.5">Section 4.5</a> and type definitions
in <a href="#section-4.6">Section 4.6</a>.
Implementation of this Control Package MUST address the Security
Considerations described in <a href="#section-7">Section 7</a>.
<span class="grey">McGlashan, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
Implementation of this Control Package MUST adhere to the syntax and
semantics of XML elements defined in this section and the schema
(<a href="#section-5">Section 5</a>). Since XML schema is unable to support some types of
syntactic constraints (such as attribute and element co-occurrence),
some elements in this package specify additional syntactic
constraints in their textual definition. If there is a difference in
constraints between the XML schema and the textual description of
elements in this section, the textual definition takes priority.
The XML schema supports extensibility by allowing attributes and
elements from other namespaces. Implementations MAY support
additional capabilities by means of attributes and elements from
other (foreign) namespaces. Attributes and elements from foreign
namespaces are not described in this section.
Some elements in this Control Package contain attributes whose value
is a URI. These elements include: <dialogprepare> (<a href="#section-4.2.1">Section 4.2.1</a>),
<dialogstart> (<a href="#section-4.2.2">Section 4.2.2</a>), <media> (<a href="#section-4.3.1.5">Section 4.3.1.5</a>), <grammar>
(<a href="#section-4.3.1.3.1">Section 4.3.1.3.1</a>), and <record> (<a href="#section-4.3.1.4">Section 4.3.1.4</a>). The MS MUST
support both HTTP [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>] and HTTPS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>] protocol schemes for
fetching and uploading resources, and the MS MAY support other
schemes. The implementation SHOULD support storage of authentication
information as part of its configuration, including security
certificates for use with HTTPS. If the implementation wants to
support user authentication, user certifications and passwords can
also be stored as part of its configuration or the implementation can
extend the schema (adding, for example, an http-password attribute in
its own namespace) and then map user authentication information onto
the appropriate headers following the HTTP authentication model
[<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>].
Some elements in this Control Package contain attributes whose value
is descriptive text primarily for diagnostic use. The implementation
can indicate the language used in the descriptive text by means of a
'desclang' attribute ([<a href="./rfc2277" title=""IETF Policy on Character Sets and Languages"">RFC2277</a>], [<a href="./rfc5646" title=""Tags for Identifying Languages"">RFC5646</a>]). The desclang attribute
can appear on the root element as well as selected subordinate
elements (see <a href="#section-4.1">Section 4.1</a>). The desclang attribute value on the root
element applies to all desclang attributes in subordinate elements
unless the subordinate element has an explicit desclang attribute
that overrides it.
Usage examples are provided in <a href="#section-6">Section 6</a>.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. <mscivr></span>
The <mscivr> element has the following attributes (in addition to
standard XML namespace attributes such as xmlns):
<span class="grey">McGlashan, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
version: a string specifying the mscivr package version. The value
is fixed as '1.0' for this version of the package. The attribute
is mandatory.
desclang: specifies the language used in descriptive text attributes
of subordinate elements (unless the subordinate element provides a
desclang attribute that overrides the value for its descriptive
text attributes). The descriptive text attributes on subordinate
elements include: the reason attribute on <response>
(<a href="#section-4.2.4">Section 4.2.4</a>), <dialogexit> (<a href="#section-4.2.5.1">Section 4.2.5.1</a>), and
<auditresponse> (<a href="#section-4.4.2">Section 4.4.2</a>); desc attribute on <variabletype>
and <format> (<a href="#section-4.4.2.2.5.1">Section 4.4.2.2.5.1</a>). A valid value is a language
identifier (<a href="#section-4.6.11">Section 4.6.11</a>). The attribute is optional. The
default value is i-default (<a href="https://www.rfc-editor.org/bcp/bcp47">BCP 47</a> [<a href="./rfc5646" title=""Tags for Identifying Languages"">RFC5646</a>]).
The <mscivr> element has the following defined child elements, only
one of which can occur:
1. dialog management elements defined in <a href="#section-4.2">Section 4.2</a>:
<dialogprepare> prepare a dialog. See <a href="#section-4.2.1">Section 4.2.1</a>.
<dialogstart> start a dialog. See <a href="#section-4.2.2">Section 4.2.2</a>.
<dialogterminate> terminate a dialog. See <a href="#section-4.2.3">Section 4.2.3</a>.
<response> response to a dialog request. See <a href="#section-4.2.4">Section 4.2.4</a>.
<event> dialog or subscription notification. See <a href="#section-4.2.5">Section 4.2.5</a>.
2. audit elements defined in <a href="#section-4.4">Section 4.4</a>:
<audit> audit package capabilities and managed dialogs. See
<a href="#section-4.4.1">Section 4.4.1</a>.
<auditresponse> response to an audit request. See
<a href="#section-4.4.2">Section 4.4.2</a>.
For example, a request to the MS to start an IVR dialog playing a
prompt:
<span class="grey">McGlashan, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="ssd3r3:sds345b">
<dialog>
<prompt>
<media loc="http://www.example.com/welcome.wav"/>
</prompt>
</dialog>
</dialogstart>
</mscivr>
and a response from the MS that the dialog started successfully:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<response status="200" dialogid="d1"/>
</mscivr>
and finally a notification from the MS indicating that the dialog
exited upon completion of playing the prompt:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr"
desclang="en">
<event dialogid="d1">
<dialogexit status="1" reason="successful completion of the dialog">
<promptinfo termmode="completed"/>
</dialogexit>
</event>
</mscivr>
The language of the descriptive text in the reason attribute of
<dialogexit> is explicitly indicated by the desclang attribute of the
<mscivr> root element.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Dialog Management Elements</span>
This section defines the dialog management XML elements for this
Control Package. These elements are divided into requests,
responses, and notifications.
Request elements are sent to the MS to request a specific dialog
operation to be executed. The following request elements are
defined:
<dialogprepare>: prepare a dialog for later execution
<dialogstart>: start a (prepared) dialog on a connection or
conference
<dialogterminate>: terminate a dialog
<span class="grey">McGlashan, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
Responses from the MS describe the status of the requested operation.
Responses are specified in a <response> element (<a href="#section-4.2.4">Section 4.2.4</a>) that
includes a mandatory attribute describing the status in terms of a
numeric code. Response status codes are defined in <a href="#section-4.5">Section 4.5</a>. The
MS MUST respond to a request message with a response message. If the
MS is not able to process the request and carry out the dialog
operation, the request has failed and the MS MUST indicate the class
of failure using an appropriate 4xx response code. Unless an error
response code is specified for a class of error within this section,
implementations follow <a href="#section-4.5">Section 4.5</a> in determining the appropriate
status code for the response.
Notifications are sent from the MS to provide updates on the status
of a dialog or operations defined within the dialog. Notifications
are specified in an <event> element (<a href="#section-4.2.5">Section 4.2.5</a>).
<span class="grey">McGlashan, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
+---------+
| IDLE |
+---------+
| |
| |
<dialogprepare>/| |<dialogstart>/
| |
+---------+ | | +---------+
+-----<--| |<--------+ +------------>| |+------>-+
| +-<----|PREPARING| |STARTING | |
| | | | ----------->| |---->--+ |
| | +---------+ / +---------+ | |
| | | / | | |
| | |/200 response / /200 response| | |
| | | / | | |
| | | / | | |
| | | / | | |
V V v /<dialogstart>/ v | |
| | +---------+ / +---------+ | |
| | | |--------+ +----| | | |
| | |PREPARED |---------+ | | STARTED | | |
| | | | | +--->| | | |
| | | |--------+| <dialogterminate>/| | | |
| | +---------+ || 200 response +---------+ | |
| | || | | |
| | /dialogexit notification|| | | |
| | (timeout) || | | |
| | || | | |
| | || | | |
| | || | | |
| | ||<dialogterminate>/ | | |
| | || 200 response | | |
| | || + |/dialogexit | |
| | || /dialogexit | notification | |
| | || notification | | |
| | || | | |
| | vv | | |
| | /ERROR response +-----------+ | | |
| +---------------------->| |<----------+ /ERROR response| |
+------------------------>|TERMINATED |<---------------------------+ |
<dialogterminate>/ | |<-----------------------------+
410 response +-----------+ <dialogterminate>/410 response
Figure 1: Dialog Lifecycle
The MS implementation MUST adhere to the dialog lifecycle shown in
Figure 1, where each dialog has the following states:
<span class="grey">McGlashan, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
IDLE: the dialog is uninitialized.
PREPARING: the dialog is being prepared. The dialog is assigned a
valid dialog identifier (see below). If an error occurs, the
dialog transitions to the TERMINATED state and the MS MUST send a
response indicating the error. If the dialog is terminated before
preparation is complete, the dialog transitions to the TERMINATED
state and the MS MUST send a 410 response (<a href="#section-4.5">Section 4.5</a>) for the
prepare request.
PREPARED: the dialog has been successfully prepared and the MS MUST
send a 200 response indicating the prepare operation was
successful. If the dialog is terminated, then the MS MUST send a
200 response, the dialog transitions to the TERMINATED state and
the MS MUST send a dialogexit notification event (see
<a href="#section-4.2.5.1">Section 4.2.5.1</a>). If the duration the dialog remains in the
PREPARED state exceeds the maximum preparation duration, the
dialog transitions to the TERMINATED state and the MS MUST send a
dialogexit notification with the appropriate error status code
(see <a href="#section-4.2.5.1">Section 4.2.5.1</a>). A maximum preparation duration of 300s is
RECOMMENDED.
STARTING: the dialog is being started. If the dialog has not
already been prepared, it is first prepared and assigned a valid
dialog identifier (see below). If an error occurs the dialog
transitions to the TERMINATED state and the MS MUST send a
response indicating the error. If the dialog is terminated, the
dialog transitions to the TERMINATED state and the MS MUST send a
410 response (<a href="#section-4.5">Section 4.5</a>) for the start request.
STARTED: the dialog has been successfully started and is now active.
The MS MUST send a 200 response indicating the start operation was
successful. If any dialog events occur that were subscribed to,
the MS MUST send a notifications when the dialog event occurs.
When the dialog exits (due to normal termination, an error, or a
terminate request), the MS MUST send a dialogexit notification
event (see <a href="#section-4.2.5.1">Section 4.2.5.1</a>) and the dialog transitions to the
TERMINATED state.
TERMINATED: the dialog is terminated and its dialog identifier is no
longer valid. Dialog notifications MUST NOT be sent for this
dialog.
Each dialog has a valid identifier until it transitions to a
TERMINATED state. The dialog identifier is assigned by the MS unless
the <dialogprepare> or <dialogstart> request already specifies a
<span class="grey">McGlashan, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
identifier (dialogid) that is not associated with any other dialog on
the MS. Once a dialog is in a TERMINATED state, its dialog
identifier is no longer valid and can be reused for another dialog.
The identifier is used to reference the dialog in subsequent
requests, responses, and notifications. In a <dialogstart> request,
the dialog identifier can be specified in the prepareddialogid
attribute indicating the prepared dialog to start. In
<dialogterminate> and <audit> requests, the dialog identifier is
specified in the dialogid attribute, indicating which dialog is to be
terminated or audited, respectively. If these requests specify a
dialog identifier already associated with another dialog on the MS,
the MS sends a response with a 405 status code (see <a href="#section-4.5">Section 4.5</a>) and
the same dialogid as in the request. The MS MUST specify a dialog
identifier in notifications associated with the dialog. The MS MUST
specify a dialog identifier in responses unless it is a response to a
syntactically invalid request.
For a given dialog, the <dialogprepare> or <dialogstart> request
elements specify the dialog content to execute either by including
inline a <dialog> element (the dialog language defined in this
package; see <a href="#section-4.3">Section 4.3</a>) or by referencing an external dialog
document (a dialog language defined outside this package). When
referencing an external dialog document, the request element contains
a URI reference to the remote document (specifying the dialog
definition) and, optionally, a type attribute indicating the MIME
media type associated with the dialog document. Consequently, the
dialog language associated with a dialog on the MS is identified
either inline by a <dialog> child element or by a src attribute
referencing a document containing the dialog language. The MS MUST
support inline the IVR dialog language defined in <a href="#section-4.3">Section 4.3</a>. The
MS MAY support other dialog languages by reference.
<span class="h4"><a class="selflink" id="section-4.2.1" href="#section-4.2.1">4.2.1</a>. <dialogprepare></span>
The <dialogprepare> request is sent to the MS to request preparation
of a dialog. Dialog preparation consists of (a) retrieving an
external dialog document and/or external resources referenced within
an inline <dialog> element and (b) validating the dialog document
syntactically and semantically.
A prepared dialog is executed when the MS receives a <dialogstart>
request referencing the prepared dialog identifier (see
<a href="#section-4.2.2">Section 4.2.2</a>).
The <dialogprepare> element has the following attributes:
<span class="grey">McGlashan, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
src: specifies the location of an external dialog document to
prepare. A valid value is a URI (see <a href="#section-4.6.9">Section 4.6.9</a>). The MS MUST
support both HTTP [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>] and HTTPS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>] schemes and the MS
MAY support other schemes. If the URI scheme is unsupported, the
MS sends a <response> with a 420 status code (<a href="#section-4.5">Section 4.5</a>). If
the document cannot be retrieved within the timeout interval, the
MS sends a <response> with a 409 status code. If the document
contains a type of dialog language that the MS does not support,
the MS sends a <response> with a 421 status code. The attribute
is optional. There is no default value.
type: specifies the type of the external dialog document indicated
in the 'src' attribute. A valid value is a MIME media type (see
<a href="#section-4.6.10">Section 4.6.10</a>). If the URI scheme used in the src attribute
defines a mechanism for establishing the authoritative MIME media
type of the media resource, the value returned by that mechanism
takes precedence over this attribute. The attribute is optional.
There is no default value.
maxage: Used to set the max-age value of the 'Cache-Control' header
in conjunction with an external dialog document fetched using
HTTP, as per [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>]. A valid value is a non-negative integer
(see <a href="#section-4.6.4">Section 4.6.4</a>). The attribute is optional. There is no
default value.
maxstale: Used to set the max-stale value of the 'Cache-Control'
header in conjunction with an external dialog document fetched
using HTTP, as per [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>]. A valid value is a non-negative
integer (see <a href="#section-4.6.4">Section 4.6.4</a>). The attribute is optional. There is
no default value.
fetchtimeout: the maximum timeout interval to wait when fetching an
external dialog document. A valid value is a Time Designation
(see <a href="#section-4.6.7">Section 4.6.7</a>). The attribute is optional. The default
value is 30s.
dialogid: string indicating a unique name for the dialog. If a
dialog with the same name already exists on the MS, the MS sends a
<response> with a 405 status code (<a href="#section-4.5">Section 4.5</a>). If this
attribute is not specified, the MS MUST create a unique name for
the dialog (see <a href="#section-4.2">Section 4.2</a> for dialog identifier assignment).
The attribute is optional. There is no default value.
The <dialogprepare> element has the following sequence of child
elements:
<dialog> an IVR dialog (<a href="#section-4.3">Section 4.3</a>) to prepare. The element is
optional.
<span class="grey">McGlashan, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<params>: specifies input parameters (<a href="#section-4.2.6">Section 4.2.6</a>) for dialog
languages defined outside this specification. The element is
optional. If a parameter is not supported by the MS for the
external dialog language, the MS sends a <response> with a 427
status code (<a href="#section-4.5">Section 4.5</a>).
The dialog to prepare can be specified either inline with a <dialog>
child element or externally (for dialog languages defined outside
this specification) using the src attribute. It is a syntax error if
both an inline <dialog> element and a src attribute are specified and
the MS sends a <response> with a 400 status code (see <a href="#section-4.5">Section 4.5</a>).
The type, maxage, maxstale, and fetchtimeout attributes are only
relevant when a dialog is specified as an external document.
For example, a <dialogprepare> request to prepare an inline IVR
dialog with a single prompt:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogprepare>
<dialog>
<prompt>
<media loc="http://www.example.com/welcome.wav"/>
</prompt>
</dialog>
</dialogprepare>
</mscivr>
In this example, a request with a specified dialogid to prepare a
VoiceXML dialog document located externally:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogprepare dialogid="d2" type="application/voicexml+xml"
src="http://www.example.com/mydialog.vxml"
fetchtimeout="15s"/>
</mscivr>
Since MS support for dialog languages other than the IVR dialog
language defined in this package is optional, if the MS does not
support the dialog language, it would send a response with the status
code 421 (<a href="#section-4.5">Section 4.5</a>). Further information on using VoiceXML can be
found in <a href="#section-9">Section 9</a>.
<span class="h4"><a class="selflink" id="section-4.2.2" href="#section-4.2.2">4.2.2</a>. <dialogstart></span>
The <dialogstart> element is sent to the MS to start a dialog. If
the dialog has not been prepared, the dialog is prepared (retrieving
external document and/or external resources referenced within
<dialog> element and the dialog document validated syntactically and
<span class="grey">McGlashan, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
semantically). Media processors (e.g., DTMF and prompt queue) are
activated and associated with the specified connection or conference.
The <dialogstart> element has the following attributes:
src: specifies the location of an external dialog document to start.
A valid value is a URI (see <a href="#section-4.6.9">Section 4.6.9</a>). The MS MUST support
both HTTP [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>] and HTTPS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>] schemes and the MS MAY
support other schemes. If the URI scheme is unsupported, the MS
sends a <response> with a 420 status code (<a href="#section-4.5">Section 4.5</a>). If the
document cannot be retrieved with the timeout interval, the MS
sends a <response> with a 409 status code. If the document
contains a type of dialog language that the MS does not support,
the MS sends a <response> with a 421 status code. The attribute
is optional. There is no default value.
type: specifies the type of the external dialog document indicated
in the 'src' attribute. A valid value is a MIME media type (see
<a href="#section-4.6.10">Section 4.6.10</a>). If the URI scheme used in the src attribute
defines a mechanism for establishing the authoritative MIME media
type of the media resource, the value returned by that mechanism
takes precedence over this attribute. The attribute is optional.
There is no default value.
maxage: Used to set the max-age value of the 'Cache-Control' header
in conjunction with an external dialog document fetched using
HTTP, as per [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>]. A valid value is a non-negative integer
(see <a href="#section-4.6.4">Section 4.6.4</a>). The attribute is optional. There is no
default value.
maxstale: Used to set the max-stale value of the 'Cache-Control'
header in conjunction with an external dialog document fetched
using HTTP, as per [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>]. A valid value is a non-negative
integer (see <a href="#section-4.6.4">Section 4.6.4</a>). The attribute is optional. There is
no default value.
fetchtimeout: the maximum timeout interval to wait when fetching an
external dialog document. A valid value is a Time Designation
(see <a href="#section-4.6.7">Section 4.6.7</a>). The attribute is optional. The default
value is 30s.
dialogid: string indicating a unique name for the dialog. If a
dialog with the same name already exists on the MS, the MS sends a
<response> with a 405 status code (<a href="#section-4.5">Section 4.5</a>). If neither the
dialogid attribute nor the prepareddialogid attribute is
specified, the MS MUST create a unique name for the dialog (see
<a href="#section-4.2">Section 4.2</a> for dialog identifier assignment). The attribute is
optional. There is no default value.
<span class="grey">McGlashan, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
prepareddialogid: string identifying a dialog previously prepared
using a dialogprepare (<a href="#section-4.2.1">Section 4.2.1</a>) request. If neither the
dialogid attribute nor the prepareddialogid attribute is
specified, the MS MUST create a unique name for the dialog (see
<a href="#section-4.2">Section 4.2</a> for dialog identifier assignment). The attribute is
optional. There is no default value.
connectionid: string identifying the SIP dialog connection on which
this dialog is to be started (see <a href="./rfc6230#appendix-A.1">Appendix A.1 of [RFC6230]</a>). The
attribute is optional. There is no default value.
conferenceid: string identifying the conference on which this dialog
is to be started (see <a href="./rfc6230#appendix-A.1">Appendix A.1 of [RFC6230]</a>). The attribute
is optional. There is no default value.
Exactly one of the connectionid or conferenceid attributes MUST be
specified. If both the connectionid and conferenceid attributes are
specified or neither is specified, it is a syntax error and the MS
sends a <response> with a 400 status code (<a href="#section-4.5">Section 4.5</a>).
It is an error if the connection or conference referenced by a
specific connectionid or conferenceid attribute is not available on
the MS at the time the <dialogstart> request is executed. If an
invalid connectionid is specified, the MS sends a <response> with a
407 status code (<a href="#section-4.5">Section 4.5</a>). If an invalid conferenceid is
specified, the MS sends a <response> with a 408 status code.
The <dialogstart> element has the following sequence of child
elements:
<dialog>: specifies an IVR dialog (<a href="#section-4.3">Section 4.3</a>) to execute. The
element is optional.
<subscribe>: specifies subscriptions to dialog events
(<a href="#section-4.2.2.1">Section 4.2.2.1</a>). The element is optional.
<params>: specifies input parameters (<a href="#section-4.2.6">Section 4.2.6</a>) for dialog
languages defined outside this specification. The element is
optional. If a parameter is not supported by the MS for the
external dialog language, the MS sends a <response> with a 427
status code (<a href="#section-4.5">Section 4.5</a>).
<stream>: determines the media stream(s) associated with the
connection or conference on which the dialog is executed
(<a href="#section-4.2.2.2">Section 4.2.2.2</a>). The <stream> element is optional. Multiple
<stream> elements can be specified.
<span class="grey">McGlashan, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The dialog to start can be specified either (a) inline with a
<dialog> child element, (b) externally using the src attribute (for
dialog languages defined outside this specification), or (c) by
referencing a previously prepared dialog using the prepareddialogid
attribute. If exactly one of the src attribute, the
prepareddialogid, or a <dialog> child element is not specified, it is
a syntax error and the MS sends a <response> with a 400 status code
(<a href="#section-4.5">Section 4.5</a>). If the prepareddialogid and dialogid attributes are
specified, it is also a syntax error and the MS sends a <response>
with a 400 status code. The type, maxage, maxstale, and fetchtimeout
attributes are only relevant when a dialog is specified as an
external document.
The <stream> element provides explicit control over which media
streams on the connection or conference are used during dialog
execution. For example, if a connection supports both audio and
video streams, a <stream> element could be used to indicate that only
the audio stream is used in receive mode. In cases where there are
multiple media streams of the same type for a dialog, the AS MUST use
<stream> elements to explicitly specify the configuration. If no
<stream> elements are specified, then the default media configuration
is that defined for the connection or conference.
If a <stream> element is in conflict (a) with another <stream>
element, (b) with specified connection or conference media
capabilities, or (c) with a Session Description Protocol (SDP) label
value as part of the connectionid (see <a href="./rfc6230#appendix-A.1">Appendix A.1 of [RFC6230]</a>),
then the MS sends a <response> with a 411 status code (<a href="#section-4.5">Section 4.5</a>).
If the media stream configuration is not supported by the MS, then
the MS sends a <response> with a 428 status code (<a href="#section-4.5">Section 4.5</a>).
The MS MAY support multiple, simultaneous dialogs being started on
the same connection or conference. For example, the same connection
can receive different media streams (e.g., audio and video) from
different dialogs, or receive (and implicitly mix where appropriate)
the same type of media streams from different dialogs. If the MS
does not support starting another dialog on the same connection or
conference, it sends a <response> with a 432 status code
(<a href="#section-4.5">Section 4.5</a>) when it receives the second (or subsequent) dialog
request.
For example, a request to start an ivr dialog on a connection
subscribing to DTMF notifications:
<span class="grey">McGlashan, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="connection1">
<dialog>
<prompt>
<media loc="http://www.example.com/getpin.wav"/>
</prompt>
<collect maxdigits="2"/>
</dialog>
<subscribe>
<dtmfsub matchmode="all"/>
</subscribe>
</dialogstart>
</mscivr>
In this example, the dialog is started on a conference where the
conference only receives an audio media stream from the dialog:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart conferenceid="conference1">
<dialog>
<record maxtime="384000s"/>
</dialog>
<stream media="audio" direction="recvonly"/>
</dialogstart>
</mscivr>
<span class="h5"><a class="selflink" id="section-4.2.2.1" href="#section-4.2.2.1">4.2.2.1</a>. <subscribe></span>
The <subscribe> element allows the AS to subscribe to, and be
notified of, specific events that occur during execution of the
dialog. Notifications of dialog events are delivered using the
<event> element (see <a href="#section-4.2.5">Section 4.2.5</a>).
The <subscribe> element has no attributes.
The <subscribe> element has the following sequence of child elements
(0 or more occurrences):
<dtmfsub>: Subscription to DTMF input during the dialog
(<a href="#section-4.2.2.1.1">Section 4.2.2.1.1</a>). The element is optional.
If a request has a <subscribe> with no child elements, the MS treats
the request as if no <subscribe> element were specified.
The MS MUST support <dtmfsub> subscription for the IVR dialog
language defined in this specification (<a href="#section-4.3">Section 4.3</a>). It MAY support
other dialog subscriptions (specified using attributes and child
elements from a foreign namespace). If the MS does not support a
<span class="grey">McGlashan, et al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
subscription specified in a foreign namespace, the MS sends a
response with a 431 status code (see <a href="#section-4.5">Section 4.5</a>).
<span class="h6"><a class="selflink" id="section-4.2.2.1.1" href="#section-4.2.2.1.1">4.2.2.1.1</a>. <dtmfsub></span>
The <dtmfsub> element has the following attributes:
matchmode: controls which DTMF input is subscribed to. Valid values
are "all" - notify all DTMF key presses received during the
dialog; "collect" - notify only DTMF input matched by the collect
operation (<a href="#section-4.3.1.3">Section 4.3.1.3</a>); and "control" - notify only DTMF
input matched by the runtime control operation (<a href="#section-4.3.1.2">Section 4.3.1.2</a>).
The attribute is optional. The default value is "all".
The <dtmfsub> element has no child elements.
DTMF notifications are delivered in the <dtmfnotify> element
(<a href="#section-4.2.5.2">Section 4.2.5.2</a>).
For example, the AS wishes to subscribe to DTMF key press matching a
runtime control:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart dialogid="d3" connectionid="connection1">
<dialog>
<prompt>
<media loc="http://www.example.com/getpin.wav"/>
</prompt>
<control ffkey="2" rwkey="3"/>
</dialog>
<subscribe>
<dtmfsub matchmode="control"/>
</subscribe>
</dialogstart>
</mscivr>
Each time a '2' or '3' DTMF input is received, the MS sends a
notification event:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="d3">
<dtmfnotify matchmode="collect" dtmf="2"
timestamp="2008-05-12T12:13:14Z"/>
</event>
</mscivr>
<span class="grey">McGlashan, et al. Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h5"><a class="selflink" id="section-4.2.2.2" href="#section-4.2.2.2">4.2.2.2</a>. <stream></span>
The <stream> element has the following attributes:
media: a string indicating the type of media associated with the
stream. A valid value is a MIME type-name as defined in <a href="./rfc4288#section-4.2">Section</a>
<a href="./rfc4288#section-4.2">4.2 of [RFC4288]</a>. The following values MUST be used for common
types of media: "audio" for audio media, and "video" for video
media. See [<a href="#ref-IANA" title=""RTP Payload Types"">IANA</a>] for registered MIME type names. The attribute
is mandatory.
label: a string indicating the SDP label associated with a media
stream [<a href="./rfc4574" title=""The Session Description Protocol (SDP) Label Attribute"">RFC4574</a>]. The attribute is optional.
direction: a string indicating the direction of the media flow
relative to the endpoint conference or connection. Defined values
are "sendrecv" (the endpoint can send media to, and receive media
from, the dialog), "sendonly" (the endpoint can only send media to
the dialog), "recvonly" (the endpoint can only receive media from
the dialog), and "inactive" (stream is not to be used). The
default value is "sendrecv". The attribute is optional.
The <stream> element has the following sequence of child elements:
<region>: an element to specify the area within a mixer video layout
where a media stream is displayed (<a href="#section-4.2.2.2.1">Section 4.2.2.2.1</a>). The
element is optional.
<priority>: an element to configure priority associated with the
stream in the conference mix (<a href="#section-4.2.2.2.2">Section 4.2.2.2.2</a>). The element is
optional.
If conferenceid is not specified or if the "media" attribute does not
have the value of "video", then the MS ignores the <region> and
<priority> elements.
For example, assume a User Agent connection with multiple audio and
video streams associated with the user and a separate web camera. In
this case, the dialog could be started to record only the audio and
video streams associated with the user:
<span class="grey">McGlashan, et al. Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="connection1">
<dialog>
<record maxtime="384000s"/>
</dialog>
<stream media="audio" label="camaudio" direction="inactive"/>
<stream media="video" label="camvideo" direction="inactive"/>
<stream media="audio" label="useraudio" direction="sendonly"/>
<stream media="video" label="uservideo" direction="sendonly"/>
</dialogstart>
</mscivr>
Using the <region> element, the dialog can be started on a conference
mixer so that the video output from the dialog is directed to a
specific area within a video layout. For example:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart conferenceid="conference1">
<dialog>
<prompt>
<media loc="http://www.example.com/presentation.3gp"/>
</prompt>
</dialog>
<stream media="video" direction="recvonly">
<region>1</region>
</stream>
</dialogstart>
</mscivr>
<span class="h6"><a class="selflink" id="section-4.2.2.2.1" href="#section-4.2.2.2.1">4.2.2.2.1</a>. <region></span>
The <region> element is used to specify a named area within a
presentation layout where a video media stream is displayed. The MS
could, for example, play video media into an area of a video layout
where the layout and its named regions are specified using the Mixer
Control Package [<a href="#ref-MIXER-CP">MIXER-CP</a>].
The <region> element has no attributes and its content model
specifies the name of the region.
If the region name is invalid, then the MS reports a 416 status code
(<a href="#section-4.5">Section 4.5</a>) in the response to the request element containing the
<region> element.
<span class="h6"><a class="selflink" id="section-4.2.2.2.2" href="#section-4.2.2.2.2">4.2.2.2.2</a>. <priority></span>
The <priority> element is used to explicitly specify the priority of
the dialog for presentation in a conference mix.
<span class="grey">McGlashan, et al. Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The <priority> element has no attributes and its content model
specifies a positive integer (see <a href="#section-4.6.5">Section 4.6.5</a>). The lower the
value, the higher the priority.
<span class="h4"><a class="selflink" id="section-4.2.3" href="#section-4.2.3">4.2.3</a>. <dialogterminate></span>
A dialog can be terminated by sending a <dialogterminate> request
element to the MS.
The <dialogterminate> element has the following attributes:
dialogid: string identifying the dialog to terminate. If the
specified dialog identifier is invalid, the MS sends a response
with a 405 status code (<a href="#section-4.5">Section 4.5</a>). The attribute is mandatory.
immediate: indicates whether or not a dialog in the STARTED state is
to be terminated immediately (in other states, termination is
always immediate). A valid value is a boolean (see
<a href="#section-4.6.1">Section 4.6.1</a>). A value of true indicates that the dialog is
terminated immediately and the MS MUST send a dialogexit
notification (<a href="#section-4.2.5.1">Section 4.2.5.1</a>) without report information. A
value of false indicates that the dialog terminates after the
current iteration and the MS MUST send a dialogexit notification
with report information. The attribute is optional. The default
value is false.
The MS MUST reply to the <dialogterminate> request with a <response>
element (<a href="#section-4.2.4">Section 4.2.4</a>), reporting whether or not the dialog was
terminated successfully.
For example, immediately terminating a STARTED dialog with dialogid
"d4":
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogterminate dialogid="d4" immediate="true"/>
</mscivr>
If the dialog is terminated successfully, then the response to the
dialogterminate request would be:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<response status="200" dialogid="d4"/>
</mscivr>
<span class="h4"><a class="selflink" id="section-4.2.4" href="#section-4.2.4">4.2.4</a>. <response></span>
Responses to dialog management requests are specified with a
<response> element.
<span class="grey">McGlashan, et al. Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The <response> element has following attributes:
status: numeric code indicating the response status. Valid values
are defined in <a href="#section-4.5">Section 4.5</a>. The attribute is mandatory.
reason: string specifying a reason for the response status. The
attribute is optional. There is no default value.
desclang: specifies the language used in the value of the reason
attribute. A valid value is a language identifier
(<a href="#section-4.6.11">Section 4.6.11</a>). The attribute is optional. If not specified,
the value of the desclang attribute on <mscivr> (<a href="#section-4.1">Section 4.1</a>)
applies.
dialogid: string identifying the dialog. If the request specifies a
dialogid, then that value is used. Otherwise, with
<dialogprepare> and <dialogstart> requests, the dialogid generated
by the MS is used. If there is no available dialogid because the
request is syntactically invalid (e.g., a <dialogterminate>
request with no dialogid attribute specified), then the value is
the empty string. The attribute is mandatory.
connectionid: string identifying the SIP dialog connection
associated with the dialog (see <a href="./rfc6230#appendix-A.1">Appendix A.1 of [RFC6230]</a>). The
attribute is optional. There is no default value.
conferenceid: string identifying the conference associated with the
dialog (see <a href="./rfc6230#appendix-A.1">Appendix A.1 of [RFC6230]</a>). The attribute is
optional. There is no default value.
For example, a response when a dialog was prepared successfully:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<response status="200" dialogid="d5"/>
</mscivr>
The response if dialog preparation failed due to an unsupported
dialog language:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<response status="421" dialogid="d5"
reason="Unsupported dialog language: application/voicexml+xml"/>
</mscivr>
In this example, a <dialogterminate> request does not specify a
dialogid:
<span class="grey">McGlashan, et al. Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogterminate/>
</mscivr>
The response status indicates a 400 (Syntax error) status code and
the dialogid attribute has an empty string value:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<response status="400" dialogid=" "
reason="Attribute required: dialogid"/>
</mscivr>
<span class="h4"><a class="selflink" id="section-4.2.5" href="#section-4.2.5">4.2.5</a>. <event></span>
When a dialog generates a notification event, the MS sends the event
using an <event> element.
The <event> element has the following attributes:
dialogid: string identifying the dialog that generated the event.
The attribute is mandatory.
The <event> element has the following child elements, only one of
which can occur:
<dialogexit>: indicates that the dialog has exited
(<a href="#section-4.2.5.1">Section 4.2.5.1</a>).
<dtmfnotify>: indicates that a DTMF key press occurred
(<a href="#section-4.2.5.2">Section 4.2.5.2</a>).
<span class="h5"><a class="selflink" id="section-4.2.5.1" href="#section-4.2.5.1">4.2.5.1</a>. <dialogexit></span>
The <dialogexit> event indicates that a prepared or active dialog has
exited because it is complete, it has been terminated, or an error
occurred during execution (for example, a media resource cannot be
played). This event MUST be sent by the MS when the dialog exits.
The <dialogexit> element has the following attributes:
status: a status code indicating the status of the dialog when it
exits. A valid value is a non-negative integer (see
<a href="#section-4.6.4">Section 4.6.4</a>). The MS MUST support the following values:
0 indicates the dialog has been terminated by a <dialogterminate>
request.
1 indicates successful completion of the dialog.
<span class="grey">McGlashan, et al. Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
2 indicates the dialog terminated because the connection or
conference associated with the dialog has terminated.
3 indicates the dialog terminated due to exceeding its maximum
duration.
4 indicates the dialog terminated due to an execution error.
All other valid but undefined values are reserved for future use,
where new status codes are assigned using the Standards Action
process defined in [<a href="./rfc5226" title="">RFC5226</a>]. The AS MUST treat any status code
it does not recognize as being equivalent to 4 (dialog execution
error). The attribute is mandatory.
reason: a textual description that the MS SHOULD use to provide a
reason for the status code, e.g., details about an error. A valid
value is a string (see <a href="#section-4.6.6">Section 4.6.6</a>). The attribute is optional.
There is no default value.
desclang: specifies the language used in the value of the reason
attribute. A valid value is a language identifier
(<a href="#section-4.6.11">Section 4.6.11</a>). The attribute is optional. If not specified,
the value of the desclang attribute on <mscivr> (<a href="#section-4.1">Section 4.1</a>)
applies.
The <dialogexit> element has the following sequence of child
elements:
<promptinfo>: report information (<a href="#section-4.3.2.1">Section 4.3.2.1</a>) about the prompt
execution in an IVR <dialog>. The element is optional.
<controlinfo>: reports information (<a href="#section-4.3.2.2">Section 4.3.2.2</a>) about the
control execution in an IVR <dialog>. The element is optional.
<collectinfo>: reports information (<a href="#section-4.3.2.3">Section 4.3.2.3</a>) about the
collect execution in an IVR <dialog>. The element is optional.
<recordinfo>: reports information (<a href="#section-4.3.2.4">Section 4.3.2.4</a>) about the record
execution in an IVR <dialog>. The element is optional.
<params>: reports exit parameters (<a href="#section-4.2.6">Section 4.2.6</a>) for a dialog
language defined outside this specification. The element is
optional.
For example, when an active <dialog> exits normally, the MS sends a
dialogexit <event> reporting information:
<span class="grey">McGlashan, et al. Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="d6">
<dialogexit status="1">
<collectinfo dtmf="1234" termmode="match"/>
</dialogexit>
</event>
</mscivr>
<span class="h5"><a class="selflink" id="section-4.2.5.2" href="#section-4.2.5.2">4.2.5.2</a>. <dtmfnotify></span>
The <dtmfnotify> element provides a notification of DTMF input
received during the active dialog as requested by a <dtmfsub>
subscription (<a href="#section-4.2.2.1">Section 4.2.2.1</a>).
The <dtmfnotify> element has the following attributes:
matchmode: indicates the matching mode specified in the subscription
request. Valid values are as follows:
"all" - all DTMF key presses notified individually;
"collect" - only DTMF input matched by the collect operation
notified; and
"control" - only DTMF input matched by the control operation
notified.
The attribute is optional. The default value is "all".
dtmf: DTMF key presses received according to the matchmode. A valid
value is a DTMF string (see <a href="#section-4.6.3">Section 4.6.3</a>) with no space between
characters. The attribute is mandatory.
timestamp: indicates the time (on the MS) at which the last key
press occurred according to the matchmode. A valid value is a
dateTime expression (<a href="#section-4.6.12">Section 4.6.12</a>). The attribute is mandatory.
For example, a notification of DTMF input matched during the collect
operation:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="d3">
<dtmfnotify matchmode="collect" dtmf="3123"
timestamp="2008-05-12T12:13:14Z"/>
</event>
</mscivr>
<span class="grey">McGlashan, et al. Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h4"><a class="selflink" id="section-4.2.6" href="#section-4.2.6">4.2.6</a>. <params></span>
The <params> element is a container for <param> elements
(<a href="#section-4.2.6.1">Section 4.2.6.1</a>).
The <params> element has no attributes, but the following child
elements are defined (0 or more):
<param>: specifies a parameter name and value (<a href="#section-4.2.6.1">Section 4.2.6.1</a>).
For example, usage with a dialog language defined outside this
specification to send additional parameters into the dialog:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart type="application/x-dialog"
src="nfs://nas01/dialog4" connectionid="c1">
<params>
<param name="mode">playannouncement</param>
<param name="prompt1">nfs://nas01/media1.3gp</param>
<param name="prompt2">nfs://nas01/media2.3gp</param>
</params>
</dialogstart>
</mscivr>
<span class="h5"><a class="selflink" id="section-4.2.6.1" href="#section-4.2.6.1">4.2.6.1</a>. <param></span>
The <param> element describes a parameter name and value.
The <param> element has the following attributes:
name: a string indicating the name of the parameter. The attribute
is mandatory.
type: specifies a type indicating how the inline value of the
parameter is to be interpreted. A valid value is a MIME media
type (see <a href="#section-4.6.10">Section 4.6.10</a>). The attribute is optional. The
default value is "text/plain".
encoding: specifies a content-transfer-encoding schema applied to
the inline value of the parameter on top of the MIME media type
specified with the type attribute. A valid value is a content-
transfer-encoding schema as defined by the "mechanism" token in
<a href="./rfc2045#section-6.1">Section 6.1 of [RFC2045]</a>. The attribute is optional. There is no
default value.
The <param> element content model is the value of the parameter.
Note that a value that contains XML characters (e.g., "<") needs to
be escaped following standard XML conventions.
<span class="grey">McGlashan, et al. Standards Track [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
For example, usage with a dialog language defined outside this
specification to receive parameters from the dialog when it exits:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="d6">
<dialogexit status="1">
<params>
<param name="mode">recording</param>
<param name="recording1" type="audio/x-wav" encoding="base64">
<![CDATA[
R0lGODlhZABqALMAAFrMYr/BvlKOVJKOg2xZUKmenMfDw8tgWJpV
]]>
</param>
</params>
</dialogexit>
</event>
</mscivr>
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. IVR Dialog Elements</span>
This section describes the IVR dialog language defined as part of
this specification. The MS MUST support this dialog language.
The <dialog> element is an execution container for operations of
playing prompts (<a href="#section-4.3.1.1">Section 4.3.1.1</a>), runtime controls
(<a href="#section-4.3.1.2">Section 4.3.1.2</a>), collecting DTMF (<a href="#section-4.3.1.3">Section 4.3.1.3</a>), and recording
user input (<a href="#section-4.3.1.4">Section 4.3.1.4</a>). Results of the dialog execution
(<a href="#section-4.3.2">Section 4.3.2</a>) are reported in a dialogexit notification event.
Using these elements, three common dialog models are supported:
playannouncements: only a <prompt> element is specified in the
container. The prompt media resources are played in sequence.
promptandcollect: a <collect> element is specified and, optionally,
a <prompt> element. If a <prompt> element is specified and
bargein is enabled, playing of the prompt is terminated when
bargein occurs, and DTMF collection is initiated; otherwise, the
prompt is played to completion before DTMF collection is
initiated. If no prompt element is specified, DTMF collection is
initiated immediately.
promptandrecord: a <record> element is specified and, optionally, a
<prompt> element. If a <prompt> element is specified and bargein
is enabled, playing of the prompt is terminated when bargein
occurs, and recording is initiated; otherwise, the prompt is
played to completion before recording is initiated. If no prompt
element is specified, recording is initiated immediately.
<span class="grey">McGlashan, et al. Standards Track [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
In addition, this dialog language supports runtime ('VCR') controls
enabling a user to control prompt playback using DTMF.
Each of the core elements -- <prompt>, <control>, <collect>, and
<record> -- are specified so that their execution and reporting is
largely self-contained. This facilitates their reuse in other dialog
container elements. Note that DTMF and bargein behavior affects
multiple elements and is addressed in the relevant element
definitions.
Execution results are reported in the <dialogexit> notification event
with child elements defined in <a href="#section-4.3.2">Section 4.3.2</a>. If the dialog
terminated normally (i.e., not due to an error or to a
<dialogterminate> request), then the MS MUST report the results for
the operations specified in the dialog:
<prompt>: <promptinfo> (see <a href="#section-4.3.2.1">Section 4.3.2.1</a>) with at least the
termmode attribute specified.
<control>: <controlinfo> (see <a href="#section-4.3.2.2">Section 4.3.2.2</a>) if any runtime
controls are matched.
<collect>: <collectinfo> (see <a href="#section-4.3.2.3">Section 4.3.2.3</a>) with the dtmf and
termmode attributes specified.
<record>: <recordinfo> (see <a href="#section-4.3.2.4">Section 4.3.2.4</a>) with at least the
termmode attribute and one <mediainfo> element specified.
The media format requirements for IVR dialogs are undefined. This
package is agnostic to the media types and codecs for media resources
and recording that need to be supported by an implementation. For
example, an MS implementation might only support audio and in
particular the 'audio/basic' codec for media playback and recording.
However, when executing a dialog, if an MS encounters a media type or
codec that it cannot process, the MS MUST stop further processing and
report the error using the dialogexit notification.
<span class="h4"><a class="selflink" id="section-4.3.1" href="#section-4.3.1">4.3.1</a>. <dialog></span>
An IVR dialog to play prompts to the user, allow runtime controls,
collect DTMF, or record input. The dialog is specified using a
<dialog> element.
A <dialog> element has the following attributes:
<span class="grey">McGlashan, et al. Standards Track [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
repeatCount: number of times the dialog is to be executed. A valid
value is a non-negative integer (see <a href="#section-4.6.4">Section 4.6.4</a>). A value of 0
indicates that the dialog is repeated until halted by other means.
The attribute is optional. The default value is 1.
repeatDur: maximum duration for dialog execution. A valid value is
a time designation (see <a href="#section-4.6.7">Section 4.6.7</a>). If no value is specified,
then there is no limit on the duration of the dialog. The
attribute is optional. There is no default value.
repeatUntilComplete: indicates whether the MS terminates dialog
execution when an input operation is completed successfully. A
valid value is a boolean (see <a href="#section-4.6.1">Section 4.6.1</a>). A value of true
indicates that dialog execution is terminated when an input
operation associated with its child elements is completed
successfully (see execution model below for precise conditions).
A value of false indicates that dialog execution is terminated by
other means. The attribute is optional. The default value is
false.
The repeatDur attribute takes priority over the repeatCount attribute
in determining maximum duration of the dialog. See 'repeatCount' and
'repeatDur' in the Synchronized Multimedia Integration Language
(SMIL) [<a href="#ref-W3C.REC-SMIL2-20051213">W3C.REC-SMIL2-20051213</a>] for further information. In the
situation where a dialog is repeated more than once, only the results
of operations in the last dialog iteration are reported.
The <dialog> element has the following sequence of child elements (at
least one, any order):
<prompt>: defines media resources to play in sequence (see
<a href="#section-4.3.1.1">Section 4.3.1.1</a>). The element is optional.
<control>: defines how DTMF is used for runtime controls (see
<a href="#section-4.3.1.2">Section 4.3.1.2</a>). The element is optional.
<collect>: defines how DTMF is collected (see <a href="#section-4.3.1.3">Section 4.3.1.3</a>). The
element is optional.
<record>: defines how recording takes place (see <a href="#section-4.3.1.4">Section 4.3.1.4</a>).
The element is optional.
Although the behavior when both <collect> and <record> elements are
specified in a request is not defined in this Control Package, the MS
MAY support this configuration. If the MS does not support this
configuration, the MS sends a <response> with a 433 status code.
<span class="grey">McGlashan, et al. Standards Track [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The MS has the following execution model for the IVR dialog after
initialization (initialization errors are reported by the MS in the
response):
1. If an error occurs during execution, then the MS terminates the
dialog and reports the error in the <dialogexit> event by setting
the status attribute (see <a href="#section-4.3.2">Section 4.3.2</a>). Details about the
error are specified in the reason attribute.
2. The MS initializes a counter to 0.
3. The MS starts a duration timer for the value of the repeatDur
attribute. If the timer expires before the dialog is complete,
then the MS terminates the dialog and sends a dialogexit whose
status attribute is set to 3 (see <a href="#section-4.2.5.1">Section 4.2.5.1</a>). The MS MAY
report information in the dialogexit gathered in the last
execution cycle (if any).
4. The MS initiates a dialog execution cycle. Each cycle executes
the operations associated with the child elements of the dialog.
If a <prompt> element is specified, then execute the element's
prompt playing operation and activate any controls (if the
<control> element is specified). If no <prompt> is specified or
when a specified <prompt> terminates, then start the collect
operation or the record operation if the <collect> or <record>
elements, respectively, are specified. If subscriptions are
specified for the dialog, then the MS sends a notification event
when the specified event occurs. If execution of a child element
results in an error, the MS terminates dialog execution (and
stops other child element operations) and the MS sends a
dialogexit status event, reporting any information gathered.
5. If the dialog execution cycle completes successfully, then the MS
increments the counter by one. The MS terminates dialog
execution if either of the following conditions is true:
* the value of the repeatCount attribute is greater than zero,
and the counter is equal to the value of the repeatCount
attribute.
* the value of the repeatUntilComplete attribute is true and one
of the following conditions is true:
+ <collect> reports termination status of 'match' or
'stopped'.
+ <record> reports termination status of 'stopped', 'dtmf',
'maxtime', or 'finalsilence'.
<span class="grey">McGlashan, et al. Standards Track [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
When the MS terminates dialog execution, it sends a dialogexit
(with a status of 1) reporting operation information collected in
the last dialog execution cycle only. Otherwise, another dialog
execution cycle is initiated.
<span class="h5"><a class="selflink" id="section-4.3.1.1" href="#section-4.3.1.1">4.3.1.1</a>. <prompt></span>
The <prompt> element specifies a sequence of media resources to play
back in document order.
A <prompt> element has the following attributes:
xml:base: A string declaring the base URI from which relative URIs
in child elements are resolved prior to fetching. A valid value
is a URI (see <a href="#section-4.6.9">Section 4.6.9</a>). The attribute is optional. There
is no default value.
bargein: Indicates whether user input stops prompt playback unless
the input is associated with a specified runtime <control>
operation (input matching control operations never interrupts
prompt playback). A valid value is a boolean (see <a href="#section-4.6.1">Section 4.6.1</a>).
A value of true indicates that bargein is permitted and prompt
playback is stopped. A value of false indicates that bargein is
not permitted: user input does not terminate prompt playback. The
attribute is optional. The default value is true.
The <prompt> element has the following child elements (at least one,
any order, multiple occurrences of elements permitted):
<media>: specifies a media resource (see <a href="#section-4.3.1.5">Section 4.3.1.5</a>) to play.
The element is optional.
<variable>: specifies a variable media announcement (see
<a href="#section-4.3.1.1.1">Section 4.3.1.1.1</a>) to play. The element is optional.
<dtmf>: generates one or more DTMF tones (see <a href="#section-4.3.1.1.2">Section 4.3.1.1.2</a>) to
play. The element is optional.
<par>: specifies media resources to play in parallel (see
<a href="#section-4.3.1.1.3">Section 4.3.1.1.3</a>). The element is optional.
If the MS does not support the configuration required for prompt
playback to the output media streams and a more specific error code
is not defined for its child elements, the MS sends a <response> with
a 429 status code (<a href="#section-4.5">Section 4.5</a>). The MS MAY support transcoding
between the media resource format and the output stream format.
<span class="grey">McGlashan, et al. Standards Track [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The MS has the following execution model for prompt playing after
initialization:
1. The MS initiates prompt playback playing its child elements
(<media>, <variable>, <dtmf>, and <par>) one after another in
document order.
2. If any error (including fetching and rendering errors) occurs
during prompt execution, then the MS terminates playback and
reports its error status to the dialog container (see
<a href="#section-4.3">Section 4.3</a>) with a <promptinfo> (see <a href="#section-4.3.2.1">Section 4.3.2.1</a>) where the
termmode attribute is set to stopped and any additional
information is set.
3. If DTMF input is received and the value of the bargein attribute
is true, then the MS terminates prompt playback and reports its
execution status to the dialog container (see <a href="#section-4.3">Section 4.3</a>) with a
<promptinfo> (see <a href="#section-4.3.2.1">Section 4.3.2.1</a>) where the termmode attribute
is set to bargein and any additional information is set.
4. If prompt playback is stopped by the dialog container, then the
MS reports its execution status to the dialog container (see
<a href="#section-4.3">Section 4.3</a>) with a <promptinfo> (see <a href="#section-4.3.2.1">Section 4.3.2.1</a>) where the
termmode attribute is set to stopped and any additional
information is set.
5. If prompt playback completes successfully, then the MS reports
its execution status to the dialog container (see <a href="#section-4.3">Section 4.3</a>)
with a <promptinfo> (see <a href="#section-4.3.2.1">Section 4.3.2.1</a>) where the termmode
attribute is set to completed and any additional information is
set.
<span class="h6"><a class="selflink" id="section-4.3.1.1.1" href="#section-4.3.1.1.1">4.3.1.1.1</a>. <variable></span>
The <variable> element specifies variable announcements using
predefined media resources. Each variable has at least a type (e.g.,
date) and a value (e.g., 2008-02-25). The value is rendered
according to the prompt variable type (e.g., 2008-02-25 is rendered
as the date 25th February 2008). The precise mechanism for
generating variable announcements (including the location of
associated media resources) is implementation specific.
A <variable> element has the following attributes:
type: specifies the type of prompt variable to render. This
specification defines three values -- date (<a href="#section-4.3.1.1.1.1">Section 4.3.1.1.1.1</a>),
time (<a href="#section-4.3.1.1.1.2">Section 4.3.1.1.1.2</a>), and digits (<a href="#section-4.3.1.1.1.3">Section 4.3.1.1.1.3</a>). All
other valid but undefined values are reserved for future use,
<span class="grey">McGlashan, et al. Standards Track [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
where new values are assigned as described in <a href="#section-8.5">Section 8.5</a>. A
valid value is a string (see <a href="#section-4.6.6">Section 4.6.6</a>). The attribute is
mandatory.
value: specifies a string to be rendered according to the prompt
variable type. A valid value is a string (see <a href="#section-4.6.6">Section 4.6.6</a>).
The attribute is mandatory.
format: specifies format information that the prompt variable type
uses to render the value attribute. A valid value is a string
(see <a href="#section-4.6.6">Section 4.6.6</a>). The attribute is optional. There is no
default value.
gender: specifies the gender that the prompt variable type uses to
render the value attribute. Valid values are "male" or "female".
The attribute is optional. There is no default value.
xml:lang: specifies the language that the prompt variable type uses
to render the value attribute. A valid value is a language
identifier (see <a href="#section-4.6.11">Section 4.6.11</a>). The attribute is optional.
There is no default value.
The <variable> element has no children.
This specification is agnostic to the type and codec of media
resources into which variables are rendered as well as the rendering
mechanism itself. For example, an MS implementation supporting audio
rendering could map the <variable> into one or more audio media
resources.
This package is agnostic to which <variable> types are supported by
an implementation. If a <variable> element configuration specified
in a request is not supported by the MS, the MS sends a <response>
with a 425 status code (<a href="#section-4.5">Section 4.5</a>).
<span class="h6"><a class="selflink" id="section-4.3.1.1.1.1" href="#section-4.3.1.1.1.1">4.3.1.1.1.1</a>. Date Type</span>
The date variable type provides a mechanism for dynamically rendering
a date prompt.
The <variable> type attribute MUST have the value "date".
The <variable> format attribute MUST be one of the following values
and comply with its rendering of the value attribute:
mdy indicating that the <variable> value attribute is to be rendered
as sequence composed of month, then day, then year.
<span class="grey">McGlashan, et al. Standards Track [Page 40]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-41" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
ymd indicating that the <variable> value attribute is to be rendered
as sequence composed of year, then month, then day.
dym indicating that the <variable> value attribute is to be rendered
as sequence composed of day, then year, then month.
dm indicating that the <variable> value attribute is to be rendered
as sequence composed of day then month.
The <variable> value attribute MUST comply with a lexical
representation of date where
yyyy '-' mm '-' dd
as defined in <a href="#section-3.2.9">Section 3.2.9</a> of [XMLSchema:Part2].
For example,
<variable type="date" format="dmy" value="2010-11-25"
xml:lang="en" gender="male"/>
describes a variable date prompt where the date can be rendered in
audio as "twenty-fifth of November two thousand and ten" using a list
of <media> resources:
<media loc="nfs://voicebase/en/male/25th.wav"/>
<media loc="nfs://voicebase/en/male/of.wav"/>
<media loc="nfs://voicebase/en/male/november.wav"/>
<media loc="nfs://voicebase/en/male/2000.wav"/>
<media loc="nfs://voicebase/en/male/and.wav"/>
<media loc="nfs://voicebase/en/male/10.wav"/>
<span class="h6"><a class="selflink" id="section-4.3.1.1.1.2" href="#section-4.3.1.1.1.2">4.3.1.1.1.2</a>. Time Type</span>
The time variable type provides a mechanism for dynamically rendering
a time prompt.
The <variable> type attribute MUST have the value "time".
The <variable> format attribute MUST be one of the following values
and comply with its rendering of the value attribute:
t12 indicating that the <variable> value attribute is to be rendered
as a time in traditional 12-hour format using am or pm (for
example, "twenty-five minutes past 2 pm" for "14:25").
<span class="grey">McGlashan, et al. Standards Track [Page 41]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-42" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
t24 indicating that the <variable> value attribute is to be rendered
as a time in 24-hour format (for example, "fourteen twenty-five"
for "14:25").
The <variable> value attribute MUST comply with a lexical
representation of time where
hh ':' mm ( ':' ss )?
as defined in <a href="#section-3.2.8">Section 3.2.8</a> of [XMLSchema:Part2].
<span class="h6"><a class="selflink" id="section-4.3.1.1.1.3" href="#section-4.3.1.1.1.3">4.3.1.1.1.3</a>. Digits Type</span>
The digits variable type provides a mechanism for dynamically
rendering a digit sequence.
The <variable> type attribute MUST have the value "digits".
The <variable> format attribute MUST be one of the following values
and comply with its rendering of the value attribute:
gen indicating that the <variable> value attribute is to be rendered
as a general digit string (for example, "one two three" for
"123").
crn indicating that the <variable> value attribute is to be rendered
as a cardinal number (for example, "one hundred and twenty-
three" for "123").
ord indicating that the <variable> value attribute is to be rendered
as an ordinal number (for example, "one hundred and twenty-
third" for "123").
The <variable> value attribute MUST comply with the lexical
representation
d+
i.e., one or more digits.
<span class="h6"><a class="selflink" id="section-4.3.1.1.2" href="#section-4.3.1.1.2">4.3.1.1.2</a>. <dtmf></span>
The <dtmf> element specifies a sequence of DTMF tones for output.
DTMF tones could be generated using <media> resources where the
output is transported as RTP audio packets. However, <media>
resources are not sufficient for cases where DTMF tones are to be
transported as DTMF RTP [<a href="./rfc4733" title=""RTP Payload for DTMF Digits, Telephony Tones, and Telephony Signals"">RFC4733</a>] or in event packages.
<span class="grey">McGlashan, et al. Standards Track [Page 42]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-43" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
A <dtmf> element has the following attributes:
digits: specifies the DTMF sequence to output. A valid value is a
DTMF string (see <a href="#section-4.6.3">Section 4.6.3</a>). The attribute is mandatory.
level: used to define the power level for which the DTMF tones will
be generated. Values are expressed in dBm0. A valid value is an
integer in the range of 0 to -96 (dBm0). Larger negative values
express lower power levels. Note that values lower than -55 dBm0
will be rejected by most receivers (TR-TSY-000181, ITU-T Q.24A).
The attribute is optional. The default value is -6 (dBm0).
duration: specifies the duration for which each DTMF tone is
generated. A valid value is a time designation (see
<a href="#section-4.6.7">Section 4.6.7</a>). The MS MAY round the value if it only supports
discrete durations. The attribute is optional. The default value
is 100 ms.
interval: specifies the duration of a silence interval following
each generated DTMF tone. A valid value is a time designation
(see <a href="#section-4.6.7">Section 4.6.7</a>). The MS MAY round the value if it only
supports discrete durations. The attribute is optional. The
default value is 100 ms.
The <dtmf> element has no children.
If a <dtmf> element configuration is not supported, the MS sends a
<response> with a 426 status code (<a href="#section-4.5">Section 4.5</a>).
<span class="h6"><a class="selflink" id="section-4.3.1.1.3" href="#section-4.3.1.1.3">4.3.1.1.3</a>. <par></span>
The <par> element allows media resources to be played in parallel.
Each of its child elements specifies a media resource (or a sequence
of media resources using the <seq> element). When playback of the
<par> element is initiated, the MS begins playback of all its child
elements at the same time. This element is modeled after the <par>
element in SMIL [<a href="#ref-W3C.REC-SMIL2-20051213">W3C.REC-SMIL2-20051213</a>].
The <par> element has the following attributes:
endsync: indicates when playback of the element is complete. Valid
values are "first" (indicates that the element is complete when
any child element reports that it is complete) and "last"
(indicates it is complete when every child elements are complete).
The attribute is optional. The default value is "last".
If the value is "first", then playback of other child elements is
stopped when one child element reports it is complete.
<span class="grey">McGlashan, et al. Standards Track [Page 43]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-44" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The <par> element has the following child elements (at least one, any
order, multiple occurrences of each element permitted):
<seq>: specifies a sequence of media resources to play in parallel
with other <par> child elements (see <a href="#section-4.3.1.1.3.1">Section 4.3.1.1.3.1</a>). The
element is optional.
<media>: specifies a media resource (see <a href="#section-4.3.1.5">Section 4.3.1.5</a>) to play.
The MS is responsible for assigning the appropriate media
stream(s) when more than one is available. The element is
optional.
<variable>: specifies a variable media announcement (see
<a href="#section-4.3.1.1.1">Section 4.3.1.1.1</a>) to play. The element is optional.
<dtmf>: generates one or more DTMF tones (see <a href="#section-4.3.1.1.2">Section 4.3.1.1.2</a>) to
play. The element is optional.
It is RECOMMENDED that a <par> element contains only one <media>
element of the same media type (i.e., same type-name as defined in
<a href="#section-4.6.10">Section 4.6.10</a>). If a <par> element configuration is not supported,
the MS sends a <response> with a 435 status code (<a href="#section-4.5">Section 4.5</a>).
Runtime <control>s (<a href="#section-4.3.1.2">Section 4.3.1.2</a>) apply to each child element
playing in parallel. For example, pause and resume controls cause
all child elements to be paused and resumed, respectively.
If the <par> element is stopped by the prompt container (e.g.,
bargein or dialog termination), then playback of all child elements
is stopped. The playback duration (<a href="#section-4.3.2.1">Section 4.3.2.1</a>) reported for the
<par> element is the duration of parallel playback, not the
cumulative duration of each child element played in parallel.
For example, a request to playback audio and video media in parallel:
<span class="grey">McGlashan, et al. Standards Track [Page 44]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-45" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="c1">
<dialog>
<prompt>
<par>
<media type="audio/x-wav"
loc="http://www.example.com/media/comments.wav"/>
<media type="video/3gpp;codecs='s263'"
loc="http://www.example.com/media/camera.3gp"/>
</par>
</prompt>
</dialog>
</dialogstart>
</mscivr>
When the <prompt> element is executed, it begins playback of its
child element in document-order sequence. In this case, there is
only one child element, a <par> element itself containing audio and
video <media> child elements. Consequently, playback of both audio
and video media resources is initiated at the same time. Since the
endsync attribute is not specified, the default value "last" applies.
The <par> element playback is complete when the media resource with
the longest duration is complete.
<span class="h6"><a class="selflink" id="section-4.3.1.1.3.1" href="#section-4.3.1.1.3.1">4.3.1.1.3.1</a>. <seq></span>
The <seq> element specifies media resources to be played back in
sequence. This allows a sequence of media resources to be played at
the same time as other children of a <par> element are played in
parallel, for example, a sequence of audio resources while a video
resource is played in parallel. This element is modeled after the
<seq> element in SMIL [<a href="#ref-W3C.REC-SMIL2-20051213">W3C.REC-SMIL2-20051213</a>].
The <seq> element has no attributes.
The <seq> element has the following child elements (at least one, any
order, multiple occurrences of each element permitted):
<media>: specifies a media resource (see <a href="#section-4.3.1.5">Section 4.3.1.5</a>) to play.
The element is optional.
<variable>: specifies a variable media announcement (see
<a href="#section-4.3.1.1.1">Section 4.3.1.1.1</a>) to play. The element is optional.
<dtmf>: generates one or more DTMF tones (see <a href="#section-4.3.1.1.2">Section 4.3.1.1.2</a>) to
play. The element is optional.
<span class="grey">McGlashan, et al. Standards Track [Page 45]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-46" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
Playback of a <seq> element is complete when all child elements in
the sequence are complete. If the <seq> element is stopped by the
<par> container, then playback of the current child element is
stopped (remaining child elements in the sequence are not played).
For example, a request to play a sequence of audio resources in
parallel with a video media:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="c1">
<dialog>
<prompt>
<par endsync="first">
<seq>
<media type="audio/x-wav"
loc="http://www.example.com/media/date.wav"/>
<media type="audio/x-wav"
loc="http://www.example.com/media/intro.wav"/>
<media type="audio/x-wav"
loc="http://www.example.com/media/main.wav"/>
<media type="audio/x-wav"
loc="http://www.example.com/media/end.wav"/>
</seq>
<media type="video/3gpp;codecs='s263'"
loc="rtsp://www.example.com/media/camera.3gp"/>
</par>
</prompt>
</dialog>
</dialogstart>
</mscivr>
When the <prompt> element is executed, it begins playback of the
<par> element containing a <seq> element and a video <media> element.
The <seq> element itself contains a sequence of audio <media>
elements. Consequently, playback of the video media resource is
initiated at the same time as playback of the sequence of the audio
media resources is initiated. Each audio resource is played back
after the previous one completes. Since the endsync attribute is set
to "first", the <par> element playback is complete when either all
the audio resources in <seq> have been played to completion or the
video <media> is complete, whichever occurs first.
<span class="h5"><a class="selflink" id="section-4.3.1.2" href="#section-4.3.1.2">4.3.1.2</a>. <control></span>
The <control> element defines how DTMF input is mapped to runtime
controls, including prompt playback controls.
<span class="grey">McGlashan, et al. Standards Track [Page 46]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-47" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
DTMF input matching these controls MUST NOT cause prompt playback to
be interrupted (i.e., no prompt bargein), but causes the appropriate
operation to be applied, for example, speeding up prompt playback.
DTMF input matching these controls has priority over <collect> input
for the duration of prompt playback. If an incoming DTMF character
matches a specified runtime control, then the DTMF character is
consumed: it is not added to the digit buffer and so is not available
to the <collect> operation. Once prompt playback is complete,
runtime controls are no longer active.
The <control> element has the following attributes:
gotostartkey: maps a DTMF key to skip directly to the start of the
prompt. A valid value is a DTMF character (see <a href="#section-4.6.2">Section 4.6.2</a>).
The attribute is optional. There is no default value.
gotoendkey: maps a DTMF key to skip directly to the end of the
prompt. A valid value is a DTMF character (see <a href="#section-4.6.2">Section 4.6.2</a>).
The attribute is optional. There is no default value.
skipinterval: indicates how far an MS skips backwards or forwards
through prompt playback when the rewind (rwkey) of fast forward
key (ffkey) is pressed. A valid value is a Time Designation (see
<a href="#section-4.6.7">Section 4.6.7</a>). The attribute is optional. The default value is
6s.
ffkey: maps a DTMF key to a fast forward operation equal to the
value of 'skipinterval'. A valid value is a DTMF character (see
<a href="#section-4.6.2">Section 4.6.2</a>). The attribute is optional. There is no default
value.
rwkey: maps a DTMF key to a rewind operation equal to the value of
'skipinterval'. A valid value is a DTMF character (see
<a href="#section-4.6.2">Section 4.6.2</a>). The attribute is optional. There is no default
value.
pauseinterval: indicates how long an MS pauses prompt playback when
the pausekey is pressed. A valid value is a Time Designation (see
<a href="#section-4.6.7">Section 4.6.7</a>). The attribute is optional. The default value is
10s.
pausekey: maps a DTMF key to a pause operation equal to the value of
'pauseinterval'. A valid value is a DTMF character (see
<a href="#section-4.6.2">Section 4.6.2</a>). The attribute is optional. There is no default
value.
<span class="grey">McGlashan, et al. Standards Track [Page 47]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-48" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
resumekey: maps a DTMF key to a resume operation. A valid value is
a DTMF character (see <a href="#section-4.6.2">Section 4.6.2</a>). The attribute is optional.
There is no default value.
volumeinterval: indicates the increase or decrease in playback
volume (relative to the current volume) when the volupkey or
voldnkey is pressed. A valid value is a percentage (see
<a href="#section-4.6.8">Section 4.6.8</a>). The attribute is optional. The default value is
10%.
volupkey: maps a DTMF key to a volume increase operation equal to
the value of 'volumeinterval'. A valid value is a DTMF character
(see <a href="#section-4.6.2">Section 4.6.2</a>). The attribute is optional. There is no
default value.
voldnkey: maps a DTMF key to a volume decrease operation equal to
the value of 'volumeinterval'. A valid value is a DTMF character
(see <a href="#section-4.6.2">Section 4.6.2</a>). The attribute is optional. There is no
default value.
speedinterval: indicates the increase or decrease in playback speed
(relative to the current speed) when the speedupkey or speeddnkey
is pressed. A valid value is a percentage (see <a href="#section-4.6.8">Section 4.6.8</a>).
The attribute is optional. The default value is 10%.
speedupkey: maps a DTMF key to a speed increase operation equal to
the value of the speedinterval attribute. A valid value is a DTMF
character (see <a href="#section-4.6.2">Section 4.6.2</a>). The attribute is optional. There
is no default value.
speeddnkey: maps a DTMF key to a speed decrease operation equal to
the value of the speedinterval attribute. A valid value is a DTMF
character (see <a href="#section-4.6.2">Section 4.6.2</a>). The attribute is optional. There
is no default value.
external: allows one or more DTMF keys to be declared as external
controls (for example, video camera controls); the MS can send
notifications when a matching key is activated using <dtmfnotify>
(<a href="#section-4.2.5.2">Section 4.2.5.2</a>). A valid value is a DTMF string (see
<a href="#section-4.6.3">Section 4.6.3</a>). The attribute is optional. There is no default
value.
If the same DTMF is specified in more than one DTMF key control
attribute -- except the pausekey and resumekey attributes -- the MS
sends a <response> with a 413 status code (<a href="#section-4.5">Section 4.5</a>).
The MS has the following execution model for runtime control after
initialization:
<span class="grey">McGlashan, et al. Standards Track [Page 48]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-49" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
1. If an error occurs during execution, then the MS terminates
runtime control and the error is reported to the dialog
container. The MS MAY report controls executed successfully
before the error in <controlinfo> (see <a href="#section-4.3.2.2">Section 4.3.2.2</a>).
2. Runtime controls are active only during prompt playback (if no
<prompt> element is specified, then runtime controls are
ignored). If DTMF input matches any specified keys (for example,
the ffkey), then the MS applies the appropriate operation
immediately. If a seek operation (ffkey, rwkey) attempts to go
beyond the beginning or end of the prompt queue, then the MS
automatically truncates it to the prompt queue beginning or end,
respectively. If a volume operation (voldnkey, volupkey)
attempts to go beyond the minimum or maximum volume supported by
the platform, then the MS automatically limits the operation to
minimum or maximum supported volume, respectively. If a speed
operation (speeddnkey, speedupkey) attempts to go beyond the
minimum or maximum playback speed supported by the platform, then
the MS automatically limits the operation to minimum or maximum
supported speed, respectively. If the pause operation attempts
to pause output when it is already paused, then the operation is
ignored. If the resume operation attempts to resume when the
prompts are not paused, then the operation is ignored. If a
seek, volume, or speed operation is applied when output is
paused, then the MS also resumes output automatically.
3. If DTMF control subscription has been specified for the dialog,
then each DTMF match of a control operation is reported in a
<dtmfnotify> notification event (<a href="#section-4.2.5.2">Section 4.2.5.2</a>).
4. When the dialog exits, all control matches are reported in a
<controlinfo> element (<a href="#section-4.3.2.2">Section 4.3.2.2</a>).
<span class="h5"><a class="selflink" id="section-4.3.1.3" href="#section-4.3.1.3">4.3.1.3</a>. <collect></span>
The <collect> element defines how DTMF input is collected.
The <collect> element has the following attributes:
cleardigitbuffer: indicates whether the digit buffer is to be
cleared. A valid value is a boolean (see <a href="#section-4.6.1">Section 4.6.1</a>). A value
of true indicates that the digit buffer is to be cleared. A value
of false indicates that the digit buffer is not to be cleared.
The attribute is optional. The default value is true.
timeout: indicates the maximum time to wait for user input to begin.
A valid value is a Time Designation (see <a href="#section-4.6.7">Section 4.6.7</a>). The
attribute is optional. The default value is 5s.
<span class="grey">McGlashan, et al. Standards Track [Page 49]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-50" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
interdigittimeout: indicates the maximum time to wait for another
DTMF when the collected input is incomplete with respect to the
grammar. A valid value is a Time Designation (see <a href="#section-4.6.7">Section 4.6.7</a>).
The attribute is optional. The default value is 2s.
termtimeout: indicates the maximum time to wait for the termchar
character when the collected input is complete with respect to the
grammar. A valid value is a Time Designation (see <a href="#section-4.6.7">Section 4.6.7</a>).
The attribute is optional. The default value is 0s (no delay).
escapekey: specifies a DTMF key that indicates collected grammar
matches are discarded and the DTMF collection is to be re-
initiated. A valid value is a DTMF character (see <a href="#section-4.6.2">Section 4.6.2</a>).
The attribute is optional. There is no default value.
termchar: specifies a DTMF character for terminating DTMF input
collection using the internal grammar. It is ignored when a
custom grammar is specified. A valid value is a DTMF character
(see <a href="#section-4.6.2">Section 4.6.2</a>). To disable termination by a conventional
DTMF character, set the parameter to an unconventional character
like 'A'. The attribute is optional. The default value is '#'.
maxdigits: The maximum number of digits to collect using an internal
digits (0-9 only) grammar. It is ignored when a custom grammar is
specified. A valid value is a positive integer (see
<a href="#section-4.6.5">Section 4.6.5</a>). The attribute is optional. The default value is
5.
The following matching priority is defined for incoming DTMF:
termchar attribute, escapekey attribute, and then as part of a
grammar. For example, if "1" is defined as the escapekey attribute
and as part of a grammar, then its interpretation as an escapekey
takes priority.
The <collect> element has the following child element:
<grammar>: indicates a custom grammar format (see
<a href="#section-4.3.1.3.1">Section 4.3.1.3.1</a>). The element is optional.
The custom grammar takes priority over the internal grammar. If a
<grammar> element is specified, the MS MUST use it for DTMF
collection.
The MS has the following execution model for DTMF collection after
initialization:
1. The DTMF collection buffer MUST NOT receive DTMF input matching
<control> operations (see <a href="#section-4.3.1.2">Section 4.3.1.2</a>).
<span class="grey">McGlashan, et al. Standards Track [Page 50]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-51" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
2. If an error occurs during execution, then the MS terminates
collection and reports the error to the dialog container (see
<a href="#section-4.3">Section 4.3</a>). The MS MAY report DTMF collected before the error
in <collectinfo> (see <a href="#section-4.3.2.3">Section 4.3.2.3</a>).
3. The MS clears the digit buffer if the value of the
cleardigitbuffer attribute is true.
4. The MS activates an initial timer with the duration of the value
of the timeout attribute. If the initial timer expires before
any DTMF input is received, then collection execution terminates,
the <collectinfo> (see <a href="#section-4.3.2.3">Section 4.3.2.3</a>) has the termmode
attribute set to noinput and the execution status is reported to
the dialog container.
5. When the first DTMF collect input is received, the initial timer
is canceled and DTMF collection begins. Each DTMF input is
collected unless it matches the value of the escapekey attribute
or the termchar attribute when the internal grammar is used.
Collected input is matched against the grammar to determine if it
is valid and, if valid, whether collection is complete. Valid
DTMF patterns are either a simple digit string where the maximum
length is determined by the maxdigits attribute and that can be
optionally terminated by the character in the termchar attribute,
or a custom DTMF grammar specified with the <grammar> element.
6. After escapekey input, or a valid input that does not complete
the grammar, the MS activates a timer for the value of the
interdigittimeout attribute or the termtimeout attribute. The MS
only uses the termtimeout value when the grammar does not allow
any additional input; otherwise, the MS uses the
interdigittimeout.
7. If DTMF collect input matches the value of the escapekey
attribute, then the MS re-initializes DTMF collection: i.e., the
MS discards collected DTMFs already matched against the grammar,
and the MS attempts to match incoming DTMF (including any pending
in the digit buffer) as described in Step 5 above.
8. If the collect input is not valid with respect to the grammar or
an interdigittimeout timer expires, the MS terminates collection
execution and reports execution status to the dialog container
with a <collectinfo> (see <a href="#section-4.3.2.3">Section 4.3.2.3</a>) where the termmode
attribute is set to nomatch.
9. If the collect input completes the grammar or if a termtimeout
timer expires, then the MS terminates collection execution and
reports execution status to the dialog container with
<span class="grey">McGlashan, et al. Standards Track [Page 51]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-52" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<collectinfo> (see <a href="#section-4.3.2.3">Section 4.3.2.3</a>) where the termmode attribute
is set to match.
<span class="h6"><a class="selflink" id="section-4.3.1.3.1" href="#section-4.3.1.3.1">4.3.1.3.1</a>. <grammar></span>
The <grammar> element allows a custom grammar, inline or external, to
be specified. Custom grammars permit the full range of DTMF
characters including '*' and '#' to be specified for DTMF pattern
matching.
The <grammar> element has the following attributes:
src: specifies the location of an external grammar document. A
valid value is a URI (see <a href="#section-4.6.9">Section 4.6.9</a>). The MS MUST support
both HTTP [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>] and HTTPS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>] schemes and the MS MAY
support other schemes. If the URI scheme is unsupported, the MS
sends a <response> with a 420 status code (<a href="#section-4.5">Section 4.5</a>). If the
resource cannot be retrieved within the timeout interval, the MS
sends a <response> with a 409 status code. If the grammar format
is not supported, the MS sends a <response> with a 424 status
code. The attribute is optional. There is no default value.
type: identifies the preferred type of the grammar document
identified by the src attribute. A valid value is a MIME media
type (see <a href="#section-4.6.10">Section 4.6.10</a>). If the URI scheme used in the src
attribute defines a mechanism for establishing the authoritative
MIME media type of the media resource, the value returned by that
mechanism takes precedence over this attribute. The attribute is
optional. There is no default value.
fetchtimeout: the maximum interval to wait when fetching a grammar
resource. A valid value is a Time Designation (see
<a href="#section-4.6.7">Section 4.6.7</a>). The attribute is optional. The default value is
30s.
The <grammar> element allows inline grammars to be specified. XML
grammar formats MUST use a namespace other than the one used in this
specification. Non-XML grammar formats MAY use a CDATA section.
The MS MUST support the Speech Recognition Grammar Specification
[<a href="#ref-SRGS" title=""Speech Recognition Grammar Specification Version 1.0"">SRGS</a>] XML grammar format ("application/srgs+xml") and MS MAY support
the Key Press Markup Language (KPML) [<a href="./rfc4730" title=""A Session Initiation Protocol (SIP) Event Package for Key Press Stimulus (KPML)"">RFC4730</a>] or other grammar
formats. If the grammar format is not supported by the MS, then the
MS sends a <response> with a 424 status code (<a href="#section-4.5">Section 4.5</a>).
For example, the following fragment shows DTMF collection with an
inline SRGS grammar:
<span class="grey">McGlashan, et al. Standards Track [Page 52]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-53" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<collect cleardigitbuffer="false" timeout="20s"
interdigittimeout="1s">
<grammar>
<grammar xmlns="http://www.w3.org/2001/06/grammar"
version="1.0" mode="dtmf">
<rule id="digit">
<one-of>
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
</one-of>
</rule>
<rule id="pin" scope="public">
<one-of>
<item>
<item repeat="4">
<ruleref uri="#digit"/>
</item>#</item>
<item>* 9</item>
</one-of>
</rule>
</grammar>
</grammar>
</collect>
The same grammar could also be referenced externally (and take
advantage of HTTP caching):
<collect cleardigitbuffer="false" timeout="20s">
<grammar type="application/srgs+xml"
src="http://example.org/pin.grxml"/>
</collect>
<span class="h5"><a class="selflink" id="section-4.3.1.4" href="#section-4.3.1.4">4.3.1.4</a>. <record></span>
The <record> element specifies how media input is recorded.
The <record> element has the following attributes:
<span class="grey">McGlashan, et al. Standards Track [Page 53]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-54" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
timeout: indicates the time to wait for user input to begin. A
valid value is a Time Designation (see <a href="#section-4.6.7">Section 4.6.7</a>). The
attribute is optional. The default value is 5s.
vadinitial: controls whether Voice Activity Detection (VAD) is used
to initiate the recording operation. A valid value is a boolean
(see <a href="#section-4.6.1">Section 4.6.1</a>). A value of true indicates the MS MUST
initiate recording if the VAD detects voice on the configured
inbound audio streams. A value of false indicates that the MS
MUST NOT initiate recording using VAD. The attribute is optional.
The default value is false.
vadfinal: controls whether VAD is used to terminate the recording
operation. A valid value is a boolean (see <a href="#section-4.6.1">Section 4.6.1</a>). A
value of true indicates the MS MUST terminate recording if the VAD
detects a period of silence (whose duration is specified by the
finalsilence attribute) on configured inbound audio streams. A
value of false indicates that the MS MUST NOT terminate recording
using VAD. The attribute is optional. The default value is
false.
dtmfterm: indicates whether the recording operation is terminated by
DTMF input. A valid value is a boolean (see <a href="#section-4.6.1">Section 4.6.1</a>). A
value of true indicates that recording is terminated by DTMF
input. A value of false indicates that recording is not
terminated by DTMF input. The attribute is optional. The default
value is true.
maxtime: indicates the maximum duration of the recording. A valid
value is a Time Designation (see <a href="#section-4.6.7">Section 4.6.7</a>). The attribute is
optional. The default value is 15s.
beep: indicates whether a 'beep' is to be played immediately prior
to initiation of the recording operation. A valid value is a
boolean (see <a href="#section-4.6.1">Section 4.6.1</a>). The attribute is optional. The
default value is false.
finalsilence: indicates the interval of silence that indicates the
end of voice input. This interval is not part of the recording
itself. This parameter is ignored if the vadfinal attribute has
the value false. A valid value is a Time Designation (see
<a href="#section-4.6.7">Section 4.6.7</a>). The attribute is optional. The default value is
5s.
append: indicates whether recorded data is appended or not to a
recording location if a resource already exists. A valid value is
a boolean (see <a href="#section-4.6.1">Section 4.6.1</a>). A value of true indicates that
recorded data is appended to the existing resource at a recording
<span class="grey">McGlashan, et al. Standards Track [Page 54]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-55" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
location. A value of false indicates that recorded data is to
overwrite the existing resource. The attribute is optional. The
default value is false.
When a recording location is specified using the HTTP or HTTPS
protocol, the recording operation SHOULD be performed using the
HTTP GET and PUT methods, unless the HTTP server provides a
special interface for recording uploads and appends (e.g., using
POST). When the append attribute has the value false, the
recording data is uploaded to the specified location using HTTP
PUT and replaces any data at that location on the HTTP origin
server. When append has the value true, the existing data (if
any) is first downloaded from the specified location using HTTP
GET, then the recording data is appended to the existing recording
(note that this might require codec conversion and modification to
the existing data), then the combined recording is uploaded to the
specified location using HTTP PUT. HTTP errors are handled as
described in [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>].
When the recording location is specified using protocols other
than HTTP or HTTPS, the mapping of the append operation onto the
upload protocol scheme is implementation specific.
If either the vadinitial or vadfinal attribute is set to true and the
MS does not support VAD, the MS sends a <response> with a 434 status
code (<a href="#section-4.5">Section 4.5</a>).
The <record> element has the following child element (0 or more
occurrences):
<media>: specifies the location and type of the media resource for
uploading recorded data (see <a href="#section-4.3.1.5">Section 4.3.1.5</a>). The MS MUST
support both HTTP [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>] and HTTPS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>] schemes for
uploading recorded data and the MS MAY support other schemes. The
MS uploads recorded data to this resource as soon as possible
after recording is complete. The element is optional.
If multiple <media> elements are specified, then media input is to be
recorded in parallel to multiple resource locations.
If no <media> child element is specified, the MS MUST record media
input but the recording location and the recording format are
implementation specific (e.g., the MS records audio in the WAV format
to a local disk accessible by HTTP). The recording location and
format are reported in <recordinfo> (<a href="#section-4.3.2.4">Section 4.3.2.4</a>) when the dialog
terminates. The recording MUST be available from this location until
the connection or conference associated with the dialog on the MS
terminates.
<span class="grey">McGlashan, et al. Standards Track [Page 55]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-56" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
If the MS does not support the configuration required for recording
from the input media streams to one or more <media> elements and a
more specific error code is not defined for its child elements, the
MS sends a <response> with a 423 status code (<a href="#section-4.5">Section 4.5</a>).
Note that an MS MAY support uploading recorded data to recording
locations at the same time the recording operation takes place. Such
implementations need to be aware of the requirements of certain
recording formats (e.g., WAV) for metadata at the beginning of the
uploaded file, that the finalsilence interval is not part of the
recording and how these requirements interact with the URI scheme.
The MS has the following execution model for recording after
initialization:
1. If an error occurs during execution (e.g., authentication or
communication error when trying to upload to a recording
location), then the MS terminates record execution and reports
the error to the dialog container (see <a href="#section-4.3">Section 4.3</a>). The MS MAY
report data recorded before the error in <recordinfo> (see
<a href="#section-4.3.2.4">Section 4.3.2.4</a>).
2. If DTMF input (not matching a <control> operation) is received
during prompt playback and the prompt bargein attribute is set to
true, then the MS activates the record execution. Otherwise, the
MS activates it after the completion of prompt playback.
3. If a beep attribute with the value of true is specified, then the
MS plays a beep tone.
4. The MS activates a timer with the duration of the value of the
timeout attribute. If the timer expires before the recording
operation begins, then the MS terminates the recording execution
and reports the status to dialog container with <recordinfo> (see
<a href="#section-4.3.2.4">Section 4.3.2.4</a>) where the termmode attribute is set to noinput.
5. Initiation of the recording operation depends on the value of the
vadinitial attribute. If vadinitial has the value false, then
the recording operation is initiated immediately. Otherwise, the
recording operation is initiated when voice activity is detected.
6. When the recording operation is initiated, a timer is started for
the value of the maxtime attribute (maximum duration of the
recording). If the timer expires before the recording operation
is complete, then the MS terminates recording execution and
reports the execution status to the dialog container with
<recordinfo> (see <a href="#section-4.3.2.4">Section 4.3.2.4</a>) where the termmode attribute
set to maxtime.
<span class="grey">McGlashan, et al. Standards Track [Page 56]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-57" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
7. During the record operation input, media streams are recording to
a location and format specified in one or more <media> child
elements. If no <media> child element is specified, the MS
records input to an implementation-specific location and format.
8. If the dtmfterm attribute has the value true and DTMF input is
detected during the record operation, then the MS terminates
recording and its status is reported to the dialog container with
a <recordinfo> (see <a href="#section-4.3.2.4">Section 4.3.2.4</a>) where the termmode attribute
is set to dtmf.
9. If vadfinal attribute has the value true, then the MS terminates
the recording operation when a period of silence, with the
duration specified by the value of the finalsilence attribute, is
detected. This period of silence is not part of the final
recording. The status is reported to the dialog container with a
<recordinfo> (see <a href="#section-4.3.2.4">Section 4.3.2.4</a>) where the termmode attribute
is set to finalsilence.
For example, a request to record audio and video input to separate
locations:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="c1">
<dialog>
<record maxtime="30s" vadinitial="false" vadfinal="false">
<media type="audio/x-wav"
loc="http://www.example.com/upload/audio.wav"/>
<media type="video/3gpp;codecs='s263'"
loc="http://www.example.com/upload/video.3gp"/>
</record>
</dialog>
</dialogstart>
</mscivr>
When the <record> element is executed, it immediately begins
recording of the audio and video (since vadinitial is false) where
the destination locations are specified in the <media> child
elements. Recording is completed when the duration reaches 30s or
the connection is terminated.
<span class="h5"><a class="selflink" id="section-4.3.1.5" href="#section-4.3.1.5">4.3.1.5</a>. <media></span>
The <media> element specifies a media resource to playback from (see
<a href="#section-4.3.1.1">Section 4.3.1.1</a>) or record to (see <a href="#section-4.3.1.4">Section 4.3.1.4</a>). In the playback
case, the resource is retrieved and in the recording case, recording
data is uploaded to the resource location.
<span class="grey">McGlashan, et al. Standards Track [Page 57]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-58" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
A <media> element has the following attributes:
loc: specifies the location of the media resource. A valid value is
a URI (see <a href="#section-4.6.9">Section 4.6.9</a>). The MS MUST support both HTTP
[<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>] and HTTPS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>] schemes and the MS MAY support other
schemes. If the URI scheme is not supported by the MS, the MS
sends a <response> with a 420 status code (<a href="#section-4.5">Section 4.5</a>). If the
resource is to be retrieved but the MS cannot retrieve it within
the timeout interval, the MS sends a <response> with a 409 status
code. If the format of the media resource is not supported, the
MS sends a <response> with a 429 status code. The attribute is
mandatory.
type: specifies the type of the media resource indicated in the loc
attribute. A valid value is a MIME media type (see
<a href="#section-4.6.10">Section 4.6.10</a>) that, depending on its definition, can include
additional parameters (e.g., [<a href="./rfc4281" title=""The Codecs Parameter for "">RFC4281</a>]). If the URI scheme used
in the loc attribute defines a mechanism for establishing the
authoratitive MIME media type of the media resource, the value
returned by that mechanism takes precedence over this attribute.
If additional media parameters are specified, the MS MUST use them
to determine media processing. For example, [<a href="./rfc4281" title=""The Codecs Parameter for "">RFC4281</a>] defines a
'codec' parameter for media types like video/3gpp that would
determine which media streams are played or recorded. The
attribute is optional. There is no default value.
fetchtimeout: the maximum interval to wait when fetching a media
resource. A valid value is a Time Designation (see
<a href="#section-4.6.7">Section 4.6.7</a>). The attribute is optional. The default value is
30s.
soundLevel: playback soundLevel (volume) for the media resource. A
valid value is a percentage (see <a href="#section-4.6.8">Section 4.6.8</a>). The value
indicates increase or decrease relative to the original recorded
volume of the media. A value of 100% (the default) plays the
media at its recorded volume, a value of 200% will play the media
twice recorded volume, 50% at half its recorded volume, a value of
0% will play the media silently, and so on. See 'soundLevel' in
SMIL [<a href="#ref-W3C.REC-SMIL2-20051213">W3C.REC-SMIL2-20051213</a>] for further information. The
attribute is optional. The default value is 100%.
clipBegin: offset from start of media resource to begin playback. A
valid value is a Time Designation (see <a href="#section-4.6.7">Section 4.6.7</a>). The offset
is measured in normal media playback time from the beginning of
the media resource. If the clipBegin offset is after the end of
media (or the clipEnd offset), no media is played. See
'clipBegin' in SMIL [<a href="#ref-W3C.REC-SMIL2-20051213">W3C.REC-SMIL2-20051213</a>] for further
information. The attribute is optional. The default value is 0s.
<span class="grey">McGlashan, et al. Standards Track [Page 58]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-59" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
clipEnd: offset from start of media resource to end playback. A
valid value is a Time Designation (see <a href="#section-4.6.7">Section 4.6.7</a>). The offset
is measured in normal media playback time from the beginning of
the media resource. If the clipEnd offset is after the end of
media, then the media is played to the end. If clipBegin is after
clipEnd, then no media is played. See 'clipEnd' in SMIL
[<a href="#ref-W3C.REC-SMIL2-20051213">W3C.REC-SMIL2-20051213</a>] for further information. The attribute
is optional. There is no default value.
The fetchtimeout, soundLevel, clipBegin, and clipEnd attributes are
only relevant in the playback use case. The MS ignores these
attributes when using the <media> for recording.
The <media> element has no children.
<span class="h4"><a class="selflink" id="section-4.3.2" href="#section-4.3.2">4.3.2</a>. Exit Information</span>
When the dialog exits, information about the specified operations is
reported in a <dialogexit> notification event (<a href="#section-4.2.5.1">Section 4.2.5.1</a>).
<span class="h5"><a class="selflink" id="section-4.3.2.1" href="#section-4.3.2.1">4.3.2.1</a>. <promptinfo></span>
The <promptinfo> element reports the information about prompt
execution. It has the following attributes:
duration: indicates the duration of prompt playback in milliseconds.
A valid value is a non-negative integer (see <a href="#section-4.6.4">Section 4.6.4</a>). The
attribute is optional. There is no default value.
termmode: indicates how playback was terminated. Valid values are
'stopped', 'completed', or 'bargein'. The attribute is mandatory.
The <promptinfo> element has no child elements.
<span class="h5"><a class="selflink" id="section-4.3.2.2" href="#section-4.3.2.2">4.3.2.2</a>. <controlinfo></span>
The <controlinfo> element reports information about control
execution.
The <controlinfo> element has no attributes and has 0 or more
<controlmatch> child elements each describing an individual runtime
control match.
<span class="h6"><a class="selflink" id="section-4.3.2.2.1" href="#section-4.3.2.2.1">4.3.2.2.1</a>. <controlmatch></span>
The <controlmatch> element has the following attributes:
<span class="grey">McGlashan, et al. Standards Track [Page 59]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-60" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
dtmf: DTMF input triggering the runtime control. A valid value is a
DTMF string (see <a href="#section-4.6.3">Section 4.6.3</a>) with no space between characters.
The attribute is mandatory.
timestamp: indicates the time (on the MS) at which the control was
triggered. A valid value is a dateTime expression
(<a href="#section-4.6.12">Section 4.6.12</a>). The attribute is mandatory.
The <controlmatch> element has no child elements.
<span class="h5"><a class="selflink" id="section-4.3.2.3" href="#section-4.3.2.3">4.3.2.3</a>. <collectinfo></span>
The <collectinfo> element reports the information about collect
execution.
The <collectinfo> element has the following attributes:
dtmf: DTMF input collected from the user. A valid value is a DTMF
string (see <a href="#section-4.6.3">Section 4.6.3</a>) with no space between characters. The
attribute is optional. There is no default value.
termmode: indicates how collection was terminated. Valid values are
'stopped', 'match', 'noinput', or 'nomatch'. The attribute is
mandatory.
The <collectinfo> element has no child elements.
<span class="h5"><a class="selflink" id="section-4.3.2.4" href="#section-4.3.2.4">4.3.2.4</a>. <recordinfo></span>
The <recordinfo> element reports information about record execution
(<a href="#section-4.3.1.4">Section 4.3.1.4</a>).
The <recordinfo> element has the following attributes:
termmode: indicates how recording was terminated. Valid values are
'stopped', 'noinput', 'dtmf', 'maxtime', and 'finalsilence'. The
attribute is mandatory.
duration: indicates the duration of the recording in milliseconds.
A valid value is a non-negative integer (see <a href="#section-4.6.4">Section 4.6.4</a>). The
attribute is optional. There is no default value.
The <recordinfo> element has the following child element (0 or more
occurrences):
<mediainfo>: indicates information about a recorded media resource
(see <a href="#section-4.3.2.4.1">Section 4.3.2.4.1</a>). The element is optional.
<span class="grey">McGlashan, et al. Standards Track [Page 60]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-61" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
When the record operation is successful, the MS MUST specify a
<mediainfo> element for each recording location. For example, if the
<record> element contained three <media> child elements, then the
<recordinfo> would contain three <mediainfo> child elements.
<span class="h6"><a class="selflink" id="section-4.3.2.4.1" href="#section-4.3.2.4.1">4.3.2.4.1</a>. <mediainfo></span>
The <mediainfo> element reports information about a recorded media
resource.
The <mediainfo> element has the following attributes:
loc: indicates the location of the media resource. A valid value is
a URI (see <a href="#section-4.6.9">Section 4.6.9</a>). The attribute is mandatory.
type: indicates the format of the media resource. A valid value is
a MIME media type (see <a href="#section-4.6.10">Section 4.6.10</a>). The attribute is
mandatory.
size: indicates the size of the media resource in bytes. A valid
value is a non-negative integer (see <a href="#section-4.6.4">Section 4.6.4</a>). The
attribute is optional. There is no default value.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Audit Elements</span>
The audit elements defined in this section allow the MS to be audited
for package capabilities as well as dialogs managed by the package.
Auditing is particularly important for two use cases. First, it
enables discovery of package capabilities supported on an MS before
an AS starts a dialog on connection or conference. The AS can then
use this information to create request elements using supported
capabilities and, in the case of codecs, to negotiate an appropriate
SDP for a User Agent's connection. Second, auditing enables
discovery of the existence and status of dialogs currently managed by
the package on the MS. This could be used when one AS takes over
management of the dialogs if the AS that initiated the dialogs fails
or is no longer available (see Security Considerations described in
<a href="#section-7">Section 7</a>).
<span class="h4"><a class="selflink" id="section-4.4.1" href="#section-4.4.1">4.4.1</a>. <audit></span>
The <audit> request element is sent to the MS to request information
about the capabilities of, and dialogs currently managed with, this
Control Package. Capabilities include supported dialog languages,
grammar formats, record and media types, as well as codecs. Dialog
information includes the status of managed dialogs as well as codecs.
The <audit> element has the following attributes:
<span class="grey">McGlashan, et al. Standards Track [Page 61]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-62" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
capabilities: indicates whether package capabilities are to be
audited. A valid value is a boolean (see <a href="#section-4.6.1">Section 4.6.1</a>). A value
of true indicates that capability information is to be reported.
A value of false indicates that capability information is not to
be reported. The attribute is optional. The default value is
true.
dialogs: indicates whether dialogs currently managed by the package
are to be audited. A valid value is a boolean (see
<a href="#section-4.6.1">Section 4.6.1</a>). A value of true indicates that dialog information
is to be reported. A value of false indicates that dialog
information is not to be reported. The attribute is optional.
The default value is true.
dialogid: string identifying a specific dialog to audit. The MS
sends a response with a 406 status code (<a href="#section-4.5">Section 4.5</a>) if the
specified dialog identifier is invalid. The attribute is
optional. There is no default value.
If the dialogs attribute has the value true and dialogid attribute is
specified, then only audit information about the specified dialog is
reported. If the dialogs attribute has the value false, then no
dialog audit information is reported even if a dialogid attribute is
specified.
The <audit> element has no child elements.
When the MS receives an <audit> request, it MUST reply with an
<auditresponse> element (<a href="#section-4.4.2">Section 4.4.2</a>), which includes a mandatory
attribute describing the status in terms of a numeric code. Response
status codes are defined in <a href="#section-4.5">Section 4.5</a>. If the request is
successful, the <auditresponse> contains (depending on attribute
values) a <capabilities> element (<a href="#section-4.4.2.2">Section 4.4.2.2</a>) reporting package
capabilities and a <dialogs> element (<a href="#section-4.4.2.3">Section 4.4.2.3</a>) reporting
managed dialog information. If the MS is not able to process the
request and carry out the audit operation, the audit request has
failed and the MS MUST indicate the class of failure using an
appropriate 4xx response code. Unless an error response code is
specified for a class of error within this section, implementations
follow <a href="#section-4.5">Section 4.5</a> in determining the appropriate status code for the
response.
For example, a request to audit capabilities and dialogs managed by
the package:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<audit/>
</mscivr>
<span class="grey">McGlashan, et al. Standards Track [Page 62]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-63" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
In this example, only capabilities are to be audited:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<audit dialogs="false"/>
</mscivr>
With this example, only a specific dialog is to be audited:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<audit capabilities="false" dialogid="d4"/>
</mscivr>
<span class="h4"><a class="selflink" id="section-4.4.2" href="#section-4.4.2">4.4.2</a>. <auditresponse></span>
The <auditresponse> element describes a response to an <audit>
request.
The <auditresponse> element has the following attributes:
status: numeric code indicating the audit response status. The
attribute is mandatory. Valid values are defined in <a href="#section-4.5">Section 4.5</a>.
reason: string specifying a reason for the status. The attribute is
optional.
desclang: specifies the language used in the value of the reason
attribute. A valid value is a language identifier
(<a href="#section-4.6.11">Section 4.6.11</a>). The attribute is optional. If not specified,
the value of the desclang attribute on <mscivr> (<a href="#section-4.1">Section 4.1</a>)
applies.
The <auditresponse> element has the following sequence of child
elements:
<capabilities> element (<a href="#section-4.4.2.2">Section 4.4.2.2</a>) describing capabilities of
the package. The element is optional.
<dialogs> element (<a href="#section-4.4.2.3">Section 4.4.2.3</a>) describing information about
managed dialogs. The element is optional.
For example, a successful response to an <audit> request requesting
capabilities and dialogs information:
<span class="grey">McGlashan, et al. Standards Track [Page 63]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-64" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<auditresponse status="200">
<capabilities>
<dialoglanguages>
<mimetype>application/voicexml+xml</mimetype>
</dialoglanguages>
<grammartypes/>
<recordtypes>
<mimetype>audio/x-wav</mimetype>
<mimetype>video/3gpp</mimetype>
</recordtypes>
<prompttypes>
<mimetype>audio/x-wav</mimetype>
<mimetype>video/3gpp</mimetype>
</prompttypes>
<variables>
<variabletype type="date" desc="value formatted as YYYYMMDD">
<format desc="month year day">mdy</format>
<format desc="year month day">ymd</format>
<format desc="day month year">dmy</format>
<format desc="day month">dm</format>
</variabletype>
</variables>
<maxpreparedduration>600s</maxpreparedduration>
<maxrecordduration>1800s</maxrecordduration>
<codecs>
<codec name="video">
<subtype>H263</subtype>
</codec>
<codec name="video">
<subtype>H264</subtype>
</codec>
<codec name="audio">
<subtype>PCMU</subtype>
</codec>
<codec name="audio">
<subtype>PCMA</subtype>
</codec>
<codec name="audio">
<subtype>telephone-event</subtype>
</codec>
</codecs>
</capabilities>
<dialogs>
<dialogaudit dialogid="4532" state="preparing"/>
<dialogaudit dialogid="4599" state="prepared"/>
<dialogaudit dialogid="1234" state="started" conferenceid="conf1">
<codecs>
<span class="grey">McGlashan, et al. Standards Track [Page 64]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-65" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<codec name="audio">
<subtype>PCMA</subtype>
</codec>
<codec name="audio">
<subtype>telephone-event</subtype>
</codec>
</codecs>
</dialogaudit>
</dialogs>
</auditresponse>
</mscivr>
<span class="h5"><a class="selflink" id="section-4.4.2.1" href="#section-4.4.2.1">4.4.2.1</a>. <codecs></span>
The <codecs> provides audit information about codecs.
The <codecs> element has no attributes.
The <codecs> element has the following sequence of child elements (0
or more occurrences):
<codec>: audit information for a codec (<a href="#section-4.4.2.1.1">Section 4.4.2.1.1</a>). The
element is optional.
For example, a fragment describing two codecs:
<codecs>
<codec name="audio">
<subtype>PCMA</subtype>
</codec>
<codec name="audio">
<subtype>telephone-event</subtype>
</codec>
</codecs>
<span class="h6"><a class="selflink" id="section-4.4.2.1.1" href="#section-4.4.2.1.1">4.4.2.1.1</a>. <codec></span>
The <codec> element describes a codec on the MS. The element is
modeled on the <codec> element in the XCON conference information
data model [<a href="#ref-XCON-DATA-MODEL">XCON-DATA-MODEL</a>] but allows addition information (e.g.,
rate, speed, etc.) to be specified.
The <codec> element has the following attributes:
name: indicates the type name of the codec's media format as defined
in [<a href="#ref-IANA" title=""RTP Payload Types"">IANA</a>]. A valid value is a "type-name" as defined in <a href="./rfc4288#section-4.2">Section</a>
<a href="./rfc4288#section-4.2">4.2 of [RFC4288]</a>. The attribute is mandatory.
<span class="grey">McGlashan, et al. Standards Track [Page 65]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-66" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The <codec> element has the following sequence of child elements:
<subtype>: element whose content model describes the subtype of the
codec's media format as defined in [<a href="#ref-IANA" title=""RTP Payload Types"">IANA</a>]. A valid value is a
"subtype-name" as defined in <a href="./rfc4288#section-4.2">Section 4.2 of [RFC4288]</a>. The
element is mandatory.
<params>: element (<a href="#section-4.2.6">Section 4.2.6</a>) describing additional information
about the codec. This package is agnostic to the names and values
of the codec parameters supported by an implementation. The
element is optional.
For example, a fragment with a <codec> element describing the H263
video codec:
<codec name="video">
<subtype>H263</subtype>
</codec>
<span class="h5"><a class="selflink" id="section-4.4.2.2" href="#section-4.4.2.2">4.4.2.2</a>. <capabilities></span>
The <capabilities> element provides audit information about package
capabilities.
The <capabilities> element has no attributes.
The <capabilities> element has the following sequence of child
elements:
<dialoglanguages>: element (<a href="#section-4.4.2.2.1">Section 4.4.2.2.1</a>) describing additional
dialog languages supported by the MS. The element is mandatory.
<grammartypes>: element (<a href="#section-4.4.2.2.2">Section 4.4.2.2.2</a>) describing supported
<grammar> (<a href="#section-4.3.1.3.1">Section 4.3.1.3.1</a>) format types. The element is
mandatory.
<recordtypes>: element (<a href="#section-4.4.2.2.3">Section 4.4.2.2.3</a>) describing <media>
(<a href="#section-4.3.1.5">Section 4.3.1.5</a>) format types supported for <record>
(<a href="#section-4.3.1.4">Section 4.3.1.4</a>). The element is mandatory.
<prompttypes>: element (<a href="#section-4.4.2.2.4">Section 4.4.2.2.4</a>) describing supported
<media> (<a href="#section-4.3.1.5">Section 4.3.1.5</a>) format types for playback within a
<prompt> (<a href="#section-4.3.1.1">Section 4.3.1.1</a>). The element is mandatory.
<variables>: element (<a href="#section-4.4.2.2.5">Section 4.4.2.2.5</a>) describing supported types
and formats for the <variable> element (<a href="#section-4.3.1.1.1">Section 4.3.1.1.1</a>). The
element is mandatory.
<span class="grey">McGlashan, et al. Standards Track [Page 66]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-67" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<maxpreparedduration>: element (<a href="#section-4.4.2.2.6">Section 4.4.2.2.6</a>) describing the
supported maximum duration for a prepared dialog following a
<dialogprepare> (<a href="#section-4.2.1">Section 4.2.1</a>) request. The element is
mandatory.
<maxrecordduration>: element (<a href="#section-4.4.2.2.7">Section 4.4.2.2.7</a>) describing the
supported maximum duration for a recording <record>
(<a href="#section-4.3.1.4">Section 4.3.1.4</a>) request. The element is mandatory.
<codecs>: element (<a href="#section-4.4.2.1">Section 4.4.2.1</a>) describing codecs available to
the package. The element is mandatory.
For example, a fragment describing capabilities:
<capabilities>
<dialoglanguages>
<mimetype>application/voicexml+xml</mimetype>
</dialoglanguages>
<grammartypes/>
<recordtypes>
<mimetype>audio/x-wav</mimetype>
<mimetype>video/3gpp</mimetype>
</recordtypes>
<prompttypes>
<mimetype>audio/x-wav</mimetype>
<mimetype>video/3gpp</mimetype>
</prompttypes>
<variables/>
<maxpreparedduration>30s</maxpreparedduration>
<maxrecordduration>60s</maxrecordduration>
<codecs>
<codec name="video">
<subtype>H263</subtype>
</codec>
<codec name="video">
<subtype>H264</subtype>
</codec>
<codec name="audio">
<subtype>PCMU</subtype>
</codec>
<codec name="audio">
<subtype>PCMA</subtype>
</codec>
<codec name="audio">
<subtype>telephone-event</subtype>
</codec>
</codecs>
</capabilities>
<span class="grey">McGlashan, et al. Standards Track [Page 67]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-68" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h6"><a class="selflink" id="section-4.4.2.2.1" href="#section-4.4.2.2.1">4.4.2.2.1</a>. <dialoglanguages></span>
The <dialoglanguages> element provides information about additional
dialog languages supported by the package. Dialog languages are
identified by their associated MIME media types. The MS MUST NOT
include the mandatory dialog language for this package (<a href="#section-4.3">Section 4.3</a>).
The <dialoglanguages> element has no attributes.
The <dialoglanguages> element has the following sequence of child
elements (0 or more occurrences):
<mimetype>: element whose content model describes a MIME media type
(<a href="#section-4.6.10">Section 4.6.10</a>) associated with a supported dialog language. The
element is optional.
<span class="h6"><a class="selflink" id="section-4.4.2.2.2" href="#section-4.4.2.2.2">4.4.2.2.2</a>. <grammartypes></span>
The <grammartypes> element provides information about <grammar>
format types supported by the package. The MS MUST NOT include the
mandatory SRGS format type, "application/srgs+xml"
(<a href="#section-4.3.1.3.1">Section 4.3.1.3.1</a>).
The <grammartypes> element has no attributes.
The <grammartypes> element has the following sequence of child
elements (0 or more occurrences):
<mimetype>: element whose content model describes a mime type
(<a href="#section-4.6.10">Section 4.6.10</a>). The element is optional.
<span class="h6"><a class="selflink" id="section-4.4.2.2.3" href="#section-4.4.2.2.3">4.4.2.2.3</a>. <recordtypes></span>
The <recordtypes> element provides information about media resource
format types of <record> supported by the package (<a href="#section-4.3.1.4">Section 4.3.1.4</a>).
The <recordtypes> element has no attributes.
The <recordtypes> element has the following sequence of child
elements (0 or more occurrences):
<mimetype>: element whose content model describes a mime type
(<a href="#section-4.6.10">Section 4.6.10</a>). The element is optional.
<span class="h6"><a class="selflink" id="section-4.4.2.2.4" href="#section-4.4.2.2.4">4.4.2.2.4</a>. <prompttypes></span>
The <prompttypes> element provides information about media resource
format types of <prompt> supported by the package (<a href="#section-4.3.1.1">Section 4.3.1.1</a>).
<span class="grey">McGlashan, et al. Standards Track [Page 68]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-69" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The <prompttypes> element has no attributes.
The <prompttypes> element has the following sequence of child
elements (0 or more occurrences):
<mimetype>: element whose content model describes a mime type
(<a href="#section-4.6.10">Section 4.6.10</a>). The element is optional.
<span class="h6"><a class="selflink" id="section-4.4.2.2.5" href="#section-4.4.2.2.5">4.4.2.2.5</a>. <variables></span>
The <variables> element provides information about types and formats
for the <variable> element (<a href="#section-4.3.1.1.1">Section 4.3.1.1.1</a>) supported by the
package.
The <variables> element has no attributes.
The <variables> element has the following sequence of child elements
(0 or more occurrences):
<variabletype>: element describing the formats support for a given
type (<a href="#section-4.4.2.2.5.1">Section 4.4.2.2.5.1</a>). The element is optional.
For example, a fragment describing support for <variable> with a
"date" type according to the formats specified in
<a href="#section-4.3.1.1.1.1">Section 4.3.1.1.1.1</a>.
<variables>
<variabletype type="date" desc="value formatted as YYYYMMDD">
<format desc="month year day">mdy</format>
<format desc="year month day">ymd</format>
<format desc="day month year">dmy</format>
<format desc="day month">dm</format>
</variabletype>
</variables>
<span class="h6"><a class="selflink" id="section-4.4.2.2.5.1" href="#section-4.4.2.2.5.1">4.4.2.2.5.1</a>. <variabletype></span>
The <variabletype> element describes the formats supported for
<variable> supported type.
The <variabletype> element has the following attributes:
type: indicates a supported value associated with the type attribute
of the <variable> element. The attribute is mandatory.
desc: a string providing some textual description of the type and
format. The attribute is optional.
<span class="grey">McGlashan, et al. Standards Track [Page 69]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-70" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
desclang: specifies the language used in the value of the desc
attribute. A valid value is a language identifier
(<a href="#section-4.6.11">Section 4.6.11</a>). The attribute is optional. If not specified,
the value of the desclang attribute on <mscivr> (<a href="#section-4.1">Section 4.1</a>)
applies.
The <variabletype> element has the following sequence of child
elements (0 or more occurrences):
<format>: element with a desc attribute (optional description),
desclang (optional language identifier for the description), and a
content model describing a supported format in the <variable>
format attribute. The element is optional.
<span class="h6"><a class="selflink" id="section-4.4.2.2.6" href="#section-4.4.2.2.6">4.4.2.2.6</a>. <maxpreparedduration></span>
The <maxpreparedduration> element describes the maximum duration for
a dialog to remain in the prepared state (<a href="#section-4.2">Section 4.2</a>) following a
<dialogprepare> (<a href="#section-4.2.1">Section 4.2.1</a>) request.
The <maxpreparedduration> element has no attributes.
The <maxpreparedduration> element has a content model describing the
maximum prepared dialog duration as a time designation
(<a href="#section-4.6.7">Section 4.6.7</a>).
<span class="h6"><a class="selflink" id="section-4.4.2.2.7" href="#section-4.4.2.2.7">4.4.2.2.7</a>. <maxrecordduration></span>
The <maxrecordduration> element describes the maximum recording
duration for <record> <a href="#section-4.3.1.4">Section 4.3.1.4</a>) request supported by the MS.
The <maxrecordduration> element has no attributes.
The <maxrecordduration> element has a content model describing the
maximum duration of recording as a time designation (<a href="#section-4.6.7">Section 4.6.7</a>).
<span class="h5"><a class="selflink" id="section-4.4.2.3" href="#section-4.4.2.3">4.4.2.3</a>. <dialogs></span>
The <dialogs> element provides audit information about dialogs.
The <dialogs> element has no attributes.
The <dialogs> element has the following sequence of child elements (0
or more occurrences):
<dialogaudit>: audit information for a dialog (<a href="#section-4.4.2.3.1">Section 4.4.2.3.1</a>).
The element is optional.
<span class="grey">McGlashan, et al. Standards Track [Page 70]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-71" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h6"><a class="selflink" id="section-4.4.2.3.1" href="#section-4.4.2.3.1">4.4.2.3.1</a>. <dialogaudit></span>
The <dialogaudit> element has the following attributes:
dialogid: string identifying the dialog. The attribute is
mandatory.
state: string indicating the state of the dialog. Valid values are
preparing, prepared, starting, and started. The attribute is
mandatory.
connectionid: string identifying the SIP dialog connection
associated with the dialog (see <a href="./rfc6230#appendix-A.1">Appendix A.1 of [RFC6230]</a>). The
attribute is optional. There is no default value.
conferenceid: string identifying the conference associated with the
dialog (see <a href="./rfc6230#appendix-A.1">Appendix A.1 of [RFC6230]</a>). The attribute is
optional. There is no default value.
The <dialogaudit> element has the following child element:
<codecs> element describing codecs used in the dialog. See
<a href="#section-4.4.2.1">Section 4.4.2.1</a>. The element is optional.
For example, a fragment describing a started dialog that is using
PCMU and telephony-event audio codecs:
<dialogaudit dialogid="1234" state="started" conferenceid="conf1">
<codecs>
<codec name="audio">
<subtype>PCMU</subtype>
</codec>
<codec name="audio">
<subtype>telephone-event</subtype>
</codec>
</codecs>
</dialogaudit>
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. Response Status Codes</span>
This section describes the response codes in Table 1 for the status
attribute of dialog management <response> (<a href="#section-4.2.4">Section 4.2.4</a>) and audit
<auditresponse> (<a href="#section-4.4.2">Section 4.4.2</a>) responses. The MS MUST support the
status response codes defined here. All other valid but undefined
values are reserved for future use, where new status codes are
assigned using the Standards Action process defined in [<a href="./rfc5226" title="">RFC5226</a>].
The AS MUST treat any responses it does not recognize as being
equivalent to the x00 response code for all classes. For example, if
<span class="grey">McGlashan, et al. Standards Track [Page 71]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-72" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
an AS receives an unrecognized response code of 499, it can safely
assume that there was something wrong with its request and treat the
response as if it had received a 400 (Syntax error) response code.
4xx responses are definite failure responses from a particular MS.
The reason attribute in the response SHOULD identify the failure in
more detail, for example, "Mandatory attribute missing: src in media
element" for a 400 (Syntax error) response code.
The AS SHOULD NOT retry the same request without modification (for
example, correcting a syntax error or changing the connectionid to
use one available on the MS). However, the same request to a
different MS might be successful, for example, if another MS supports
a capability required in the request.
4xx failure responses can be grouped into three classes: failure due
to a syntax error in the request (400); failure due to an error
executing the request on the MS (405-419); and failure due to the
request requiring a capability not supported by the MS (420-439).
In cases where more than one request code could be reported for a
failure, the MS SHOULD use the most specific error code of the
failure class for the detected error. For example, if the MS detects
that the dialogid in the request is invalid, then it uses a 406
status code. However, if the MS merely detects that an execution
error occurred, then 419 is used.
<span class="grey">McGlashan, et al. Standards Track [Page 72]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-73" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
+------+---------------+-----------------------+--------------------+
| Code | Summary | Description | Informational: AS |
| | | | Possible Recovery |
| | | | Action |
+------+---------------+-----------------------+--------------------+
| 200 | OK | request has | |
| | | succeeded. | |
| 400 | Syntax error | request is | Change the request |
| | | syntactically | so that it is |
| | | invalid: it is not | syntactically |
| | | valid with respect to | valid. |
| | | the XML schema | |
| | | specified in | |
| | | <a href="#section-5">Section 5</a> or it | |
| | | violates a | |
| | | co-occurrence | |
| | | constraint for a | |
| | | request element | |
| | | defined in <a href="#section-4">Section 4</a>. | |
| 405 | dialogid | request uses a | Send a request for |
| | already | dialogid identifier | a new dialog |
| | exists | for a new dialog that | without specifying |
| | | is already used by | the dialogid and |
| | | another dialog on the | let the MS |
| | | MS (see <a href="#section-4.2">Section 4.2</a>). | generate a unique |
| | | | dialogid in the |
| | | | response. |
| 406 | dialogid does | request uses a | Send an <audit> |
| | not exist | dialogid identifier | request |
| | | for an dialog that | (<a href="#section-4.4.1">Section 4.4.1</a>) |
| | | does not exist on the | requesting the |
| | | MS (see <a href="#section-4.2">Section 4.2</a>). | list of dialog |
| | | | identifiers |
| | | | already used by |
| | | | the MS and then |
| | | | use one of the |
| | | | listed dialog |
| | | | identifiers. |
| 407 | connectionid | request uses a | Use another method |
| | does not | connectionid | to determine which |
| | exist | identifier for a | connections are |
| | | connection that does | available on the |
| | | not exist on the MS. | MS. |
| 408 | conferenceid | request uses a | Use another method |
| | does not | conferenceid | to determine which |
| | exist | identifier for a | conferences are |
| | | conference that does | available on the |
| | | not exist on the MS. | MS. |
<span class="grey">McGlashan, et al. Standards Track [Page 73]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-74" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
| 409 | Resource | request uses a URI to | Check that the |
| | cannot be | reference an external | resource URI is |
| | retrieved | resource (e.g., | valid, can be |
| | | dialog, media, or | reached from the |
| | | grammar) that cannot | MS, and that the |
| | | be retrieved within | appropriate |
| | | the timeout interval. | authentication is |
| | | | used. |
| 410 | Dialog | request to prepare or | |
| | execution | start a dialog that | |
| | canceled | has been terminated | |
| | | by a | |
| | | <dialogterminate/> | |
| | | request (see | |
| | | <a href="#section-4.2">Section 4.2</a>). | |
| 411 | Incompatible | request specifies a | Change the media |
| | stream | media stream | stream |
| | configuration | configuration that is | configuration to |
| | | in conflict with | match the |
| | | itself, or the | capabilities of |
| | | connection or | the connection or |
| | | conference | conference. |
| | | capabilities (see | |
| | | <a href="#section-4.2.2">Section 4.2.2</a>). | |
| 412 | Media stream | request specifies an | Check the media |
| | not available | operation for which a | stream capability |
| | | media stream is not | of the connection |
| | | available. For | or conference and |
| | | example, playing a | use an operation |
| | | video media resource | that only uses |
| | | on an connection or | these |
| | | conference without | capabilities. |
| | | video streams. | |
| 413 | Control keys | request contains a | Use different keys |
| | with same | <control> element | for the different |
| | value | (<a href="#section-4.3.1.2">Section 4.3.1.2</a>) | control |
| | | where some keys have | operations. |
| | | the same value. | |
| 419 | Other | requested operation | |
| | execution | cannot be executed by | |
| | error | the MS. | |
| 420 | Unsupported | request specifies a | Use a URI scheme |
| | URI scheme | URI whose scheme is | that is supported. |
| | | not supported by the | |
| | | MS. | |
<span class="grey">McGlashan, et al. Standards Track [Page 74]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-75" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
| 421 | Unsupported | request references an | Send an <audit> |
| | dialog | external dialog | request |
| | language | language not | (<a href="#section-4.4.1">Section 4.4.1</a>) |
| | | supported by the MS. | requesting the MS |
| | | | capabilities and |
| | | | then use one of |
| | | | the listed dialog |
| | | | languages. |
| 422 | Unsupported | request references a | Send an <audit> |
| | playback | media resource for | request |
| | format | playback whose format | (<a href="#section-4.4.1">Section 4.4.1</a>) |
| | | is not supported by | requesting the MS |
| | | the MS. | capabilities and |
| | | | then use one of |
| | | | the listed |
| | | | playback media |
| | | | formats. |
| 423 | Unsupported | request references a | Send an <audit> |
| | record format | media resource for | request |
| | | recording whose | (<a href="#section-4.4.1">Section 4.4.1</a>) |
| | | format is not | requesting the MS |
| | | supported by the MS. | capabilities and |
| | | | then use one of |
| | | | the listed record |
| | | | media formats. |
| 424 | Unsupported | request references a | Send an <audit> |
| | grammar | grammar whose format | request |
| | format | is not supported by | (<a href="#section-4.4.1">Section 4.4.1</a>) |
| | | the MS. | requesting the MS |
| | | | capabilities and |
| | | | then use one of |
| | | | the listed grammar |
| | | | types. |
| 425 | Unsupported | request contains a | Send an <audit> |
| | variable | prompt <variable> | request |
| | configuration | element | (<a href="#section-4.4.1">Section 4.4.1</a>) |
| | | (<a href="#section-4.3.1.1.1">Section 4.3.1.1.1</a>) | requesting the MS |
| | | not supported by the | capabilities and |
| | | MS. | then use one of |
| | | | the listed |
| | | | variable types. |
| 426 | Unsupported | request contains a | |
| | DTMF | prompt <dtmf> element | |
| | configuration | (<a href="#section-4.3.1.1.2">Section 4.3.1.1.2</a>) | |
| | | not supported by the | |
| | | MS. | |
<span class="grey">McGlashan, et al. Standards Track [Page 75]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-76" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
| 427 | Unsupported | request contains a | |
| | parameter | <param> element | |
| | | (<a href="#section-4.2.6.1">Section 4.2.6.1</a>) not | |
| | | supported by the MS. | |
| 428 | Unsupported | request contains a | |
| | media stream | <stream> element | |
| | configuration | (<a href="#section-4.2.2.2">Section 4.2.2.2</a>) | |
| | | whose configuration | |
| | | is not supported by | |
| | | the MS. | |
| 429 | Unsupported | request contains a | |
| | playback | <prompt> element | |
| | configuration | (<a href="#section-4.3.1.1">Section 4.3.1.1</a>) | |
| | | that the MS is unable | |
| | | to play on the | |
| | | available output | |
| | | media streams. | |
| 430 | Unsupported | request contains a | |
| | record | <record> element | |
| | configuration | (<a href="#section-4.3.1.4">Section 4.3.1.4</a>) | |
| | | that the MS is unable | |
| | | to record with on the | |
| | | available input media | |
| | | streams. | |
| 431 | Unsupported | request contains | |
| | foreign | attributes or | |
| | namespace | elements from another | |
| | attribute or | namespace that the MS | |
| | element | does not support. | |
| 432 | Unsupported | request tries to | |
| | multiple | start another dialog | |
| | dialog | on the same | |
| | capability | conference or | |
| | | connection where a | |
| | | dialog is already | |
| | | running. | |
| 433 | Unsupported | request contains | |
| | collect and | <collect> and | |
| | record | <record> elements and | |
| | capability | the MS does support | |
| | | these operations | |
| | | simultaneously. | |
| 434 | Unsupported | request contains a | |
| | VAD | <record> element | |
| | capability | where Voice Activity | |
| | | Detection (VAD) is | |
| | | required, but the MS | |
| | | does not support VAD. | |
<span class="grey">McGlashan, et al. Standards Track [Page 76]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-77" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
| 435 | Unsupported | request contains a | |
| | parallel | prompt <par> element | |
| | playback | whose configuration | |
| | | is not supported by | |
| | | the MS. | |
| 439 | Other | request requires | |
| | unsupported | another capability | |
| | capability | not supported by the | |
| | | MS. | |
+------+---------------+-----------------------+--------------------+
Table 1: Status Codes
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. Type Definitions</span>
This section defines types referenced in attribute and element
definitions.
<span class="h4"><a class="selflink" id="section-4.6.1" href="#section-4.6.1">4.6.1</a>. Boolean</span>
The value space of boolean is the set {true, false, 1, 0} as defined
in <a href="#section-3.2.2">Section 3.2.2</a> of [XMLSchema:Part2]. In accordance with this
definition, the concept of false can be lexically represented by the
strings "0" and "false" and the concept of true by the strings "1"
and "true"; implementations MUST support both styles of lexical
representation.
<span class="h4"><a class="selflink" id="section-4.6.2" href="#section-4.6.2">4.6.2</a>. DTMFChar</span>
A DTMF character. The value space is the set {0, 1, 2, 3, 4, 5, 6,
7, 8, 9, #, *, A, B, C, D}.
<span class="h4"><a class="selflink" id="section-4.6.3" href="#section-4.6.3">4.6.3</a>. DTMFString</span>
A string composed of one or more DTMFChars.
<span class="h4"><a class="selflink" id="section-4.6.4" href="#section-4.6.4">4.6.4</a>. Non-Negative Integer</span>
The value space of non-negative integer is the infinite set
{0,1,2,...} as defined in <a href="#section-3.3.20">Section 3.3.20</a> of [XMLSchema:Part2].
Implementation Note: It is RECOMMENDED that implementations at least
support a maximum value of a 32-bit integer (2,147,483,647).
<span class="h4"><a class="selflink" id="section-4.6.5" href="#section-4.6.5">4.6.5</a>. Positive Integer</span>
The value space of positive integer is the infinite set {1,2,...} as
defined in <a href="#section-3.3.25">Section 3.3.25</a> of [XMLSchema:Part2].
<span class="grey">McGlashan, et al. Standards Track [Page 77]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-78" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
Implementation Note: It is RECOMMENDED that implementations at least
support a maximum value of a 32-bit integer (2,147,483,647).
<span class="h4"><a class="selflink" id="section-4.6.6" href="#section-4.6.6">4.6.6</a>. String</span>
A string in the character encoding associated with the XML element as
defined in <a href="#section-3.2.1">Section 3.2.1</a> of [XMLSchema:Part2].
<span class="h4"><a class="selflink" id="section-4.6.7" href="#section-4.6.7">4.6.7</a>. Time Designation</span>
A time designation consists of a non-negative real number followed by
a time unit identifier.
The time unit identifiers are "ms" (milliseconds) and "s" (seconds).
Examples include: "3s", "850ms", "0.7s", ".5s", and "+1.5s".
<span class="h4"><a class="selflink" id="section-4.6.8" href="#section-4.6.8">4.6.8</a>. Percentage</span>
A percentage consists of a positive integer followed by "%".
Examples include: "100%", "500%", and "10%".
<span class="h4"><a class="selflink" id="section-4.6.9" href="#section-4.6.9">4.6.9</a>. URI</span>
Uniform Resource Indicator as defined in [<a href="./rfc3986" title=""Uniform Resource Identifier (URI): Generic Syntax"">RFC3986</a>].
<span class="h4"><a class="selflink" id="section-4.6.10" href="#section-4.6.10">4.6.10</a>. MIME Media Type</span>
A string formatted as an IANA MIME media type [<a href="#ref-MIME.mediatypes">MIME.mediatypes</a>]. The
ABNF [<a href="./rfc5234" title=""Augmented BNF for Syntax Specifications: ABNF"">RFC5234</a>] production for the string is:
type = type-name "/" subtype-name *(";" parameter)
parameter = parameter-name "=" value
where "type-name" and "subtype-name" are defined in <a href="./rfc4288#section-4.2">Section 4.2 of
[RFC4288]</a>, "parameter-name" is defined in <a href="./rfc4288#section-4.3">Section 4.3 of [RFC4288]</a>,
and "value" is defined in <a href="./rfc2045#section-5.1">Section 5.1 of [RFC2045]</a>.
<span class="h4"><a class="selflink" id="section-4.6.11" href="#section-4.6.11">4.6.11</a>. Language Identifier</span>
A language identifier labels information content as being of a
particular human language variant. Following the XML specification
for language identification [<a href="#ref-XML" title=""Extensible Markup Language (XML) 1.0 (Third Edition)"">XML</a>], a legal language identifier is
identified by a [<a href="./rfc5646" title=""Tags for Identifying Languages"">RFC5646</a>] code and matched according to [<a href="./rfc4647" title=""Matching of Language Tags"">RFC4647</a>].
<span class="grey">McGlashan, et al. Standards Track [Page 78]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-79" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h4"><a class="selflink" id="section-4.6.12" href="#section-4.6.12">4.6.12</a>. DateTime</span>
A string formatted according to the XML schema definition of a
dateTime type [XMLSchema:Part2].
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Formal Syntax</span>
This section defines the XML schema for IVR Control Package. The
schema is normative.
The schema defines datatypes, attributes, dialog management, and IVR
dialog elements in the urn:ietf:params:xml:ns:msc-ivr namespace. In
most elements the order of child elements is significant. The schema
is extensible: elements allow attributes and child elements from
other namespaces. Elements from outside this package's namespace can
occur after elements defined in this package.
The schema is dependent upon the schema (framework.xsd) defined in
<a href="#appendix-A.1">Appendix A.1</a> of the Control Framework [<a href="./rfc6230" title=""Media Control Channel Framework"">RFC6230</a>]. It is also
dependent upon the W3C (xml.xsd) schema for definitions of XML
attributes (e.g., xml:base).
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="urn:ietf:params:xml:ns:msc-ivr"
elementFormDefault="qualified" blockDefault="#all"
xmlns="urn:ietf:params:xml:ns:msc-ivr"
xmlns:fw="urn:ietf:params:xml:ns:control:framework-attributes"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation>
IETF MediaCtrl IVR 1.0 (20110104)
This is the schema of the IETF MediaCtrl IVR Control
Package.
The schema namespace is urn:ietf:params:xml:ns:msc-ivr
</xsd:documentation>
</xsd:annotation>
<!--
#############################################################
SCHEMA IMPORTS
#############################################################
-->
<span class="grey">McGlashan, et al. Standards Track [Page 79]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-80" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd">
<xsd:annotation>
<xsd:documentation>
This import brings in the XML attributes for
xml:base, xml:lang, etc
See <a href="http://www.w3.org/2001/xml.xsd">http://www.w3.org/2001/xml.xsd</a> for latest version
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<xsd:import
namespace="urn:ietf:params:xml:ns:control:framework-attributes"
schemaLocation="framework.xsd">
<xsd:annotation>
<xsd:documentation>
This import brings in the framework attributes for
conferenceid and connectionid.
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<!--
#####################################################
Extensible core type
#####################################################
-->
<xsd:complexType name="Tcore">
<xsd:annotation>
<xsd:documentation>
This type is extended by other (non-mixed) component types to
allow attributes from other namespaces.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence/>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
<!--
#####################################################
<span class="grey">McGlashan, et al. Standards Track [Page 80]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-81" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
TOP LEVEL ELEMENT: mscivr
#####################################################
-->
<xsd:complexType name="mscivrType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:choice>
<xsd:element ref="dialogprepare" />
<xsd:element ref="dialogstart" />
<xsd:element ref="dialogterminate" />
<xsd:element ref="response" />
<xsd:element ref="event" />
<xsd:element ref="audit" />
<xsd:element ref="auditresponse" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="version" type="version.datatype"
use="required" />
<xsd:attribute name="desclang" type="xsd:language"
default="i-default" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="mscivr" type="mscivrType" />
<!--
#####################################################
DIALOG MANAGEMENT TYPES
#####################################################
-->
<!-- dialogprepare -->
<xsd:complexType name="dialogprepareType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="dialog" minOccurs="0"
maxOccurs="1" />
<span class="grey">McGlashan, et al. Standards Track [Page 81]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-82" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:element ref="params" minOccurs="0"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="src" type="xsd:anyURI" />
<xsd:attribute name="type" type="mime.datatype"/>
<xsd:attribute name="maxage" type="xsd:nonNegativeInteger"/>
<xsd:attribute name="maxstale" type="xsd:nonNegativeInteger"/>
<xsd:attribute name="fetchtimeout"
type="timedesignation.datatype" default="30s" />
<xsd:attribute name="dialogid"
type="dialogid.datatype" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dialogprepare" type="dialogprepareType" />
<!-- dialogstart -->
<xsd:complexType name="dialogstartType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="dialog" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="subscribe" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="params" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="stream" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="src" type="xsd:anyURI" />
<xsd:attribute name="type" type="mime.datatype"/>
<xsd:attribute name="maxage" type="xsd:nonNegativeInteger"/>
<xsd:attribute name="maxstale" type="xsd:nonNegativeInteger"/>
<xsd:attribute name="fetchtimeout"
type="timedesignation.datatype" default="30s" />
<xsd:attribute name="dialogid"
type="dialogid.datatype" />
<xsd:attribute name="prepareddialogid"
type="dialogid.datatype" />
<xsd:attributeGroup ref="fw:framework-attributes" />
</xsd:extension>
<span class="grey">McGlashan, et al. Standards Track [Page 82]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-83" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dialogstart" type="dialogstartType" />
<!-- dialogterminate -->
<xsd:complexType name="dialogterminateType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="dialogid"
type="dialogid.datatype" use="required" />
<xsd:attribute name="immediate"
type="xsd:boolean" default="false" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dialogterminate" type="dialogterminateType" />
<!-- response -->
<xsd:complexType name="responseType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="status" type="status.datatype"
use="required" />
<xsd:attribute name="reason" type="xsd:string" />
<xsd:attribute name="desclang" type="xsd:language"/>
<xsd:attribute name="dialogid"
type="dialogid.datatype" use="required" />
<xsd:attributeGroup ref="fw:framework-attributes" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="response" type="responseType" />
<!-- event -->
<span class="grey">McGlashan, et al. Standards Track [Page 83]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-84" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:complexType name="eventType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:choice>
<xsd:element ref="dialogexit" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="dtmfnotify" minOccurs="0"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="dialogid"
type="dialogid.datatype" use="required" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="event" type="eventType" />
<!-- dialogexit-->
<xsd:complexType name="dialogexitType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="promptinfo" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="controlinfo" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="collectinfo" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="recordinfo" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="params" minOccurs="0"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="status"
type="xsd:nonNegativeInteger" use="required" />
<xsd:attribute name="reason" type="xsd:string" />
<xsd:attribute name="desclang" type="xsd:language"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<span class="grey">McGlashan, et al. Standards Track [Page 84]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-85" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:element name="dialogexit" type="dialogexitType" />
<!-- dtmfnotify-->
<xsd:complexType name="dtmfnotifyType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="matchmode"
type="matchmode.datatype" default="all" />
<xsd:attribute name="dtmf" type="dtmfstring.datatype"
use="required" />
<xsd:attribute name="timestamp" type="xsd:dateTime"
use="required" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dtmfnotify" type="dtmfnotifyType" />
<!-- promptinfo -->
<xsd:complexType name="promptinfoType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="duration"
type="xsd:nonNegativeInteger" />
<xsd:attribute name="termmode"
type="prompt_termmode.datatype" use="required" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="promptinfo" type="promptinfoType" />
<!-- controlinfo -->
<xsd:complexType name="controlinfoType">
<span class="grey">McGlashan, et al. Standards Track [Page 85]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-86" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="controlmatch" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="controlinfo" type="controlinfoType" />
<!-- controlmatch -->
<xsd:complexType name="controlmatchType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="dtmf"
type="dtmfstring.datatype" />
<xsd:attribute name="timestamp" type="xsd:dateTime" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="controlmatch" type="controlmatchType" />
<!-- collectinfo -->
<xsd:complexType name="collectinfoType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="dtmf"
type="dtmfstring.datatype" />
<xsd:attribute name="termmode"
type="collect_termmode.datatype" use="required" />
</xsd:extension>
<span class="grey">McGlashan, et al. Standards Track [Page 86]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-87" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="collectinfo" type="collectinfoType" />
<!-- recordinfo -->
<xsd:complexType name="recordinfoType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="mediainfo" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="duration"
type="xsd:nonNegativeInteger" />
<xsd:attribute name="termmode"
type="record_termmode.datatype" use="required" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="recordinfo" type="recordinfoType" />
<!-- mediainfo -->
<xsd:complexType name="mediainfoType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="loc" type="xsd:anyURI"
use="required" />
<xsd:attribute name="type" type="mime.datatype"
use="required"/>
<xsd:attribute name="size"
type="xsd:nonNegativeInteger" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="mediainfo" type="mediainfoType" />
<span class="grey">McGlashan, et al. Standards Track [Page 87]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-88" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<!-- subscribe -->
<xsd:complexType name="subscribeType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="dtmfsub" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="subscribe" type="subscribeType" />
<!-- dtmfsub -->
<xsd:complexType name="dtmfsubType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="matchmode"
type="matchmode.datatype" default="all" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dtmfsub" type="dtmfsubType" />
<!-- params -->
<xsd:complexType name="paramsType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="param" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
<span class="grey">McGlashan, et al. Standards Track [Page 88]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-89" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
</xsd:complexType>
<xsd:element name="params" type="paramsType" />
<!-- param -->
<!-- doesn't extend tCore since its content model is mixed -->
<xsd:complexType name="paramType" mixed="true">
<xsd:sequence/>
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="type" type="mime.datatype" default="text/plain"/>
<xsd:attribute name="encoding" type="xsd:string"/>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
<xsd:element name="param" type="paramType" />
<!-- stream -->
<xsd:complexType name="streamType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="region" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="priority" minOccurs="0"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="media" type="media.datatype"
use="required" />
<xsd:attribute name="label" type="label.datatype" />
<xsd:attribute name="direction"
type="direction.datatype" default="sendrecv" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="stream" type="streamType" />
<!-- region -->
<xsd:simpleType name="regionType">
<xsd:restriction base="xsd:NMTOKEN"/>
</xsd:simpleType>
<xsd:element name="region" type="regionType" />
<span class="grey">McGlashan, et al. Standards Track [Page 89]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-90" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<!-- priority -->
<xsd:simpleType name="priorityType">
<xsd:restriction base="xsd:positiveInteger" />
</xsd:simpleType>
<xsd:element name="priority" type="priorityType" />
<!-- dialog -->
<xsd:complexType name="dialogType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="prompt" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="control" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="collect" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="record" minOccurs="0"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="repeatCount"
type="xsd:nonNegativeInteger" default="1" />
<xsd:attribute name="repeatDur"
type="timedesignation.datatype" />
<xsd:attribute name="repeatUntilComplete"
type="xsd:boolean" default="false"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dialog" type="dialogType" />
<!-- prompt -->
<xsd:complexType name="promptType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="media" />
<xsd:element ref="variable" />
<xsd:element ref="dtmf" />
<xsd:element ref="par" />
<span class="grey">McGlashan, et al. Standards Track [Page 90]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-91" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:any namespace="##other"
processContents="lax" />
</xsd:choice>
<xsd:attribute ref="xml:base" />
<xsd:attribute name="bargein" type="xsd:boolean"
default="true" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="prompt" type="promptType" />
<!-- media -->
<xsd:complexType name="mediaType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="loc" type="xsd:anyURI"
use="required" />
<xsd:attribute name="type" type="mime.datatype" />
<xsd:attribute name="fetchtimeout"
type="timedesignation.datatype" default="30s" />
<xsd:attribute name="soundLevel"
type="percentage.datatype" default="100%" />
<xsd:attribute name="clipBegin"
type="timedesignation.datatype" default="0s" />
<xsd:attribute name="clipEnd"
type="timedesignation.datatype"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="media" type="mediaType" />
<!-- variable -->
<xsd:complexType name="variableT">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<span class="grey">McGlashan, et al. Standards Track [Page 91]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-92" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:attribute name="value" type="xsd:string"
use="required" />
<xsd:attribute name="type" type="xsd:string"
use="required" />
<xsd:attribute name="format" type="xsd:string" />
<xsd:attribute name="gender" type="gender.datatype" />
<xsd:attribute ref="xml:lang" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="variable" type="variableT" />
<!-- dtmf -->
<xsd:complexType name="dtmfType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="digits"
type="dtmfstring.datatype" use="required" />
<xsd:attribute name="level" type="xsd:integer"
default="-6" />
<xsd:attribute name="duration"
type="timedesignation.datatype" default="100ms" />
<xsd:attribute name="interval"
type="timedesignation.datatype" default="100ms" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dtmf" type="dtmfType" />
<!-- par -->
<xsd:complexType name="parType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="media" />
<xsd:element ref="variable" />
<xsd:element ref="dtmf" />
<xsd:element ref="seq" />
<xsd:any namespace="##other"
<span class="grey">McGlashan, et al. Standards Track [Page 92]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-93" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
processContents="lax" />
</xsd:choice>
<xsd:attribute name="endsync" type="endsync.datatype"
default="last"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="par" type="parType" />
<!-- seq -->
<xsd:complexType name="seqType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="media" />
<xsd:element ref="variable" />
<xsd:element ref="dtmf" />
<xsd:any namespace="##other"
processContents="lax" />
</xsd:choice>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="seq" type="seqType" />
<!-- control -->
<xsd:complexType name="controlType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="skipinterval"
type="timedesignation.datatype" default="6s" />
<xsd:attribute name="ffkey" type="dtmfchar.datatype" />
<xsd:attribute name="rwkey" type="dtmfchar.datatype" />
<xsd:attribute name="pauseinterval"
type="timedesignation.datatype" default="10s" />
<xsd:attribute name="pausekey"
type="dtmfchar.datatype" />
<xsd:attribute name="resumekey"
type="dtmfchar.datatype" />
<xsd:attribute name="volumeinterval"
<span class="grey">McGlashan, et al. Standards Track [Page 93]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-94" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
type="percentage.datatype" default="10%" />
<xsd:attribute name="volupkey"
type="dtmfchar.datatype" />
<xsd:attribute name="voldnkey"
type="dtmfchar.datatype" />
<xsd:attribute name="speedinterval"
type="percentage.datatype" default="10%" />
<xsd:attribute name="speedupkey"
type="dtmfchar.datatype" />
<xsd:attribute name="speeddnkey"
type="dtmfchar.datatype" />
<xsd:attribute name="gotostartkey"
type="dtmfchar.datatype" />
<xsd:attribute name="gotoendkey"
type="dtmfchar.datatype" />
<xsd:attribute name="external"
type="dtmfstring.datatype" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="control" type="controlType" />
<!-- collect -->
<xsd:complexType name="collectType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="grammar" minOccurs="0"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="cleardigitbuffer"
type="xsd:boolean" default="true" />
<xsd:attribute name="timeout"
type="timedesignation.datatype" default="5s" />
<xsd:attribute name="interdigittimeout"
type="timedesignation.datatype" default="2s" />
<xsd:attribute name="termtimeout"
type="timedesignation.datatype" default="0s" />
<xsd:attribute name="escapekey"
type="dtmfchar.datatype" />
<xsd:attribute name="termchar"
type="dtmfchar.datatype" default="#" />
<xsd:attribute name="maxdigits"
<span class="grey">McGlashan, et al. Standards Track [Page 94]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-95" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
type="xsd:positiveInteger" default="5" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="collect" type="collectType" />
<!-- grammar -->
<!-- doesn't extend tCore since its content model is mixed -->
<xsd:complexType name="grammarType" mixed="true">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="src" type="xsd:anyURI" />
<xsd:attribute name="type" type="mime.datatype" />
<xsd:attribute name="fetchtimeout"
type="timedesignation.datatype" default="30s" />
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
<xsd:element name="grammar" type="grammarType" />
<!-- record -->
<xsd:complexType name="recordType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="media" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="timeout"
type="timedesignation.datatype" default="5s" />
<xsd:attribute name="beep" type="xsd:boolean"
default="false" />
<xsd:attribute name="vadinitial"
type="xsd:boolean" default="false" />
<xsd:attribute name="vadfinal"
type="xsd:boolean" default="false" />
<xsd:attribute name="dtmfterm"
type="xsd:boolean" default="true" />
<xsd:attribute name="maxtime"
type="timedesignation.datatype" default="15s" />
<xsd:attribute name="finalsilence"
type="timedesignation.datatype" default="5s" />
<span class="grey">McGlashan, et al. Standards Track [Page 95]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-96" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:attribute name="append" type="xsd:boolean"
default="false" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="record" type="recordType" />
<!--
#####################################################
AUDIT TYPES
#####################################################
-->
<!-- audit -->
<xsd:complexType name="auditType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="capabilities"
type="xsd:boolean" default="true" />
<xsd:attribute name="dialogs"
type="xsd:boolean" default="true" />
<xsd:attribute name="dialogid"
type="dialogid.datatype"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="audit" type="auditType" />
<!-- auditresponse -->
<xsd:complexType name="auditresponseType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="capabilities" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="dialogs" minOccurs="0"
maxOccurs="1" />
<span class="grey">McGlashan, et al. Standards Track [Page 96]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-97" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="status" type="status.datatype"
use="required" />
<xsd:attribute name="reason" type="xsd:string" />
<xsd:attribute name="desclang" type="xsd:language"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="auditresponse" type="auditresponseType" />
<!-- codec -->
<xsd:complexType name="codecType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="subtype" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="params" minOccurs="0"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"
use="required" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="codec" type="codecType" />
<!-- subtype -->
<xsd:simpleType name="subtypeType">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
<xsd:element name="subtype" type="subtypeType" />
<!-- codecs -->
<xsd:complexType name="codecsType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<span class="grey">McGlashan, et al. Standards Track [Page 97]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-98" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:sequence>
<xsd:element ref="codec" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="codecs" type="codecsType" />
<!-- capabilities -->
<xsd:complexType name="capabilitiesType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="dialoglanguages" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="grammartypes" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="recordtypes" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="prompttypes" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="variables" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="maxpreparedduration" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="maxrecordduration" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="codecs" minOccurs="1"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="capabilities" type="capabilitiesType" />
<!-- mimetype -->
<xsd:element name="mimetype" type="mime.datatype" />
<span class="grey">McGlashan, et al. Standards Track [Page 98]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-99" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<!-- dialoglanguages -->
<xsd:complexType name="dialoglanguagesType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="mimetype" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dialoglanguages" type="dialoglanguagesType" />
<!-- grammartypes -->
<xsd:complexType name="grammartypesType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="mimetype" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="grammartypes" type="grammartypesType" />
<!-- recordtypes -->
<xsd:complexType name="recordtypesType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="mimetype" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
<span class="grey">McGlashan, et al. Standards Track [Page 99]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-100" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
</xsd:complexType>
<xsd:element name="recordtypes" type="recordtypesType" />
<!-- prompttypes -->
<xsd:complexType name="prompttypesType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="mimetype" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="prompttypes" type="prompttypesType" />
<!-- variables -->
<xsd:complexType name="variablesType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="variabletype" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="variables" type="variablesType" />
<xsd:complexType name="variabletypeType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="format" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<span class="grey">McGlashan, et al. Standards Track [Page 100]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-101" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:attribute name="type" type="xsd:string" use="required" />
<xsd:attribute name="desc" type="xsd:string"/>
<xsd:attribute name="desclang" type="xsd:language"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="variabletype" type="variabletypeType" />
<!-- format -->
<!-- doesn't extend tCore since its content model is mixed -->
<xsd:complexType name="formatType" mixed="true">
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="desc" type="xsd:string" />
<xsd:attribute name="desclang" type="xsd:language"/>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
<xsd:element name="format" type="formatType" />
<!-- maxpreparedduration -->
<xsd:element name="maxpreparedduration"
type="timedesignation.datatype"/>
<!-- maxrecordduration -->
<xsd:element name="maxrecordduration"
type="timedesignation.datatype"/>
<!-- dialogs -->
<xsd:complexType name="dialogsType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="dialogaudit" minOccurs="0"
maxOccurs="unbounded" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
<span class="grey">McGlashan, et al. Standards Track [Page 101]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-102" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
</xsd:complexType>
<xsd:element name="dialogs" type="dialogsType" />
<!-- dialogaudit -->
<xsd:complexType name="dialogauditType">
<xsd:complexContent>
<xsd:extension base="Tcore">
<xsd:sequence>
<xsd:element ref="codecs" minOccurs="0"
maxOccurs="1" />
<xsd:any namespace="##other" minOccurs="0"
maxOccurs="unbounded" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="dialogid"
type="dialogid.datatype" use="required" />
<xsd:attribute name="state" type="state.datatype"
use="required" />
<xsd:attributeGroup ref="fw:framework-attributes" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="dialogaudit" type="dialogauditType" />
<!--
####################################################
DATATYPES
####################################################
-->
<xsd:simpleType name="version.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="1.0" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="mime.datatype">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
<xsd:simpleType name="dialogid.datatype">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
<span class="grey">McGlashan, et al. Standards Track [Page 102]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-103" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:simpleType name="gender.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="female" />
<xsd:enumeration value="male" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="state.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="preparing" />
<xsd:enumeration value="prepared" />
<xsd:enumeration value="starting" />
<xsd:enumeration value="started" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="status.datatype">
<xsd:restriction base="xsd:positiveInteger">
<xsd:pattern value="[0-9][0-9][0-9]" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="media.datatype">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
<xsd:simpleType name="label.datatype">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
<xsd:simpleType name="direction.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="sendrecv" />
<xsd:enumeration value="sendonly" />
<xsd:enumeration value="recvonly" />
<xsd:enumeration value="inactive" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="timedesignation.datatype">
<xsd:annotation>
<xsd:documentation>
Time designation following Time in CSS2
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="(\+)?([0-9]*\.)?[0-9]+(ms|s)" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="dtmfchar.datatype">
<xsd:annotation>
<xsd:documentation>
DTMF character [0-9#*A-D]
</xsd:documentation>
<span class="grey">McGlashan, et al. Standards Track [Page 103]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-104" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9#*A-D]" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="dtmfstring.datatype">
<xsd:annotation>
<xsd:documentation>
DTMF sequence [0-9#*A-D]
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="([0-9#*A-D])+" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="percentage.datatype">
<xsd:annotation>
<xsd:documentation>
whole integer followed by '%'
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="([0-9])+%" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="prompt_termmode.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="completed" />
<xsd:enumeration value="bargein" />
<xsd:enumeration value="stopped" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="collect_termmode.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="match" />
<xsd:enumeration value="noinput" />
<xsd:enumeration value="nomatch" />
<xsd:enumeration value="stopped" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="record_termmode.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="noinput" />
<xsd:enumeration value="dtmf" />
<xsd:enumeration value="maxtime" />
<span class="grey">McGlashan, et al. Standards Track [Page 104]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-105" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<xsd:enumeration value="finalsilence" />
<xsd:enumeration value="stopped" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="matchmode.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="all" />
<xsd:enumeration value="collect" />
<xsd:enumeration value="control" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="endsync.datatype">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="first" />
<xsd:enumeration value="last" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Examples</span>
This section provides examples of the IVR Control Package.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. AS-MS Dialog Interaction Examples</span>
The following example assume a Control Channel has been established
and synced as described in the Media Control Channel Framework
[<a href="./rfc6230" title=""Media Control Channel Framework"">RFC6230</a>].
The XML messages are in angled brackets (with the root <mscivr>
omitted); the REPORT status is in round brackets. Other aspects of
the protocol are omitted for readability.
<span class="h4"><a class="selflink" id="section-6.1.1" href="#section-6.1.1">6.1.1</a>. Starting an IVR Dialog</span>
An IVR dialog is started successfully, and dialogexit notification
<event> is sent from the MS to the AS when the dialog exits normally.
<span class="grey">McGlashan, et al. Standards Track [Page 105]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-106" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
Application Server (AS) Media Server (MS)
| |
| (1) CONTROL: <dialogstart> |
| ----------------------------------------> |
| |
| (2) 202 |
| <--------------------------------------- |
| |
| |
| (3) REPORT: <response status="200"/> |
| (terminate) |
| <---------------------------------------- |
| |
| (4) 200 |
| ----------------------------------------> |
| |
| (5) CONTROL: <event ... /> |
| |
| <---------------------------------------- |
| |
| (6) 200 |
| ----------------------------------------> |
| |
<span class="h4"><a class="selflink" id="section-6.1.2" href="#section-6.1.2">6.1.2</a>. IVR Dialog Fails to Start</span>
An IVR dialog fails to start due to an unknown dialog language. The
<response> is reported in a framework 200 message.
Application Server (AS) Media Server (MS)
| |
| (1) CONTROL: <dialogstart> |
| ----------------------------------------> |
| |
| (2) 200: <response status="421"/> |
| <---------------------------------------- |
| |
<span class="grey">McGlashan, et al. Standards Track [Page 106]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-107" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h4"><a class="selflink" id="section-6.1.3" href="#section-6.1.3">6.1.3</a>. Preparing and Starting an IVR Dialog</span>
An IVR dialog is prepared and started successfully, and then the
dialog exits normally.
Application Server (AS) Media Server (MS)
| |
| (1) CONTROL: <dialogprepare> |
| ----------------------------------------> |
| |
| (2) 202 |
| <--------------------------------------- |
| |
| (3) REPORT: <response status="200"/> |
| (terminate) |
| <---------------------------------------- |
| |
| (4) 200 |
| ----------------------------------------> |
| |
| (5) CONTROL: <dialogstart> |
| ----------------------------------------> |
| |
| (6) 202 |
| <--------------------------------------- |
| |
| (7) REPORT: <response status="200"/> |
| (terminate) |
| <---------------------------------------- |
| |
| (8) 200 |
| ----------------------------------------> |
| |
| (9) CONTROL: <event .../> |
| <---------------------------------------- |
| |
| (10) 200 |
| ----------------------------------------> |
| |
<span class="grey">McGlashan, et al. Standards Track [Page 107]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-108" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h4"><a class="selflink" id="section-6.1.4" href="#section-6.1.4">6.1.4</a>. Terminating a Dialog</span>
An IVR dialog is started successfully, and then terminated by the AS.
The dialogexit event is sent to the AS when the dialog exits.
Application Server (AS) Media Server (MS)
| |
| (1) CONTROL: <dialogstart> |
| ----------------------------------------> |
| |
| (2) 202 |
| <--------------------------------------- |
| |
| (3) REPORT: <response status="200"/> |
| (terminate) |
| <---------------------------------------- |
| |
| (4) 200 |
| ----------------------------------------> |
| |
| (5) CONTROL: <dialogterminate> |
| ----------------------------------------> |
| |
| (6) 200: <response status="200"/> |
| <---------------------------------------- |
| |
| (7) CONTROL: <event .../> |
| <---------------------------------------- |
| |
| (8) 200 |
| ----------------------------------------> |
| |
Note that in (6) the <response> payload to the <dialogterminate/>
request is carried on a framework 200 response since it could
complete the requested operation before the transaction timeout.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. IVR Dialog Examples</span>
The following examples show how <dialog> is used with
<dialogprepare>, <dialogstart>, and <event> elements to play prompts,
set runtime controls, collect DTMF input, and record user input.
The examples do not specify all messages between the AS and MS.
<span class="grey">McGlashan, et al. Standards Track [Page 108]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-109" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h4"><a class="selflink" id="section-6.2.1" href="#section-6.2.1">6.2.1</a>. Playing Announcements</span>
This example prepares an announcement composed of two prompts where
the dialog repeatCount is set to 2.
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogprepare>
<dialog repeatCount="2">
<prompt>
<media loc="http://www.example.com/media/Number_09.wav"/>
<media loc="http://www.example.com/media/Number_11.wav"/>
</prompt>
</dialog>
</dialogprepare>
</mscivr>
If the dialog is prepared successfully, a <response> is returned with
status 200 and a dialog identifier assigned by the MS:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<response status="200" dialogid="vxi78"/>
</mscivr>
The prepared dialog is then started on a conference playing the
prompts twice:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart prepareddialogid="vxi78" conferenceid="conference11"/>
</mscivr>
In the case of a successful dialog, the output is provided in
<event>; for example:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="vxi78">
<dialogexit status="1">
<promptinfo termmode="completed" duration="24000"/>
</dialogexit>
</event>
</mscivr>
<span class="h4"><a class="selflink" id="section-6.2.2" href="#section-6.2.2">6.2.2</a>. Prompt and Collect</span>
In this example, a prompt is played and then the MS waits for 30s for
a two digit sequence:
<span class="grey">McGlashan, et al. Standards Track [Page 109]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-110" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="7HDY839:HJKSkyHS~HUwkuh7ns">
<dialog>
<prompt>
<media loc="http://www.example.com/prompt1.wav"/>
</prompt>
<collect timeout="30s" maxdigits="2"/>
</dialog>
</dialogstart>
</mscivr>
If no user input is collected within 30s, then the following
notification event would be returned:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="vxi81">
<dialogexit status="1" >
<promptinfo termmode="completed" duration="4000"/>
<collectinfo termmode="noinput"/>
</dialogexit>
</event>
</mscivr>
The collect operation can be specified without a prompt. Here the MS
just waits for DTMF input from the user (the maxdigits attribute of
<collect> defaults to 5):
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="7HDY839:HJKSkyHS~HUwkuh7ns">
<dialog>
<collect/>
</dialog>
</dialogstart>
</mscivr>
If the dialog is successful, then dialogexit <event> contains the
dtmf collected in its result parameter:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="vxi80">
<dialogexit status="1">
<collectinfo dtmf="12345" termmode="match"/>
</dialogexit>
</event>
</mscivr>
And finally, in this example, one of the input parameters is invalid:
<span class="grey">McGlashan, et al. Standards Track [Page 110]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-111" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="7HDY839:HJKSkyHS~HUwkuh7ns">
<dialog repeatCount="two">
<prompt>
<media loc="http://www.example.com/prompt1.wav"/>
</prompt>
<collect cleardigitbuffer="true"
timeout="4s" interdigittimeout="2s"
termtimeout="0s" maxdigits="2"/>
</dialog>
</dialogstart>
</mscivr>
The error is reported in the response:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<response status="400" dialogid="vxi82"
reason="repeatCount attribute value invalid: two"/>
</mscivr>
<span class="h4"><a class="selflink" id="section-6.2.3" href="#section-6.2.3">6.2.3</a>. Prompt and Record</span>
In this example, the user is prompted, then their input is recorded
for a maximum of 30 seconds.
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="7HDY839:HJKSkyHS~HUwkuh7ns">
<dialog>
<prompt>
<media loc="http://www.example.com/media/sayname.wav"/>
</prompt>
<record dtmfterm="false" maxtime="30s" beep="true"/>
</dialog>
</dialogstart>
</mscivr>
If successful and the recording is terminated by DTMF, the following
is returned in a dialogexit <event>:
<span class="grey">McGlashan, et al. Standards Track [Page 111]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-112" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="vxi83">
<dialogexit status="1">
<recordinfo termmode="dtmf">
<mediainfo type="audio/x-wav"
loc="http://www.example.com/recording1.wav"/>
</recordinfo>
</dialogexit>
</event>
</mscivr>
<span class="h4"><a class="selflink" id="section-6.2.4" href="#section-6.2.4">6.2.4</a>. Runtime Controls</span>
In this example, a prompt is played with the collect operation and
runtime controls activated.
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="7HDY839:HJKSkyHS~HUwkuh7ns">
<dialog>
<prompt bargein="true">
<media loc="http://www.example.com/prompt1.wav"/>
</prompt>
<control ffkey="5" rwkey="6" speedupkey="3"
speeddnkey="4"/>
<collect maxdigits="2"/>
</dialog>
</dialogstart>
</mscivr>
Once the dialog is active, the user can press keys 3, 4, 5, and 6 to
execute runtime controls on the prompt queue. The keys do not cause
bargein to occur. If the user presses any other key, then the prompt
is interrupted and DTMF collect begins. Note that runtime controls
are not active during the collect operation.
When the dialog is completed successfully, then both control and
collect information is reported.
<span class="grey">McGlashan, et al. Standards Track [Page 112]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-113" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="vxi81">
<dialogexit status="1">
<promptinfo termmode="bargein"/>
<controlinfo>
<controlmatch dtmf="4" timestamp="2008-05-12T12:13:14Z"/>
<controlmatch dtmf="3" timestamp="2008-05-12T12:13:15Z"/>
<controlmatch dtmf="5" timestamp="2008-05-12T12:13:16Z"/>
</controlinfo>
<collectinfo termmode="match" dtmf="14"/>
</dialogexit>
</event>
</mscivr>
<span class="h4"><a class="selflink" id="section-6.2.5" href="#section-6.2.5">6.2.5</a>. Subscriptions and Notifications</span>
In this example, a looped dialog is started with subscription for
notifications each time the user input matches the collect grammar:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="7HDY839:HJKSkyHS">
<dialog repeatCount="0">
<collect maxdigits="2"/>
</dialog>
<subscribe>
<dtmfsub matchmode="collect"/>
</subscribe>
</dialogstart>
</mscivr>
Each time the user input the DTMF matching the grammar, the following
notification event would be sent:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="vxi81">
<dtmfnotify matchmode="collect" dtmf="12"
timestamp="2008-05-12T12:13:14Z"/>
</event>
</mscivr>
If no user input was provided, or the input did not match the
grammar, the dialog would continue to loop until terminated (or an
error occurred).
<span class="h4"><a class="selflink" id="section-6.2.6" href="#section-6.2.6">6.2.6</a>. Dialog Repetition until DTMF Collection Complete</span>
This example is a prompt and collect dialog to collect the PIN from
the user. The repeatUntilComplete attribute in the <dialog> is set
<span class="grey">McGlashan, et al. Standards Track [Page 113]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-114" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
to true in this case so that when the grammar collection is complete,
the MS automatically terminates the dialog repeat cycle and reports
the results in a <dialogexit> event.
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="7HDY839:HJKSkyHS">
<dialog repeatCount="3" repeatUntilComplete="true">
<prompt bargein="true">
<media loc="http://example.com/please_enter_your_pin.vox"/>
</prompt>
<collect maxdigits="4"/>
</dialog>
</dialogstart>
</mscivr>
If the user barges in on the prompt and <collect> receives DTMF input
matching the grammar, the dialog cycle is considered complete and the
MS returns the following:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="vxi81">
<dialogexit status="1">
<promptinfo duration="3654" termmode="bargein"/>
<collectinfo dtmf="1234" termmode="match"/>
</dialogexit>
</event>
</mscivr>
If no user input was provided, or the input did not match the
grammar, the dialog would loop for a maximum of 3 times.
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Other Dialog Languages</span>
The following example requests that a VoiceXML dialog is started:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart dialogid="d2"
connectionid="7HDY839:HJKSkyHS"
type="application/voicexml+xml"
src="http://www.example.com/mydialog.vxml"
fetchtimeout="15s">
<params>
<param name="prompt1">nfs://nas01/media1.3gp</param>
<param name="prompt2">nfs://nas01/media2.3gp</param>
</params>
</dialogstart>
</mscivr>
<span class="grey">McGlashan, et al. Standards Track [Page 114]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-115" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
If the MS does not support this dialog language, then the response
would have the status code 421 (<a href="#section-4.5">Section 4.5</a>). However, if it does
support the VoiceXML dialog language, it would respond with a 200
status, activate the VoiceXML dialog, and make the <params> available
to the VoiceXML script as described in <a href="#section-9">Section 9</a>.
When the VoiceXML dialog exits, exit namelist parameters are
specified using <params> in the dialogexit event:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<event dialogid="d2">
<dialogexit status="1">
<params>
<param name="username">peter</param>
<param name="pin">1234</param>
</params>
</dialogexit>
</event>
</mscivr>
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. Foreign Namespace Attributes and Elements</span>
An MS can support attributes and elements from foreign namespaces
within the <mscivr> element. For example, the MS could support a
<listen> element (in a foreign namespace) for speech recognition by
analogy to how <collect> supports DTMF collection.
In the following example, a prompt and collect request is extended
with a <listen> element:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr"
xmlns:ex="http://www.example.com/mediactrl/extensions/1">
<dialogstart connectionid="7HDY839:HJKSkyHS~HUwkuh7ns">
<dialog>
<prompt>
<media loc="http://www.example.com/prompt1.wav"/>
</prompt>
<collect timeout="30s" maxdigits="4"/>
<ex:listen maxtimeout="30s" >
<ex:grammar src="http://example.org/pin.grxml"/>
</ex:listen>
</dialog>
</dialogstart>
</mscivr>
In the <mscivr> root element, the xmlns:ex attribute declares that
"ex" is associated with the foreign namespace URI
"http://www.example.com/mediactrl/extensions/1". The <ex:listen>,
<span class="grey">McGlashan, et al. Standards Track [Page 115]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-116" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
its attributes, and child elements are associated with this
namespace. This <listen> could be defined so that it activates an
SRGS grammar and listens for user input matching the grammar in a
similar manner to DTMF collection.
If an MS receives this request but does not support the <listen>
element, then it would send a 431 response:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<response status="431" dialogid="d560"
reason="unsupported foreign listen element"/>
</mscivr>
If the MS does support this foreign element, it would send a 200
response and start the dialog with speech recognition. When the
dialog exits, it provides information about the <listen> execution
within <dialogexit>, again using elements in a foreign namespace such
as <listeninfo> below:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr"
xmlns:ex="http://www.example.com/mediactrl/extensions/1">
<event dialogid="d560">
<dialogexit status="1">
<ex:listeninfo speech="1 2 3 4" termmode="match"/>
</dialogexit>
</event>
</mscivr>
Note that in reply the AS sends a Control Framework 200 response even
though the notification event contains an element in a foreign
namespace that it might not understand.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
As this Control Package processes XML markup, implementations MUST
address the security considerations of [<a href="./rfc3023" title=""XML Media Types"">RFC3023</a>].
Implementations of this Control Package MUST address security,
confidentiality, and integrity of messages transported over the
Control Channel as described in <a href="#section-12">Section 12</a> of "Media Control Channel
Framework" [<a href="./rfc6230" title=""Media Control Channel Framework"">RFC6230</a>], including Transport Level Protection, Control
Channel Policy Management, and Session Establishment. In addition,
implementations MUST address security, confidentiality, and integrity
of User Agent sessions with the MS, both in terms of SIP signaling
and associated RTP media flow; see [<a href="./rfc6230" title=""Media Control Channel Framework"">RFC6230</a>] for further details on
this topic. Finally, implementations MUST address security,
<span class="grey">McGlashan, et al. Standards Track [Page 116]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-117" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
confidentiality, and integrity of sessions where, following a URI
scheme, an MS uploads recordings or retrieves documents and resources
(e.g., fetching a grammar document from a web server using HTTPS).
Adequate transport protection and authentication are critical,
especially when the implementation is deployed in open networks. If
the implementation fails to correctly address these issues, it risks
exposure to malicious attacks, including (but not limited to):
Denial of Service: An attacker could insert a request message into
the transport stream causing specific dialogs on the MS to be
terminated immediately. For example, <dialogterminate
dialogid="XXXX" immediate="true">, where the value of "XXXX" could
be guessed or discovered by auditing active dialogs on the MS
using an <audit> request. Likewise, an attacker could impersonate
the MS and insert error responses into the transport stream so
denying the AS access to package capabilities.
Resource Exhaustion: An attacker could insert into the Control
Channel new request messages (or modify existing ones) with, for
instance, <dialogprepare> elements with a very long fetchtimeout
attribute and a bogus source URL. At some point, this will
exhaust the number of connections that the MS is able to make.
Phishing: An attacker with access to the Control Channel could
modify the "loc" attribute of the <media> element in a dialog to
point to some other audio file that had different information from
the original. This modified file could include a different phone
number for people to call if they want more information or need to
provide additional information (such as governmental, corporate,
or financial information).
Data Theft: An attacker could modify a <record> element in the
Control Channel so as to add a new recording location:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart>
<dialog>
<record>
<media type="audio/x-wav" loc="(Good URI)"/>
<media type="audio/x-wav" loc="(Attacker's URI)"/>
</record>
</dialog>
</dialogstart>
</mscivr>
<span class="grey">McGlashan, et al. Standards Track [Page 117]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-118" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
The recorded data would be uploaded to two locations indicated by the
"{Good URI}" and the "{Attacker's URI}". This allows the attacker to
steal the recorded audio (which could include sensitive or
confidential information) without the originator of the request
necessarily being aware of the theft.
The Media Control Channel Framework permits additional security
policy management, including resource access and Control Channel
usage, to be specified at the Control Package level beyond that
specified for the Media Control Channel Framework (see <a href="./rfc6230#section-12.3">Section 12.3
of [RFC6230]</a>).
Since creation of IVR dialogs is associated with media processing
resources (e.g., DTMF detectors, media playback and recording, etc.)
on the MS, the security policy for this Control Package needs to
address how such dialogs are securely managed across more than one
Control Channel. Such a security policy is only useful for secure,
confidential, and integrity-protected channels. The identity of
Control Channels is determined by the channel identifier, i.e., the
value of the cfw-id attribute in the SDP and 'Dialog-ID' header in
the channel protocol (see [<a href="./rfc6230" title=""Media Control Channel Framework"">RFC6230</a>]). Channels are the same if they
have the same identifier; otherwise, they are different. This
Control Package imposes the following additional security policies:
Responses: The MS MUST only send a response to a dialog management
or audit request using the same Control Channel as the one used to
send the request.
Notifications: The MS MUST only send notification events for a
dialog using the same Control Channel as it received the request
creating the dialog.
Auditing: The MS MUST only provide audit information about dialogs
that have been created on the same Control Channel as the one upon
the <audit> request is sent.
Rejection: The MS SHOULD reject requests to audit or manipulate an
existing dialog on the MS if the channel is not the same as the
one used when the dialog was created. The MS rejects a request by
sending a Control Framework 403 response (see <a href="#section-7.4">Section 7.4</a> and
<a href="./rfc6230#section-12.3">Section 12.3 of [RFC6230]</a>). For example, if a channel with
identifier 'cfw1234' has been used to send a request to create a
particular dialog and the MS receives on channel 'cfw98969' a
request to audit or terminate the dialog, then the MS sends a 403
framework response.
<span class="grey">McGlashan, et al. Standards Track [Page 118]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-119" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
There can be valid reasons why an implementation does not reject an
audit or dialog manipulation request on a different channel from the
one that created the dialog. For example, a system administrator
might require a separate channel to audit dialog resources created by
system users and to terminate dialogs consuming excessive system
resources. Alternatively, a system monitor or resource broker might
require a separate channel to audit dialogs managed by this package
on an MS. However, the full implications need to be understood by
the implementation and carefully weighted before accepting these
reasons as valid. If the reasons are not valid in their particular
circumstances, the MS rejects such requests.
There can also be valid reasons for 'channel handover' including high
availability support or where one AS needs to take over management of
dialogs after the AS that created them has failed. This could be
achieved by the Control Channels using the same channel identifier,
one after another. For example, assume a channel is created with the
identifier 'cfw1234' and the channel is used to create dialogs on the
MS. This channel (and associated SIP dialog) then terminates due to
a failure on the AS. As permitted by the Control Framework, the
channel identifier 'cfw1234' could then be reused so that another
channel is created with the same identifier 'cfw1234', allowing it to
'take over' management of the dialogs on the MS. Again, the
implementation needs to understand the full implications and
carefully weight them before accepting these reasons as valid. If
the reasons are not valid for their particular circumstances, the MS
uses the appropriate SIP mechanisms to prevent session establishment
when the same channel identifier is used in setting up another
Control Channel (see <a href="./rfc6230#section-4">Section 4 of [RFC6230]</a>).
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. IANA Considerations</span>
IANA has registered a new Media Control Channel Framework Package, a
new XML namespace, a new XML schema, and a new MIME type.
IANA has further created a new registry for IVR prompt variable
types.
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Control Package Registration</span>
This section registers a new Media Control Channel Framework package,
per the instructions in <a href="./rfc6230#section-13.1">Section 13.1 of [RFC6230]</a>.
Package Name: msc-ivr/1.0
Published Specification(s): <a href="./rfc6231">RFC 6231</a>
Person & email address to contact for further information:
IETF MEDIACTRL working group (mediactrl@ietf.org),
Scott McGlashan (smcg.stds01@mcglashan.org).
<span class="grey">McGlashan, et al. Standards Track [Page 119]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-120" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. URN Sub-Namespace Registration</span>
This section registers a new XML namespace,
"urn:ietf:params:xml:ns:msc-ivr", per the guidelines in <a href="./rfc3688">RFC 3688</a>
[<a href="./rfc3688" title=""The IETF XML Registry"">RFC3688</a>].
URI: urn:ietf:params:xml:ns:msc-ivr
Registrant Contact: IETF MEDIACTRL working group (mediactrl@ietf.org),
Scott McGlashan (smcg.stds01@mcglashan.org).
XML:
BEGIN
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Media Control Channel Framework IVR
Package attributes</title>
</head>
<body>
<h1>Namespace for Media Control Channel
Framework IVR Package attributes</h1>
<h2>urn:ietf:params:xml:ns:msc-ivr</h2>
<p>See <a href="http://www.rfc-editor.org/rfc/rfc6231.txt">
<a href="./rfc6231">RFC 6231</a></a>.</p>
</body>
</html>
END
<span class="h3"><a class="selflink" id="section-8.3" href="#section-8.3">8.3</a>. XML Schema Registration</span>
This section registers an XML schema as per the guidelines in <a href="./rfc3688">RFC</a>
<a href="./rfc3688">3688</a> [<a href="./rfc3688" title=""The IETF XML Registry"">RFC3688</a>].
URI: urn:ietf:params:xml:ns:msc-ivr
Registrant Contact: IETF MEDIACTRL working group (mediactrl@ietf.org),
Scott McGlashan (smcg.stds01@mcglashan.org).
Schema: The XML for this schema can be found in <a href="#section-5">Section 5</a> of this
document.
<span class="h3"><a class="selflink" id="section-8.4" href="#section-8.4">8.4</a>. MIME Media Type Registration for application/msc-ivr+xml</span>
This section registers the application/msc-ivr+xml MIME type.
Type name: application
Subtype name: msc-ivr+xml
<span class="grey">McGlashan, et al. Standards Track [Page 120]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-121" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
Required parameters: (none)
Optional parameters: charset
Indicates the character encoding of enclosed XML. Default is
UTF-8.
Encoding considerations: Uses XML, which can employ 8-bit
characters, depending on the character encoding used. See <a href="./rfc3023">RFC</a>
<a href="./rfc3023">3023</a> <a href="./rfc3023#section-3.2">[RFC3023], Section 3.2</a>.
Security considerations: No known security considerations outside
of those provided by the Media Control Channel Framework IVR
Package.
Interoperability considerations: This content type provides
constructs for the Media Control Channel Framework IVR package.
Published specification: <a href="./rfc6231">RFC 6231</a>
Applications that use this media type: Implementations of
the Media Control Channel Framework IVR package.
Additional information:
Magic number(s): (none)
File extension(s): (none)
Macintosh file type code(s): (none)
Person & email address to contact for further information:
Scott McGlashan <smcg.stds01@mcglashan.org>
Intended usage: LIMITED USE
Author/Change controller: The IETF
Other information: None.
<span class="h3"><a class="selflink" id="section-8.5" href="#section-8.5">8.5</a>. IVR Prompt Variable Type Registration Information</span>
This specification establishes an IVR Prompt Variable Type registry
for Control Packages and initiates its population as follows. New
entries in this registry must be published in an RFC (either as an
IETF submission or RFC Editor submission), using the IANA policy
[<a href="./rfc5226" title="">RFC5226</a>] "RFC Required".
<span class="grey">McGlashan, et al. Standards Track [Page 121]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-122" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
Variable Type Control Package Reference
------------- --------------- ---------
date msc-ivr/1.0 [<a href="./rfc6231">RFC6231</a>]
time msc-ivr/1.0 [<a href="./rfc6231">RFC6231</a>]
digits msc-ivr/1.0 [<a href="./rfc6231">RFC6231</a>]
The following information MUST be provided in an RFC in order to
register a new prompt variable type:
Variable Type: The value for the <variable> type attribute
(<a href="#section-4.3.1.1.1">Section 4.3.1.1.1</a>). The RFC MUST specify permitted values (if
any) for the format attribute of <variable> and how the value
attribute is rendered for different values of the format
attribute. The RFC MUST NOT weaken but MAY strengthen the valid
values of <variable> attributes defined in <a href="#section-4.3.1.1.1">Section 4.3.1.1.1</a> of
this specification.
Reference: The RFC number in which the variable type is registered.
Control Package: The Control Package associated with the IVR
variable type.
Person & address to contact for further information:
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Using VoiceXML as a Dialog Language</span>
The IVR Control Package allows, but does not require, the MS to
support other dialog languages by referencing an external dialog
document. This section provides MS implementations that support the
VoiceXML dialog language ([<a href="#ref-VXML20" title=""Voice Extensible Markup Language (VoiceXML) Version 2.0"">VXML20</a>], [<a href="#ref-VXML21" title=""Voice Extensible Markup Language (VoiceXML) Version 2.1"">VXML21</a>], [<a href="#ref-VXML30" title=""Voice Extensible Markup Language (VoiceXML) Version 3.0"">VXML30</a>]) with
additional details about using these dialogs in this package. This
section is normative for an MS that supports the VoiceXML dialog
language.
This section covers preparing (<a href="#section-9.1">Section 9.1</a>), starting (<a href="#section-9.2">Section 9.2</a>),
terminating (<a href="#section-9.3">Section 9.3</a>), and exiting (<a href="#section-9.4">Section 9.4</a>) VoiceXML dialogs
as well as handling VoiceXML call transfer (<a href="#section-9.5">Section 9.5</a>).
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. Preparing a VoiceXML Dialog</span>
A VoiceXML dialog is prepared by sending the MS a request containing
a <dialogprepare> element (<a href="#section-4.2.1">Section 4.2.1</a>). The type attribute is set
to "application/voicexml+xml" and the src attribute to the URI of the
VoiceXML document that is to be prepared by the MS. For example:
<span class="grey">McGlashan, et al. Standards Track [Page 122]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-123" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogprepare type="application/voicexml+xml"
src="http://www.example.com/mydialog.vxml"
fetchtimeout="15s"/>
</mscivr>
The VoiceXML dialog environment uses the <dialogprepare> request as
an opportunity to fetch and validate the initial document indicated
by the src attribute along with any resources referenced in the
VoiceXML document marked as prefetchable. The maxage and maxstale
attributes, if specified, control how the initial VoiceXML document
is fetched using HTTP (see [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>]). Note that the fetchtimeout
attribute is not defined in VoiceXML for an initial document, but the
MS MUST support this attribute in its VoiceXML environment.
If a <params> child element of <dialogprepare> is specified, then the
MS MUST map the parameter information into a VoiceXML session
variable object as described in <a href="#section-9.2.3">Section 9.2.3</a>.
The success or failure of the VoiceXML document preparation is
reported in the MS response. For example, if the VoiceXML document
cannot be retrieved, then a 409 error response is returned. If the
document is syntactically invalid according to VoiceXML, then a 400
response is returned. If successful, the response includes a
dialogid attribute whose value the AS can use in <dialogstart>
element to start the prepared dialog.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Starting a VoiceXML Dialog</span>
A VoiceXML dialog is started by sending the MS a request containing a
<dialogstart> element (<a href="#section-4.2.2">Section 4.2.2</a>). If a VoiceXML dialog has
already been prepared using <dialogprepare>, then the MS starts the
dialog indicated by the prepareddialogid attribute. Otherwise, a new
VoiceXML dialog can be started by setting the type attribute to
"application/voicexml+xml" and the src attribute to the URI of the
VoiceXML document. For example:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="ssd3r3:sds345b"
type="application/voicexml+xml"
src="http://www.example.com/mydialog.vxml"
fetchtimeout="15s"/>
</mscivr>
The maxage and maxstale attributes, if specified, control how the
initial VoiceXML document is fetched using HTTP (see [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>]).
Note that the fetchtimeout attribute is not defined in VoiceXML for
an initial document, but the MS MUST support this attribute in its
<span class="grey">McGlashan, et al. Standards Track [Page 123]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-124" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
VoiceXML environment. Note also that support for <dtmfsub>
subscriptions (<a href="#section-4.2.2.1.1">Section 4.2.2.1.1</a>) and their associated dialog
notification events is not defined in VoiceXML. If such a
subscription is specified in a <dialogstart> request, then the MS
sends a 439 error response (see <a href="#section-4.5">Section 4.5</a>).
The success or failure of starting a VoiceXML dialog is reported in
the MS response as described in <a href="#section-4.2.2">Section 4.2.2</a>.
When the MS starts a VoiceXML dialog, the MS MUST map session
information into a VoiceXML session variable object. There are 3
types of session information: protocol information (<a href="#section-9.2.1">Section 9.2.1</a>),
media stream information (<a href="#section-9.2.2">Section 9.2.2</a>), and parameter information
(<a href="#section-9.2.3">Section 9.2.3</a>).
<span class="h4"><a class="selflink" id="section-9.2.1" href="#section-9.2.1">9.2.1</a>. Session Protocol Information</span>
If the connectionid attribute is specified, the MS assigns protocol
information from the SIP dialog associated with the connection to the
following session variables in VoiceXML:
session.connection.local.uri Evaluates to the SIP URI specified in
the 'To:' header of the initial INVITE.
session.connection.remote.uri Evaluates to the SIP URI specified in
the 'From:' header of the initial INVITE.
session.connection.originator Evaluates to the value of
session.connection.remote (MS receives inbound connections but
does not create outbound connections).
session.connection.protocol.name Evaluates to "sip". Note that this
is intended to reflect the use of SIP in general, and does not
distinguish between whether the connection accesses the MS via SIP
or SIP Secure (SIPS) procedures.
session.connection.protocol.version Evaluates to "2.0".
session.connection.redirect This array is populated by information
contained in the 'History-Info' header [<a href="./rfc4244" title=""An Extension to the Session Initiation Protocol (SIP) for Request History Information"">RFC4244</a>] in the initial
INVITE or is otherwise undefined. Each entry (hi-entry) in the
'History-Info' header is mapped, in the order it appeared in the
'History-Info' header, into an element of the
session.connection.redirect array. Properties of each element of
the array are determined as follows:
uri Set to the hi-targeted-to-uri value of the History-Info
entry
<span class="grey">McGlashan, et al. Standards Track [Page 124]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-125" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
pi Set to 'true' if hi-targeted-to-uri contains a
'Privacy=history' parameter, or if the INVITE 'Privacy'
header includes 'history'; 'false' otherwise
si Set to the value of the 'si' parameter if it exists;
undefined otherwise
reason Set verbatim to the value of the 'Reason' parameter of hi-
targeted-to-uri
session.connection.aai Evaluates to the value of a SIP header with
the name "aai" if present; undefined otherwise.
session.connection.protocol.sip.requesturi This is an associative
array where the array keys and values are formed from the URI
parameters on the SIP Request-URI of the initial INVITE. The
array key is the URI parameter name. The corresponding array
value is obtained by evaluating the URI parameter value as a
string. In addition, the array's toString() function returns the
full SIP Request-URI.
session.connection.protocol.sip.headers This is an associative array
where each key in the array is the non-compact name of a SIP
header in the initial INVITE converted to lowercase (note the case
conversion does not apply to the header value). If multiple
header fields of the same field name are present, the values are
combined into a single comma-separated value. Implementations
MUST at a minimum include the 'Call-ID' header and MAY include
other headers. For example,
session.connection.protocol.sip.headers["call-id"] evaluates to
the Call-ID of the SIP dialog.
If a conferenceid attribute is specified, then the MS populates the
following session variables in VoiceXML:
session.conference.name Evaluates to the value of the conferenceid
attribute.
<span class="h4"><a class="selflink" id="section-9.2.2" href="#section-9.2.2">9.2.2</a>. Session Media Stream Information</span>
The media streams of the connection or conference to use for the
dialog are described in <a href="#section-4.2.2">Section 4.2.2</a>, including use of <stream>
elements (<a href="#section-4.2.2.2">Section 4.2.2.2</a>) if specified. The MS maps media stream
information into the VoiceXML session variable
session.connection.protocol.sip.media for a connection, and
session.conference.media for a conference. In both variables, the
value of the variable is an array where each array element is an
object with the following properties:
<span class="grey">McGlashan, et al. Standards Track [Page 125]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-126" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
type This required property indicates the type of the media
associated with the stream (see <a href="#section-4.2.2.2">Section 4.2.2.2</a> <stream> type
attribute definition).
direction This required property indicates the directionality of the
media relative to the endpoint of the dialog (see <a href="#section-4.2.2.2">Section 4.2.2.2</a>
<stream> direction attribute definition).
format This property is optional. If defined, the value of the
property is an array. Each array element is an object that
specifies information about one format of the media stream. The
object contains at least one property called name whose value is
the subtype name of the media format [<a href="./rfc4855" title=""Media Type Registration of RTP Payload Formats"">RFC4855</a>]. Other properties
may be defined with string values; these correspond to required
and, if defined, optional parameters of the format.
As a consequence of this definition, when a connectionid is specified
there is an array entry in session.connection.protocol.sip.media for
each media stream used by the VoiceXML dialog. For an example,
consider a connection with bidirectional G.711 mu-law audio sampled
at 8kHz where the dialog is started with
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="ssd3r3:sds345b"
type="application/voicexml+xml"
src="http://www.example.com/mydialog.vxml"
fetchtimeout="15s">
<stream media="audio" direction="recvonly"/>
</dialogstart>
</mscivr>
In this case, session.connection.protocol.sip.media[0].type evaluates
to "audio", session.connection.protocol.sip.media[0].direction
evaluates to "recvonly" (i.e., the endpoint only receives media from
the dialog -- the endpoint does not send media to the dialog),
session.connection.protocol.sip.media[0].format[0].name evaluates to
"PCMU", and session.connection.protocol.sip.media[0].format[0].rate
evaluates to "8000".
Note that the session variable is updated if the connection or
conference media session characteristics for the VoiceXML dialog
change (e.g., due to a SIP re-INVITE).
<span class="grey">McGlashan, et al. Standards Track [Page 126]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-127" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h4"><a class="selflink" id="section-9.2.3" href="#section-9.2.3">9.2.3</a>. Session Parameter Information</span>
Parameter information is specified in the <params> child element of
<dialogprepare> and <dialogstart> elements, where each parameter is
specified using a <param> element. The MS maps parameter information
into VoiceXML session variables as follows:
session.values This is an associative array mapped to the <params>
element. It is undefined if no <params> element is specified. If
a <params> element is specified in both <dialogprepare> and
<dialogstart> elements for the same dialog, then the array is
first initialized with the <params> specified in the
<dialogprepare> element and then updated with the <params>
specified in the <dialogstart> element; in cases of conflict, the
<dialogstart> parameter value take priority. Array keys and
values are formed from <param> children of the <params> element.
Each array key is the value of the name attribute of a <param>
element. If the same name is used in more than one <param>
element, then the array key is associated with the last <param> in
document order. The corresponding value for each key is an object
with two required properties: a "type" property evaluating to the
value of the type attribute, and a "content" property evaluating
to the content of the <param>. In addition, this object's
toString() function returns the value of the "content" property as
a string.
For example, a VoiceXML dialog started with one parameter:
<mscivr version="1.0" xmlns="urn:ietf:params:xml:ns:msc-ivr">
<dialogstart connectionid="ssd3r3:sds345b"
type="application/voicexml+xml"
src="http://www.example.com/mydialog.vxml"
fetchtimeout="15s">
<params>
<param name="mode">playannouncement</param>
</params>
</dialogstart>
</mscivr>
In this case, session.values would be defined with one item in the
array where session.values['mode'].type evaluates to "text/plain"
(the default value), session.values['mode'].content evaluates to
"playannouncement", and session.values['mode'].toString() also
evaluates to "playannouncement".
The MS sends an error response (see <a href="#section-4.2.2">Section 4.2.2</a>) if a <param> is
not supported by the MS (e.g., the parameter type is not supported).
<span class="grey">McGlashan, et al. Standards Track [Page 127]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-128" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
<span class="h3"><a class="selflink" id="section-9.3" href="#section-9.3">9.3</a>. Terminating a VoiceXML Dialog</span>
When the MS receives a request with a <dialogterminate> element
(<a href="#section-4.2.3">Section 4.2.3</a>), the MS throws a 'connection.disconnect.hangup' event
into the specified VoiceXML dialog. Note that if the immediate
attribute has the value true, then the MS MUST NOT return <params>
information when the VoiceXML dialog exits (even if the VoiceXML
dialog provides such information) -- see <a href="#section-9.4">Section 9.4</a>.
If the connection or conference associated with the VoiceXML dialog
terminates, then the MS throws a 'connection.disconnect.hangup' event
into the specified VoiceXML dialog.
<span class="h3"><a class="selflink" id="section-9.4" href="#section-9.4">9.4</a>. Exiting a VoiceXML Dialog</span>
The MS sends a <dialogexit> notification event (<a href="#section-4.2.5.1">Section 4.2.5.1</a>) when
the VoiceXML dialog is complete, has been terminated, or exits due to
an error. The <dialogexit> status attribute specifies the status of
the VoiceXML dialog when it exits and its <params> child element
specifies information, if any, returned from the VoiceXML dialog.
A VoiceXML dialog exits when it processes a <disconnect> element, an
<exit> element, or an implicit exit according to the VoiceXML form
interpretation algorithm (FIA). If the VoiceXML dialog executes a
<disconnect> and then subsequently executes an <exit> with namelist
information, the namelist information from the <exit> element is
discarded.
The MS reports namelist variables in the <params> element of the
<dialogexit>. Each <param> reports on a namelist variable. The MS
set the <param> name attribute to the name of the VoiceXML variable.
The MS sets the <param> type attribute according to the type of the
VoiceXML variable. The MS sets the <param> type to 'text/plain' when
the VoiceXML variable is a simple ECMAScript value. If the VoiceXML
variable is a recording, the MS sets the <param> type to the MIME
media type of the recording and encodes the recorded content as CDATA
in the <param> (see <a href="#section-4.2.6.1">Section 4.2.6.1</a> for an example). If the VoiceXML
variable is a complex ECMAScript value (e.g., object, array, etc.),
the MS sets the <param> type to 'application/json' and converts the
variable value to its JSON value equivalent [<a href="./rfc4627" title=""The application/json Media Type for JavaScript Object Notation (JSON)"">RFC4627</a>]. The behavior
resulting from specifying an ECMAScript object with circular
references is not defined.
If the expr attribute is specified on the VoiceXML <exit> element
instead of the namelist attribute, the MS creates a <param> element
with the reserved name '__exit'. If the value is an ECMAScript
literal, the <param> type is 'text/plain' and the content is the
literal value. If the value is a variable, the <param> type and
<span class="grey">McGlashan, et al. Standards Track [Page 128]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-129" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
content are set in the same way as a namelist variable; for example,
an expr attribute referencing a variable with a simple ECMAScript
value has the type 'text/plain' and the content is set to the
ECMAScript value. To allow the AS to differentiate between a
<dialogexit> notification event resulting from a VoiceXML
<disconnect> from one resulting from an <exit>, the MS creates a
<param> with the reserved name '__reason', the type 'text/plain', and
a value of "disconnect" (without brackets) to reflect the use of
VoiceXML's <disconnect> element, and the value of "exit" (without
brackets) to an explicit <exit> in the VoiceXML dialog. If the
VoiceXML session terminates for other reasons (such as encountering
an error), this parameter MAY be omitted or take on platform-specific
values prefixed with an underscore.
Table 2 provides some examples of VoiceXML <exit> usage and the
corresponding <params> element in the <dialogexit> notification
event. It assumes the following VoiceXML variable names and values:
userAuthorized=true, pin=1234, and errors=0. The <param> type
attributes ('text/plain') are omitted for clarity.
+------------------------+------------------------------------------+
| <exit> Usage | <params> Result |
+------------------------+------------------------------------------+
| <exit> | <params> <param |
| | name="__reason">exit</param> </params> |
| <exit expr="5"> | <params> <param |
| | name="__reason">exit</param> <param |
| | name="__exit">5</param> </params> |
| <exit expr="'done'"> | <params> <param |
| | name="__reason">exit</param> <param |
| | name="__exit">'done'</param> </params> |
| <exit | <params> <param |
| expr="userAuthorized"> | name="__reason">exit</param> <param |
| | name="__exit">true</param> </params> |
| <exit namelist="pin | <params> <param |
| errors"> | name="__reason">exit</param> <param |
| | name="pin">1234</param> <param |
| | name="errors">0</param> </params> |
+------------------------+------------------------------------------+
Table 2: VoiceXML <exit> Mapping Examples
<span class="h3"><a class="selflink" id="section-9.5" href="#section-9.5">9.5</a>. Call Transfer</span>
While VoiceXML is at its core a dialog language, it also provides
optional call transfer capability. It is NOT RECOMMENDED to use
VoiceXML's call transfer capability in networks involving application
servers. Rather, the AS itself can provide call routing
<span class="grey">McGlashan, et al. Standards Track [Page 129]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-130" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
functionality by taking signaling actions based on the data returned
to it, either through VoiceXML's own data submission mechanisms or
through the mechanism described in <a href="#section-9.4">Section 9.4</a>. If the MS encounters
a VoiceXML dialog requesting call transfer capability, the MS SHOULD
raise an error event in the VoiceXML dialog execution context: an
error.unsupported.transfer.blind event if blind transfer is
requested, error.unsupported.transfer.bridge if bridge transfer is
requested, or error.unsupported.transfer.consultation if consultation
transfer is requested.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Contributors</span>
Asher Shiratzky provided valuable support and contributions to the
early versions of this document.
The authors would like to thank the IVR design team consisting of
Roni Even, Lorenzo Miniero, Adnan Saleem, Diego Besprosvan, Mary
Barnes, and Steve Buko, who provided valuable feedback, input, and
text to this document.
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Acknowledgments</span>
The authors would like to thank Adnan Saleem, Gene Shtirmer, Dave
Burke, Dan York, Steve Buko, Jean-Francois Bertrand, Henry Lum, and
Lorenzo Miniero for expert reviews of this work.
Ben Campbell carried out the RAI expert review on this specification
and provided a great deal of invaluable input. Donald Eastlake
carried out a thorough security review.
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. References</span>
<span class="h3"><a class="selflink" id="section-12.1" href="#section-12.1">12.1</a>. Normative References</span>
[<a id="ref-RFC2045">RFC2045</a>] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part One: Format of Internet Message
Bodies", <a href="./rfc2045">RFC 2045</a>, November 1996.
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC2277">RFC2277</a>] Alvestrand, H., "IETF Policy on Character Sets and
Languages", <a href="https://www.rfc-editor.org/bcp/bcp18">BCP 18</a>, <a href="./rfc2277">RFC 2277</a>, January 1998.
[<a id="ref-RFC2616">RFC2616</a>] Fielding, R., Gettys, J., Mogul, J., Frystyk, H.,
Masinter, L., Leach, P., and T. Berners-Lee, "Hypertext
Transfer Protocol -- HTTP/1.1", <a href="./rfc2616">RFC 2616</a>, June 1999.
<span class="grey">McGlashan, et al. Standards Track [Page 130]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-131" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
[<a id="ref-RFC2818">RFC2818</a>] Rescorla, E., "HTTP Over TLS", <a href="./rfc2818">RFC 2818</a>, May 2000.
[<a id="ref-RFC3023">RFC3023</a>] Murata, M., St. Laurent, S., and D. Kohn, "XML Media
Types", <a href="./rfc3023">RFC 3023</a>, January 2001.
[<a id="ref-RFC3688">RFC3688</a>] Mealling, M., "The IETF XML Registry", <a href="https://www.rfc-editor.org/bcp/bcp81">BCP 81</a>, <a href="./rfc3688">RFC 3688</a>,
January 2004.
[<a id="ref-RFC3986">RFC3986</a>] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66,
<a href="./rfc3986">RFC 3986</a>, January 2005.
[<a id="ref-RFC4288">RFC4288</a>] Freed, N. and J. Klensin, "Media Type Specifications and
Registration Procedures", <a href="https://www.rfc-editor.org/bcp/bcp13">BCP 13</a>, <a href="./rfc4288">RFC 4288</a>, December 2005.
[<a id="ref-RFC4574">RFC4574</a>] Levin, O. and G. Camarillo, "The Session Description
Protocol (SDP) Label Attribute", <a href="./rfc4574">RFC 4574</a>, August 2006.
[<a id="ref-RFC4627">RFC4627</a>] Crockford, D., "The application/json Media Type for
JavaScript Object Notation (JSON)", <a href="./rfc4627">RFC 4627</a>, July 2006.
[<a id="ref-RFC4647">RFC4647</a>] Phillips, A. and M. Davis, "Matching of Language Tags",
<a href="https://www.rfc-editor.org/bcp/bcp47">BCP 47</a>, <a href="./rfc4647">RFC 4647</a>, September 2006.
[<a id="ref-RFC5226">RFC5226</a>] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a>,
May 2008.
[<a id="ref-RFC5234">RFC5234</a>] Crocker, D. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, <a href="./rfc5234">RFC 5234</a>, January 2008.
[<a id="ref-RFC5646">RFC5646</a>] Phillips, A. and M. Davis, "Tags for Identifying
Languages", <a href="https://www.rfc-editor.org/bcp/bcp47">BCP 47</a>, <a href="./rfc5646">RFC 5646</a>, September 2009.
[<a id="ref-RFC6230">RFC6230</a>] Boulton, C., Melanchuk, T., and S. McGlashan, "Media
Control Channel Framework", <a href="./rfc6230">RFC 6230</a>, May 2011.
[<a id="ref-SRGS">SRGS</a>] Hunt, A. and S. McGlashan, "Speech Recognition Grammar
Specification Version 1.0", W3C Recommendation,
March 2004.
[<a id="ref-VXML20">VXML20</a>] McGlashan, S., Burnett, D., Carter, J., Danielsen, P.,
Ferrans, J., Hunt, A., Lucas, B., Porter, B., Rehor, K.,
and S. Tryphonas, "Voice Extensible Markup Language
(VoiceXML) Version 2.0", W3C Recommendation, March 2004.
<span class="grey">McGlashan, et al. Standards Track [Page 131]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-132" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
[<a id="ref-VXML21">VXML21</a>] Oshry, M., Auburn, RJ., Baggia, P., Bodell, M., Burke, D.,
Burnett, D., Candell, E., Carter, J., McGlashan, S., Lee,
A., Porter, B., and K. Rehor, "Voice Extensible Markup
Language (VoiceXML) Version 2.1", W3C Recommendation,
June 2007.
[<a id="ref-W3C.REC-SMIL2-20051213">W3C.REC-SMIL2-20051213</a>]
Jansen, J., Layaida, N., Michel, T., Grassel, G.,
Koivisto, A., Bulterman, D., Mullender, S., and D. Zucker,
"Synchronized Multimedia Integration Language (SMIL 2.1)",
World Wide Web Consortium Recommendation REC-SMIL2-
20051213, December 2005,
<<a href="http://www.w3.org/TR/2005/REC-SMIL2-20051213">http://www.w3.org/TR/2005/REC-SMIL2-20051213</a>>.
[<a id="ref-XML">XML</a>] Bray, T., Paoli, J., Sperberg-McQueen, C M., Maler, E.,
and F. Yergeau, "Extensible Markup Language (XML) 1.0
(Third Edition)", W3C Recommendation, February 2004.
[XMLSchema:Part2]
Biron, P. and A. Malhotra, "XML Schema Part 2: Datatypes
Second Edition", W3C Recommendation, October 2004.
<span class="h3"><a class="selflink" id="section-12.2" href="#section-12.2">12.2</a>. Informative References</span>
[<a id="ref-CCXML10">CCXML10</a>] Auburn, R J., "Voice Browser Call Control: CCXML Version
1.0", W3C Candidate Recommendation (work in progress),
April 2010.
[<a id="ref-H.248.9">H.248.9</a>] "Gateway control protocol: Advanced media server
packages", ITU-T Recommendation H.248.9.
[<a id="ref-IANA">IANA</a>] IANA, "RTP Payload Types", available
from <a href="http://www.iana.org">http://www.iana.org</a>.
[<a id="ref-MIME.mediatypes">MIME.mediatypes</a>]
IANA, "MIME Media Types", available
from <a href="http://www.iana.org">http://www.iana.org</a>.
[<a id="ref-MIXER-CP">MIXER-CP</a>]
McGlashan, S., Melanchuk, T., and C. Boulton, "A Mixer
Control Package for the Media Control Channel Framework",
Work in Progress, January 2011.
[<a id="ref-RFC2897">RFC2897</a>] Cromwell, D., "Proposal for an MGCP Advanced Audio
Package", <a href="./rfc2897">RFC 2897</a>, August 2000.
<span class="grey">McGlashan, et al. Standards Track [Page 132]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-133" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
[<a id="ref-RFC3261">RFC3261</a>] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
A., Peterson, J., Sparks, R., Handley, M., and E.
Schooler, "SIP: Session Initiation Protocol", <a href="./rfc3261">RFC 3261</a>,
June 2002.
[<a id="ref-RFC4240">RFC4240</a>] Burger, E., Van Dyke, J., and A. Spitzer, "Basic Network
Media Services with SIP", <a href="./rfc4240">RFC 4240</a>, December 2005.
[<a id="ref-RFC4244">RFC4244</a>] Barnes, M., "An Extension to the Session Initiation
Protocol (SIP) for Request History Information", <a href="./rfc4244">RFC 4244</a>,
November 2005.
[<a id="ref-RFC4267">RFC4267</a>] Froumentin, M., "The W3C Speech Interface Framework Media
Types: application/voicexml+xml, application/ssml+xml,
application/srgs, application/srgs+xml, application/
ccxml+xml, and application/pls+xml", <a href="./rfc4267">RFC 4267</a>,
November 2005.
[<a id="ref-RFC4281">RFC4281</a>] Gellens, R., Singer, D., and P. Frojdh, "The Codecs
Parameter for "Bucket" Media Types", <a href="./rfc4281">RFC 4281</a>,
November 2005.
[<a id="ref-RFC4730">RFC4730</a>] Burger, E. and M. Dolly, "A Session Initiation Protocol
(SIP) Event Package for Key Press Stimulus (KPML)",
<a href="./rfc4730">RFC 4730</a>, November 2006.
[<a id="ref-RFC4733">RFC4733</a>] Schulzrinne, H. and T. Taylor, "RTP Payload for DTMF
Digits, Telephony Tones, and Telephony Signals", <a href="./rfc4733">RFC 4733</a>,
December 2006.
[<a id="ref-RFC4855">RFC4855</a>] Casner, S., "Media Type Registration of RTP Payload
Formats", <a href="./rfc4855">RFC 4855</a>, February 2007.
[<a id="ref-RFC5022">RFC5022</a>] Van Dyke, J., Burger, E., and A. Spitzer, "Media Server
Control Markup Language (MSCML) and Protocol", <a href="./rfc5022">RFC 5022</a>,
September 2007.
[<a id="ref-RFC5167">RFC5167</a>] Dolly, M. and R. Even, "Media Server Control Protocol
Requirements", <a href="./rfc5167">RFC 5167</a>, March 2008.
[<a id="ref-RFC5707">RFC5707</a>] Saleem, A., Xin, Y., and G. Sharratt, "Media Server Markup
Language (MSML)", <a href="./rfc5707">RFC 5707</a>, February 2010.
[<a id="ref-VXML30">VXML30</a>] McGlashan, S., Burnett, D., Akolkar, R., Auburn, RJ.,
Baggia, P., Barnett, J., Bodell, M., Carter, J., Oshry,
M., Rehor, K., Young, M., and R. Hosn, "Voice Extensible
Markup Language (VoiceXML) Version 3.0", W3C Working
Draft, August 2010.
<span class="grey">McGlashan, et al. Standards Track [Page 133]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-134" ></span>
<span class="grey"><a href="./rfc6231">RFC 6231</a> IVR Control Package May 2011</span>
[<a id="ref-XCON-DATA-MODEL">XCON-DATA-MODEL</a>]
Novo, O., Camarillo, G., Morgan, D., and J. Urpalainen,
"Conference Information Data Model for Centralized
Conferencing (XCON)", Work in Progress, April 2011.
Authors' Addresses
Scott McGlashan
Hewlett-Packard
EMail: smcg.stds01@mcglashan.org
Tim Melanchuk
Rainwillow
EMail: timm@rainwillow.com
Chris Boulton
NS-Technologies
EMail: chris@ns-technologies.com
McGlashan, et al. Standards Track [Page 134]
</pre>
|