summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc4458.txt
blob: b111a31235d42b254f5a757bea52d133e48ed427 (plain) (blame)
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
Network Working Group                                        C. Jennings
Request for Comments: 4458                                 Cisco Systems
Category: Informational                                         F. Audet
                                                         Nortel Networks
                                                               J. Elwell
                                                             Siemens plc
                                                              April 2006


        Session Initiation Protocol (SIP) URIs for Applications
         such as Voicemail and Interactive Voice Response (IVR)

Status of This Memo

   This memo provides information for the Internet community.  It does
   not specify an Internet standard of any kind.  Distribution of this
   memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2006).

Abstract

   The Session Initiation Protocol (SIP) is often used to initiate
   connections to applications such as voicemail or interactive voice
   recognition systems.  This specification describes a convention for
   forming SIP service URIs that request particular services based on
   redirecting targets from such applications.






















Jennings, et al.             Informational                      [Page 1]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


Table of Contents

   1. Introduction ....................................................3
   2. Mechanism (User Agent Server and Proxy) .........................4
      2.1. Target .....................................................4
      2.2. Cause ......................................................4
      2.3. Retrieving Messages ........................................5
   3. Interaction with Request History Information ....................5
   4. Limitations of Voicemail URI ....................................6
   5. Syntax ..........................................................6
   6. Examples ........................................................7
      6.1. Proxy Forwards Busy to Voicemail ...........................7
      6.2. Endpoint Forwards Busy to Voicemail ........................9
      6.3. Endpoint Forwards Busy to TDM via a Gateway ...............11
      6.4. Endpoint Forwards Busy to Voicemail with History Info .....13
      6.5. Zero Configuration UM System ..............................14
      6.6. Call Coverage .............................................15
   7. IANA Considerations ............................................15
   8. Security Considerations ........................................16
      8.1. Integrity Protection of Forwarding in SIP .................16
      8.2. Privacy Related Issues on the Second Call Leg .............17
   9. Acknowledgements ...............................................18
   10. References ....................................................18
      10.1. Normative References .....................................18
      10.2. Informative References ...................................18


























Jennings, et al.             Informational                      [Page 2]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


1.  Introduction

   Many applications such as Unified Messaging (UM) systems and
   Interactive Voice Recognition (IVR) systems have been developed out
   of traditional telephony.  They can be used for storing and
   interacting with voice, video, faxes, email, and instant messaging
   services.  Users often use SIP to initiate communications with these
   applications.  When a SIP call is routed to an application, it is
   necessary that the application be able to obtain several bits of
   information from the session initiation message so that it can
   deliver the desired services.

   For the purpose of this document, we will use UM as the main example,
   but other applications may use the mechanism defined in this
   document.  The UM needs to know what mailbox should be used and
   possible reasons for the type of service desired from the UM.  Many
   voicemail systems provide different greetings depending whether the
   call went to voicemail because the user was busy or because the user
   did not answer.  All of this information can be delivered in existing
   SIP signaling from the call control that retargets the call to the
   UM, but there are no conventions for describing how the desired
   mailbox and the service requested are expressed.  It would be
   possible for every vendor to make this configurable so that any site
   could get it to work; however, this approach is unrealistic for
   achieving interoperability among call control, gateway, and unified
   messaging systems from different vendors.  This specification
   describes a convention for describing this mailbox and service
   information in the SIP URI so that vendors and operators can build
   interoperable systems.

   If there were no need to interoperate with Time Division Multiplexing
   (TDM)-based voicemail systems or to allow TDM systems to use VoIP
   unified messaging systems, this problem would be a little easier to
   solve.  The problem that is introduced in the Voice over IP (VoIP) to
   TDM case is as follows.  The SIP system needs to tell a Public
   Switched Telephone Network (PSTN) gateway both the subscriber's
   mailbox identifier (which typically looks like a phone number) and
   the address of the voicemail system in the TDM network (again a phone
   number).

   The question has been asked why the To header cannot be used to
   specify which mailbox to use.  One problem is that the call control
   proxies cannot modify the To header, and the User Agent Clients
   (UACs) often set it incorrectly because they do not have information
   about the subscribers in the domain they are trying to call.  This
   happens because the routing of the call often translates the URI
   multiple times before it results in an identifier for the desired
   user that is valid in the namespace that the UM system understands.



Jennings, et al.             Informational                      [Page 3]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


2.  Mechanism (User Agent Server and Proxy)

   The mechanism works by encoding the information for the desired
   service in the SIP Request-URI that is sent to the UM system.  Two
   chunks of information are encoded, the first being the target mailbox
   to use and the second being the SIP status code that caused this
   retargeting and that indicates the desired service.  The userinfo and
   hostport parts of the Request-URI will identify the voicemail
   service, the target mailbox can be put in the target parameter, and
   the reason can be put in the cause parameter.  For example, if the
   proxy wished to use Bob's mailbox because his phone was busy, the URI
   sent to the UM system could be something like:

     sip:voicemail@example.com;target=bob%40example.com;cause=486

2.1.  Target

   Target is a URI parameter that indicates the address of the
   retargeting entity: in the context of UM, this can be the mailbox
   number.  For example, in the case of a voicemail system on the PSTN,
   the user portion will contain the phone number of the voicemail
   system, while the target will contain the phone number of the
   subscriber's mailbox.

2.2.  Cause

   Cause is a URI parameter that is used to indicate the service that
   the User Agent Server (UAS) receiving the message should perform.
   The following values for this URI parameter are defined:


                +---------------------------------+-------+
                | Redirecting Reason              | Value |
                +---------------------------------+-------+
                | Unknown/Not available           | 404   |
                | User busy                       | 486   |
                | No reply                        | 408   |
                | Unconditional                   | 302   |
                | Deflection during alerting      | 487   |
                | Deflection immediate response   | 480   |
                | Mobile subscriber not reachable | 503   |
                +---------------------------------+-------+

   The mapping to PSTN protocols is important both for gateways that
   connect the IP network to existing TDM customer's equipment, such as
   Private Branch Exchanges (PBXs) and voicemail systems, and for
   gateways that connect the IP network to the PSTN network.  Integrated
   Services Digital Network User Part (ISUP) has signaling encodings for



Jennings, et al.             Informational                      [Page 4]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


   this information that can be treated as roughly equivalent for the
   purposes here.  For this reason, this specification uses the names of
   Redirecting Reason values defined in ITU-T Q.732.2-5 [8].  In this
   specification, the Redirecting Reason Values are referred to as
   "Causes".  It should be understood that the term "Cause" has nothing
   to do with PSTN "Cause values" (as per ITU-T Q.850 [9] and RFC 3398
   [5]) but are instead mapped to ITU-T Q.732.2-5 Redirecting Reasons.
   Since ISUP interoperates with other PSTN networks, such as Q.931 [10]
   and QSIG [11], using well-known rules, it makes sense to use the ISUP
   names as the most appropriate superset.  If no appropriate mapping to
   a cause value defined in this specification exists in a network, it
   would be mapped to 302 "Unconditional".  Similarly, if the mapping
   occurs from one of the causes defined in this specification to a PSTN
   system that does not have an equivalent reason value, it would be
   mapped to that network's equivalent of "Unconditional".  If a new
   cause parameter needs to be defined, this specification will have to
   be updated.

   The user portion of the URI SHOULD be used as the address of the
   voicemail system on the PSTN, while the target SHOULD be mapped to
   the original redirecting number on the PSTN side.

   The redirection counters SHOULD be set to one unless additional
   information is available.

2.3.  Retrieving Messages

   The UM system MAY use the fact that the From header is the same as
   the URI target as a hint that the user wishes to retrieve messages.

3.  Interaction with Request History Information

   The Request History mechanism [6] provides more information relating
   to multiple retargetings.  It is reasonable to have systems in which
   both the information in this specification and the History
   information are included and one or both are used.

   History-Info specifies a means of providing the UAS and UAC with
   information about the retargeting of a request.  This information
   includes the initial Request-URI and any retarget-to URIs.  This
   information is placed in the History-Info header field, which, except
   where prevented by privacy considerations, is built up as the request
   progresses and, upon reaching the UAS, is returned in certain
   responses.

   History-Info, when deployed at relevant SIP entities, is intended to
   provide a comprehensive trace of retargeting for a SIP request, along
   with the SIP response codes that led to retargeting.



Jennings, et al.             Informational                      [Page 5]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


   History-Info can complement this specification.  In particular, when
   a proxy inserts a URI containing the parameters defined in this
   specification into the Request-URI of a forwarded request, the proxy
   can also insert a History-Info header field entry into the forwarded
   request, and the URI in that entry will incorporate these parameters.
   Therefore, even if the Request-URI is replaced as a result of
   rerouting by a downstream proxy, the History-Info header field will
   still contain these parameters, which may be of use to the UAS.
   Consequently, UASes that make use of this information may find the
   information in the History-Info header and/or in the Request-URI,
   depending on the capability of the proxy to support generation of
   History-Info or on the behavior of downstream proxies; therefore,
   applications need to take this into account.

4.  Limitations of Voicemail URI

   This specification requires the proxy that is requesting the service
   to understand whether the UM system it is targeting supports the
   syntax defined in this specification.  Today, this information is
   provided to the proxy by configuration.  For practical purposes, this
   means that the approach is unlikely to work in cases in which the
   proxy is not configured with information about the UM system or in
   which the UM is not in the same administrative domain.

   This approach only works when the service that the call control wants
   applied is fairly simple.  For example, it does not allow the proxy
   to express information like "Do not offer to connect to the target's
   colleague because that address has already been tried".

   The limitations discussed in this section are addressed by History-
   Info [6].

5.  Syntax

   The ABNF[4] grammar for these parameters is shown below.  The
   definitions of pvalue and Status-Code are defined in the ABNF in RFC
   3261[1].

     target-param      =  "target" EQUAL pvalue

     cause-param       =  "cause" EQUAL Status-Code

   Note that the ABNF requires some characters to be escaped if they
   occur in the value of the target parameters.  For example, the "@"
   character needs to be escaped.






Jennings, et al.             Informational                      [Page 6]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


6.  Examples

   This section provides some example use cases for the solution
   proposed in this document.  For the purpose of this document, UM is
   used as the main example, but other applications may use this
   mechanism.  The examples are intended to highlight the potential
   applicability of this solution and are not intended to limit its
   applicability.

   Also, the examples show just service retargeting on busy, but can
   easily be adapted to show other forms of retargeting.

   In several of the examples, the URIs are broken across more than one
   line.  This was only done for formatting and is not a valid SIP
   message.  Some of the characters in the URIs are not correctly
   escaped to improve readability.  The examples are all shown using
   sip: with UDP transport, for readability.  It should be understood
   that using sips: with TLS transport is preferable.

6.1.  Proxy Forwards Busy to Voicemail

   In this example, Alice calls Bob.  Bob's proxy determines that Bob is
   busy, and the proxy forwards the call to Bob's voicemail.  Alice's
   phone is at 192.0.2.1, while Bob's phone is at 192.0.2.2.  The
   important thing to note is the URI in message F7.

     Alice            Proxy           Bob             voicemail
       |                |              |                   |
       |    INVITE F1   |              |                   |
       |--------------->|   INVITE F2  |                   |
       |                |------------->|                   |
       |(100 Trying) F3 |              |                   |
       |<---------------|  486 Busy F4 |                   |
       |                |<-------------|                   |
       |                |     ACK F5   |                   |
       |                |------------->|                   |
       |(181 Call is Being Forwarded) F6                   |
       |<---------------|              |    INVITE F7      |
       |                |--------------------------------->|
                    * Rest of flow not shown *











Jennings, et al.             Informational                      [Page 7]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


    F1: INVITE 192.0.2.1 -> proxy.example.com

    INVITE sip:+15555551002@example.com;user=phone  SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*


    F2: INVITE proxy.example.com -> 192.0.2.2

    INVITE sip:+15555551002@192.0.2.2 SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-1
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*


    F4: 486 192.0.2.2 -> proxy.example.com

    SIP/2.0 486 Busy Here
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-1
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone;tag=09xde23d80
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Content-Length: 0








Jennings, et al.             Informational                      [Page 8]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


    F7: INVITE proxy.example.com -> um.example.com

    INVITE sip:voicemail@example.com;\
           target=sip:+15555551002%40example.com;user=phone;\
           cause=486  SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-2
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*

6.2.  Endpoint Forwards Busy to Voicemail

   In this example, Alice calls Bob.  Bob is busy, but forwards the
   session directly to his voicemail.  Alice's phone is at 192.0.2.1,
   while Bob's phone is at 192.0.2.2.  The important thing to note is
   the URI in the Contact in message F3.

     Alice            Proxy           Bob             voicemail
       |                |              |                   |
       |    INVITE F1   |              |                   |
       |--------------->|   INVITE F2  |                   |
       |                |------------->|                   |
       |                | 302 Moved F3 |                   |
       |  302 Moved  F4 |<-------------|                   |
       |<---------------|              |                   |
       |      ACK F5    |              |                   |
       |--------------->|     ACK F6   |                   |
       |                |------------->|                   |
       |                      INVITE F7                    |
       |-------------------------------------------------->|
                   * Rest of flow not shown *












Jennings, et al.             Informational                      [Page 9]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


    F1: INVITE 192.0.2.1 -> proxy.example.com

    INVITE sip:+15555551002@example.com;user=phone  SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*


    F2: INVITE proxy.example.com -> 192.0.2.2

    INVITE sip:line1@192.0.2.2 SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-1
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*


    F3: 302 192.0.2.2 -> proxy.example.com

    SIP/2.0 302 Moved Temporarily
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-1
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone;tag=09xde23d80
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Contact: <sip: voicemail@example.com;\
           target=sip:+15555551002%40example.com;user=phone;\
           cause=486;>
    Content-Length: 0





Jennings, et al.             Informational                     [Page 10]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


    F7: INVITE proxy.example.com -> um.example.com

    INVITE sip: voicemail@example.com;\
           target=sip:+15555551002%40example.com;user=phone;\
           cause=486  SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-2
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*

6.3.  Endpoint Forwards Busy to TDM via a Gateway

   In this example, the voicemail is reached via a gateway to a TDM
   network.  Bob's number is +1 555 555-1002, while voicemail's number
   on the TDM network is +1-555-555-2000.

   The call flow is the same as in Section 6.2 except for the Contact
   URI in F4 and the Request URI in F7.

     Alice            Proxy           Bob             voicemail
       |                |              |                   |
       |    INVITE F1   |              |                   |
       |--------------->|   INVITE F2  |                   |
       |                |------------->|                   |
       |(100 Trying) F3 |              |                   |
       |<---------------| 302 Moved F4 |                   |
       |                |<-------------|                   |
       |                |     ACK F5   |                   |
       |                |------------->|                   |
       |(181 Call is Being Forwarded) F6                   |
       |<---------------|              |    INVITE F7      |
       |                |--------------------------------->|
                    * Rest of flow not shown *










Jennings, et al.             Informational                     [Page 11]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


    F4: 486 192.0.2.2 -> proxy.example.com

    SIP/2.0 302 Moved temporarily
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-1
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone;tag=09xde23d80
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Contact: <sip:+15555552000@example.com;user=phone;\
              target=tel:+15555551002;cause=486>
    Content-Length: 0


    F7: INVITE proxy.example.com -> gw.example.com

    INVITE sip:+15555552000@example.com;user=phone;\
           target=tel:+15555551002;cause=486\
           SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-2
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1;transport=tcp>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*




















Jennings, et al.             Informational                     [Page 12]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


6.4.  Endpoint Forwards Busy to Voicemail with History Info

   This example illustrates how History Info works in conjunction with
   service retargeting.  The scenario is the same as Section 6.1.

    F1: INVITE 192.0.2.1 -> proxy.example.com

    INVITE sip:+15555551002@example.com;user=phone  SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    History-Info: <sip:+15555551002@example.com;user=phone >;index=1
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*


    F2: INVITE proxy.example.com -> 192.0.2.2

    INVITE sip:line1@192.0.2.2 SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-1
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    History-Info: <sip:+15555551002@example.com;user=phone >;index=1,
                  <sip:line1@192.0.2.4>;index=1.1

    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*











Jennings, et al.             Informational                     [Page 13]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


    F7: INVITE proxy.example.com -> um.example.com

    INVITE sip: voicemail@example.com;\
           target=sip:+15555551002%40example.com;user=phone;\
           cause=486  SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-2
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    History-Info: <sip:+15555551002@example.com;user=phone >;index=1,
                  <sip:line1@192.0.2.4?Reason=SIP%3Bcause%3D302;\
                   text="Moved Temporarily">;index=1.1
                  <sip: voicemail@example.com;\
                   target=sip:+15555551002%40example.com;user=phone;\
                   cause=486>;index=2
    Contact: <sip:alice@192.0.2.1>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*

6.5.  Zero Configuration UM System

   In this example, the UM system has no configuration information
   specific to any user.  The proxy is configured to pass a URI that
   provides the prompt to play and an email address in the user portion
   of the URI to which the recorded message is to be sent.

   The call flow is the same as in Section 6.1, except that the URI in
   F7 changes to specify the user part as Bob's email address, and the
   Netann [7] URI play parameter specifies where the greeting to play
   can be fetched from.















Jennings, et al.             Informational                     [Page 14]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


    F7: INVITE proxy.example.com -> voicemail.example.com

    INVITE sip:voicemail@example.com;target=mailto:bob%40example.com;\
       cause=486;play=http://www.example.com/bob/busy.wav SIP/2.0
    Via: SIP/2.0/TCP 192.0.2.4:5060;branch=z9hG4bK-ik80k7g-2
    Via: SIP/2.0/TCP 192.0.2.1:5060;branch=z9hG4bK-74bf9
    From: Alice <sip:+15555551001@example.com;user=phone>;tag=9fxced76sl
    To: sip:+15555551002@example.com;user=phone
    Call-ID: c3x842276298220188511
    CSeq: 1 INVITE
    Max-Forwards: 70
    Contact: <sip:alice@192.0.2.1>
    Content-Type: application/sdp
    Content-Length: *Body length goes here*

    * SDP goes here*

   In addition, if the proxy wished to indicate a Voice XML (VXML)
   script that the UM should execute, it could add a parameter to the
   URI in the above message that looked like:

    voicexml=http://www.example.com/bob/busy.vxml

6.6.  Call Coverage

   In a Call Coverage example, a user on the PSTN calls an 800 number.
   The gateway sends this to the proxy, which recognizes that the
   helpdesk is the target.  Alice and Bob are staffing the help desk and
   are tried sequentially, but neither answers, so the call is forwarded
   to the helpdesk's voicemail.

   The details of this flow are trivial and not shown.  The key item in
   this example is that the INVITE to Alice and Bob looks as follows:

     INVITE sip:voicemail@example.com;target=helpdesk%40example.com;\
            cause=302 SIP/2.0

7.  IANA Considerations

   This specification adds two new values to the IANA registration in
   the "SIP/SIPS URI Parameters" registry as defined in [3].

      Parameter Name  Predefined Values  Reference
      ____________________________________________
      target          No                 [RFC4458]
      cause           Yes                [RFC4458]





Jennings, et al.             Informational                     [Page 15]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


8.  Security Considerations

   This document discusses transactions involving at least three
   parties, which increases the complexity of the privacy issues.

   The new URI parameters defined in this document are generally sent
   from a Proxy or call control system to a Unified Messaging (UM)
   system or to a gateway to the PSTN and then to a voicemail system.
   These new parameters tell the UM what service the proxy wishes to
   have performed.  Just as any message sent from the proxy to the UM
   needs to be integrity protected, these messages need to be integrity
   protected to stop attackers from, for example, causing a voicemail
   meant for a company's CEO to go to an attacker's mailbox.  RFC 3261
   provides a TLS mechanism suitable for performing this integrity
   protection.

   The signaling from the Proxy to the UM or gateway will reveal who is
   calling whom and possibly some information about a user's presence
   based on whether the call was answered or sent to voicemail.  This
   information can be protected by encrypting the SIP traffic between
   the Proxy and UM or gateway.  Again, RFC 3261 contains mechanisms for
   accomplishing this using TLS.

   Implementations should implement and use TLS.

8.1.  Integrity Protection of Forwarding in SIP

   The forwarding of a call in SIP brings up a very strange trust issue.
   Consider the normal case -- A calls B and the call gets forwarded to
   C by a network element in B's domain, and then C answers the call.  A
   has called B but ended up talking to C.  This scenario may be hard to
   separate from a man-in-the-middle attack.

   There are two possible solutions.  One is that B sends back
   information to A saying don't call me, call C, and signs it as B.
   The problem is that this solution involves revealing that B has
   forwarded to C, which B often may not want to do.  For example, B may
   be a work phone that has been forwarded to a mobile or home phone.
   The user does not want to reveal their mobile or home phone number
   but, even more importantly, does not want to reveal that they are not
   in the office.

   The other possible solution is that A needs to trust B only to
   forward to a trusted identity.  This requires a hop-by-hop transitive
   trust such that each hop will only send to a trusted next hop and
   each hop will only do things that the user at that hop desired.  This





Jennings, et al.             Informational                     [Page 16]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


   solution is enforced in SIP using the SIPS URI and TLS-based
   hop-by-hop security.  It protects from an off-axis attack, but if one
   of the hops is not trustworthy, the call may be diverted to an
   attacker.

   Any redirection of a call to an attacker's mailbox is serious.  It is
   trivial for an attacker to make its mailbox seem very much like the
   real mailbox and forward the messages to the real mailbox so that the
   fact that the messages have been intercepted or even tampered with
   escapes detection.  Approaches such as the SIPS URL and the
   History-Info[6] can help protect against these attacks.

8.2.  Privacy Related Issues on the Second Call Leg

   In the case where A calls B and gets redirected to C, occasionally
   people suggest that there is a requirement for the call leg from B to
   C to be anonymous.  The SIP case is not the PSTN, and there is no
   call leg from B to C; instead, there is a VoIP session between A and
   C.  If A has put a To header field value containing B in the initial
   invite message, unless something special is done about it, C would
   see that To header field value.  If the person who answers phone C
   says "I think you dialed the wrong number; who were you trying to
   reach?", A will probably specify B.

   If A does not want C to see that the call was to B, A needs a special
   relationship with the forwarding Proxy to induce it not to reveal
   that information.  The call should go through an anonymization
   service that provides session or user level privacy (as described in
   RFC 3323 [2]) service before going to C.  It is not hard to figure
   out how to meet this requirement, but it is unclear why anyone would
   want this service.

   The scenario in which B wants to make sure that C does not see that
   the call was to B is easier to deal with but a bit weird.  The usual
   argument is that Bill wants to forward his phone to Monica but does
   not want Monica to find out his phone number.  It is hard to imagine
   that Monica would want to accept all Bill's calls without knowing how
   to call Bill to complain.  The only person Monica will be able to
   complain to is Hillary, when she tries to call Bill.  Several popular
   web portals will send SMS alert messages about things like stock
   prices and weather to mobile phone users today.  Some of these
   contain no information about the account on the web portal that
   initiated them, making it nearly impossible for the mobile phone
   owner to stop them.  This anonymous message forwarding has turned out
   to be a really bad idea even where no malice is present.  Clearly
   some people are fairly dubious about the need for this, but never
   mind: let's look at how it is solved.




Jennings, et al.             Informational                     [Page 17]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


   In the general case, the proxy needs to route the call through an
   anonymization service and everything will be cleaned up.  Any
   anonymization service that performs the "Privacy: Header" Service in
   RFC 3323 [2] must remove the cause and target URI parameters from the
   URI.  Privacy of the parameters, when they form part of a URI within
   the History-Info header, is covered in History-Info [6].

   This specification does not discuss the security considerations of
   mapping to a PSTN Gateway.  Security implications of mapping to ISUP,
   for example, are discussed in RFC 3398 [5].

9.  Acknowledgements

   Many thanks to Mary Barnes, Steve Levy, Dean Willis, Allison Mankin,
   Martin Dolly, Paul Kyzivat, Erick Sasaki, Lyndsay Campbell, Keith
   Drage, Miguel Garcia, Sebastien Garcin, Roland Jesske, Takumi Ohba,
   and Rohan Mahy.

10.  References

10.1.  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, June 2002.

   [2]  Peterson, J., "A Privacy Mechanism for the Session Initiation
        Protocol (SIP)", RFC 3323, November 2002.

   [3]  Camarillo, G., "The Internet Assigned Number Authority (IANA)
        Uniform Resource Identifier (URI) Parameter Registry for the
        Session Initiation Protocol (SIP)", BCP 99, RFC 3969,
        December 2004.

   [4]  Crocker, D. and P. Overell, "Augmented BNF for Syntax
        Specifications: ABNF", RFC 4234, October 2005.

10.2.  Informative References

   [5]   Camarillo, G., Roach, A., Peterson, J., and L. Ong, "Integrated
         Services Digital Network (ISDN) User Part (ISUP) to Session
         Initiation Protocol (SIP) Mapping", RFC 3398, December 2002.

   [6]   Barnes, M., "An Extension to the Session Initiation Protocol
         (SIP) for Request History Information", RFC 4244,
         November 2005.





Jennings, et al.             Informational                     [Page 18]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


   [7]   Burger, E., Van Dyke, J., and A. Spitzer, "Basic Network Media
         Services with SIP", RFC 4240, December 2005.

   [8]   "Stage 3 description for call offering supplementary services
         using signalling system No. 7: Call diversion services", ITU-T
         Recommendation Q.732.2-5, December 1999.

   [9]   "Usage of cause and location in the Digital Subscriber
         Signalling System No. 1 and the Signalling System No. 7 ISDN
         User Part", ITU-T Recommendation Q.850, May 1998.

   [10]  "ISDN user-network interface layer 3 specification for basic
         call control", ITU-T Recommendation Q.931, May 1998.

   [11]  "Information technology - Telecommunications and information
         exchange between systems - Private Integrated Services Network
         - Circuit mode bearer services - Inter-exchange signalling
         procedures and protocol", ISO/IEC 11572, March 2000.

































Jennings, et al.             Informational                     [Page 19]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


Authors' Addresses

   Cullen Jennings
   Cisco Systems
   170 West Tasman Drive
   Mailstop SJC-21/2
   San Jose, CA  95134
   USA

   Phone: +1 408 421-9990
   EMail: fluffy@cisco.com


   Francois Audet
   Nortel Networks
   4655 Great America Parkway
   Santa Clara, CA  95054
   US

   Phone: +1 408 495 3756
   EMail: audet@nortel.com


   John Elwell
   Siemens plc
   Technology Drive
   Beeston, Nottingham  NG9 1LA
   UK

   EMail: john.elwell@siemens.com





















Jennings, et al.             Informational                     [Page 20]
^L
RFC 4458                   SIP Voicemail URI                  April 2006


Full Copyright Statement

   Copyright (C) The Internet Society (2006).

   This document is subject to the rights, licenses and restrictions
   contained in BCP 78, and except as set forth therein, the authors
   retain all their rights.

   This document and the information contained herein are provided on an
   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
   ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
   INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
   INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Intellectual Property

   The IETF takes no position regarding the validity or scope of any
   Intellectual Property Rights or other rights that might be claimed to
   pertain to the implementation or use of the technology described in
   this document or the extent to which any license under such rights
   might or might not be available; nor does it represent that it has
   made any independent effort to identify any such rights.  Information
   on the procedures with respect to rights in RFC documents can be
   found in BCP 78 and BCP 79.

   Copies of IPR disclosures made to the IETF Secretariat and any
   assurances of licenses to be made available, or the result of an
   attempt made to obtain a general license or permission for the use of
   such proprietary rights by implementers or users of this
   specification can be obtained from the IETF on-line IPR repository at
   http://www.ietf.org/ipr.

   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights that may cover technology that may be required to implement
   this standard.  Please address the information to the IETF at
   ietf-ipr@ietf.org.

Acknowledgement

   Funding for the RFC Editor function is provided by the IETF
   Administrative Support Activity (IASA).







Jennings, et al.             Informational                     [Page 21]
^L