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
|
<pre>Network Working Group J. Rosenberg
Request for Comments: 4235 Cisco Systems
Category: Standards Track H. Schulzrinne
Columbia University
R. Mahy, Ed.
SIP Edge LLC
November 2005
<span class="h1">An INVITE-Initiated Dialog Event Package for the</span>
<span class="h1">Session Initiation Protocol (SIP)</span>
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 01) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2005).
Abstract
This document defines a dialog event package for the SIP Events
architecture, along with a data format used in notifications for this
package. The dialog package allows users to subscribe to another
user and to receive notification of the changes in state of INVITE-
initiated dialog usages in which the subscribed-to user is involved.
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Terminology .....................................................<a href="#page-4">4</a>
<a href="#section-3">3</a>. Dialog Event Package ............................................<a href="#page-4">4</a>
<a href="#section-3.1">3.1</a>. Event Package Name .........................................<a href="#page-4">4</a>
<a href="#section-3.2">3.2</a>. Event Package Parameters ...................................<a href="#page-4">4</a>
<a href="#section-3.3">3.3</a>. SUBSCRIBE Bodies ...........................................<a href="#page-5">5</a>
<a href="#section-3.4">3.4</a>. Subscription Duration ......................................<a href="#page-6">6</a>
<a href="#section-3.5">3.5</a>. NOTIFY Bodies ..............................................<a href="#page-6">6</a>
<a href="#section-3.6">3.6</a>. Notifier Processing of SUBSCRIBE Requests ..................<a href="#page-7">7</a>
<a href="#section-3.7">3.7</a>. Notifier Generation of NOTIFY Requests .....................<a href="#page-8">8</a>
<a href="#section-3.7.1">3.7.1</a>. The Dialog State Machine ............................<a href="#page-8">8</a>
<a href="#section-3.7.2">3.7.2</a>. Applying the State Machine .........................<a href="#page-11">11</a>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<a href="#section-3.8">3.8</a>. Subscriber Processing of NOTIFY Requests ..................<a href="#page-12">12</a>
<a href="#section-3.9">3.9</a>. Handling of Forked Requests ...............................<a href="#page-12">12</a>
<a href="#section-3.10">3.10</a>. Rate of Notifications ....................................<a href="#page-13">13</a>
<a href="#section-3.11">3.11</a>. State Agents .............................................<a href="#page-13">13</a>
<a href="#section-4">4</a>. Dialog Information Format ......................................<a href="#page-13">13</a>
<a href="#section-4.1">4.1</a>. Structure of Dialog Information ...........................<a href="#page-13">13</a>
<a href="#section-4.1.1">4.1.1</a>. Dialog Element .....................................<a href="#page-14">14</a>
<a href="#section-4.1.2">4.1.2</a>. State Element ......................................<a href="#page-15">15</a>
<a href="#section-4.1.3">4.1.3</a>. Duration Element ...................................<a href="#page-15">15</a>
<a href="#section-4.1.4">4.1.4</a>. Replaces Element ...................................<a href="#page-15">15</a>
<a href="#section-4.1.5">4.1.5</a>. Referred-By Element ................................<a href="#page-16">16</a>
<a href="#section-4.1.6">4.1.6</a>. Local and Remote Elements ..........................<a href="#page-16">16</a>
<a href="#section-4.2">4.2</a>. Sample Notification Body ..................................<a href="#page-17">17</a>
<a href="#section-4.3">4.3</a>. Constructing Coherent State ...............................<a href="#page-18">18</a>
<a href="#section-4.4">4.4</a>. Schema ....................................................<a href="#page-19">19</a>
<a href="#section-5">5</a>. Definition of New Media Feature Parameters .....................<a href="#page-22">22</a>
<a href="#section-5.1">5.1</a>. The "sip.byeless" Parameter ...............................<a href="#page-22">22</a>
<a href="#section-5.2">5.2</a>. The "sip.rendering" parameter .............................<a href="#page-23">23</a>
<a href="#section-6">6</a>. Examples .......................................................<a href="#page-24">24</a>
<a href="#section-6.1">6.1</a>. Basic Example .............................................<a href="#page-24">24</a>
<a href="#section-6.2">6.2</a>. Emulating a Shared-Line Phone System ......................<a href="#page-26">26</a>
<a href="#section-6.3">6.3</a>. Minimal Dialog Information with Privacy ...................<a href="#page-31">31</a>
<a href="#section-7">7</a>. Security Considerations ........................................<a href="#page-32">32</a>
<a href="#section-8">8</a>. IANA Considerations ............................................<a href="#page-32">32</a>
<a href="#section-8.1">8.1</a>. application/dialog-info+xml MIME Registration .............<a href="#page-33">33</a>
8.2. URN Sub-Namespace Registration for
urn:ietf:params:xml:ns:dialog-info ........................<a href="#page-34">34</a>
<a href="#section-8.3">8.3</a>. Schema Registration .......................................<a href="#page-34">34</a>
<a href="#section-8.4">8.4</a>. Media Feature Parameter Registration ......................<a href="#page-34">34</a>
<a href="#section-8.4.1">8.4.1</a>. sip.byeless ........................................<a href="#page-35">35</a>
<a href="#section-8.4.2">8.4.2</a>. sip.rendering ......................................<a href="#page-35">35</a>
<a href="#section-9">9</a>. Acknowledgements ...............................................<a href="#page-36">36</a>
<a href="#section-10">10</a>. References ....................................................<a href="#page-36">36</a>
<a href="#section-10.1">10.1</a>. Normative References .....................................<a href="#page-36">36</a>
<a href="#section-10.2">10.2</a>. Informative References ...................................<a href="#page-37">37</a>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The SIP Events framework [<a href="#ref-1" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">1</a>] defines general mechanisms for
subscription to, and notification of, events within SIP networks. It
introduces the notion of a package, which is a specific
"instantiation" of the events mechanism for a well-defined set of
events. Packages have been defined for user presence [<a href="#ref-16" title=""A Presence Event Package for the Session Initiation Protocol (SIP)"">16</a>], watcher
information [<a href="#ref-17" title=""A Watcher Information Event Template-Package for the Session Initiation Protocol (SIP)"">17</a>], and message waiting indicators [<a href="#ref-18" title=""A Message Summary and Message Waiting Indication Event Package for the Session Initiation Protocol (SIP)"">18</a>], amongst
others. This document defines an event package for INVITE-initiated
dialog usages. Dialogs refer to the SIP relationship established
between two SIP peers [<a href="#ref-2" title=""SIP: Session Initiation Protocol"">2</a>]. Dialogs can be created by many methods,
although <a href="./rfc3261">RFC 3261</a> defines only one: the INVITE method. <a href="./rfc3265">RFC 3265</a> [<a href="#ref-1" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">1</a>]
defines the SUBSCRIBE and NOTIFY methods, which also create new
dialog usages. However, using this package to model state for non-
session dialog usages is out of the scope of this specification.
A variety of applications are enabled through knowledge of INVITE
dialog usage state. Some examples include:
Automatic Callback: In this basic Public Switched Telephone
Network (PSTN) application, user A calls user B but User B is
busy. User A would like to get a callback when user B hangs
up. When B hangs up, user A's phone rings. When A picks up,
they hear ringing, while they are being connected to B. To
implement this with SIP, a mechanism is required for A to
receive a notification when the dialogs at B are complete.
Presence-Enabled Conferencing: In this application, user A wishes
to set up a conference call with users B and C. Rather than
being scheduled, the call is created automatically when A, B
and C are all available. To do this, the server providing the
application would like to know whether A, B, and C are
"online", not idle, and not in a phone call. Determining
whether or not A, B, and C are in calls can be done in two
ways. In the first, the server acts as a call-stateful proxy
for users A, B, and C, and therefore knows their call state.
This won't always be possible, however, and it introduces
scalability, reliability, and operational complexities. In the
second way, the server subscribes to the dialog state of those
users and receives notifications as this state changes. This
enables the application to be provided in a distributed way;
the server need not reside in the same domain as the users.
IM Conference Alerts: In this application, a user can receive an
Instant Message (IM) on their phone whenever someone joins a
conference that the phone is involved in. The IM alerts are
generated by an application separate from the conference
server.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
In general, the dialog package allows for construction of distributed
applications, where the application requires information on dialog
state but is not co-resident with the end user on which that state
resides.
This document also defines two new callee capability [<a href="#ref-10" title=""Indicating User Agent Capabilities in the Session Initiation Protocol (SIP)"">10</a>] feature
parameters:
o "sip.byeless", which indicates that a SIP user agent (UA) is not
capable of terminating a session itself (for example, in some
announcement or recording services, or in some call centers) in
which the UA is no longer interested in participating; and
o "sip.rendering", which positively describes whether the user
agent is rendering any of the media it is receiving. These
feature parameters are useful in many of the same applications
that motivated the dialog package, such as conferencing,
presence, and the shared-line example described in <a href="#section-6.2">Section 6.2</a>.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</span>
In this document, the key words "MUST", "MUST NOT", "REQUIRED",
"SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY",
and "OPTIONAL" are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="#ref-9" title=""Key words for use in RFCs to Indicate Requirement Levels"">9</a>] and
indicate requirement levels for compliant implementations.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Dialog Event Package</span>
This section provides the details for defining a SIP Events package,
as specified in [<a href="#ref-1" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">1</a>].
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Event Package Name</span>
The name of this event package is "dialog". This package name is
carried in the Event and Allow-Events header fields, as defined in
[<a href="#ref-1" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">1</a>].
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Event Package Parameters</span>
This package defines four Event Package parameters: call-id, to-tag,
from-tag, and include-session-description. If a subscription to a
specific dialog is requested, the first three of these parameters
MUST be present, to identify the dialog that is being subscribed to.
The to-tag is matched against the local tag, the from-tag is matched
against the remote tag, and the call-id is matched against the
Call-ID. The include-session-description parameter indicates whether
the subscriber would like to receive the session descriptions
associated with the subscribed dialog usage or usages.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
It is also possible to subscribe to the set of dialogs created as a
result of a single INVITE sent by a UAC (user agent client). In that
case, the call-id and to-tag MUST be present. The to-tag is matched
against the local tag and the call-id is matched against the Call-ID.
The ABNF for these parameters is shown below. It refers to many
constructions from the ABNF of <a href="./rfc3261">RFC3261</a>, such as EQUAL, DQUOTE, and
token.
call-id = "call-id" EQUAL ( token / DQUOTE callid DQUOTE )
;; NOTE: any DQUOTEs inside callid MUST be escaped!
from-tag = "from-tag" EQUAL token
to-tag = "to-tag" EQUAL token
with-sessd = "include-session-description"
If any call-ids contain embedded double-quotes, those double-quotes
MUST be escaped using the backslash-quoting mechanism. Note that the
call-id parameter may need to be expressed as a quoted string. This
is because the ABNF for the callid production and the word
production, which is used by callid (both from <a href="./rfc3261">RFC 3261</a> [<a href="#ref-1" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">1</a>]), allow
some characters (such as "@", "[", and ":") that are not allowed
within a token.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. SUBSCRIBE Bodies</span>
A SUBSCRIBE request for a dialog package MAY contain a body. This
body defines a filter to be applied to the subscription. Filter
documents are not specified in this document, and at the time of
writing, they are expected to be the subject of future
standardization activity.
A SUBSCRIBE request for a dialog package MAY be sent without a body.
This implies the default subscription filtering policy. The default
policy is:
o If the Event header field contained dialog identifiers, a
notification is generated every time there is a change in the
state of any matching dialogs for the user identified in the
request URI of the SUBSCRIBE.
o If there were no dialog identifiers in the Event header field, a
notification is generated every time there is any change in the
state of any dialogs for the user identified in the request URI of
the SUBSCRIBE with the following exceptions. If the target
(Contact) URI of a subscriber is equivalent to the remote target
URI of a specific dialog, then the dialog element for that dialog
is suppressed for that subscriber. (The subscriber is already a
party in the dialog directly, so these notifications are
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
superfluous.) If no dialogs remain after suppressing dialogs, the
entire notification to that subscriber is suppressed and the
version number in the dialog-info element is not incremented for
that subscriber. Implicit filtering for one subscriber does not
affect notifications to other subscribers.
o Notifications do not normally contain full state; rather, they
only indicate the state of the dialog(s) whose state has changed.
The exceptions are a NOTIFY sent in response to a SUBSCRIBE, and a
NOTIFY that contains no dialog elements. These NOTIFYs contain
the complete view of dialog state.
o The notifications contain the identities of the participants in
the dialog, the target URIs, and the dialog identifiers. Session
descriptions are not included unless explicitly requested and
explicitly authorized.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Subscription Duration</span>
Dialog state changes fairly quickly. Once established, a typical
phone call lasts a few minutes (this is different for other session
types, of course). However, the interval between new calls is
typically long. Clients SHOULD specify an explicit duration.
There are two distinct use cases for dialog state. The first is when
a subscriber is interested in the state of a specific dialog or
dialogs (and they are authorized to find out just the state of those
dialogs). In that case, when the dialogs terminate, so too does the
subscription. In these cases, the value of the subscription duration
is largely irrelevant; it SHOULD be longer than the typical duration
of a dialog. We recommend a default duration of two hours, which is
likely to cover most dialogs.
In another case, a subscriber is interested in the state of all
dialogs for a specific user. In these cases, a shorter interval
makes more sense. The default is one hour for these subscriptions.
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. NOTIFY Bodies</span>
As described in <a href="./rfc3265">RFC 3265</a> [<a href="#ref-1" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">1</a>], the NOTIFY message will contain bodies
that describe the state of the subscribed resource. This body is in
a format listed in the Accept header field of the SUBSCRIBE, or in a
package-specific default format if the Accept header field was
omitted from the SUBSCRIBE.
In this event package, the body of the notification contains a dialog
information document. This document describes the state of one or
more dialogs associated with the subscribed resource. All
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
subscribers and notifiers MUST support the "application/
dialog-info+xml" data format described in <a href="#section-4">Section 4</a>. The subscribe
request MAY contain an Accept header field. If no such header field
is present, it has a default value of "application/dialog-info+xml".
If the header field is present, it MUST include "application/
dialog-info+xml", and it MAY include any other types capable of
representing dialog state.
Of course, the notifications generated by the server MUST be in one
of the formats specified in the Accept header field in the SUBSCRIBE
request.
<span class="h3"><a class="selflink" id="section-3.6" href="#section-3.6">3.6</a>. Notifier Processing of SUBSCRIBE Requests</span>
The dialog information for a user contains sensitive information.
Therefore, all subscriptions SHOULD be authenticated and then
authorized before approval. All implementors of this package MUST
support the digest authentication mechanism as a baseline. The
authorization policy is at the discretion of the administrator, as
always. However, a few recommendations can be made.
It is RECOMMENDED that, if the policy of user B is that user A is
allowed to call them, dialog subscriptions from user A be allowed.
However, the information provided in the notifications does not
contain any dialog identification information, merely an indication
of whether the user is in at least one call. Specifically, they
should not be able to find out any more information than if they sent
an INVITE. (This concept of a "virtual" dialog is discussed more in
<a href="#section-3.7.2">Section 3.7.2</a>, and an example of such a notification body is shown
below).
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="0" state="full"
entity="sip:alice@example.com">
<dialog id="as7d900as8">
<state>confirmed</state>
</dialog>
</dialog-info>
A user agent that registers with the address-of-record X SHOULD
authorize subscriptions that come from any entity that can
authenticate itself as X. Complete information on the dialog state
SHOULD be sent in this case. This authorization behavior allows a
group of devices representing a single user to become aware of each
other's state. This is useful for applications such as
single-line-extension, also known as shared lines.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
Note that many implementations of "shared-lines" have a feature
that allows details of calls on a shared address-of-record to be
made private. This is a completely reasonable authorization
policy that could result in notifications that contain only the id
attribute of the dialog element and the state element when
shared-line privacy is requested, and notifications with more
complete information when shared-line privacy is not requested.
<span class="h3"><a class="selflink" id="section-3.7" href="#section-3.7">3.7</a>. Notifier Generation of NOTIFY Requests</span>
Notifications are generated for the dialog package when an INVITE
request is sent, when a new dialog comes into existence at a UA, or
when the state or characteristics of an existing dialog changes.
Therefore, a model of dialog state is needed in order to determine
precisely when to send notifications, and what their content should
be. The SIP specification has a reasonably well defined lifecycle
for dialogs. However, it is not explicitly modelled. This
specification provides an explicit model of dialog state through a
finite state machine.
It is RECOMMENDED that NOTIFY requests only contain information on
the dialogs whose state or participation information has changed.
However, if a notifier receives a SUBSCRIBE request, the triggered
NOTIFY SHOULD contain the state of all dialogs that the subscriber is
authorized to see.
<span class="h4"><a class="selflink" id="section-3.7.1" href="#section-3.7.1">3.7.1</a>. The Dialog State Machine</span>
Modelling of dialog state is complicated by two factors. The first
is forking, which can cause a single INVITE to generate many dialogs
at a UAC. The second is the differing views of state at the UAC
(user agent client) and UAS (usage agent server). We have chosen to
handle the first issue by extending the dialog finite state machine
(FSM) to include the states between transmission of the INVITE and
the creation of actual dialogs through receipt of 1xx and 2xx
responses. As a result, this specification supports the notion of
dialog state for dialogs before they are fully instantiated.
We have also chosen to use a single FSM for both UAC and UAS.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
+----------+ +----------+
| | 1xx-notag | |
| |----------->| |
| Trying | |Proceeding|-----+
| |---+ +-----| | |
| | | | | | |
+----------+ | | +----------+ |
| | | | | |
| | | | | |
+<--C-----C--+ |1xx-tag |
| | | | |
cancelled| | | V |
rejected| | |1xx-tag +----------+ |
| | +------->| | |2xx
| | | | |
+<--C--------------| Early |-----C---+ 1xx-tag
| | replaced | | | | w/new tag
| | | |<----C---+ (new FSM
| | +----------+ | instance
| | 2xx | | created)
| +----------------+ | |
| | |2xx |
| | | |
V V V |
+----------+ +----------+ |
| | | | |
| | | | |
|Terminated|<-----------| Confirmed|<----+
| | error | |
| | timeout | |
+----------+ replaced +----------+
local-bye | ^
remote-bye | |
| |
+------+
2xx w. new tag
(new FSM instance
created)
Figure 3
The FSM for dialog state is shown in Figure 3. The FSM is best
understood by considering the UAC and UAS cases separately.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
The FSM is created in the Trying state when the UAC sends an INVITE
request. Upon receipt of a 1xx without a tag, the FSM transitions to
the Proceeding state. Note that there is no actual dialog yet, as
defined by the SIP specification. However, there is a "half-dialog",
in the sense that two of the three components of the dialog ID (the
call identifier and local tag) are known. If a 1xx with a tag is
received, the FSM transitions to the Early state. The full dialog
identifier is now defined. Had a 2xx been received, the FSM would
have transitioned to the Confirmed state.
If, after transitioning to the Early or Confirmed states, the UAC
receives another 1xx or 2xx respectively with a different tag,
another instance of the FSM is created, initialized into the Early or
Confirmed state, respectively. The benefit of this approach is that
there will be a single FSM representing the entire state of the
invitation and resulting dialog when dealing in the common case of no
forking.
If the UAC sends a CANCEL and then subsequently receives a 487 to its
INVITE transaction, all FSMs spawned from that INVITE transition to
the Terminated state with the event "cancelled". If the UAC receives
a new invitation (with a Replaces [<a href="#ref-13" title=""The Session Initiation Protocol (SIP) "">13</a>] header) that replaces the
current Early or Confirmed dialog, all INVITE transactions spawned
from the replaced invitation transition to the Terminated state with
the event "replaced". If the INVITE transaction terminates with a
non-2xx response for any other reason, all FSMs spawned from that
INVITE transition to the Terminated state with the event "rejected".
Once in the Confirmed state, the call is active. It can transition
to the Terminated state if the UAC sends a BYE or receives a BYE
(corresponding to the "local-bye" and "remote-bye" events as
appropriate), if a mid-dialog request generates a 481 or 408 response
(corresponding to the "error" event), or a mid-dialog request
generates no response (corresponding to the "timeout" event).
From the perspective of the UAS, when an INVITE is received, the FSM
is created in the Trying state. If it sends a 1xx without a tag, the
FSM transitions to the Proceeding state. If a 1xx is sent with a
tag, the FSM transitions to the Early state, and if a 2xx is sent, it
transitions to the Confirmed state. If the UAS receives a CANCEL
request and then generates a 487 response to the INVITE (which can
occur in the Proceeding and Early states), the FSM transitions to the
Terminated state with the event "cancelled". If the UAS generates
any other non-2xx final response to the INVITE request, the FSM
transitions to the Terminated state with the event "rejected". If
the UAS receives a new invitation (with a Replaces [<a href="#ref-13" title=""The Session Initiation Protocol (SIP) "">13</a>] header field)
that replaces the current Confirmed dialog, the replaced invitation
transitions to the Terminated state with the event "replaced". Once
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
in the Confirmed state, the other transitions to the Terminated state
occur for the same reasons they do in the case of UAC.
There should never be a transition from the Trying state to the
Terminated state with the event "cancelled", since the SIP
specification prohibits transmission of CANCEL until a provisional
response is received. However, this transition is defined in the
FSM just to unify the transitions from Trying, Proceeding, and
Early states to the Terminated state.
<span class="h4"><a class="selflink" id="section-3.7.2" href="#section-3.7.2">3.7.2</a>. Applying the State Machine</span>
The notifier MAY generate a NOTIFY request on any event transition of
the FSM. Whether it does or not is policy dependent. However, some
general guidelines are provided.
When the subscriber is unauthenticated, or it is authenticated but
represents a third party with no specific authorization policies, it
is RECOMMENDED that subscriptions to an individual dialog or to a
specific set of dialogs be forbidden. Only subscriptions to all
dialogs (i.e., there are no dialog identifiers in the Event header
field) are permitted. In that case, actual dialog states across all
dialogs will not be reported. Rather, a single "virtual" dialog FSM
will be used, and event transitions on that FSM will be reported.
If there is any dialog at the UA whose state is Confirmed, the
virtual FSM is in the Confirmed state. If there are no dialogs at
the UA in the Confirmed state but there is at least one in the Early
state, the virtual FSM is in the Early or Confirmed state. If there
are no dialogs in the Confirmed or Early states but there is at least
one in the Proceeding state, the virtual FSM is in the Proceeding,
Early, or Confirmed state. If there are no dialogs in the Confirmed,
Early, or Proceeding states but there is at least one in the Trying
state, the virtual FSM is in the Trying, Proceeding, Early or
Confirmed state. The choice of state to use depends on whether the
UA wishes to let unknown users know that their phone is ringing, as
opposed to being in an active call.
It is RECOMMENDED that, in the absence of any preference, Confirmed
is used in all cases as shown in the example in <a href="#section-3.6">Section 3.6</a>.
Furthermore, it is RECOMMENDED that the notifications of changes in
the virtual FSM machine not convey any information except the state
of the FSM and its event transitions - no dialog identifiers (which
are ill-defined in this model in any case). The use of this virtual
FSM allows minimal information to be conveyed. A subscriber cannot
know how many calls are in progress, or with whom, just that there
exists a call. This is the same information they would receive if
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
they simply sent an INVITE to the user instead; a 486 (Busy Here)
response would indicate that they are on a call.
When the subscriber is authenticated and has authenticated itself
with the same address-of-record that the UA itself uses, if no
explicit authorization policy is defined, it is RECOMMENDED that all
state transitions on dialogs that have been subscribed to be
reported, along with complete dialog IDs. This means either all of
the dialogs, if no dialog identifiers were present in the Event
header field, or the specific set of dialogs identified by the Event
header field parameters.
The notifier SHOULD generate a NOTIFY request on any change in the
characteristics associated with the dialog. Since these include
Contact URIs, Contact parameters, and session descriptions, receipt
of re-INVITEs and UPDATE requests [<a href="#ref-3" title=""The Session Initiation Protocol (SIP) UPDATE Method"">3</a>] that modify this information
MAY trigger notifications.
<span class="h3"><a class="selflink" id="section-3.8" href="#section-3.8">3.8</a>. Subscriber Processing of NOTIFY Requests</span>
The SIP Events framework expects packages to specify how a subscriber
processes NOTIFY requests in package-specific ways. In particular, a
package should specify how it uses the NOTIFY requests to construct a
coherent view of the state of the subscribed resource.
Typically, the NOTIFY for the dialog package will contain information
about only those dialogs whose state has changed. To construct a
coherent view of the total state of all dialogs, a subscriber to the
dialog package will need to combine NOTIFYs received over time.
Notifications within this package can convey partial information;
that is, they can indicate information about a subset of the state
associated with the subscription. This means that an explicit
algorithm needs to be defined in order to construct coherent and
consistent state. The details of this mechanism are specific to the
particular document type. See <a href="#section-4.3">Section 4.3</a> for information on
constructing coherent information from an application/dialog-info+xml
document.
<span class="h3"><a class="selflink" id="section-3.9" href="#section-3.9">3.9</a>. Handling of Forked Requests</span>
Since dialog state is distributed across the UA for a particular
user, it is reasonable and useful for a SUBSCRIBE request for dialog
state to fork and to reach multiple UAs.
As a result, a forked SUBSCRIBE request for dialog state can install
multiple subscriptions. Subscribers to this package MUST be prepared
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
to install subscription state for each NOTIFY generated as a result
of a single SUBSCRIBE.
<span class="h3"><a class="selflink" id="section-3.10" href="#section-3.10">3.10</a>. Rate of Notifications</span>
For reasons of congestion control, it is important that the rate of
notifications not be excessive. It is RECOMMENDED that the server
not generate notifications for a single subscriber faster than once
every 1 second.
<span class="h3"><a class="selflink" id="section-3.11" href="#section-3.11">3.11</a>. State Agents</span>
Dialog state is ideally maintained in the user agents in which the
dialog resides. Therefore, the elements that maintain the dialog are
the ones best suited to handle subscriptions to it. However, in some
cases, a network agent may also know the state of the dialogs held by
a user. Such state agents MAY be used with this package.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Dialog Information Format</span>
Dialog information is an XML document [<a href="#ref-4" title=""Extensible Markup Language (XML) 1.0 (Second Edition)"">4</a>] that MUST be well-formed
and SHOULD be valid. Dialog information documents MUST be based on
XML 1.0 and MUST be encoded using UTF-8. This specification makes
use of XML namespaces for identifying dialog information documents
and document fragments. The namespace URI for elements defined by
this specification is a URN [<a href="#ref-5" title=""URN Syntax"">5</a>], using the namespace identifier
'ietf' defined by [<a href="#ref-6" title=""A URN Namespace for IETF Documents"">6</a>] and extended by [<a href="#ref-7" title=""The IETF XML Registry"">7</a>]. This URN is:
urn:ietf:params:xml:ns:dialog-info
A dialog information document begins with the root element tag
"dialog-info".
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Structure of Dialog Information</span>
A dialog information document starts with a dialog-info element.
This element has three mandatory attributes:
o version: This attribute allows the recipient of dialog information
documents to properly order them. Versions start at 0, and
increment by one for each new document sent to a subscriber.
Versions are scoped within a subscription. Versions MUST be
representable using a non-negative 32 bit integer.
o state: This attribute indicates whether the document contains the
full dialog information, or whether it contains only information
on those dialogs that have changed since the previous document
(partial).
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
o entity: This attribute contains a URI that identifies the user
whose dialog information is reported in the remainder of the
document. This user is referred to as the "observed user".
The dialog-info element has a series of zero or more dialog sub-
elements. Each of those represents a specific dialog. An example:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="0" notify-state="full"
entity="sip:alice@example.com">
</dialog-info>
<span class="h4"><a class="selflink" id="section-4.1.1" href="#section-4.1.1">4.1.1</a>. Dialog Element</span>
The dialog element reports information about a specific dialog or
"half-dialog". It has a single mandatory attribute: id. The id
attribute provides a single string that can be used as an identifier
for this dialog or "half-dialog". This is a different identifier
than the dialog ID defined in <a href="./rfc3261">RFC 3261</a> [<a href="#ref-2" title=""SIP: Session Initiation Protocol"">2</a>], but related to it.
For a caller, the id is created when an INVITE request is sent. When
a 1xx response with a tag, or a 2xx response is received, the dialog
is formally created. The id remains unchanged. However, if an
additional 1xx or 2xx is received, resulting in the creation of
another dialog (and resulting FSM), that dialog is allocated a new
id.
For a callee, the id is created when an INVITE outside of an existing
dialog is received. When a 2xx or a 1xx with a tag is sent, creating
the dialog, the id remains unchanged.
The id MUST be unique amongst all current dialogs at a UA.
There are a number of optional attributes that provide identification
information about the dialog:
o call-id: This attribute is a string that represents the call-id
component of the dialog identifier. (Note that single and
double quotes inside a call-id must be escaped using &quote;
for " and &apos; for ' .)
o local-tag: This attribute is a string that represents the
local-tag component of the dialog identifier.
o remote-tag: This attribute is a string that represents the
remote-tag component of the dialog identifier. The remote tag
attribute won't be present if there is only a "half-dialog",
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
resulting from the generation of an INVITE for which no final
responses or provisional responses with tags has been received.
o direction: This attribute is either initiator or recipient, and
indicates whether the observed user was the initiator of the
dialog, or the recipient of the INVITE that created it.
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="0" state="partial"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774" direction="initiator">
...
</dialog>
</dialog-info>
The sub-elements of the dialog element provide additional information
about the dialog. Some of these sub-elements provide more detail
about the dialog itself, while the local and remote sub-elements
describe characteristics of the participants involved in the dialog.
The only mandatory sub-element is the state element.
<span class="h4"><a class="selflink" id="section-4.1.2" href="#section-4.1.2">4.1.2</a>. State Element</span>
The "state" element indicates the state of the dialog. Its value is
an enumerated type describing one of the states in the FSM above. It
has an optional event attribute that can be used to indicate the
event that caused any transition into the terminated state, and an
optional code attribute that indicates the response code associated
with any transition caused by a response to the original INVITE.
<state event="rejected" code="486">terminated</state>
<span class="h4"><a class="selflink" id="section-4.1.3" href="#section-4.1.3">4.1.3</a>. Duration Element</span>
The "duration" element contains the amount of time, in seconds, since
the FSM was created.
<duration>145</duration>
<span class="h4"><a class="selflink" id="section-4.1.4" href="#section-4.1.4">4.1.4</a>. Replaces Element</span>
The "replaces" element is used to correlate a new dialog with one it
replaced as a result of an invitation with a Replaces header field.
This element is present in the replacement dialog only (the newer
dialog) and contains attributes with the call-id, local-tag, and
remote-tag of the replaced dialog.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<replaces call-id="hg287s98s89"
local-tag="6762h7" remote-tag="09278hsb"/>
<span class="h4"><a class="selflink" id="section-4.1.5" href="#section-4.1.5">4.1.5</a>. Referred-By Element</span>
The "referred-by" element is used to correlate a new dialog with a
REFER [<a href="#ref-12" title=""The Session Initiation Protocol (SIP) Refer Method"">12</a>] request that triggered it. The element is present in a
dialog that was triggered by a REFER request that contained a
Referred-By [<a href="#ref-11" title=""The Session Initiation Protocol (SIP) Referred-By Mechanism"">11</a>] header field and contains the (optional) display
name attribute and the Referred-By URI as its value.
<referred-by display="Bob">sip:bob@example.com</referred-by>
<span class="h4"><a class="selflink" id="section-4.1.6" href="#section-4.1.6">4.1.6</a>. Local and Remote Elements</span>
The "local" and "remote" elements are sub-elements of the dialog
element that contain information about the local and remote
participants, respectively. They both have a number of optional
sub-elements that indicate the identity conveyed by the participant,
the target URI, the feature-tags of the target, and the
session-description of the participant.
<span class="h5"><a class="selflink" id="section-4.1.6.1" href="#section-4.1.6.1">4.1.6.1</a>. Identity Element</span>
The "identity" element indicates a local or remote URI, as defined in
[<a href="#ref-2" title=""SIP: Session Initiation Protocol"">2</a>] as appropriate. It has an optional attribute, display, that
contains the display name from the appropriate URI.
Note that multiple identities (for example a sip: URI and a tel:
URI) could be included if they all correspond to the participant.
To avoid repeating identity information in each request, the
subscriber can assume that the identity URIs are the same as in
previous notifications if no identity elements are present in the
corresponding local or remote element. If any identity elements
are present in the local or remote part of a notification, the new
list of identity tags completely supersedes the old list in the
corresponding part.
<identity display="Anonymous">
sip:anonymous@anonymous.invalid</identity>
<span class="h5"><a class="selflink" id="section-4.1.6.2" href="#section-4.1.6.2">4.1.6.2</a>. Target Element</span>
The "target" contains the local or remote target URI constructed by
the user agent for this dialog, as defined in <a href="./rfc3261">RFC 3261</a> [<a href="#ref-2" title=""SIP: Session Initiation Protocol"">2</a>] in a "uri"
attribute.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
It can contain a list of Contact header parameters in param sub-
elements (such as those defined in [<a href="#ref-10" title=""Indicating User Agent Capabilities in the Session Initiation Protocol (SIP)"">10</a>]). The param element contains
two required attributes, pname and pval. Boolean parameters are
represented by the explicit pval values, "true" and "false" (for
example, when a feature parameter is explicitly negated). Parameters
that have no value at all are represented by the explicit pval value
"true". The param element itself has no contents. To avoid
repeating Contact information in each request, the subscriber can
assume that the target URI and parameters are the same as in previous
notifications if no target element is present in the corresponding
local or remote element. If a target element is present in the local
or remote part of a notification, the new target tag and list of
parameter tags completely supersedes the old target and parameter
list in the corresponding part. Note that any quoting (including
extra angle-bracket quoting used to quote string values in [<a href="#ref-10" title=""Indicating User Agent Capabilities in the Session Initiation Protocol (SIP)"">10</a>]) or
backslash escaping MUST be removed before being placed in a pval
attribute. Any remaining single quotes, double quotes, and
ampersands MUST be properly XML escaped.
<target uri="sip:alice@pc33.example.com">
<param pname="isfocus" pval="true"/>
<param pname="class" pval="business"/>
<param pname="description" pval="Alice's desk &amp; office"/>
<param pname="sip.rendering" pval="no"/>
</target>
<span class="h5"><a class="selflink" id="section-4.1.6.3" href="#section-4.1.6.3">4.1.6.3</a>. Session Description Element</span>
The session-description element contains the session description used
by the observed user for its end of the dialog. This element should
generally NOT be included in the notifications, unless it was
explicitly requested by the subscriber. It has a single attribute,
"type", which indicates the MIME media type of the session
description. To avoid repeating session description information in
each request, the subscriber can assume that the session description
is the same as in previous notifications if no session description
element is present in the corresponding local or remote element.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Sample Notification Body</span>
<?xml version="1.0" encoding="UTF-8"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:dialog-info"
version="1" state="full">
<dialog id="123456">
<state>confirmed</state>
<duration>274</duration>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<local>
<identity display="Alice">sip:alice@example.com</identity>
<target uri="sip:alice@pc33.example.com">
<param pname="isfocus" pval="true"/>
<param pname="class" pval="personal"/>
</target>
</local>
<remote>
<identity display="Bob">sip:bob@example.org</identity>
<target uri="sip:bobster@phone21.example.org"/>
</remote>
</dialog>
</dialog-info>
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Constructing Coherent State</span>
The dialog information subscriber maintains a table listing the
dialogs, with a row for each dialog. Each row is indexed by an ID
that is present in the "id" attribute of the "dialog" element. Each
row contains the state of that dialog, as conveyed in the document.
The table is also associated with a version number. The version
number MUST be initialized with the value of the "version" attribute
from the "dialog-info" element in the first document received. Each
time a new document is received, the value of the local version
number is compared to the "version" attribute in the new document.
If the value in the new document is one higher than the local version
number, the local version number is increased by one and the document
is processed. If the value in the document is more than one higher
than the local version number, the local version number is set to the
value in the new document and the document is processed. If the
document did not contain full state, the subscriber SHOULD generate a
refresh request (SUBSCRIBE) to trigger a full state notification. If
the value in the document is less than the local version, the
document is discarded without processing.
The processing of the dialog information document depends on whether
it contains full or partial state. If it contains full state,
indicated by the value of the "state" attribute in the "dialog-info"
element, the contents of the table are flushed and then repopulated
from the document. A new row in the table is created for each
"dialog" element. If the document contains partial state, as
indicated by the value of the "state" attribute in the "dialog-info"
element, the document is used to update the table. For each "dialog"
element in the document, the subscriber checks to see whether a row
exists for that dialog. This check compares the ID in the "id"
attribute of the "dialog" element with the ID associated with the
row. If the dialog does not exist in the table, a row is added and
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
its state is set to the information from that "dialog" element. If
the dialog does exist, its state is updated to be the information
from that "dialog" element. If a row is updated or created, such
that its state is now terminated, that entry MAY be removed from the
table at any time.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Schema</span>
The following is the schema for the application/dialog-info+xml type:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
targetNamespace="urn:ietf:params:xml:ns:dialog-info"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:ietf:params:xml:ns:dialog-info"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- This import brings in the XML language
attribute xml:lang-->
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
<xs:element name="dialog-info">
<xs:complexType>
<xs:sequence>
<xs:element ref="tns:dialog" minOccurs="0"
maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="version" type="xs:nonNegativeInteger"
use="required"/>
<xs:attribute name="state" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="full"/>
<xs:enumeration value="partial"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="entity" type="xs:anyURI"
use="required"/>
</xs:complexType>
</xs:element>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<xs:element name="dialog">
<xs:complexType>
<xs:sequence>
<xs:element ref="tns:state" minOccurs="1" maxOccurs="1"/>
<xs:element name="duration" type="xs:nonNegativeInteger"
minOccurs="0" maxOccurs="1"/>
<xs:element name="replaces" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="call-id" type="xs:string"
use="required"/>
<xs:attribute name="local-tag" type="xs:string"
use="required"/>
<xs:attribute name="remote-tag" type="xs:string"
use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="referred-by" type="tns:nameaddr"
minOccurs="0" maxOccurs="1"/>
<xs:element name="route-set" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="hop" type="xs:string"
minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="local" type="tns:participant"
minOccurs="0" maxOccurs="1"/>
<xs:element name="remote" type="tns:participant"
minOccurs="0" maxOccurs="1"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="call-id" type="xs:string"
use="optional"/>
<xs:attribute name="local-tag" type="xs:string"
use="optional"/>
<xs:attribute name="remote-tag" type="xs:string"
use="optional"/>
<xs:attribute name="direction" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="initiator"/>
<xs:enumeration value="recipient"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
</xs:complexType>
</xs:element>
<xs:complexType name="participant">
<xs:sequence>
<xs:element name="identity" type="tns:nameaddr"
minOccurs="0" maxOccurs="1"/>
<xs:element name="target" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="param" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="pname" type="xs:string"
use="required"/>
<xs:attribute name="pval" type="xs:string"
use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="uri" type="xs:string"
use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="session-description" type="tns:sessd"
minOccurs="0" maxOccurs="1"/>
<xs:element name="cseq" type="xs:nonNegativeInteger"
minOccurs="0" maxOccurs="1"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="nameaddr">
<xs:simpleContent>
<xs:extension base="xs:anyURI">
<xs:attribute name="display-name" type="xs:string"
use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="sessd">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="xs:string"
use="required"/>
</xs:extension>
</xs:simpleContent>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
</xs:complexType>
<xs:element name="state">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="event" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="cancelled"/>
<xs:enumeration value="rejected"/>
<xs:enumeration value="replaced"/>
<xs:enumeration value="local-bye"/>
<xs:enumeration value="remote-bye"/>
<xs:enumeration value="error"/>
<xs:enumeration value="timeout"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="code" use="optional">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:minInclusive value="100"/>
<xs:maxInclusive value="699"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Definition of New Media Feature Parameters</span>
This section defines two new media feature parameters that are useful
as input to user presence, in conferencing applications, and in
applications like the shared-line example described in <a href="#section-6.2">Section 6.2</a>.
These feature parameters are especially useful in combination with
the dialog package, as they allow an authorized third party to become
aware of these characteristics.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. The "sip.byeless" Parameter</span>
The "sip.byeless" media feature parameter is a new boolean parameter,
defined in this document, that provides a positive indication that
the user agent setting the parameter is unable to terminate sessions
on its own (for example, by sending a BYE request). For example,
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
continuous announcement services and certain recording services are
unable to determine when it would be desirable to terminate a
session, and therefore they do not have the ability to terminate
sessions at all. Also, many human call centers are configured so
that they never terminate sessions. (This is to prevent call center
agents from accidentally disconnecting the caller). (Note that per
[<a href="#ref-10" title=""Indicating User Agent Capabilities in the Session Initiation Protocol (SIP)"">10</a>], this parameter name must be preceded by a "+" character when
used in a SIP Contact header field.)
Contact: <sip:recording-service@host.example.net>
;automaton;+sip.byeless
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. The "sip.rendering" Parameter</span>
The "sip.rendering" media feature parameter is a new string
parameter, defined in this document, that can provide a positive
indication whether the user agent setting the parameter is currently
rendering any of the media it is receiving in the context of a
specific session. It MUST only be used in a Contact header field in
a dialog created using the INVITE request.
This parameter has three legal values: "yes", "no", and "unknown".
The value "yes" indicates positive knowledge that the user agent is
rendering at least one of the streams of media that it is receiving.
The value "no" indicates positive knowledge that the user agent is
rendering none of the media that it is receiving. The value
"unknown" indicates that the user agent does not know whether the
media associated with the session is being rendered (which may be the
case if the user agent is acting as a 3pcc (Third Party Call Control)
[<a href="#ref-19" title=""Best Current Practices for Third Party Call Control (3pcc) in the Session Initiation Protocol (SIP)"">19</a>] controller).
The "sip.rendering" parameter is useful in applications such as
shared appearances, conference status monitoring, or as an input to
user presence.
Contact: <sip:musak-onhold@host.example.net>
;automaton;+sip.rendering="no"
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Examples</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Basic Example</span>
For example, if a UAC sends an INVITE that looks, in part, like:
INVITE sip:bob@example.com SIP/2.0
Via: SIP/2.0/UDP pc33.example.com;branch=z9hG4bKnashds8
Max-Forwards: 70
To: Bob <sip:bob@example.com>
From: Alice <sip:alice@example.com>;tag=1928301774
Call-ID: a84b4c76e66710
CSeq: 314159 INVITE
Contact: <sip:alice@pc33.example.com>
Content-Type: application/sdp
Content-Length: 142
[SDP not shown]
The XML document in a notification from Alice might look like:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="0"
state="full"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774" direction="initiator">
<state>trying</state>
</dialog>
</dialog-info>
If the following 180 response is received:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP pc33.example.com;branch=z9hG4bKnashds8
To: Bob <sip:bob@example.com>;tag=456887766
From: Alice <sip:alice@example.com>;tag=1928301774
Call-ID: a84b4c76e66710
CSeq: 314159 INVITE
Contact: <sip:bob@host.example.com>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
The XML document in a notification might look like:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="1"
state="full"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774" remote-tag="456887766"
direction="initiator">
<state>early</state>
</dialog>
</dialog-info>
If it receives a second 180 with a different tag:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP pc33.example.com;branch=z9hG4bKnashds8
To: Bob <sip:bob@example.com>;tag=hh76a
From: Alice <sip:alice@example.com>;tag=1928301774
Call-ID: a84b4c76e66710
CSeq: 314159 INVITE
Contact: <sip:jack@host.example.com>
This results in the creation of a second dialog:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="2"
state="full"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774" remote-tag="456887766"
direction="initiator">
<state>early</state>
</dialog>
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774" remote-tag="hh76a"
direction="initiator">
<state>early</state>
</dialog>
</dialog-info>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
If a 200 OK response is received on the second dialog, the dialog
moves to confirmed:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="3"
state="partial"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774" remote-tag="hh76a"
direction="initiator">
<state>confirmed</state>
</dialog>
</dialog-info>
32 seconds later, the other early dialog terminates because no 2xx
response has been received for it. This implies that it was
successfully cancelled, and therefore the following notification is
sent:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="4"
state="partial"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774" remote-tag="hh76a"
direction="initiator">
<state event="cancelled">terminated</state>
</dialog>
</dialog-info>
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Emulating a Shared-Line Phone System</span>
The following example shows how a SIP telephone user agent can
provide detailed state information and also emulate a shared-line
telephone system (the phone "lies" about having a dialog while it is
merely offhook).
Idle:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="0" state="full"
entity="sip:alice@example.com">
</dialog-info>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
Seized:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="1" state="partial"
entity="sip:alice@example.com">
<dialog id="as7d900as8">
<state>trying</state>
</dialog>
</dialog-info>
Dialing:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="2" state="partial"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774" direction="initiator">
<state>trying</state>
<local>
<identity display="Alice Smith">
sip:alice@example.com
</identity>
<target uri="sip:alice@pc33.example.com"/>
</local>
<remote>
<identity>sip:bob@example.net</identity>
</remote>
</dialog>
</dialog-info>
Ringing:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="3" state="partial"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774"
remote-tag="07346y131" direction="initiator">
<state code="180">early</state>
<remote>
<target uri="sip:bobster@host2.example.net"/>
</remote>
</dialog>
</dialog-info>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
Answered (by voicemail):
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="4" state="partial"
entity="sip:alice@example.com">
<dialog id="as7d900as8" call-id="a84b4c76e66710"
local-tag="1928301774"
remote-tag="07346y131" direction="initiator">
<state reason="cancelled">terminated</state>
</dialog>
<dialog id="zxcvbnm3" call-id="a84b4c76e66710"
local-tag="1928301774"
remote-tag="8736347" direction="initiator">
<state code="200">confirmed</state>
<remote>
<target uri="sip:bob-is-not-here@vm.example.net">
<param pname="actor" pval="msg-taker"/>
<param pname="automaton" pval="true"/>
<param pname="+sip.byeless" pval="true"/>
</target>
</remote>
</dialog>
</dialog-info>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
Alice would rather talk to Bob's assistant (Cathy Jones) than to
Bob's voicemail. She indicates this preference by pressing a key
(perhaps "0" in North America or "9" in Europe). Bob's voicemail
system then acts on this keypress by transferring [<a href="#ref-20" title=""Session Initiation Protocol Call Control - Transfer"">20</a>] Alice's call
to Cathy's AOR.
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="5" state="partial"
entity="sip:alice@example.com">
<dialog id="zxcvbnm3" call-id="a84b4c76e66710"
local-tag="1928301774"
remote-tag="8736347" direction="initiator">
<state reason="replaced">terminated</state>
</dialog>
<dialog id="sfhjsjk12" call-id="o34oii1"
local-tag="8903j4"
remote-tag="78cjkus" direction="receiver">
<state reason="replaced">confirmed</state>
<replaces call-id="a84b4c76e66710"
local-tag="1928301774"
remote-tag="8736347"/>
<referred-by>
sip:bob-is-not-here@vm.example.net
</referred-by>
<local>
<target uri="sip:alice@pc33.example.com"/>
<param pname="+sip.rendering" pval="yes"/>
</local>
<remote>
<identity display="Cathy Jones">
sip:cjones@example.net
</identity>
<target uri="sip:line3@host3.example.net">
<param pname="actor" pval="attendant"/>
<param pname="automaton" pval="false"/>
</target>
</remote>
</dialog>
</dialog-info>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
Alice and Cathy talk, Cathy adds Alice to a local conference:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="6" state="partial"
entity="sip:alice@example.com">
<dialog id="sfhjsjk12" call-id="o34oii1"
local-tag="8903j4"
remote-tag="78cjkus" direction="receiver">
<state>confirmed</state>
<remote>
<target uri="sip:confid-34579@host3.example.net">
<param pname="isfocus" pval="true"/>
</target>
</remote>
</dialog>
</dialog-info>
Alice puts Cathy on hold:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="7" state="partial"
entity="sip:alice@example.com">
<dialog id="sfhjsjk12" call-id="o34oii1"
local-tag="8903j4"
remote-tag="78cjkus" direction="receiver">
<state>confirmed</state>
<local>
<target uri="sip:alice@pc33.example.com"/>
<param pname="+sip.rendering" pval="no"/>
</target>
</local>
</dialog>
</dialog-info>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
Cathy hangs up:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="8" state="partial"
entity="sip:alice@example.com">
<dialog id="sfhjsjk12" call-id="o34oii1"
local-tag="8903j4"
remote-tag="78cjkus" direction="receiver">
<state reason="remote-bye">terminated</state>
</dialog>
<dialog id="08hjh1345">
<state>trying</state>
</dialog>
</dialog-info>
Alice hangs up:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="9" state="full"
entity="sip:alice@example.com">
</dialog-info>
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Minimal Dialog Information with Privacy</span>
The following example shows the same user agent providing minimal
information to maintain privacy for services like automatic callback.
Onhook:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="0" state="full"
entity="sip:alice@example.com">
</dialog-info>
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
Offhook: (implementation/policy choice for Alice to transition to
this "state" when "seized", when Trying, when Proceeding, or when
Confirmed.)
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="1" state="full"
entity="sip:alice@example.com">
<dialog id="1">
<state>confirmed</state>
</dialog>
</dialog-info>
Onhook: (implementation/policy choice for Alice to transition to this
"state" when terminated, or when no longer "seized")
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="2" state="full"
entity="sip:alice@example.com">
</dialog-info>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
Subscriptions to dialog state can reveal sensitive information. For
this reason, <a href="#section-3.6">Section 3.6</a> discusses authentication and authorization
of subscriptions, and provides guidelines on sensible authorization
policies. All implementations of this package MUST support the
digest authentication mechanism.
Since the data in notifications is sensitive as well, end-to-end SIP
encryption mechanisms using S/MIME MAY be used to protect it. User
agents that implement the dialog package SHOULD also implement SIP
over TLS [<a href="#ref-15" title=""The TLS Protocol Version 1.0"">15</a>] and the sips: scheme.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. IANA Considerations</span>
This document registers a new MIME type, application/dialog-info+xml;
a new XML namespace; and two new media feature parameters in the SIP
tree.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. MIME Registration for application/dialog-info+xml Type</span>
MIME media type name: application
MIME subtype name: dialog-info+xml
Mandatory parameters: none
Optional parameters: Same as charset parameter application/xml as
specified in <a href="./rfc3023">RFC 3023</a> [<a href="#ref-8" title=""XML Media Types"">8</a>].
Encoding considerations: Same as encoding considerations of
application/xml as specified in <a href="./rfc3023">RFC 3023</a> [<a href="#ref-8" title=""XML Media Types"">8</a>].
Security considerations: See <a href="./rfc3023#section-10">Section 10 of RFC 3023</a> [<a href="#ref-8" title=""XML Media Types"">8</a>] and <a href="#section-7">Section 7</a>
of this specification.
Interoperability considerations: none.
Published specification: This document.
Applications that use this media type: This document type has been
used to support SIP applications such as call return and
auto-conference.
Additional Information:
Magic Number: None
File Extension: .xml
Macintosh file type code: "TEXT"
Personal and email address for further information: Jonathan
Rosenberg, <jdrosen@jdrosen.net>
Intended usage: COMMON
Author/Change controller: The IETF.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. URN Sub-Namespace Registration for</span>
<span class="h3"> urn:ietf:params:xml:ns:dialog-info</span>
This section registers a new XML namespace, per the guidelines in
[<a href="#ref-7" title=""The IETF XML Registry"">7</a>].
URI: The URI for this namespace is
urn:ietf:params:xml:ns:dialog-info.
Registrant Contact: The IESG, <iesg@ietf.org>
XML:
BEGIN
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"<a href="http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd</a>">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type"
content="text/html;charset=iso-8859-1"/>
<title>Dialog Information Namespace</title>
</head>
<body>
<h1>Namespace for Dialog Information</h1>
<h2>urn:ietf:params:xml:ns:dialog-info</h2>
<p>See <a href="ftp://ftp.rfc-editor.org/in-notes/rfc4235.txt">
<a href="./rfc4235">RFC4235</a></a>.</p>
</body>
</html>
END
<span class="h3"><a class="selflink" id="section-8.3" href="#section-8.3">8.3</a>. Schema Registration</span>
This specification registers a schema, per the guidelines in [<a href="#ref-7" title=""The IETF XML Registry"">7</a>].
URI: urn:ietf:params:xml:schema:dialog-info
Registrant Contact: The IESG, <iesg@ietf.org>
XML: The XML can be found as the sole content of <a href="#section-4.4">Section 4.4</a>.
<span class="h3"><a class="selflink" id="section-8.4" href="#section-8.4">8.4</a>. Media Feature Parameter Registration</span>
This section registers two new media feature tags, per the procedures
defined in <a href="./rfc2506">RFC 2506</a> [<a href="#ref-14" title=""Media Feature Tag Registration Procedure"">14</a>]. The tags are placed into the sip tree,
which is defined in [<a href="#ref-10" title=""Indicating User Agent Capabilities in the Session Initiation Protocol (SIP)"">10</a>].
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
<span class="h4"><a class="selflink" id="section-8.4.1" href="#section-8.4.1">8.4.1</a>. Media Feature Tag sip.byeless</span>
<span class="h4"> Media feature tag name sip.byeless</span>
ASN.1 Identifier 19
Summary of the media feature indicated by this tag: This feature tag
is a boolean flag. When set it indicates that the device is
incapable of terminating a session autonomously.
Values appropriate for use with this feature tag: Boolean.
The feature tag is intended primarily for use in the following
applications, protocols, services, or negotiation mechanisms: This
feature tag is most useful in a communications application for
describing the capabilities of an application, such as an
announcement service, recording service, conference, or call center.
Examples of typical use: Call centers and media services.
Related standards or documents: <a href="./rfc4235">RFC 4235</a>
Security Considerations: This media feature tag can be used in ways
that affect application behaviors or may reveal private information.
For example, a conferencing or other application may decide to
terminate a call prematurely if this media feature tag is set.
Therefore, if an attacker can modify the values of this tag, they may
be able to affect the behavior of applications. As a result of this,
applications that utilize this media feature tag SHOULD provide a
means for ensuring its integrity. Similarly, this feature tag should
only be trusted as valid when it comes from the user or user agent
described by the tag. As a result, protocols for conveying this
feature tag SHOULD provide a mechanism for guaranteeing authenticity.
<span class="h4"><a class="selflink" id="section-8.4.2" href="#section-8.4.2">8.4.2</a>. Media Feature Tag sip.rendering</span>
Media feature tag name: sip.rendering
ASN.1 Identifier: 20
Summary of the media feature indicated by this tag: This feature tag
contains one of three string values indicating if the device is
rendering any media from the current session ("yes"), none of the
media from the current session ("no"), or if this status is not
known to the device ("unknown").
Values appropriate for use with this feature tag: String.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
The feature tag is intended primarily for use in the following
applications, protocols, services, or negotiation mechanisms: This
feature tag is most useful in a communications application, for
describing the state of a device (such as a phone or PDA) during a
multimedia session.
Examples of typical use: Conferencing, telephone shared-line
emulation, and presence applications.
Related standards or documents: <a href="./rfc4235">RFC 4235</a>
Security Considerations: This media feature tag can be used in ways
that affect application behaviors or may reveal private
information. For example, a conferencing or other application may
decide to terminate a call prematurely if this media feature tag
is set to "no". Therefore, if an attacker can modify the values
of this tag, they may be able to affect the behavior of
applications. As a result of this, applications that utilize this
media feature tag SHOULD provide a means for ensuring its
integrity. Similarly, this feature tag should only be trusted as
valid when it comes from the user or user agent described by the
tag. As a result, protocols for conveying this feature tag SHOULD
provide a mechanism for guaranteeing authenticity.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Acknowledgements</span>
The authors would like to thank Sean Olson for his comments.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. References</span>
<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.1</a>. Normative References</span>
[<a id="ref-1">1</a>] Roach, A.B., "Session Initiation Protocol (SIP)-Specific Event
Notification", <a href="./rfc3265">RFC 3265</a>, June 2002.
[<a id="ref-2">2</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-3">3</a>] Rosenberg, J., "The Session Initiation Protocol (SIP) UPDATE
Method", <a href="./rfc3311">RFC 3311</a>, October 2002.
[<a id="ref-4">4</a>] Paoli, J., Sperberg-McQueen, C., Bray, T., and E. Maler,
"Extensible Markup Language (XML) 1.0 (Second Edition)", W3C
FirstEdition REC-xml-20001006, October 2000.
[<a id="ref-5">5</a>] Moats, R., "URN Syntax", <a href="./rfc2141">RFC 2141</a>, May 1997.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
[<a id="ref-6">6</a>] Moats, R., "A URN Namespace for IETF Documents", <a href="./rfc2648">RFC 2648</a>,
August 1999.
[<a id="ref-7">7</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-8">8</a>] Murata, M., St. Laurent, S., and D. Kohn, "XML Media Types",
<a href="./rfc3023">RFC 3023</a>, January 2001.
[<a id="ref-9">9</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-10">10</a>] Rosenberg, J., Schulzrinne, H., and P. Kyzivat, "Indicating
User Agent Capabilities in the Session Initiation Protocol
(SIP)", <a href="./rfc3840">RFC 3840</a>, August 2004.
[<a id="ref-11">11</a>] Sparks, R., "The Session Initiation Protocol (SIP) Referred-By
Mechanism", <a href="./rfc3892">RFC 3892</a>, September 2004.
[<a id="ref-12">12</a>] Sparks, R., "The Session Initiation Protocol (SIP) Refer
Method", <a href="./rfc3515">RFC 3515</a>, April 2003.
[<a id="ref-13">13</a>] Mahy, R., Biggs, B., and R. Dean, "The Session Initiation
Protocol (SIP) "Replaces" Header", <a href="./rfc3891">RFC 3891</a>, September 2004.
[<a id="ref-14">14</a>] Holtman, K., Mutz, A., and T. Hardie, "Media Feature Tag
Registration Procedure", <a href="https://www.rfc-editor.org/bcp/bcp31">BCP 31</a>, <a href="./rfc2506">RFC 2506</a>, March 1999.
[<a id="ref-15">15</a>] Dierks, T. and C. Allen, "The TLS Protocol Version 1.0", <a href="./rfc2246">RFC</a>
<a href="./rfc2246">2246</a>, January 1999.
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>. Informative References</span>
[<a id="ref-16">16</a>] Rosenberg, J., "A Presence Event Package for the Session
Initiation Protocol (SIP)", <a href="./rfc3856">RFC 3856</a>, August 2004.
[<a id="ref-17">17</a>] Rosenberg, J., "A Watcher Information Event Template-Package
for the Session Initiation Protocol (SIP)", <a href="./rfc3857">RFC 3857</a>, August
2004.
[<a id="ref-18">18</a>] Mahy, R., "A Message Summary and Message Waiting Indication
Event Package for the Session Initiation Protocol (SIP)", <a href="./rfc3842">RFC</a>
<a href="./rfc3842">3842</a>, August 2004.
[<a id="ref-19">19</a>] Rosenberg, J., Peterson, J., Schulzrinne, H., and G. Camarillo,
"Best Current Practices for Third Party Call Control (3pcc) in
the Session Initiation Protocol (SIP)", <a href="https://www.rfc-editor.org/bcp/bcp85">BCP 85</a>, <a href="./rfc3725">RFC 3725</a>, April
2004.
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
[<a id="ref-20">20</a>] Sparks, R., "Session Initiation Protocol Call Control -
Transfer", Work in Progress, July 2005.
Authors' Addresses
Jonathan Rosenberg
Cisco Systems
600 Lanidex Plaza
Parsippany, NJ 07054
US
Phone: +1 973 952-5000
EMail: jdrosen@cisco.com
URI: <a href="http://www.jdrosen.net">http://www.jdrosen.net</a>
Henning Schulzrinne
Columbia University
M/S 0401
1214 Amsterdam Ave.
New York, NY 10027
US
EMail: schulzrinne@cs.columbia.edu
URI: <a href="http://www.cs.columbia.edu/~hgs">http://www.cs.columbia.edu/~hgs</a>
Rohan Mahy (editor)
SIP Edge LLC
EMail: rohan@ekabal.com
<span class="grey">Rosenberg, 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="./rfc4235">RFC 4235</a> Dialog Package November 2005</span>
Full Copyright Statement
Copyright (C) The Internet Society (2005).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at ietf-
ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Rosenberg, et al. Standards Track [Page 39]
</pre>
|