1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
|
Independent Submission D. Worley
Request for Comments: 8433 Ariadne
Category: Informational August 2018
ISSN: 2070-1721
A Simpler Method for Resolving Alert-Info URNs
Abstract
The "alert" namespace of Uniform Resource Names (URNs) can be used in
the Alert-Info header field of Session Initiation Protocol (SIP)
requests and responses to inform a voice over IP (VoIP) telephone
(user agent) of the characteristics of the call that the user agent
has originated or terminated. The user agent must resolve the URNs
into a signal; that is, it must select the best available signal to
present to its user to indicate the characteristics of the call.
RFC 7462 describes a non-normative algorithm for signal selection.
This document describes a more efficient alternative algorithm: a
user agent's designer can, based on the user agent's signals and
their meanings, construct a finite state machine (FSM) to process the
URNs to select a signal in a way that obeys the restrictions given in
the definition of the "alert" URN namespace.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for informational purposes.
This is a contribution to the RFC Series, independently of any other
RFC stream. The RFC Editor has chosen to publish this document at
its discretion and makes no statement about its value for
implementation or deployment. Documents approved for publication by
the RFC Editor are not candidates for any level of Internet Standard;
see Section 2 of RFC 7841.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
https://www.rfc-editor.org/info/rfc8433.
Worley Informational [Page 1]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
Copyright Notice
Copyright (c) 2018 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(https://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document.
Table of Contents
1. Introduction ....................................................3
1.1. Requirements Governing Resolution Algorithms ...............4
1.2. Summary of the New Resolution Algorithm ....................5
1.3. Conventions Used in This Document ..........................7
2. Selecting the Signals and Their Corresponding "alert" URNs ......7
3. General Considerations for Processing Alert-Info ................9
4. Constructing the Finite State Machine for a Very Simple
Example ........................................................10
4.1. Listing the Expressed URNs ................................11
4.2. Constructing the Alphabet of Symbols ......................11
4.3. Constructing the States and Transitions ...................13
4.4. Summary ...................................................17
4.5. Examples of Processing Alert-Info URNs ....................19
5. Further Examples ...............................................20
5.1. Example with "source" and "priority" URNs .................20
5.2. Example 1 of RFC 7462 .....................................24
5.3. Examples 2, 3, and 4 of RFC 7462 ..........................30
5.4. An Example That Subsets Internal Sources ..................33
5.5. An Example of "alert:service" URNs ........................34
5.6. An Example Using Country Codes ............................34
6. Prioritizing Signals ...........................................40
7. Dynamic Sets of Signals ........................................41
8. Security Considerations ........................................43
9. IANA Considerations ............................................43
10. References ....................................................44
10.1. Normative References .....................................44
10.2. Informative References ...................................44
Acknowledgments ...................................................45
Author's Address ..................................................45
Worley Informational [Page 2]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
1. Introduction
When a SIP user agent (UA) server receives an incoming INVITE
request, it chooses an alerting signal (the ring tone) to present to
its user (the called user) by processing the Alert-Info header
field(s) in the incoming INVITE request [RFC3261]. Similarly, a SIP
UA client determines an alerting signal (the ringback tone) to
present to its user (the calling user) by processing the Alert-Info
header field(s) in the incoming provisional response(s) to its
outgoing INVITE request.
[RFC3261] envisioned that the Alert-Info header field value would be
a URL that the UA could use to retrieve the encoded media of the
signal. This usage has security problems and is inconvenient to
implement in practice.
[RFC7462] introduced an alternative practice: the Alert-Info values
can be URNs in the "alert" URN namespace that specify features of the
call or of the signal that should be signaled to the user. [RFC7462]
defined a large set of "alert" URNs and procedures for extending
the set.
A UA is unlikely to provide more than a small set of alerting
signals, and there are an infinite number of possible combinations of
"alert" URNs. Thus, a UA is often required to select an alerting
signal that renders only a subset of the information in the
Alert-Info header field(s) -- which is the resolution process for
"alert" URNs. The requirements for resolving "alert" URNs are given
in Section 11.1 of [RFC7462].
Section 12 of [RFC7462] gives a (non-normative) resolution algorithm
for selecting a signal that satisfies the requirements of
Section 11.1 of that document. That algorithm can be used regardless
of the set of alerting signals that the UA provides and their
specified meanings. The existence of the algorithm defined in
[RFC7462] demonstrates that the resolution requirements can always be
satisfied. However, the algorithm is complex and slow.
The purpose of this document is to describe an improved
implementation -- a more efficient resolution algorithm for selecting
signals that conforms to the requirements of Section 11.1 of
[RFC7462]. (Of course, like any such algorithm, it is non-normative,
and the implementation is free to use any algorithm that conforms to
the requirements of Section 11.1 of [RFC7462].)
In the algorithm defined in this document, once the UA designer has
chosen the set of signals that the UA produces and the "alert" URNs
that they express, a finite state machine (FSM) is constructed that
Worley Informational [Page 3]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
selects alerting signals based on the URNs in the Alert-Info header
field(s) in a SIP message. The incoming "alert" URNs are
preprocessed in a straightforward manner into a sequence of "symbols"
drawn from a fixed finite set; these symbols are then used as input
to the FSM. After processing the input, the state of the FSM selects
the correct alerting signal to present to the user.
Both the preprocessor and the FSM are determined only by the selected
set of signals and the set of "alert" URNs expressed by the signals,
so the processing machinery can be fixed at the time of designing
the UA.
1.1. Requirements Governing Resolution Algorithms
The requirements for the resolution of "alert" URNs are given in
Section 11.1 of [RFC7462] and can be described as follows:
o The "alert" URNs are processed from left to right. Each "alert"
URN has precedence over all URNs that follow it, and its
interpretation is subordinate to all URNs that precede it.
o As each URN is processed, one of the UA's signals is chosen that
expresses that URN as far as can be done without reducing the
degree to which any of the preceding URNs were expressed by the
signal chosen for the preceding URN. Thus, as processing
proceeds, the chosen signals become increasingly specific and
contain more information, but all of the information about a
particular URN that is expressed by the signal chosen for that URN
is also expressed by the signals chosen for all following URNs.
o If the entirety of the current URN cannot be expressed by any
allowed signal, then each of the trailing alert-ind-parts (the
sections separated by colons) is in turn removed until the reduced
URN can be expressed by some signal that also expresses at least
the same reduced versions of the preceding URNs that were
expressed by the signal chosen for the preceding URN. This can be
described as "a signal that expresses as much of the current URN
as possible while still expressing as much of the previous URNs as
the preceding signal did."
So, for instance, consider processing
Alert-Info: urn:alert:category-a:part-a1:part-a2,
urn:alert:category-b:part-b1:part-b2
If the UA has no signal for urn:alert:category-a:part-a1:part-a2, it
removes part-a2 from the URN and checks whether it has a signal for
the less-specific URN urn:alert:category-a:part-a1. If it has no
Worley Informational [Page 4]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
signal for that URN, it gives up on the URN entirely (since
urn:alert:category-a doesn't exist and can be considered to express
nothing about the call), and the chosen signal is the default signal
of the UA, i.e., the signal that is used when there is no Alert-Info.
But let us suppose the UA has a signal for
urn:alert:category-a:part-a1 and chooses that signal when processing
the first URN. All processing after this point will be restricted to
signals that express urn:alert:category-a:part-a1 or a more specific
URN of the category "category-a".
The UA then goes on to examine the next URN,
urn:alert:category-b:part-b1:part-b2. If there is a signal that
expresses both urn:alert:category-a:part-a1 and
urn:alert:category-b:part-b1:part-b2, then the UA chooses that
signal. If there is no such signal, the second URN is reduced to
urn:alert:category-b:part-b1, and the UA checks for a signal that
expresses that URN along with urn:alert:category-a:part-a1. If there
is no such signal that matches that relaxed requirement, the second
URN is reduced to urn:alert:category-b, which is discarded, and the
chosen signal for the first URN is chosen for the second URN. In any
case, all processing after this point will be restricted to signals
that express urn:alert:category-a:part-a1 or a more specific URN of
the category "category-a" and that also express the chosen part of
urn:alert:category-b:part-b1:part-b2.
This process is continued until the last "alert" URN is processed;
the signal chosen for the last URN is the signal that the UA uses.
1.2. Summary of the New Resolution Algorithm
The purpose of this document is to describe a resolution algorithm
that conforms to Section 11.1 of [RFC7462] but is simpler than the
algorithm described in Section 12 of [RFC7462]: once the UA designer
has chosen a set of signals and the URNs that they express, an FSM is
constructed that selects alerting signals based on the URNs in the
Alert-Info header field(s) in a SIP message.
o The designer selects the set of signals that the UA produces,
matching each signal to a set of "alert" URNs that together
specify the meaning that is carried by the signal. (If the signal
is a "default" signal that has no specific meaning, the set is
empty. If the signal carries the meaning of one "alert" URN, the
set contains that URN. If the signal carries a meaning that is
the logical AND of two or more "alert" URNs, the set contains
those URNs.)
Worley Informational [Page 5]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
o Based on the UA's signals and their meanings, the designer
constructs an "alphabet" containing a finite number of symbols;
each possible "alert" URN is mapped into one particular symbol.
o The designer constructs an FSM whose input is the alphabet of
symbols and whose states describe the information extracted from
the Alert-Info URNs.
o Each state of the FSM has an associated signal. Processing the
Alert-Info URNs will leave the FSM in some particular state; the
UA renders the signal that is attached to that final state.
To select a ring tone or ringback tone based on a SIP message, the UA
processes the "alert" URNs in the Alert-Info header field from left
to right. Initially, the FSM is in a designated initial state. The
UA maps each successive URN into the corresponding symbol and then
executes the state transition of the FSM specified by the symbol.
The state of the FSM after processing the URNs determines which
signal the UA will render to the user.
Note that the UA generally has two FSMs, because a UA usually wants
to signal different information in ring tones than it signals in
ringback tones. One FSM is used to select the ring tone to render
for an incoming INVITE request. The other FSM is used to select the
ringback tone to render based on an incoming provisional response to
an outgoing INVITE request. Both FSMs are constructed in the same
way, but the constructions are based on different lists of signals
and corresponding URNs.
All of the steps of the method after the designer has selected the
signals and their URNs are algorithmic, and the algorithm of those
steps ensures that the operation of the FSM will satisfy the
constraints of Section 11.1 of [RFC7462]. A Python implementation of
the algorithmic steps is provided in [code].
In simple situations, a suitable FSM or equivalent ad hoc code can be
constructed by hand using ad hoc analysis. Generally, this is only
practical in situations where a small number of alert-categories and
alert-indications are signaled and the categories interact in a
simple, uniform way. For example, the examples in Sections 5.1 and
5.2 could be constructed by ad hoc analysis. But automatic
processing is valuable if the situation is too complicated to
construct a correct FSM by ad hoc analysis, or if the set of signals
will change too frequently for human production to be economical.
Worley Informational [Page 6]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
1.3. Conventions Used in This Document
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
2. Selecting the Signals and Their Corresponding "alert" URNs
The designer must select signals that the UA will generate and define
the meanings that the signals will have to the user. Based on this,
the designer determines for each signal the "alert" URN or
combination of "alert" URNs that (1) indicate that signal's meaning
in SIP messages and (2) consequently should elicit that signal from
the UA.
For example, suppose the UA has a particular ring tone for calls from
an external source. A call from an external source is marked with
the URN urn:alert:source:external (specified in Section 9 of
[RFC7462]). Thus, the table of signals includes:
Signal URN(s)
---------------------------- -------------------------------
external source urn:alert:source:external
Similarly, if the UA has a particular ring tone for calls from an
internal source, the table includes:
Signal URN(s)
---------------------------- -------------------------------
internal source urn:alert:source:internal
If the UA has ring tones for calls that are marked as having higher
or lower priority, then the table includes:
Signal URN(s)
---------------------------- -------------------------------
high priority urn:alert:priority:high
low priority urn:alert:priority:low
Note that the UA must be able to signal for a message that has no
"alert" URNs in the Alert-Info header field, which means that there
must always be a default signal that has zero corresponding URNs:
Signal URN(s)
---------------------------- -------------------------------
default (none)
Worley Informational [Page 7]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
A signal can be defined to indicate a combination of conditions. For
instance, a signal that is used only for high-priority, internal-
source calls expresses two URNs and will only be used when both URNs
are present in Alert-Info:
Signal URN(s)
------------------------------ -------------------------------
high priority, internal source urn:alert:priority:high,
urn:alert:source:internal
A signal can be defined to cover a number of related conditions by
specifying a URN that is the common prefix of the URNs for the
various conditions. For instance, the URNs for "recall due to
callback", "recall due to call hold", and "recall due to transfer"
all start with urn:alert:service:recall, and so one signal can be
provided for all of them by:
Signal URN(s)
---------------------------- -------------------------------
recall urn:alert:service:recall
But if a specific signal is also provided for "recall due to
callback" by this entry:
Signal URN(s)
---------------------------- ---------------------------------
recall generally urn:alert:service:recall
recall due to callback urn:alert:service:recall:callback
then if the message contains urn:alert:service:recall:callback, the
"recall due to callback" signal will be chosen instead of "recall
generally" because the UA chooses the signal that most completely
expresses the information in the Alert-Info header field.
The designer may wish to define extension URNs that provide more
specific information about a call than the standard "alert" URNs do.
One method is to add additional components to standard URNs. For
instance, an extra-high priority could be indicated by the URN
urn:alert:priority:high:extra@example. The final "extra@example" is
an "alert-ind-part" that is a private extension. (See Sections 7 and
10.2 of [RFC7462] for a discussion of private extensions.) In any
case, adding an alert-ind-part to a URN makes its meaning more
specific, in that any call to which the longer URN can be applied can
also have the shorter URN applied. In this case, "extra-high-
priority calls" are considered a subset of "high-priority calls".
Worley Informational [Page 8]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
Signal URN(s)
--------------------- -----------------------------------------
high priority urn:alert:priority:high
extra-high priority urn:alert:priority:high:extra@example.com
Of course, for this extension to be useful, the senders of SIP
messages (e.g., other UAs) must generate the extension URN in
suitable circumstances.
In some circumstances, the designer may want to create an entirely
new category of "alert" URNs to indicate a type of information that
is not indicated by any standard category of URNs. In that case, the
designer uses a private extension as the alert-category (the third
component of the URN), combined with whatever alert-ind-part (fourth
component) values are desired. For example, a simplified version of
the U.S. military security designations could be:
Signal URN(s)
----------------------- ---------------------------------------
unclassified urn:alert:security@example:unclassified
confidential urn:alert:security@example:confidential
secret urn:alert:security@example:secret
top secret urn:alert:security@example:top-secret
The designer should ensure that the new alert-category is orthogonal
to all defined standard alert-categories, in that any combination of
one of the new URNs with one of the standard URNs is meaningful in
that there could be a message carrying both URNs.
In addition, the set of alert-ind-parts for the new alert-category
should be comprehensive and disjoint, in that every message can be
described by exactly one of them.
3. General Considerations for Processing Alert-Info
In this section, we will discuss various considerations that arise
when processing Alert-Info. These have to be taken care of properly
in order to conform to the standards, as well as to ensure a good
user experience. But since they are largely independent of the
generated FSM and its processing, they are gathered here in a
separate section.
The UA may have a number of different FSMs for processing URNs.
Generally, there will be different FSMs for processing Alert-Info in
incoming INVITE requests and for incoming provisional responses to
outgoing INVITE requests. But any situation that changes the set of
signals that the UA is willing to generate specifies a different set
of signals and corresponding URNs and thus generates a different FSM.
Worley Informational [Page 9]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
For example, if a call is active on the UA, all audible signals may
become unavailable, or audible signals may be available only if
urn:alert:priority:high is specified.
Similarly, if the set of signals is customized by user action or
local policy, the generated FSM must be updated. This can be done by
(1) regenerating it according to the method described here or
(2) generating a "generic" FSM and instantiating it based on the
available signals. (See Section 7 for a discussion of this.)
Note that the values in an Alert-Info header field are allowed to be
URIs of any scheme and, within the "urn" scheme, are allowed to have
any namespace [RFC3261]. The processing of URIs that are not "alert"
URNs is not considered by this document, nor is that processing
specified by [RFC7462]. But the algorithm designer must consider
what to do with such URIs if they are encountered. The simplest
choice is to ignore them. Alternatively, the algorithm may examine
the URI to determine if it names an alerting signal or describes how
to retrieve an alerting signal, and, if so, choose to render that
signal rather than process the "alert" URNs to select a signal. In
any case, the remainder of this document assumes that (1) the signal
is to be chosen based on the "alert" URNs in Alert-Info and (2) all
Alert-Info URIs that are not "alert" URNs have been removed.
The UA may also receive "alert" URNs that are semantically invalid in
various ways. For example, the URN may have only three components,
despite the fact that all valid "alert" URNs have at least one
alert-ind-part and thus four components. The only useful strategy is
to ignore such URNs (and possibly log them for analysis).
The method described here is robust in its handling of categories and
alert-ind-parts that are unknown to the UA; as a consequence, it is
also robust if they are not valid standardized URNs. Thus, these
error conditions need not be handled specially.
4. Constructing the Finite State Machine for a Very Simple Example
Constructing the FSM involves:
1. Listing the URNs that are expressed by the various signals of
the UA.
2. From the expressed URNs, constructing the finite alphabet of
symbols into which input URNs are mapped and that drive the state
transitions of the FSM.
Worley Informational [Page 10]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
3. Constructing the states of the FSM and the transitions between
them.
4. Selecting a signal to be associated with each FSM state.
We will explain the process using a very simple example in which
there are two signals -- one expressing "internal source" and one
expressing "external source" -- along with a default signal (for when
there is no source information to signal). The "internal source"
signal expresses urn:alert:source:internal, and the "external source"
signal expresses urn:alert:source:external.
4.1. Listing the Expressed URNs
The first step is to establish for each of the UA's signals what call
characteristics it represents, which is to say, the set of "alert"
URNs that are its information content.
Signal URN(s)
---------------------------- -------------------------------
default (none)
internal source urn:alert:source:internal
external source urn:alert:source:external
From the totality of these expressed URNs, the designer can then
determine which sets of URNs must be distinguished from each other.
In our simple example, the expressed URNs are:
urn:alert:source:external
urn:alert:source:internal
4.2. Constructing the Alphabet of Symbols
In order to reduce the infinite set of possible "alert" URNs to a
finite alphabet of input symbols that cause the FSM's transitions,
the designer must partition the "alert" URNs into a finite set of
categories.
Once we've listed all the expressed URNs, we can list all of the
alert-categories that are relevant to the UA's signaling; "alert"
URNs in any other alert-category cannot affect the signaling and can
be ignored. (The easiest way to ignore the non-relevant URNs is to
skip over them during Alert-Info processing. A more formal method is
to map all of them into one "Other" symbol and then, for each state
of the FSM, have the "Other" symbol transition to that same state.)
Worley Informational [Page 11]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
Within each relevant alert-category, we now define a distinct
symbol for every expressed URN and for all of their "ancestor" URNs
(those that can be created by removing one or more trailing
alert-ind-parts). In order to name the symbols in a way that
distinguishes them from the corresponding URNs, we remove the initial
"urn:alert:" and capitalize each alert-ind-part. Thus, in our
example, we get these symbols:
Source
Source:External
Source:Internal
Note that there is a "Source" symbol even though there is no
corresponding URN. (urn:alert:source is not a valid URN -- see
Section 7 of [RFC7462] -- although the processing algorithm must be
prepared to screen out such a purported URN if it appears in the
Alert-Info header field.) However, its existence as a symbol will be
useful later when we construct the FSM.
For each of these symbols, we add a symbol that classifies URNs that
extend the symbol's corresponding URN with alert-ind-parts that
cannot be expressed by signals:
Source:Other
Source:External:Other
Source:Internal:Other
The latter two classify URNs, such as
urn:alert:source:external:foo@example, that extend URNs that we
already have symbols for. The first is for classifying URNs, such as
urn:alert:source:bar@example, that have first alert-ind-parts that
contradict all the "source" URNs that the UA can signal.
These steps give us this set of symbols:
Source
Source:External
Source:External:Other
Source:Internal
Source:Internal:Other
Source:Other
We can then simplify the set of symbols by removing the ones like
Source:External:Other and Source:Internal:Other that consist of
adding "Other" to a symbol that corresponds to an expressed URN that
is not ancestral to any other expressed URNs. This works because
adding further alert-ind-parts to a URN that is a leaf in regard to
Worley Informational [Page 12]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
the set of signals has no additional effect. In this example,
urn:alert:source:external:foo@example has the same effect as
urn:alert:source:external for both (1) causing a signal to be chosen
and (2) suppressing the effect of later URNs.
This leaves the following symbols for the "source" category:
Source
Source:External
Source:Internal
Source:Other
These can be visually summarized by showing the infinite tree of
possible source "alert" URNs and how it is partitioned into subtrees
that map to each of these symbols. We also mark with "*" the
expressed URNs.
urn:alert
|
{ | }
{ source } --> 1
{ | }
|
+--------------------+------------------+
| | |
{ | } { | } { | }
{ external* } --> 2 { internal* } --> 3 { ... } --> 4
{ | } { | } { }
{ ... } { ... }
{ } { }
1 = Source
2 = Source:External
3 = Source:Internal
4 = Source:Other
4.3. Constructing the States and Transitions
The UA processes the Alert-Info URNs from left to right using an FSM,
with each successive URN causing the FSM to transition to a new
state. Each state of the FSM records the information that has so far
been extracted from the URNs. The state of the FSM after processing
all the URNs determines which signal the UA will render to the user.
We label each state with a set of symbols, one from each relevant
category, that describe the information that's been extracted from
all of the URNs that have so far been processed. The initial state
is labeled with the "null" symbols that are just the category names,
Worley Informational [Page 13]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
because no information has yet been recorded. In our simple example,
the initial state is labeled "Source", since that's the only relevant
category.
State: Source (initial state)
Each state has a corresponding alerting signal, which is the signal
that the UA will produce when URN processing leaves the FSM in that
state. The signal is the one that best expresses the information
that has been extracted from the URNs. Usually, the choice of signal
is obvious to the designer, but there are certain constraints that
the choice must satisfy. The main constraint is that the signal's
expressed URNs must be semantic supersets of (i.e., identical to or a
prefix of) the URNs corresponding to the symbols in the state's
label. In particular, if the expressed URN of the signal in a
certain category is shorter than the state's label, we show that in
the state's name by putting parentheses around the trailing part of
the symbol that is not expressed by the signal. For instance, if the
symbol in the label is "Source:External" but the signal only
expresses "Source" (i.e., no "source" URN at all), then the symbol in
the label is modified to be "Source:(External)".
The reason for this nonintuitive construction is that in some states,
the FSM has recorded information that the chosen signal cannot
express.
Note that the parentheses are part of the state name, so in some
circumstances there may be two or more distinct states labeled with
the same symbols but with different placement of parentheses within
the symbols. These similar state names are relevant when the FSM can
record information from multiple "alert" URNs but cannot express all
of them -- depending on the order in which the URNs appear, the UA
may have to render different signals, so it needs states that record
the same information but render different subsets of that
information.
The initial state's label is the string of null symbols for the
relevant categories, so the only allowed signal is the default
signal, which expresses no URNs:
State: Source (initial state)
Signal: default
Worley Informational [Page 14]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
From each state, we must construct the transition for each possible
input symbol. For a particular current state and symbol, we
construct the label of the next state by combining the input symbol
with the symbol in the current state's label for the same category.
If one of the symbols is a prefix of the other, we select the longer
one; if not, we select the symbol in the current state's label.
Thus, in our simple example, the initial state has the following
transitions:
State: Source (initial state)
Signal: default
Transitions:
Source:External -> Source:External
Source:Internal -> Source:Internal
Source:Other -> Source:Other
In all of these transitions, the input symbol is compatible with the
matching label of the current state, "Source", so the next state's
label is the full input symbol.
However, there is a further constraint on the next state: its signal
must express URNs that at least contain the expressed URNs of the
signal of the current state. Within that constraint, and being
compatible with the next state's label, for the category of the input
URN, the next state's signal must express the longest URN that can be
expressed by any signal.
In our example, this means that the next Source:External state has
the "external source" signal, which expresses
urn:alert:source:external. Since that signal expresses all of the
state's label, it is the chosen state. Similarly, the next
Source:Internal state has the "internal source" signal. But for the
transition on input Source:Other, the "Source:Other" state must have
the default signal, as there is no signal that expresses
urn:alert:source:[some-unknown-alert-ind-part]. So the next state is
"Source:(Other)", where the parentheses record that the "Other" part
of the label is not expressed by the state's signal.
Worley Informational [Page 15]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
Thus, the current state and the next states that it can transition
to are:
State: Source (initial state)
Signal: default
Transitions:
Source:External -> Source:External
Source:Internal -> Source:Internal
Source:Other -> Source:(Other)
State: Source:External
Signal: external source (urn:alert:source:external)
State: Source:Internal
Signal: internal source (urn:alert:source:internal)
State: Source:(Other)
Signal: default
Looking at the state Source:External, we see that it is incompatible
with all input symbols other than Source:External, and thus all of
its transitions are to itself:
State: Source:External
Signal: external source (urn:alert:source:external)
Transitions:
Source:External -> Source:External
Source:Internal -> Source:External
Source:Other -> Source:External
and similarly:
State: Source:Internal
Signal: internal source (urn:alert:source:internal)
Transitions:
Source:External -> Source:Internal
Source:Internal -> Source:Internal
Source:Other -> Source:Internal
State: Source:(Other)
Signal: default
Transitions:
Source:External -> Source:(Other)
Source:Internal -> Source:(Other)
Source:Other -> Source:(Other)
Worley Informational [Page 16]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
4.4. Summary
The FSM can be constructed by processing the file "very-simple.txt"
with the program "alert-info-fsm.py" in [code]. The program's output
shows the stages of the construction, which are as follows:
1. The signals have the meanings:
Signal URN(s)
---------------------------- -------------------------------
default (none)
internal source urn:alert:source:internal
external source urn:alert:source:external
2. The expressed URNs are:
urn:alert:source:external
urn:alert:source:internal
3. The relevant categories of "alert" URNs are only:
source
4. Thus, the infinite universe of possible "alert" URNs can be
reduced to these symbols, which are the categories of URNs that
are different in ways that are significant to the resolution
process:
Source
Source:External
Source:Internal
Source:Other
5. The FSM is:
State: Source (initial state)
Signal: default
Transitions:
Source:External -> Source:External
Source:Internal -> Source:Internal
Source:Other -> Source:(Other)
State: Source:External
Signal: external source (urn:alert:source:external)
Transitions:
Source:External -> Source:External
Source:Internal -> Source:External
Source:Other -> Source:External
Worley Informational [Page 17]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
State: Source:Internal
Signal: internal source (urn:alert:source:internal)
Transitions:
Source:External -> Source:Internal
Source:Internal -> Source:Internal
Source:Other -> Source:Internal
State: Source:(Other)
Signal: default
Transitions:
Source:External -> Source:(Other)
Source:Internal -> Source:(Other)
Source:Other -> Source:(Other)
* Each state is labeled by a set of symbols that describe the
information that has been extracted from the URNs so far.
* Each state has a signal that is a semantic superset of the
state's label, i.e., the signal's expressed URNs match the
initial portion of the label symbols. If Alert-Info
processing finishes with the FSM in a state, the UA will
render the state's signal to the user.
* The state's label is marked to show what subset of the symbols
are expressed by the state's signal. Two states can have the
same label but different signals.
* If a transition's input symbol is compatible with (is a
semantic subset of) the current state's label for that
category, the next state's label is updated with the input
symbol. If not, the next state is the current state. This is
how the state's label records what information has been
accumulated while processing the Alert-Info URNs.
* A transition's next state has a signal that semantically
subsets the current state's signal as much as possible in the
category of the input symbol. (In most cases, the choice of
signal is unique. In rare cases, there may be more than one
signal that meets this criterion, so the designer may have
some flexibility.)
Worley Informational [Page 18]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
4.5. Examples of Processing Alert-Info URNs
In the trivial case where the UA receives no Alert-Info URNs,
processing begins and ends with the FSM in the initial state, and the
default signal is selected.
If the UA receives
Alert-Info: <urn:alert:source:internal>
then processing progresses:
State: Source
Process: Source:Internal (urn:alert:source:internal)
State: Source:Internal
Signal: internal source
If the UA receives
Alert-Info: <urn:alert:source:external>,
<urn:alert:source:internal>
then processing progresses:
State: Source
Process: Source:External (urn:alert:source:external)
State: Source:External
Process: Source:Internal (urn:alert:source:internal)
State: Source:External
Signal: external source
If the UA receives
Alert-Info: <urn:alert:source:unclassified>,
<urn:alert:source:internal>
then processing progresses:
State: Source
Process: Source:Other (urn:alert:source:unclassified)
State: Source:(Other)
Process: Source:Internal (urn:alert:source:internal)
State: Source:(Other)
Signal: default
Worley Informational [Page 19]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
If the UA receives
Alert-Info: <urn:alert:priority:high>,
<urn:alert:source:internal>
then processing progresses:
State: Source
Ignore: urn:alert:priority:high
State: Source
Process: Source:Internal (urn:alert:source:internal)
State: Source:Internal
Signal: internal source
5. Further Examples
5.1. Example with "source" and "priority" URNs
Now consider an example where the UA can signal "external source",
"internal source", "low priority", and "high priority" individually
or in any combination of source and priority, along with a default
signal. This example is essentially the Cartesian product of two
copies of the example in Section 4: one dealing with the call's
source and one dealing with the call's priority. So there are a
total of 9 signals:
Signal URN(s)
---------------------------- -------------------------------
default (none)
external source urn:alert:source:external
internal source urn:alert:source:internal
low priority urn:alert:priority:low
low priority/external source urn:alert:priority:low,
urn:alert:source:external
low priority/internal source urn:alert:priority:low,
urn:alert:source:internal
high priority urn:alert:priority:high
high priority/external source urn:alert:priority:high,
urn:alert:source:external
high priority/internal source urn:alert:priority:high,
urn:alert:source:internal
The expressed URNs are:
urn:alert:source:external
urn:alert:source:internal
urn:alert:priority:low
urn:alert:priority:high
Worley Informational [Page 20]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
The relevant categories of "alert" URNs are only:
source
priority
The alphabet of symbols is:
Source
Source:External
Source:Internal
Source:Other
Priority
Priority:Low
Priority:High
Priority:Other
The 16 states are as follows, where 9 states are "sink" states from
which no further information can be recorded, as all transitions from
the state lead to itself.
State: Priority/Source
Signal: default
Transitions:
Priority:Other -> Priority:(Other)/Source
Priority:High -> Priority:High/Source
Priority:Low -> Priority:Low/Source
Source:Other -> Priority/Source:(Other)
Source:External -> Priority/Source:External
Source:Internal -> Priority/Source:Internal
State: Priority:(Other)/Source
Signal: default
Transitions:
Priority:Other -> Priority:(Other)/Source
Priority:High -> Priority:(Other)/Source
Priority:Low -> Priority:(Other)/Source
Source:Other -> Priority:(Other)/Source:(Other)
Source:External -> Priority:(Other)/Source:External
Source:Internal -> Priority:(Other)/Source:Internal
State: Priority:(Other)/Source:(Other)
Signal: default
Transitions:
any -> Priority:(Other)/Source:(Other)
Worley Informational [Page 21]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
State: Priority:(Other)/Source:External
Signal: external source
Transitions:
any -> Priority:(Other)/Source:External
State: Priority:(Other)/Source:Internal
Signal: internal source
Transitions:
any -> Priority:(Other)/Source:Internal
State: Priority:High/Source
Signal: high priority
Transitions:
Priority:Other -> Priority:High/Source
Priority:High -> Priority:High/Source
Priority:Low -> Priority:High/Source
Source:Other -> Priority:High/Source:(Other)
Source:External -> Priority:High/Source:External
Source:Internal -> Priority:High/Source:Internal
State: Priority:High/Source:(Other)
Signal: high priority
Transitions:
any -> Priority:High/Source:(Other)
State: Priority:High/Source:External
Signal: high priority/external source
Transitions:
any -> Priority:High/Source:External
State: Priority:High/Source:Internal
Signal: high priority/internal source
Transitions:
any -> Priority:High/Source:Internal
State: Priority:Low/Source
Signal: low priority
Transitions:
Priority:Other -> Priority:Low/Source
Priority:High -> Priority:Low/Source
Priority:Low -> Priority:Low/Source
Source:Other -> Priority:Low/Source:(Other)
Source:External -> Priority:Low/Source:External
Source:Internal -> Priority:Low/Source:Internal
Worley Informational [Page 22]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
State: Priority:Low/Source:(Other)
Signal: low priority
Transitions:
any -> Priority:Low/Source:(Other)
State: Priority:Low/Source:External
Signal: low priority/external source
Transitions:
any -> Priority:Low/Source:External
State: Priority:Low/Source:Internal
Signal: low priority/internal source
Transitions:
any -> Priority:Low/Source:Internal
State: Priority/Source:(Other)
Signal: default
Transitions:
Priority:Other -> Priority:(Other)/Source:(Other)
Priority:High -> Priority:High/Source:(Other)
Priority:Low -> Priority:Low/Source:(Other)
Source:Other -> Priority/Source:(Other)
Source:External -> Priority/Source:(Other)
Source:Internal -> Priority/Source:(Other)
State: Priority/Source:External
Signal: external source
Transitions:
Priority:Other -> Priority:(Other)/Source:External
Priority:High -> Priority:High/Source:External
Priority:Low -> Priority:Low/Source:External
Source:Other -> Priority/Source:External
Source:External -> Priority/Source:External
Source:Internal -> Priority/Source:External
State: Priority/Source:Internal
Signal: internal source
Transitions:
Priority:Other -> Priority:(Other)/Source:Internal
Priority:High -> Priority:High/Source:Internal
Priority:Low -> Priority:Low/Source:Internal
Source:Other -> Priority/Source:Internal
Source:External -> Priority/Source:Internal
Source:Internal -> Priority/Source:Internal
Worley Informational [Page 23]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
An example of processing that involves multiple "source" URNs and one
"priority" URN:
Alert-Info: <urn:alert:source:internal>,
<urn:alert:source:unclassified>,
<urn:alert:priority:high>
in which case processing progresses:
State: Source/Priority
Process: Source:Internal (urn:alert:source:internal)
State: Source:Internal/Priority
Process: Source:(Other) (urn:alert:source:unclassified)
State: Source:Internal/Priority
Process: Priority:High (urn:alert:priority:high)
State: Source:Internal/Priority:High
Signal: internal source/high priority
5.2. Example 1 of RFC 7462
A more complicated example is provided in Section 12.2.1 of
[RFC7462]. It is like the example in Section 5.1 of this document,
except that the UA can only signal "external source", "internal
source", "low priority", and "high priority" individually but not in
combination, as well as a default signal:
Signal URN(s)
---------------------------- -------------------------------
default (none)
internal source urn:alert:source:external
external source urn:alert:source:internal
low priority urn:alert:priority:low
high priority urn:alert:priority:high
The signals can express the following URNs:
urn:alert:source:external
urn:alert:source:internal
urn:alert:priority:low
urn:alert:priority:high
The relevant categories of "alert" URNs are:
source
priority
Worley Informational [Page 24]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
The alphabet of symbols is:
Source
Source:External
Source:Internal
Source:Other
Priority
Priority:Low
Priority:High
Priority:Other
In this example, the FSM has 20 states because both "source" and
"priority" URNs are recorded, but the order in which the two appear
affects the signal:
State: Priority/Source
Signal: default
Transitions:
Priority:Other -> Priority:(Other)/Source
Priority:High -> Priority:High/Source
Priority:Low -> Priority:Low/Source
Source:Other -> Priority/Source:(Other)
Source:External -> Priority/Source:External
Source:Internal -> Priority/Source:Internal
State Priority:(Other)/Source can transition to states that can
signal the source, because the recorded priority can't be signaled
and thus does not block the signaling of the source:
State: Priority:(Other)/Source
Signal: default
Transitions:
Priority:Other -> Priority:(Other)/Source
Priority:High -> Priority:(Other)/Source
Priority:Low -> Priority:(Other)/Source
Source:Other -> Priority:(Other)/Source:(Other)
Source:External -> Priority:(Other)/Source:External
Source:Internal -> Priority:(Other)/Source:Internal
State: Priority:(Other)/Source:(Other)
Signal: default
Transitions:
any -> Priority:(Other)/Source:(Other)
State: Priority:(Other)/Source:External
Signal: external source
Transitions:
any -> Priority:(Other)/Source:External
Worley Informational [Page 25]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
State: Priority:(Other)/Source:Internal
Signal: internal source
Transitions:
any -> Priority:(Other)/Source:Internal
Because there are no signals for combinations of "source" and
"priority" URNs, processing a "source" URN from the state
Priority:High/Source leads to a state that records the priority
information but does not signal it:
State: Priority:High/Source
Signal: high priority
Transitions:
Priority:Other -> Priority:High/Source
Priority:High -> Priority:High/Source
Priority:Low -> Priority:High/Source
Source:Other -> Priority:High/Source:(Other)
Source:External -> Priority:High/Source:(External)
Source:Internal -> Priority:High/Source:(Internal)
State: Priority:High/Source:(Other)
Signal: high priority
Transitions:
any -> Priority:High/Source:(Other)
From the state Priority:High/Source, "source" URNs transition to
states that record both source and priority but signal only priority,
one of which is Priority:High/Source:(External). But from
Priority/Source:External, the symbol Priority:High transitions to the
state Priority:(High)/Source:External, which records the same
information but signals the source, not the priority. One state is
reached by processing a "priority" URN and then a "source" URN,
whereas the other is reached by processing a "source" URN and then a
"priority" URN.
State: Priority:High/Source:(External)
Signal: high priority
Transitions:
any -> Priority:High/Source:(External)
State: Priority:High/Source:(Internal)
Signal: high priority
Transitions:
any -> Priority:High/Source:(Internal)
Worley Informational [Page 26]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
and similarly for Priority:Low/Source:
State: Priority:Low/Source
Signal: low priority
Transitions:
Priority:Other -> Priority:Low/Source
Priority:High -> Priority:Low/Source
Priority:Low -> Priority:Low/Source
Source:Other -> Priority:Low/Source:(Other)
Source:External -> Priority:Low/Source:(External)
Source:Internal -> Priority:Low/Source:(Internal)
State: Priority:Low/Source:(Other)
Signal: low priority
Transitions:
any -> Priority:Low/Source:(Other)
State: Priority:Low/Source:(External)
Signal: low priority
Transitions:
any -> Priority:Low/Source:(External)
State: Priority:Low/Source:(Internal)
Signal: low priority
Transitions:
any -> Priority:Low/Source:(Internal)
State: Priority/Source:(Other)
Signal: default
Transitions:
Priority:Other -> Priority:(Other)/Source:(Other)
Priority:High -> Priority:High/Source:(Other)
Priority:Low -> Priority:Low/Source:(Other)
Source:Other -> Priority/Source:(Other)
Source:External -> Priority/Source:(Other)
Source:Internal -> Priority/Source:(Other)
State: Priority/Source:External
Signal: external source
Transitions:
Priority:Other -> Priority:(Other)/Source:External
Priority:High -> Priority:(High)/Source:External
Priority:Low -> Priority:(Low)/Source:External
Source:Other -> Priority/Source:External
Source:External -> Priority/Source:External
Source:Internal -> Priority/Source:External
Worley Informational [Page 27]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
State: Priority:(High)/Source:External
Signal: external source
Transitions:
any -> Priority:(High)/Source:External
State: Priority:(Low)/Source:External
Signal: external source
Transitions:
any -> Priority:(Low)/Source:External
State: Priority/Source:Internal
Signal: internal source
Transitions:
Priority:Other -> Priority:(Other)/Source:Internal
Priority:High -> Priority:(High)/Source:Internal
Priority:Low -> Priority:(Low)/Source:Internal
Source:Other -> Priority/Source:Internal
Source:External -> Priority/Source:Internal
Source:Internal -> Priority/Source:Internal
State: Priority:(High)/Source:Internal
Signal: internal source
Transitions:
any -> Priority:(High)/Source:Internal
State: Priority:(Low)/Source:Internal
Signal: internal source
Transitions:
any -> Priority:(Low)/Source:Internal
As an example of processing, if the UA receives
Alert-Info: <urn:alert:source:internal>
then processing progresses:
State: Priority/Source
Process: Source:Internal (urn:alert:source:internal)
State: Priority/Source:Internal
Signal: internal source
Worley Informational [Page 28]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
A more complicated example involves multiple "source" URNs that do
not select a non-default signal and one "priority" URN that can be
signaled:
Alert-Info: <urn:alert:source:unclassified>,
<urn:alert:source:internal>,
<urn:alert:priority:high>
in which case processing progresses:
State: Priority/Source
Process: Source:Other (urn:alert:source:unclassified)
State: Priority/Source:(Other)
Process: Source:Internal (urn:alert:source:internal)
State: Priority/Source:(Other)
Process: Priority:High (urn:alert:priority:high)
State: Priority:High/Source:(Other)
Signal: high priority
The only output of the FSM is the state's signal. Based on this,
several groups of states in this FSM can be merged using standard FSM
optimization algorithms:
states with signal "high priority":
Priority:High/Source
Priority:High/Source:(Other)
Priority:High/Source:(External)
Priority:High/Source:(Internal)
states with signal "low priority":
Priority:Low/Source
Priority:Low/Source:(Other)
Priority:Low/Source:(External)
Priority:Low/Source:(Internal)
states with signal "external source":
Priority/Source:External
Priority:(High)/Source:External
Priority:(Low)/Source:External
Priority:(Other)/Source:External
states with signal "internal source":
Priority/Source:Internal
Priority:(High)/Source:Internal
Priority:(Low)/Source:Internal
Priority:(Other)/Source:Internal
Worley Informational [Page 29]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
This reduces the FSM to eight states:
Priority/Source
Priority:(Other)/Source
Priority:(Other)/Source:(Other)
Priority:High/Source [aggregated]
Priority:Low/Source [aggregated]
Priority/Source:(Other)
Priority/Source:External [aggregated]
Priority/Source:Internal [aggregated]
5.3. Examples 2, 3, and 4 of RFC 7462
Examples 2, 3, and 4 of [RFC7462] are similar to the example in
Section 5.1 of this document, but they do not include a signal for
the combination "internal source, low priority" to make resolution
examples work asymmetrically.
The FSM for this example has the same alphabet as the FSM of
Section 5.1. Most of the states of this FSM are the same as the
states of the FSM of Section 5.1, but the state
Source:Internal/Priority:Low is missing because there is no signal
for that combination. It is replaced by two states:
1. One state is Source:Internal/Priority:(Low); it records that
Source:Internal was specified first (and is to be signaled) and
that Priority:Low was specified later (and cannot be signaled --
but it still prevents any further "priority" URNs from having an
effect).
2. The other state is Source:(Internal)/Priority:Low; it records the
reverse sequence of events.
The changes in the FSM are:
State: Priority:Low/Source
Signal: low priority
Transitions:
Source:Internal -> Priority:Low/Source:(Internal)
(other transitions unchanged)
State: Priority:Low/Source:(Internal)
Signal: low priority
Transitions:
any -> Priority:Low/Source:(Internal)
Worley Informational [Page 30]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
State: Priority/Source:Internal
Signal: internal source
Transitions:
Priority:Low -> Priority:(Low)/Source:Internal
(other transitions unchanged)
State: Priority:(Low)/Source:Internal
Signal: internal source
Transitions:
any -> Priority:(Low)/Source:Internal
An example of processing that involves multiple "source" URNs and one
"priority" URN:
Alert-Info: <urn:alert:source:internal>,
<urn:alert:source:unclassified>,
<urn:alert:priority:high>
then processing progresses:
State: Priority/Source
Process: Source:Internal (urn:alert:source:internal)
State: Priority/Source:Internal
Process: Source:Other (urn:alert:source:unclassified)
State: Priority/Source:Internal
Process: Priority:High (urn:alert:priority:high)
State: Priority:High/Source:Internal
Signal: internal source/high priority
If the UA receives
Alert-Info: <urn:alert:source:internal>
then processing progresses:
State: Priority/Source
Process: Source:Internal (urn:alert:source:internal)
State: Priority/Source:Internal
Signal: internal source
Worley Informational [Page 31]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
If the UA receives
Alert-Info: <urn:alert:source:external>,
<urn:alert:priority:low>
then processing progresses:
State: Priority/Source
Process: Source:External (urn:alert:source:external)
State: Priority/Source:External
Process: Priority:Low (urn:alert:priority:low)
State: Priority:Low/Source:External
Signal: external source/low priority
Suppose the same UA receives
Alert-Info: <urn:alert:source:internal>,
<urn:alert:priority:low>
Note that there is no signal that corresponds to this combination.
In that case, the processing is:
State: Priority/Source
Process: Source:Internal (urn:alert:source:internal)
State: Priority/Source:Internal
Process: Priority:Low (urn:alert:priority:low)
State: Priority:(Low)/Source:Internal
Signal: internal source
If the order of the URNs is reversed, what is signaled is the meaning
of the now-different first URN:
Alert-Info: <urn:alert:priority:low>,
<urn:alert:source:internal>
State: Priority/Source
Process: Priority:Low (urn:alert:priority:low)
State: Priority:Low/Source
Process: Source:Internal (urn:alert:source:internal)
State: Priority:Low/Source:(Internal)
Signal: low priority
Worley Informational [Page 32]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
Notice that the existence of the new states prevents later URNs of a
category from overriding earlier URNs of that category, even if the
earlier one was not itself signalable and the later one would be
signalable in the absence of the earlier one:
Alert-Info: <urn:alert:priority:low>,
<urn:alert:source:internal>,
<urn:alert:source:external>
State: Priority/Source
Process: Priority:Low (urn:alert:priority:low)
State: Priority:Low/Source
Process: Source:Internal (urn:alert:source:internal)
State: Priority:Low/Source:(Internal)
Process: Source:External (urn:alert:source:external)
State: Priority:Low/Source:(Internal)
Signal: low priority
This situation shows the necessity of states whose labels contain
parentheses. If the second transition had been to the state
Priority:Low/Source (on the basis that there is no proper state
Priority:Low/Source:Internal), then the third transition would have
been to the state Priority:Low/Source:External, and the signal would
have been "external source/low priority".
5.4. An Example That Subsets Internal Sources
In the example of Section 4, there are signals for "external source"
and "internal source". Let us add to that example a signal for
"source internal from a VIP (Very Important Person)". That last
signal expresses the private extension URN
urn:alert:source:internal:vip@example, which is a subset of
urn:alert:source:internal, which is expressed by the "source
internal" signal. There are a total of three expressed URNs, one of
which is a subset of another:
urn:alert:source:internal
urn:alert:source:internal:vip@example
urn:alert:source:external
This generates the following alphabet of symbols, which includes two
"Other" symbols for the "source" category:
Source
Source:Internal
Source:Internal:Vip@example
Source:Internal:Other
Source:Other
Worley Informational [Page 33]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
5.5. An Example of "alert:service" URNs
In this example, there are signals for "service forward" (the call
has been forwarded) and "source recall callback" (a recall due to a
callback). This gives two expressed URNs:
urn:alert:service:forward
urn:alert:service:recall:callback
This generates the following alphabet of symbols. Note that there
are two "Other" symbols, because the "alert:service" URNs have an
additional level of qualification.
Service
Service:Forward
Service:Recall
Service:Recall:Callback
Service:Recall:Other
Service:Other
5.6. An Example Using Country Codes
In this example, we consider how a UA generates ringback signals when
the UA wishes to reproduce the traditional behavior where the caller
hears the ringback signals defined by the telephone service in the
callee's country rather than the ringback signals defined by the
service in the caller's country. In the Alert-Info header field of
the 180 (Ringing) provisional response, we assume that the called UA
provides an "alert:country" URN [RFC7462] containing the ISO 3166-1
[ISO-3166-1] alpha-2 country code of the callee's country.
The UA has a default signal and a "non-country" signal for
urn:alert:service:call-waiting. For the example country with code
"XA", the UA has a default signal and signals for
urn:alert:service:call-waiting and urn:alert:service:forward. For
the example country with code "XB", the UA has a default signal and a
signal for urn:alert:service:forward. These inconsistencies between
the non-country signals and the country signals are chosen to
demonstrate the flexibility of the construction method, showing that
three systems of signals can be combined correctly even when the
systems were established without coordination between them.
Worley Informational [Page 34]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
The signals are:
Signal URN(s)
-------------------------- ----------------------------------
default (none)
call-waiting urn:alert:service:call-waiting
XA default urn:alert:country:xa
XA call-waiting urn:alert:country:xa,
urn:alert:service:call-waiting
XA forward urn:alert:country:xa,
urn:alert:service:forward
XB default urn:alert:country:xb
XB forward urn:alert:country:xb,
urn:alert:service:forward
The expressed URNs are:
urn:alert:country:xa
urn:alert:country:xb
urn:alert:service:call-waiting
urn:alert:service:forward
The relevant categories of "alert" URNs are only:
country
service
The alphabet of symbols is:
Country
Country:[other]
Country:Xa
Country:Xb
Service
Service:[other]
Service:Call-waiting
Service:Forward
Worley Informational [Page 35]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
The 17 states are as follows:
State: 0 Country/Service
Signal: default
Transitions:
Country:[other] -> 1 Country:([other])/Service
Country:Xa -> 5 Country:Xa/Service
Country:Xb -> 9 Country:Xb/Service
Service:[other] -> 13 Country/Service:([other])
Service:Call-waiting -> 14 Country/Service:Call-waiting
Service:Forward -> 16 Country/Service:(Forward)
State: 1 Country:([other])/Service
Signal: default
Transitions:
Country:[other] -> 1 Country:([other])/Service
Country:Xa -> 1 Country:([other])/Service
Country:Xb -> 1 Country:([other])/Service
Service:[other] -> 2 Country:([other])/Service:([other])
Service:Call-waiting -> 3 Country:([other])/Service:Call-waiting
Service:Forward -> 4 Country:([other])/Service:(Forward)
State: 2 Country:([other])/Service:([other])
Signal: default
Transitions:
any -> 2 Country:([other])/Service:([other])
State: 3 Country:([other])/Service:Call-waiting
Signal: call-waiting
Transitions:
any -> 3 Country:([other])/Service:Call-waiting
State: 4 Country:([other])/Service:(Forward)
Signal: default
Transitions:
any -> 4 Country:([other])/Service:(Forward)
State: 5 Country:Xa/Service
Signal: XA default
Transitions:
Country:[other] -> 5 Country:Xa/Service
Country:Xa -> 5 Country:Xa/Service
Country:Xb -> 5 Country:Xa/Service
Service:[other] -> 6 Country:Xa/Service:([other])
Service:Call-waiting -> 7 Country:Xa/Service:Call-waiting
Service:Forward -> 8 Country:Xa/Service:Forward
Worley Informational [Page 36]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
State: 6 Country:Xa/Service:([other])
Signal: XA default
Transitions:
any -> 6 Country:Xa/Service:([other])
State: 7 Country:Xa/Service:Call-waiting
Signal: XA call-waiting
Transitions:
any -> 7 Country:Xa/Service:Call-waiting
State: 8 Country:Xa/Service:Forward
Signal: XA forward
Transitions:
any -> 8 Country:Xa/Service:Forward
State: 9 Country:Xb/Service
Signal: XB default
Transitions:
Country:[other] -> 9 Country:Xb/Service
Country:Xa -> 9 Country:Xb/Service
Country:Xb -> 9 Country:Xb/Service
Service:[other] -> 10 Country:Xb/Service:([other])
Service:Call-waiting -> 11 Country:Xb/Service:(Call-waiting)
Service:Forward -> 12 Country:Xb/Service:Forward
State: 10 Country:Xb/Service:([other])
Signal: XB default
Transitions:
any -> 10 Country:Xb/Service:([other])
State: 11 Country:Xb/Service:(Call-waiting)
Signal: XB default
Transitions:
any -> 11 Country:Xb/Service:(Call-waiting)
State: 12 Country:Xb/Service:Forward
Signal: XB forward
Transitions:
any -> 12 Country:Xb/Service:Forward
Worley Informational [Page 37]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
State: 13 Country/Service:([other])
Signal: default
Transitions:
Country:[other] -> 2 Country:([other])/Service:([other])
Country:Xa -> 6 Country:Xa/Service:([other])
Country:Xb -> 10 Country:Xb/Service:([other])
Service:[other] -> 13 Country/Service:([other])
Service:Call-waiting -> 13 Country/Service:([other])
Service:Forward -> 13 Country/Service:([other])
State: 14 Country/Service:Call-waiting
Signal: call-waiting
Transitions:
Country:[other] -> 3 Country:([other])/Service:Call-waiting
Country:Xa -> 7 Country:Xa/Service:Call-waiting
Country:Xb -> 15 Country:(Xb)/Service:Call-waiting
Service:[other] -> 14 Country/Service:Call-waiting
Service:Call-waiting -> 14 Country/Service:Call-waiting
Service:Forward -> 14 Country/Service:Call-waiting
State: 15 Country:(Xb)/Service:Call-waiting
Signal: call-waiting
Transitions:
any -> 15 Country:(Xb)/Service:Call-waiting
State: 16 Country/Service:(Forward)
Signal: default
Transitions:
Country:[other] -> 4 Country:([other])/Service:(Forward)
Country:Xa -> 8 Country:Xa/Service:Forward
Country:Xb -> 12 Country:Xb/Service:Forward
Service:[other] -> 16 Country/Service:(Forward)
Service:Call-waiting -> 16 Country/Service:(Forward)
Service:Forward -> 16 Country/Service:(Forward)
Call-waiting can be signaled in conjunction with country XA but not
in conjunction with country XB, as the UA does not have a signal to
present call-waiting alerts for country XB. Thus, the ordering of
urn:alert:service:call-waiting with urn:alert:country:xa does not
matter, but if urn:alert:country:xb appears before
urn:alert:service:call-waiting, call-waiting cannot be signaled.
Worley Informational [Page 38]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
On the other hand, if urn:alert:service:call-waiting appears before
urn:alert:country:xb, then call-waiting is signaled, but using the
non-country signal.
Alert-Info: urn:alert:country:xa,
urn:alert:service:call-waiting
State: 0 Country/Service
Process: Country:Xa (urn:alert:country:xa)
State: 5 Country:Xa/Service
Process: Service:Call-waiting (urn:alert:service:call-waiting)
State: 7 Country:Xa/Service:Call-waiting
Signal: XA call-waiting
Alert-Info: urn:alert:service:call-waiting,
urn:alert:country:xa
State: 0 Country/Service
Process: Service:Call-waiting (urn:alert:service:call-waiting)
State: 14 Country/Service:Call-waiting
Process: Country:Xa (urn:alert:country:xa)
State: 7 Country:Xa/Service:Call-waiting
Signal: XA call-waiting
Alert-Info: urn:alert:country:xb,
urn:alert:service:call-waiting
State: 0 Country/Service
Process: Country:Xb (urn:alert:country:xb)
State: 9 Country:Xb/Service
Process: Service:Call-waiting (urn:alert:service:call-waiting)
State: 11 Country:Xb/Service:(Call-waiting)
Signal: XB default
Alert-Info: urn:alert:service:call-waiting,
urn:alert:country:xb
State: 0 Country/Service
Process: Service:Call-waiting (urn:alert:service:call-waiting)
State: 14 Country/Service:Call-waiting
Process: Country:Xb (urn:alert:country:xb)
State: 15 Country:(Xb)/Service:Call-waiting
Signal: call-waiting
Worley Informational [Page 39]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
6. Prioritizing Signals
The specifications provided in [RFC7462] are oriented toward giving
the sender of Alert-Info control over which of the "alert" URNs are
most important. But in some situations, the UA may prefer to
prioritize expressing one URN category over another regardless of the
order in which their URNs appear in Alert-Info. This section
describes how that can be accommodated within the framework of
[RFC7462] and presents an example FSM resulting from that approach.
This example uses the signals of Section 5.2, viz., "external
source", "internal source", "low priority", and "high priority", but
this time, we want to signal "high priority" in preference to any
other signal that might be applicable.
We accommodate this within the framework of [RFC7462] by assigning
the signal "high priority" for each of these combinations of URNs:
urn:alert:priority:high
urn:alert:priority:high, urn:alert:source:internal
urn:alert:priority:high, urn:alert:source:external
The result is that the signal "high priority" is the "best" signal
for any combination of urn:alert:priority:high with "source" URNs.
Constructing the symbols produces the same results as before. The
signals can express the following URNs:
urn:alert:source:external
urn:alert:source:internal
urn:alert:priority:low
urn:alert:priority:high
The relevant categories of "alert" URNs are:
source
priority
The alphabet of symbols is:
Source
Source:External
Source:Internal
Source:Other
Priority
Priority:Low
Priority:High
Priority:Other
Worley Informational [Page 40]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
When the FSM is constructed, it is the same as the FSM of
Section 5.2, except that certain states are effectively renamed and
merged, because any "source" is defined to be expressed if high
priority is expressed:
Priority:(High)/Source:External and
Priority:High/Source:(External) become:
State: Priority:High/Source:External
Signal: high priority
Priority:(High)/Source:Internal and
Priority:High/Source:(Internal) become:
State: Priority:High/Source:Internal
Signal: high priority
This reduces the FSM to 18 states. In addition, these two new
states, along with a number of other states, can be merged by FSM
optimization, since all of them have the signal "high priority" and
from them, there are no transitions to states outside this set. The
optimized FSM has 10 states.
7. Dynamic Sets of Signals
This section discusses how to construct FSMs for a UA that allows
variable sets of signals -- for example, if the user can configure
the use of ring tones. Several approaches can be used:
o Whenever the set of ring tones is changed, re-execute the
processes of Section 4.
o Whenever the set of ring tones is changed, rebuild the list of
expressed URNs (Section 4.1) and reconstruct the alphabet of
symbols (Section 4.2). Then, use an algorithm for dynamically
constructing the states of the FSM as needed during Alert-Info
processing.
o If the sets of possible URNs expressed by the ring tones are
sufficiently limited, the steps of Section 4 can be carried out
"generically", and the generic FSM can be specialized for the
current ring tone configuration.
The remainder of this section gives an example of the third approach.
Worley Informational [Page 41]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
For the example, we will use a set of ring tones that express the
identity of the caller. To signal this information, a private
extension "alert" URN category, "caller@example", is used:
urn:alert:caller@example:alice@example.com
urn:alert:caller@example:bob@example.com
etc.
which we can express by the generic pattern
urn:alert:caller@example:IDENTITY
where "IDENTITY" is replaced in succession by the set of caller
identities that have their own ring tones to generate the set of
expressed URNs.
The alphabet is then:
Caller@example
Caller@example:IDENTITY
Caller@example:Other
where "IDENTITY" is replaced in succession by the set of caller
identities. The "Caller@example:Other" symbol includes all URNs of
the category "caller@example" that are not included in any of the
"Caller@example:IDENTITY" symbols, i.e, where the second
alert-ind-part is not one of the known caller identities.
The states and transitions of the FSM are:
State: Caller@example (initial state)
Signal: default
Transitions:
Caller@example:IDENTITY -> Caller@example:IDENTITY
Caller@example:Other -> Caller@example:(Other)
State: Caller@example:IDENTITY
Signal: signal for caller IDENTITY
Transitions:
any -> Caller@example:IDENTITY
State: Caller@example:(Other)
Signal: default
Transitions:
any -> Caller@example:(Other)
Worley Informational [Page 42]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
where again, the second state is replicated once for each caller
identity that has a ring tone, with "IDENTITY" replaced with the
caller identity.
8. Security Considerations
The security considerations discussed in Section 16 of [RFC7462]
regarding the use and processing of "alert" URNs MUST be followed
when the algorithm described in this document is used.
Like any implementation of [RFC7462], implementations of the
algorithm defined in this document MUST take into account that the
value of a received Alert-Info header field may contain URIs of any
scheme, may contain syntactically invalid values, and may be
syntactically invalid overall. The handling of syntactically invalid
values is specified by [RFC3261]. The handling of URIs other than
"alert" URIs is outside the scope of this document (and outside the
scope of [RFC7462]) and MAY be subject to local policy.
Like the algorithm described in Section 12 of [RFC7462], the output
of the algorithm defined in this document is limited to a choice
among the signals that it has been configured for, limiting the
security issues regarding the processing of its output. This
algorithm will use at most linear time and constant space to process
a sequence of "alert" URNs. This is significantly more efficient
than the algorithm of [RFC7462] and minimizes the security
vulnerabilities of this processing step that are due to resource
consumption.
However, the process defined in this document for constructing an FSM
can use more than linear time and constant space -- probably
exponential time and space in the worst case. This SHOULD be taken
into consideration whenever an FSM is constructed using this
algorithm and MUST be taken into consideration when it is done
dynamically by a UA. Whenever an FSM is constructed by a process
that is not under the direct supervision of a human user, procedures
MUST be used to ensure that (1) the processing and memory consumption
are limited to acceptable amounts and (2) if the FSM construction is
aborted due to excessive consumption, the designated consumers of the
FSM MUST have appropriate fallback procedures.
9. IANA Considerations
This document has no IANA actions.
Worley Informational [Page 43]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
10. References
10.1. Normative References
[ISO-3166-1]
International Organization for Standardization, "Codes for
the representation of names of countries and their
subdivisions -- Part 1: Country codes", ISO
Standard 3166-1:2013, November 2013,
<https://www.iso.org/iso-3166-country-codes.html>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
[RFC3261] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
A., Peterson, J., Sparks, R., Handley, M., and E.
Schooler, "SIP: Session Initiation Protocol", RFC 3261,
DOI 10.17487/RFC3261, June 2002,
<https://www.rfc-editor.org/info/rfc3261>.
[RFC7462] Liess, L., Ed., Jesske, R., Johnston, A., Worley, D., and
P. Kyzivat, "URNs for the Alert-Info Header Field of the
Session Initiation Protocol (SIP)", RFC 7462,
DOI 10.17487/RFC7462, March 2015,
<https://www.rfc-editor.org/info/rfc7462>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in
RFC 2119 Key Words", BCP 14, RFC 8174,
DOI 10.17487/RFC8174, May 2017,
<https://www.rfc-editor.org/info/rfc8174>.
10.2. Informative References
[code] Worley, D., "draft-worley-alert-info-fsm.aux",
February 2017, <http://svn.resiprocate.org/rep/
ietf-drafts/worley/draft-worley-alert-info-fsm.aux>.
Worley Informational [Page 44]
^L
RFC 8433 Resolving Alert-Info URNs August 2018
Acknowledgments
Thanks to Paul Kyzivat, whose relentless identification of the
weaknesses of earlier versions made the final document much, much
better than it would have been, by changing it from the exposition of
a concept into a practical tool. Thanks to Rifaat Shekh-Yusef, Eric
Burger, and Gonzalo Camarillo for their thorough reviews. Thanks to
the earlier Independent Submissions Editor, Nevil Brownlee, for his
work obtaining reviewers, and the later Independent Submissions
Editor, Adrian Farrel, for prompting me to write the Security
Considerations section (which I had expected to be trivial but
was not).
Author's Address
Dale R. Worley
Ariadne Internet Services
738 Main St.
Waltham, MA 02451
United States of America
Email: worley@ariadne.com
Worley Informational [Page 45]
^L
|