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
|
Network Working Group A. Vemuri
Request for Comments: 3372 Qwest Communications
BCP: 63 J. Peterson
Category: Best Current Practice NeuStar
September 2002
Session Initiation Protocol for Telephones (SIP-T):
Context and Architectures
Status of this Memo
This document specifies an Internet Best Current Practices for the
Internet Community, and requests discussion and suggestions for
improvements. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2002). All Rights Reserved.
Abstract
The popularity of gateways that interwork between the PSTN (Public
Switched Telephone Network) and SIP networks has motivated the
publication of a set of common practices that can assure consistent
behavior across implementations. This document taxonomizes the uses
of PSTN-SIP gateways, provides uses cases, and identifies mechanisms
necessary for interworking. The mechanisms detail how SIP provides
for both 'encapsulation' (bridging the PSTN signaling across a SIP
network) and 'translation' (gatewaying).
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. SIP-T for ISUP-SIP Interconnections . . . . . . . . . . . . . 4
3. SIP-T Flows . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.1 SIP Bridging (PSTN - IP - PSTN) . . . . . . . . . . . . . . . 8
3.2 PSTN origination - IP termination . . . . . . . . . . . . . . 9
3.3 IP origination - PSTN termination . . . . . . . . . . . . . . 11
4. SIP-T Roles and Behavior . . . . . . . . . . . . . . . . . . . 12
4.1 Originator . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 Terminator . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.3 Intermediary . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.4 Behavioral Requirements Summary . . . . . . . . . . . . . . . 15
5. Components of the SIP-T Protocol . . . . . . . . . . . . . . . 16
5.1 Core SIP . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.2 Encapsulation . . . . . . . . . . . . . . . . . . . . . . . . 16
5.3 Translation . . . . . . . . . . . . . . . . . . . . . . . . . 16
Vemuri & Peterson Best Current Practice [Page 1]
^L
RFC 3372 SIP-T September 2002
5.4 Support for mid-call signaling . . . . . . . . . . . . . . . . 17
6. SIP Content Negotiation . . . . . . . . . . . . . . . . . . . 17
7. Security Considerations . . . . . . . . . . . . . . . . . . . 19
8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 20
9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 20
10 References . . . . . . . . . . . . . . . . . . . . . . . . . . 20
A. Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
B. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 21
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 22
Full Copyright Statement . . . . . . . . . . . . . . . . . . . . . 23
1. Introduction
The Session Initiation Protocol (SIP [1]) is an application-layer
control protocol that can establish, modify and terminate multimedia
sessions or calls. These multimedia sessions include multimedia
conferences, Internet telephony and similar applications. SIP is one
of the key protocols used to implement Voice over IP (VoIP).
Although performing telephony call signaling and transporting the
associated audio media over IP yields significant advantages over
traditional telephony, a VoIP network cannot exist in isolation from
traditional telephone networks. It is vital for a SIP telephony
network to interwork with the PSTN.
The popularity of gateways that interwork between the PSTN and SIP
networks has motivated the publication of a set of common practices
that can assure consistent behavior across implementations. The
scarcity of SIP expertise outside the IETF suggests that the IETF is
the best place to stage this work, especially since SIP is in a
relative state of flux compared to the core protocols of the PSTN.
Moreover, the IETF working groups that focus on SIP (SIP and SIPPING)
are best positioned to ascertain whether or not any new extensions to
SIP are justified for PSTN interworking. This framework addresses
the overall context in which PSTN-SIP interworking gateways might be
deployed, provides use cases and identifies the mechanisms necessary
for interworking.
An important characteristic of any SIP telephony network is feature
transparency with respect to the PSTN. Traditional telecom services
such as call waiting, freephone numbers, etc., implemented in PSTN
protocols such as Signaling System No. 7 (SS7 [6]) should be offered
by a SIP network in a manner that precludes any debilitating
difference in user experience while not limiting the flexibility of
SIP. On the one hand, it is necessary that SIP support the
primitives for the delivery of such services where the terminating
point is a regular SIP phone (see definition in Section 2 below)
rather than a device that is fluent in SS7. However, it is also
essential that SS7 information be available at gateways, the points
Vemuri & Peterson Best Current Practice [Page 2]
^L
RFC 3372 SIP-T September 2002
of SS7-SIP interconnection, to ensure transparency of features not
otherwise supported in SIP. If possible, SS7 information should be
available in its entirety and without any loss to trusted parties in
the SIP network across the PSTN-IP interface; one compelling need to
do so also arises from the fact that certain networks utilize
proprietary SS7 parameters to transmit certain information through
their networks.
Another important characteristic of a SIP telephony network is
routability of SIP requests - a SIP request that sets up a telephone
call should contain sufficient information in its headers to enable
it to be appropriately routed to its destination by proxy servers in
the SIP network. Most commonly this entails that parameters of a
call like the dialed number should be carried over from SS7 signaling
to SIP requests. Routing in a SIP network may in turn be influenced
by mechanisms such as TRIP [8] or ENUM [7].
The SIP-T (SIP for Telephones) effort provides a framework for the
integration of legacy telephony signaling into SIP messages. SIP-T
provides the above two characteristics through techniques known as
'encapsulation' and 'translation' respectively. At a SIP-ISUP
gateway, SS7 ISUP messages are encapsulated within SIP in order that
information necessary for services is not discarded in the SIP
request. However, intermediaries like proxy servers that make
routing decisions for SIP requests cannot be expected to understand
ISUP, so simultaneously, some critical information is translated from
an ISUP message into the corresponding SIP headers in order to
determine how the SIP request will be routed.
While pure SIP has all the requisite instruments for the
establishment and termination of calls, it does not have any baseline
mechanism to carry any mid-call information (such as the ISUP INF/INR
query) along the SIP signaling path during the session. This mid-
call information does not result in any change in the state of SIP
calls or the parameters of the sessions that SIP initiates. A
provision to transmit such optional application-layer information is
also needed.
Vemuri & Peterson Best Current Practice [Page 3]
^L
RFC 3372 SIP-T September 2002
Problem definition: To provide ISUP transparency across SS7-SIP
interworking
SS7-SIP Interworking Requirements SIP-T Functions
==================================================================
Transparency of ISUP Encapsulation of ISUP in the
Signaling SIP body
Routability of SIP messages with Translation of ISUP information
dependencies on ISUP into the SIP header
Transfer of mid-call ISUP signaling Use of the INFO Method for mid-
messages call signaling
Table 1: SIP-T features that fulfill PSTN-IP inter-connection
Requirements
While this document specifies the requirements above, it provide
mechanisms to satisfy them - however, this document does serve as an
framework for the documents that do provide these mechanisms, all of
which are referenced in Section 5.
Note that many modes of signaling are used in telephony (SS7 ISUP,
BTNUP, Q.931, MF etc.). This document focuses on SS7 ISUP and aims
to specify the behavior across ISUP-SIP interfaces only. The scope
of the SIP-T enterprise may, over time, come to encompass other
signaling systems as well.
2. SIP-T for ISUP-SIP Interconnections
SIP-T is not a new protocol - it is a set of mechanisms for
interfacing traditional telephone signaling with SIP. The purpose of
SIP-T is to provide protocol translation and feature transparency
across points of PSTN-SIP interconnection. It intended for use where
a VoIP network (a SIP network, for the purposes of this document)
interfaces with the PSTN.
Using SIP-T, there are three basic models for how calls interact with
gateways. Calls that originate in the PSTN can traverse a gateway to
terminate at a SIP endpoint, such as an IP phone. Conversely, an IP
phone can make a call that traverses a gateway to terminate in the
PSTN. Finally, an IP network using SIP may serve as a transit
network between gateways - a call may originate and terminate in the
PSTN, but cross a SIP-based network somewhere in the middle.
Vemuri & Peterson Best Current Practice [Page 4]
^L
RFC 3372 SIP-T September 2002
The SS7 interfaces of a particular gateway determine the ISUP
variants that that gateway supports. Whether or nor a gateway
supports a particular version of ISUP determines whether it can
provide feature transparency while terminating a call.
The following are the primary agents in a SIP-T-enabled network.
o PSTN (Public Switched Telephone Network): This refers to the
entire interconnected collection of local, long-distance and
international phone companies. In the examples below, the term
Local Exchange Carrier (LEC) is used to denote a portion (usually,
a regional division) of the PSTN.
o IP endpoints: Any SIP user agent that can act as an originator or
recipient of calls. Thus, the following devices are classified as
IP endpoints:
* Gateways: A telephony gateway provides a point of conversion
between signaling protocols (such as ISUP and SIP) as well as
circuit-switch and packet-switched audio media. The term Media
Gateway Controller (MGC) is also used in the examples and
diagrams in this document to denote large-scale clusters of
decomposed gateways and control logic that are frequently
deployed today. So for example, a SIP-ISUP gateway speaks ISUP
to the PSTN and SIP to the Internet and is responsible for
converting between the types of signaling, as well as
interchanging any associated bearer audio media.
* SIP phones: The term used to represent all end-user devices
that originate or terminate SIP VoIP calls.
* Interface points between networks where administrative policies
are enforced (potentially middleboxes, proxy servers, or
gateways).
o Proxy Servers: A proxy server is a SIP intermediary that routes
SIP requests to their destinations. For example, a proxy server
might direct a SIP request to another proxy, a gateway or a SIP
phone.
Vemuri & Peterson Best Current Practice [Page 5]
^L
RFC 3372 SIP-T September 2002
********************
*** ***
* *
* ------- *
* |proxy| *
* ------- *
|----| |----|
/|MGC1| VoIP Network |MGC2|\
/ ---- ---- \
SS7 / * * \ SS7
/ * ------- * \
/ * |proxy| * \
-------- * ------- * ---------
| LEC1 | ** ** | LEC2 |
-------- ********************* ---------
Figure 1: Motivation for SIP-T in ISUP-SIP interconnection
In Figure 2 a VoIP cloud serves as a transit network for telephone
calls originating in a pair of LECs, where SIP is employed as the
VoIP protocol used to set up and tear down these VoIP calls. At the
edge of the depicted network, an MGC converts the ISUP signals to SIP
requests, and sends them to a proxy server which in turn routes
calls on other MGCs. Although this figure depicts only two MGCs,
VoIP deployments would commonly have many such points of
interconnection with the PSTN (usually to diversify among PSTN rate
centers). For a call originating from LEC1 and be terminating in
LEC2, the originator in SIP-T is the gateway that generates the SIP
request for a VoIP call, and the terminator is the gateway that is
the consumer of the SIP request; MGC1 would thus be the originator
and MGC2, the terminator. Note that one or more proxies may be used
to route the call from the originator to the terminator.
In this flow, in order to seamlessly integrate the IP network with
the PSTN, it is important to preserve the received SS7 information
within SIP requests at the originating gateway and reuse this SS7
information when signaling to the PSTN at the terminating gateway.
By encapsulating ISUP information in the SIP signaling, a SIP network
can ensure that no SS7 information that is critical to the
instantiation of features is lost when SIP bridges calls between two
segments of the PSTN.
That much said, if only the exchange of ISUP between gateways were
relevant here, any protocol for the transport of signaling
information may be used to achieve this, obviating the need for SIP
and consequently that of SIP-T. SIP-T is employed in order to
leverage the intrinsic benefits of utilizing SIP: request routing and
call control leveraging proxy servers (including the use of forking),
Vemuri & Peterson Best Current Practice [Page 6]
^L
RFC 3372 SIP-T September 2002
ease of SIP service creation, SIP's capability negotiation systems,
and so on. Translation of information from the received ISUP message
parameters to SIP header fields enables SIP intermediaries to
consider this information as they handle requests. SIP-T thus
facilitates call establishment and the enabling of new telephony
services over the IP network while simultaneously providing a method
of feature-rich interconnection with the PSTN.
Finally, the scenario in Figure 2 is just one of several flows in
which SIP-T can be used - voice calls do not always both originate
and terminate in the PSTN (via gateways); SIP phones can also be
endpoints in a SIP-T session. In subsequent sections, the following
possible flows will be further detailed:
1. PSTN origination - PSTN termination: The originating gateway
receives ISUP from the PSTN and it preserves this information
(via encapsulation and translation) in the SIP messages that it
transmits towards the terminating gateway. The terminator
extracts the ISUP content from the SIP message that it receives
and it reuses this information in signaling sent to the PSTN.
2. PSTN origination - IP termination: The originating gateway
receives ISUP from the PSTN and it preserves this ISUP
information in the SIP messages (via encapsulation and
translation) that it directs towards the terminating SIP user
agent. The terminator has no use for the encapsulated ISUP and
ignores it.
3. IP origination - PSTN termination: A SIP phone originates a VoIP
call that is routed by one or more proxy servers to the
appropriate terminating gateway. The terminating gateway
converts to ISUP signaling and directs the call to an appropriate
PSTN interface, based on information that is present in the
received SIP header.
4. IP origination - IP termination: This is a case for pure SIP.
SIP-T (either encapsulation or translation of ISUP) does not come
into play as there is no PSTN interworking.
3. SIP-T Flows
The follow sections explore the essential SIP-T flows in detail.
Note that because proxy servers are usually responsible for routing
SIP requests (based on the Request-URI) the eventual endpoints at
which a SIP request will terminate is generally not known to the
originator. So the originator does not select from the flows
Vemuri & Peterson Best Current Practice [Page 7]
^L
RFC 3372 SIP-T September 2002
described in this section, as a matter of static configuration or on
a per-call basis - rather, each call is routed by the SIP network
independently, and it may instantiate any of the flows below as the
routing logic of the network dictates.
3.1 SIP Bridging (PSTN - IP - PSTN)
********************
*** ***
* *
* ------- *
* |proxy| *
* ------- *
|---| |---|
/|MGC| VoIP Network |MGC|\
/ --- --- \
/ * * \
/ * ------- * \
/ * |proxy| * \
-------- * ------- * ---------
| PSTN | *** *** | PSTN |
-------- ********************* ---------
Figure 2: PSTN origination - PSTN termination (SIP Bridging)
A scenario in which a SIP network connects two segments of the PSTN
is referred to as 'SIP bridging'. When a call destined for the SIP
network originates in the PSTN, an SS7 ISUP message will eventually
be received by the gateway that is the point of interconnection with
the PSTN network. This gateway is from the perspective of the SIP
protocol the user agent client for this call setup request.
Traditional SIP routing is used in the IP network to determine the
appropriate point of termination (in this instance a gateway) and to
establish a SIP dialog and begin negotiation of a media session
between the origination and termination endpoints. The egress
gateway then signals ISUP to the PSTN, reusing any encapsulated ISUP
present in the SIP request it receives as appropriate.
Vemuri & Peterson Best Current Practice [Page 8]
^L
RFC 3372 SIP-T September 2002
A very elementary call-flow for SIP bridging is shown below.
PSTN MGC#1 Proxy MGC#2 PSTN
|-------IAM------>| | | |
| |-----INVITE---->| |
| | | |-----IAM----->|
| |<--100 TRYING---| |
| | | |<----ACM------|
| |<-----18x-------| |
|<------ACM-------| | | |
| | | |<----ANM------|
| |<----200 OK-----| |
|<------ANM-------| | | |
| |------ACK------>| |
|====================Conversation=================|
|-------REL------>| | | |
|<------RLC-------|------BYE------>| |
| | | |-----REL----->|
| |<----200 OK-----| |
| | | |<----RLC------|
| | | | |
3.2 PSTN origination - IP termination
********************
*** ***
* *
* *
* *
* *
|----| |-----|
/|MGC | VoIP Network |proxy|\
/ ---- ----- \
/ * * \
/ * * \
/ * * \
-------- * * -------------
| PSTN | ** ** | SIP phone |
-------- ********************* -------------
Figure 3: PSTN origination - IP termination
Vemuri & Peterson Best Current Practice [Page 9]
^L
RFC 3372 SIP-T September 2002
A call originates from the PSTN and terminates at a SIP phone. Note
that in Figure 5, the proxy server acts as the registrar for the SIP
phone in question.
A simple call-flow depicting the ISUP and SIP signaling for a PSTN-
originated call terminating at a SIP endpoint follows:
PSTN MGC Proxy SIP phone
|----IAM----->| | |
| |--------INVITE------>| |
| | |-------INVITE------->|
| |<------100 TRYING----| |
| | |<-------18x----------|
| |<---------18x--------| |
|<----ACM-----| | |
| | |<-------200 OK-------|
| |<-------200 OK-------| |
|<----ANM-----| | |
| |---------ACK-------->| |
| | |---------ACK-------->|
|=====================Conversation========================|
|-----REL---->| | |
| |----------BYE------->| |
|<----RLC-----| |---------BYE-------->|
| | |<-------200 OK-------|
| |<-------200 OK-------| |
| | | |
Vemuri & Peterson Best Current Practice [Page 10]
^L
RFC 3372 SIP-T September 2002
3.3 IP origination - PSTN termination
********************
*** ***
* *
* *
* *
* *
|-----| |----|
/|proxy| VoIP Network |MGC |\
/ ----- ---- \
/ * * \
/ * * \
/ * * \
------------ * * ---------
|SIP phone | ** ** | PSTN |
------------ ********************* ---------
Figure 4: IP origination - PSTN termination
A call originates from a SIP phone and terminates in the PSTN.
Unlike the previous two flows, there is therefore no ISUP
encapsulation in the request - the terminating gateway therefore only
performs translation on the SIP headers to derive values for ISUP
parameters.
A simple call-flow illustrating the different legs in the call is as
shown below.
Vemuri & Peterson Best Current Practice [Page 11]
^L
RFC 3372 SIP-T September 2002
SIP phone Proxy MGC PSTN
|-----INVITE----->| | |
| |--------INVITE-------->| |
|<---100 TRYING---| |-----IAM---->|
| |<------100 TRYING------| |
| | |<----ACM-----|
| |<---------18x----------| |
|<------18x-------| | |
| | |<----ANM-----|
| |<--------200 OK--------| |
|<-----200 OK-----| | |
|-------ACK------>| | |
| |----------ACK--------->| |
|========================Conversation===================|
|-------BYE------>| | |
| |----------BYE--------->| |
| | |-----REL---->|
| |<--------200 OK--------| |
|<-----200 OK-----| |<----RLC-----|
4. SIP-T Roles and Behavior
There are three distinct sorts of elements (from a functional point
of view) in a SIP VoIP network that interconnects with the PSTN:
1. The originators of SIP signaling
2. The terminators of SIP signaling
3. The intermediaries that route SIP requests from the originator to
the terminator
Behavior for the Section 4.1, Section 4.2 and Section 4.3
intermediary roles in a SIP-T call are described in the following
sections.
4.1 Originator
The function of the originating user agent client is to generate the
SIP Call setup requests (i.e., INVITEs). When a call originates in
the PSTN, a gateway is the UAC; otherwise some native SIP endpoint is
the UAC. In either case, note that the originator generally cannot
anticipate what sort of entity the terminator will be, i.e., whether
final destination of the request is in a SIP network or the PSTN.
Vemuri & Peterson Best Current Practice [Page 12]
^L
RFC 3372 SIP-T September 2002
In the case of calls originating in the PSTN (see Figure 3 and Figure
5), the originating gateway takes the necessary steps to preserve the
ISUP information by encapsulating it in the SIP request it creates.
The originating gateway is entrusted with the responsibility of
identifying the version of the ISUP (ETSI, ANSI, etc.) that it has
received and providing this information in the encapsulated ISUP
(usually by adding a multipart MIME body with appropriate MIME
headers). It then formulates the headers of the SIP INVITE request
from the parameters of the ISUP that it has received from the PSTN as
appropriate (see Section 5). This might, for instance, entail
setting the 'To:' header field in the INVITE to the reflect dialed
number (Called Party Number) of the received ISUP IAM.
In other cases (like Figure 7), a SIP phone is the originator of a
VoIP call. Usually, the SIP phone sends requests to a SIP proxy that
is responsible for routing the request to an appropriate destination.
There is no ISUP to encapsulate at the user agent client, as there is
no PSTN interface. Although the call may terminate in the telephone
network and need to signal ISUP in order for that to take place, the
originator has no way to anticipate this and it would be foolhardy to
require that all SIP VoIP user agents have the capability to generate
ISUP. It is therefore not the responsibility of an IP endpoints like
a SIP phone to generate encapsulated ISUP. Thus, an originator must
generate the SIP signaling while performing ISUP encapsulation and
translation when possible (meaning when the call has originated in
the PSTN).
Originator requirements: encapsulate ISUP, translate information from
ISUP to SIP, multipart MIME support (for gateways only)
4.2 Terminator
The SIP-T terminator is a consumer of the SIP calls. The terminator
is a standard SIP UA that can be either a gateway that interworks
with the PSTN or a SIP phone.
Vemuri & Peterson Best Current Practice [Page 13]
^L
RFC 3372 SIP-T September 2002
In case of PSTN terminations (see Figure 3 and Figure 7) the egress
gateway terminates the call to its PSTN interface. The terminator
generates the ISUP appropriate for signaling to the PSTN from the
incoming SIP message. Values for certain ISUP parameters may be
gleaned from the SIP headers or extracted directly from an
encapsulated ISUP body. Generally speaking, a gateway uses any
encapsulated ISUP as a template for the message it will send, but it
overwrites parameter values in the template as it translates SIP
headers or adds any parameter values that reflect its local policies
(see Appendix A item 1).
In case of an IP termination (Figure 5), the SIP UAS that receives
SIP messages with encapsulated ISUP typically disregards the ISUP
message. This does introduce a general requirement, however, that
devices like SIP phones handle multipart MIME messages and unknown
MIME types gracefully (this is a baseline SIP requirement, but also a
place where vendors have been known to make shortcuts).
Terminator requirements: standard SIP processing, interpretation of
encapsulated ISUP (for gateways only), support for multipart MIME,
graceful handling of unknown MIME content (for non-gateways only)
4.3 Intermediary
Intermediaries like proxy servers are entrusted with the task of
routing messages to one another, as well as gateways and SIP phones.
Each proxy server makes a forwarding decision for a SIP request based
on values of various headers, or 'routable elements' (including the
Request-URI, route headers, and potentially many other elements of a
SIP request).
SIP-T does introduce some additional considerations for forwarding a
request that could lead to new features and requirements for
intermediaries. Feature transparency of ISUP is central to the
notion of SIP-T. Compatibility between the ISUP variants of the
originating and terminating PSTN interfaces automatically leads to
feature transparency. Thus, proxy servers might take an interest in
the variants of ISUP that are encapsulated with requests - the
variant itself could become a routable element. The termination of a
call at a point that results in greater proximity to the final
destination (rate considerations) is also an important consideration.
The preference of one over the other results in a trade-off between
simplicity of operation and cost. The requirement of procuring a
reasonable rate may dictate that a SIP-T call spans dissimilar PSTN
interfaces (SIP bridging across different gateways that don't support
any ISUP variants in common). In order to optimize for maximum
feature transparency and rate, some operators of intermediaries might
want to consider practices along the following lines:
Vemuri & Peterson Best Current Practice [Page 14]
^L
RFC 3372 SIP-T September 2002
a) The need for ISUP feature transparency may necessitate ISUP
variant translation (conversion), i.e., conversion from one
variant of ISUP to another in order to facilitate the termination
of that call over a gateway interface that does not support the
ISUP variant of the originating PSTN interface. (See Appendix A
item 2.) Although in theory conversion may be performed at any
point in the path of the request, it is optimal to perform it at a
point that is at the greatest proximity to the terminating
gateway. This could be accomplished by delivering the call to an
application that might perform the conversion between variants.
Feature transparency in this case is contingent on the
availability of resources to perform ISUP conversion, and it
incurs an increase in the call-set up time.
b) An alternative would be to sacrifice ISUP transparency by handing
the call off to a gateway that does not support the version of the
originating ISUP. The terminating MGC would then just ignore the
encapsulated ISUP and use the information in the SIP header to
terminate the call.
So, it may be desirable for proxy servers to have the intelligence to
make a judicious choice given the options available to it.
Proxy requirements: ability to route based on choice of routable
elements
4.4 Behavioral Requirements Summary
If the SIP-T originator is a gateway that received an ISUP request,
it must always perform both encapsulation and translation ISUP,
regardless of where the originator might guess that the request will
terminate.
If the terminator does not understand ISUP, it ignores it while
performing standard SIP processing. If the terminator does
understand ISUP, and needs to signal to the PSTN, it should reuse the
encapsulated ISUP if it understands the variant. The terminator
should perform the following steps:
o Extract the ISUP from the message body, and use this ISUP as a
message template. Note that if there is no encapsulated ISUP in
the message, the gateway should use a canonical template for the
message type in question (a pre-populated ISUP message configured
in the gateway) instead.
Vemuri & Peterson Best Current Practice [Page 15]
^L
RFC 3372 SIP-T September 2002
o Translate the headers of the SIP request into ISUP parameters,
overwriting any values in the message template.
o Apply any local policies in populating parameters.
An intermediary must be able to route a call based on the choice of
routable elements in the SIP headers.
5. Components of the SIP-T Protocol
The mechanisms described in the following sections are the components
of SIP-T that provide the protocol functions entailed by the
requirements.
5.1 Core SIP
SIP-T uses the methods and procedures of SIP as defined by RFC 3261.
5.2 Encapsulation
Encapsulation of the PSTN signaling is one of the major requirements
of SIP-T. SIP-T uses multipart MIME bodies to enable SIP messages to
contain multiple payloads (Session Description Protocol or SDP [5],
ISUP, etc.). Numerous ISUP variants are in existence today; the ISUP
MIME type enable recipients too recognize the ISUP type (and thus
determine whether or not they support the variant) in the most
expeditious possible manner. One scheme for performing ISUP
encapsulation using multi-part MIME has been described in [2].
5.3 Translation
Translation encompasses all aspects of signaling protocol conversion
between SIP and ISUP. There are essentially two components to the
problem of translation:
1. ISUP SIP message mapping: This describes a mapping between ISUP
and SIP at the message level. In SIP-T deployments gateways are
entrusted with the task of generating a specific ISUP message for
each SIP message received and vice versa. It is necessary to
specify the rules that govern the mapping between ISUP and SIP
messages (i.e., what ISUP messages is sent when a particular SIP
message is received: an IAM must be sent on receipt of an INVITE,
a REL for BYE, and so on). A potential mapping between ISUP and
SIP messages has been described in [10].
Vemuri & Peterson Best Current Practice [Page 16]
^L
RFC 3372 SIP-T September 2002
2. ISUP parameter-SIP header mapping: A SIP request that is used to
set up a telephone call should contain information that enables
it to be appropriately routed to its destination by proxy servers
in the SIP network - for example, the telephone number dialed by
the originating user. It is important to standardize a set of
practices that defines the procedure for translation of
information from ISUP to SIP (for example, the Called Party
Number in an ISUP IAM must be mapped onto the SIP 'To' header
field and Request-URI, etc.). This issue becomes inherently more
complicated by virtue of the fact that the headers of a SIP
request (especially an INVITE) may be transformed by
intermediaries, and that consequently, the SIP headers and
encapsulated ISUP bodies come to express conflicting values -
effectively, a part of the encapsulated ISUP may be rendered
irrelevant and obsolete.
5.4 Support for mid-call signaling
Pure SIP does not have any provision for carrying any mid-call
control information that is generated during a session. The INFO [3]
method should be used for this purpose. Note however that INFO is
not suitable for managing overlap dialing (for one way of
implementing overlap dialing see [11]). Also note that the use of
INFO for signaling mid-call DTMF signals is not recommended (see
RFC2833 [9] for a recommended mechanism).
6. SIP Content Negotiation
The originator of a SIP-T request might package both SDP and ISUP
elements into the same SIP message by using the MIME multipart
format. Traditionally in SIP, if the terminating device does not
support a multipart payload (multipart/mixed) and/or the ISUP MIME
type, it would then reject the SIP request with a 415 Unsupported
Media Type specifying the media types it supports (by default,
'application/SDP'). The originator would subsequently have to re-
send the SIP request after stripping out the ISUP payload (i.e. with
only the SDP payload) and this would then be accepted.
This is a rather cumbersome flow, and it is thus highly desirable to
have a mechanism by which the originator could signify which bodies
are required and which are optional so that the terminator can
silently discard optional bodies that it does not understand
(allowing a SIP phone to ignore an ISUP payload when processing ISUP
is not critical). This is contingent upon the terminator having
support for a Content-type of multipart/mixed and access to the
Content-Disposition header to express criticality.
Vemuri & Peterson Best Current Practice [Page 17]
^L
RFC 3372 SIP-T September 2002
1. Support for ISUP is optional. Therefore, UA2 accepts the INVITE
irrespective of whether it can process the ISUP.
UA1 UA2
INVITE-->
(Content-type:multipart/mixed;
Content-type: application/sdp;
Content-disposition: session; handling=required;
Content-type: application/isup;
Content-disposition: signal; handling=optional;)
<--18x
2. Support for ISUP is preferred. UA2 does not support the ISUP and
rejects the INVITE with a 415 Unsupported Media Type. UA1 strips
off the ISUP and re-sends the INVITE with SDP only and this is
the accepted.
UA1 UA2
INVITE--> (Content-type:multipart/mixed;
Content-type: application/sdp;
Content-disposition: session; handling=required;
Content-type: application/isup;
Content-disposition: signal; handling=required;)
<--415
(Accept: application/sdp)
ACK-->
INVITE-->
(Content-type: application/sdp)
<--18x
3. Support for ISUP is mandatory for call establishment. UA2 does
not support the ISUP and rejects the INVITE with a 415
Unsupported Media type. UA1 then directs its request to UA3.
Vemuri & Peterson Best Current Practice [Page 18]
^L
RFC 3372 SIP-T September 2002
UA1 UA2
INVITE--> (Content-type:multipart/mixed;
Content-type: application/sdp;
Content-disposition: session; handling=required;
Content-type: application/isup;
Content-disposition: signal; handling=required;)
<--415
(Accept: application/sdp)
ACK-->
UA1 UA3
INVITE--> (Content-type:multipart/mixed;
Content-type: application/sdp;
Content-disposition: session; handling=required;
Content-type: application/isup;
Content-disposition: signal; handling=required;)
Note that the exchanges of messages above are not complete; only the
messages relevant to this discussion are shown. Specifics of the
ISUP MIME type can be obtained from [2]. The 'version' and 'base'
parameters are not shown here, but must be used in accordance with
the rules of [2].
7. Security Considerations
SIP-T can be employed as an interdomain signaling mechanism that may
be subject to pre-existing trust relationships between administrative
domains. In many legal environments, distribution of ISUP is
restricted to licensed carriers; SIP-T introduces some challenges in
so far as it bridges carrier signaling with end-user signaling. Any
administrative domain implementing SIP-T should have an adequate
security apparatus (including elements that manage any appropriate
policies to manage fraud and billing in an interdomain environment)
in place to ensure that the transmission of ISUP information does not
result in any security violations.
Transporting ISUP in SIP bodies may provide opportunities for abuse,
fraud, and privacy concerns, especially when SIP-T requests can be
generated, inspected or modified by arbitrary SIP endpoints. ISUP
MIME bodies should be secured (preferably with S/MIME [4]) to
alleviate this concern, as is described in the Security
Considerations of the core SIP specification [1]. Authentication
properties provided by S/MIME would allow the recipient of a SIP-T
message to ensure that the ISUP MIME body was generated by an
Vemuri & Peterson Best Current Practice [Page 19]
^L
RFC 3372 SIP-T September 2002
authorized entity. Encryption would ensure that only carriers
possessing a particular decryption key are capable of inspecting
encapsulated ISUP MIME bodies in a SIP request.
SIP-T endpoints MUST support S/MIME signatures (CMS SignedData), and
SHOULD support encryption (CMS EnvelopedData).
8. IANA Considerations
This document introduces no new considerations for IANA.
Normative References
[1] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A.,
Peterson, J., Sparks, R., Handley, M. and E. Schooler, "SIP:
Session Initiation Protocol", RFC 3261, May 2002.
[2] Zimmerer, E., Peterson, J., Vemuri, A., Ong, L., Audet, F.,
Watson, M. and M. Zonoun, "MIME media types for ISUP and QSIG
objects", RFC 3204, December 2001.
[3] Donovan, S., "The SIP INFO Method", RFC 2976, October 2000.
[4] Ramsdell, B., "S/MIME Version 3 Message Specification", RFC
2633, June 1999.
[5] Handley, M. and V. Jacobson, "SDP: Session Description
Protocol", RFC 2327, April 1998.
Non-Normative References
[6] International Telecommunications Union, "Signaling System No.
7; ISDN User Part Signaling procedures", ITU-T Q.764, September
1997, <http://www.itu.int>.
[7] Faltstrom, P., "E.164 number and DNS", RFC 2916, September
2000.
[8] Rosenberg, J., Salama, H. and M. Squire, "Telephony Routing
over IP (TRIP)", RFC 3219, January 2002.
[9] Schulzrinne, H. and S. Petrack, "RTP Payload for DTMF Digits,
Telephony Tones and Telephony Signals", RFC 2833, May 2000.
[10] Camarillo, G., Roach, A., Peterson, J. and L. Ong, "ISUP to SIP
Mapping", Work in Progress.
Vemuri & Peterson Best Current Practice [Page 20]
^L
RFC 3372 SIP-T September 2002
[11] Camarillo, G., Roach, A., Peterson, J. and L. Ong, "Mapping of
ISUP Overlap Signaling to SIP", Work in Progress.
Vemuri & Peterson Best Current Practice [Page 21]
^L
RFC 3372 SIP-T September 2002
Appendix A. Notes
1. Some terminating MGCs may alter the encapsulated ISUP in order to
remove any conditions specific to the originating circuit; for
example, continuity test flags in the Nature of Connection
Indicators, etc.
2. Even so, the relevance of ANSI-specific information in an ETSI
network (or vice versa) is questionable. Clearly, the strength
of SIP-T is realized when the encapsulated ISUP involves the
usage of proprietary parameters.
Appendix B. Acknowledgments
We thank Andrew Dugan, Rob Maidhof, Dave Martin, Adam Roach, Jonathan
Rosenberg, Dean Willis, Robert F. Penfield, Steve Donovan, Allison
Mankin, Scott Bradner and Steve Bellovin for their valuable comments.
The original 'SIP+' proposal for interconnecting portions of the PSTN
with SIP bridging was developed by Eric Zimmerer.
Authors' Addresses
Aparna Vemuri-Pattisam
Qwest Communications
6000 Parkwood Pl
Dublin, OH 43016 US
EMail: Aparna.Vemuri@Qwest.com
vaparna10@yahoo.com
Jon Peterson
NeuStar, Inc.
1800 Sutter St
Suite 570
Concord, CA 94520 US
Phone: +1 925/363-8720
EMail: jon.peterson@neustar.biz
URI: http://www.neustar.biz/
Vemuri & Peterson Best Current Practice [Page 22]
^L
RFC 3372 SIP-T September 2002
Full Copyright Statement
Copyright (C) The Internet Society (2002). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Vemuri & Peterson Best Current Practice [Page 23]
^L
|