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
|
Network Working Group C. Allocchio
Request for Comments: 3601 GARR-Italy
Category: Standards Track September 2003
Text String Notation for Dial Sequences and
Global Switched Telephone Network (GSTN) / E.164 Addresses
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2003). All Rights Reserved.
Abstract
This memo describes the full set of notations needed to represent a
text string in a Dial Sequence. A Dial Sequence is normally composed
of Dual Tone Multi Frequency (DTMF) elements, plus separators and
additional "actions" (such as "wait for dialtone", "pause for N
secs", etc.) which could be needed to successfully establish the
connection with the target service: this includes the cases where
subaddresses or DTMF menu navigation apply.
1. Introduction
Since the very first devices interacting with GSTN services appeared,
a need for a unique text string representation of commonly called
telephone numbers, and more generally DTMF sequences and actions, was
foreseen.
This memo describes the full text string representation method. This
specification was explicitly created to provide an easy, unique and
complete reference which MUST be used by all other specifications
needing a text string representation for a Dial Sequence.
The specification was collected directly from Dial Sequence
definitions which are already described in existing Standard Track
specifications (such as [6] [7] [8] [9]), and is fully synchronized
with them. Full compatibility is thus assured, and as a consequence,
this specification results in a compendium of existing definitions.
Allocchio Standards Track [Page 1]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
This notation is a fully compatible compendium of existing notations,
and should be used in all specifications needing a text string
representation of a Dial Sequence.
Although the commonly called "telephone numbers" are normally used to
generate a Dial Sequence when establishing a connection, the full
abstract E.164 addresses [2], i.e., the universal addressing on the
Global Switched Telephone Network (GSTN), have further elements which
cannot be dialled. Thus abstract E.164 addresses cannot be fully
converted into a Dial Sequence or fully represented using this
notation.
1.1. Terminology and Syntax conventions
In this document the formal definitions are described using ABNF
syntax, as defined in [3]. This memo also uses some of the "CORE
DEFINITIONS" defined in "APPENDIX A - CORE" of that document.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in BCP 14, RFC 2119 [4].
The following terms are also defined in this document:
Dial Sequence:
a series of DTMF elements and human or device "actions";
phone-string:
a text representation of a Dial Sequence;
GSTN address: a commonly called "telephone number" on the GSTN,
i.e., a diallable subset of an E.164 abstract address or any
private numbering schema diallable address;
gstn-phone:
a text representation of a GSTN address;
subaddr-string:
a text representation of a GSTN subaddress (which includes ISDN
subaddresses [2] and T.33 subaddresses [5]);
post-dial:
a text representation of a post dialling sequence.
Allocchio Standards Track [Page 2]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
2. The "Dial Sequence" definition
The possible elements composing a Dial Sequence can vary from a
minimum number, up to a really large and complex collection: in fact,
the sequences already needed to dial a gstn-phone, which is a subset
of the generic Dial Sequence, well represents this variety and
complexity of cases.
In particular, a Dial Sequence is composed by:
- "DTMF elements": normally available as "keys" on numeric keypads
of dialling devices;
- "actions": normally performed by the agent (human or device)
composing the Dial Sequence;
- "separators": used only to improve human readability of a Dial
Sequence.
2.1. The "phone-string" definition
The text representation of the Dial Sequence elements is defined in
the phone-string specification:
phone-string = 1*( DTMF / pause / tonewait / written-sep )
DTMF = ( DIGIT / "#" / "*" / "A" / "B" / "C" / "D" )
; special DTMF codes like "*", "#", "A", "B",
; "C", "D" are defined in [1].
; Important Note: these elements only apply for
; alphabetic strings used in DTMF operations.
; They are NOT applicable for the alphabetic
; characters that are mapped to digits on phone
; keypads in some countries.
pause = "p"
tonewait = "w"
written-sep = ( "-" / "." )
Note:
DTMF are the "DTMF elements", pause and tonewait are the "actions"
and written-sep are the "separators".
The "pause" and "tonewait" elements interpretation of the phone-
string depends on the specific devices and implementation using the
specification. Thus their exact meaning is not mandated in this
Allocchio Standards Track [Page 3]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
document. The next section provides some examples drawn from common
practice. Both "pause" and "tonewait" are case insensitive.
Implementation of "pause" and "tonewait":
- one instance of a "pause" SHOULD be interpreted as a pause of
one second between the preceding and succeeding dial string
elements;
- a "tonewait" SHOULD be interpreted as a pause that will last
until the calling party hears a dial tone or another indication
that more dial string characters may be processed. An off-hook
indication MAY also be interpreted as this kind of indication
(meaning that the audio channel has been opened to the
receiving party);
- because these characters are not a part of the GSTN subscriber
address (telephone number) per se, any dial string characters
that succeed either a "pause" or "tonewait" SHOULD be sent
using DTMF signalling.
The use of written-sep elements is allowed in order to improve human
readability of the phone-string. The written-sep are elements which
can be placed between dial elements, such as digits etc. Any
occurrences of written-sep elements in a phone-string MUST NOT result
in any action. Conformant implementations MAY drop or insert
written-sep into the phone-string they handle.
The phone-string definition is used in the following sections to
explicitly describe the encoding of some specific subcases where it
applies.
3. The "gstn-phone" definition
In order to access a GSTN address, a human or a device must perform a
Dial Sequence. Thus, a GSTN address can be represented using the
phone-string elements. In particular, diallable E.164 numeric
addresses [2] represent a limited subset of all possible GSTN
addresses, while the complete complex case needs a full encoding
schema, as it also includes a local or private addressing schema.
In order to describe this distinction and provide anyhow a complete
encoding schema, the following definition of "gstn-phone" is
provided:
gstn-phone = ( global-phone / local-phone )
Allocchio Standards Track [Page 4]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
3.1. The "global-phone" definition
The purpose of the global-phone element is to represent diallable
E.164 numeric addresses. As such, it uses a subset of a phone-string
definition only.
The syntax for a global-phone element is as follows:
global-phone = "+" 1*( DIGIT / written-sep )
Any other dialling schemes MUST NOT use the leading "+" defined here.
The "+" sign is strictly reserved for the standard "global-phone"
syntax, and, even if not specifically part of the phone-string
definition, it is needed to uniquely label a global-phone.
3.2. The "local-phone" definition
The local-phone element is intended to represent the set of possible
cases where the global-phone numbering schema does not apply. Given
the different and complex conventions currently being used in the
GSTN system, the local-phone definition supports a large number of
elements.
The detailed syntax for local-phone elements is as follows:
local-phone = [ exit-code ] dial-number
local-phone =/ exit-code [ dial-number ]
exit-code = phone-string
; this will include elements such as the digit to
; access outside line, the long distance carrier
; access code, the access password to the service,
; etc...
dial-number = phone-string
; this is in many cases composed of different elements
; such as the local phone number, the area code
; (if needed), the international country code
; (if needed), etc...
Notes:
The "+" character is reserved for use in a global-phone and MUST
NOT be used in a local-phone string;
Please note that a local-phone string MUST NOT be a null string,
i.e., at least an exit-code, or a dial-number or both MUST be
present.
Allocchio Standards Track [Page 5]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
4. The "subaddr-string" definition
In GSTN service, there are cases where a subaddress is required to
specify the final destination. To specify these subaddresses, a Dial
Sequence is also used, and thus the "subaddr-string" can be encoded
as:
subaddr-string = phone-string
Note:
Within actual uses of subaddresses, some specific services can
limit the possible set of phone-string elements allowed. In
particular, there are ISDN subaddresses [2] [8], which restrict
the phone-string elements to 1*( DIGIT / written-sep ) and service
specific subaddresses, like the fax service T.33 subaddress [5]
[7], which restrict phone-string elements to 1*( DIGIT ).
5. The "post-dial" definition
In some cases, after the connection with the destination GSTN device
has been established, a further dialling sequence is required to
access further services. A typical example is an automated menu-
driven service using DTMF sequences. These cases may be represented
using the "post-dial" definition below:
post-dial = phone-string
6. Examples
In order to clarify the specification we present, here are a limited
set of examples. Please note that all the examples are for
illustration purposes only.
A GSTN address in Italy, dialled from U.S.A., using local-phone,
without written-sep:
01139040226338
A GSTN address in Germany, using global-phone and written-sep ".":
+49.81.7856345
A GSTN address in U.S.A. using global-phone and written-sep "-":
+1-202-455-7622
Allocchio Standards Track [Page 6]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
A post-dial sequence, pausing, dialling 1, waiting for dial tone,
dialling 7005393, waiting again for dial tone and dialling 373; note
the use of four "p" elements (pppp) to specify a longer initial
pause:
pppp1w7005393w373
A Dial Sequence in Italy (long distance call), using local-phone,
with exit-code "9", long distance access "0", area code "40", pause
"p" and written-sep ".":
9p040p22.63.38
A Dial Sequence using exit-code "0", a wait for dial tone, local-
phone for an International "800" toll-free number dialled from
Belgium (international prefix "00"), and a post-dial sequence to
access a voice mailbox with userID "334422" and Personal
Identification Number (PIN) code "1234":
0w00800-39380023pp334422p1234
7. Conclusions
This proposal creates a full standard text encoding for Dial
Sequences, including GSTN and diallable E.164 addresses, and thus
provides a unique common representation method both for standard
protocols and applications.
Some definitions, like these corresponding to an alias of the generic
phone-string element, are somewhat a theoretical distinction; however
they are useful to provide a more subtle distinction, allowing other
specifications to be more exact in a consistent way.
The proposal is consistent with existing standard specifications.
8. Security Considerations
This document specifies a means to represent Dial Sequences, which
could include GSTN addresses and private codes sequences, like
Personal Identification Numbers, to access special services. As
these text strings could be transmitted without encoding inside
protocols or applications services, this could allow unauthorized
people to gain access to these codes. Users SHOULD be provided
methods to prevent this disclosure, like code encryption, or
masquerading techniques: out-of-band communication of authorization
information or use of encrypted data in special fields are the
available non-standard techniques.
Allocchio Standards Track [Page 7]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
9. Collected ABNF Syntax
In this section we provide a summary of ABNF specifications.
phone-string = 1*( DTMF / pause / tonewait / written-sep )
DTMF = ( DIGIT / "#" / "*" / "A" / "B" / "C" / "D" )
written-sep = ( "-" / "." )
pause = "p"
tonewait = "w"
gstn-phone = ( global-phone / local-phone )
global-phone = "+" 1*( DIGIT / written-sep )
local-phone = [ exit-code ] dial-number
local-phone =/ exit-code [ dial-number ]
exit-code = phone-string
dial-number = phone-string
subaddr-string = phone-string
post-dial = phone-string
10. References
10.1. Normative References
[1] ETSI I-ETS 300,380 - Universal Personal Telecommunication (UPT):
Access Devices Dual Tone Multi Frequency (DTMF) sender for
acoustical coupling to the microphone of a handset telephone
(March 1995).
[2] ITU E.164 - The International Public Telecommunication Numbering
Plan E.164/I.331 (May 1997).
[3] Crocker, D. Ed. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", RFC 2234, November 1997.
[4] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", BCP 14, RFC 2119, March 1997.
Allocchio Standards Track [Page 8]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
[5] ITU T.33 - Facsimile routing utilizing the subaddress;
recommendation T.33 (July, 1996).
10.2. Informative References
[6] Allocchio, C., "Minimal GSTN address format in Internet Mail",
RFC 3191, October 2001.
[7] Allocchio, C., "Minimal FAX address format in Internet Mail", RFC
3192, October 2001.
[8] Allocchio, C., "GSTN Address Element Extensions in E-mail
Services", RFC 2846, June 2000.
[9] Vaha-Sipila, A., "URLs for Telephone Calls", RFC 2806, April
2000.
11. Author's Address
Claudio Allocchio
GARR
c/o Sincrotrone Trieste
SS 14 Km 163.5 Basovizza
I 34012 Trieste
Italy
Phone: +39 040 3758523
Fax: +39 040 3758565
X.400: C=it;A=garr;P=garr;S=Allocchio;G=Claudio;
EMail: Claudio.Allocchio@garr.it
Allocchio Standards Track [Page 9]
^L
RFC 3601 Dial Sequences and GSTN / E.164 Addresses September 2003
12. Full Copyright Statement
Copyright (C) The Internet Society (2003). 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 assignees.
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.
Allocchio Standards Track [Page 10]
^L
|