Generic digits

Associated variants: ANSI 92, ANSI 95, BICC, ETSI V2, ETSI V3, ITU White, ITU 97

Provides additional numeric data associated with supplemental services such as authorization code, PIN number, or account code.

typedef struct _genDigits    /* Generic Digits   */
{
    ElmtHdr eh;              /* element header   */
    TknU8   typeOfDigits;    /* type of digits   */
    TknU8   encodeScheme;    /* encoding scheme  */
    TknStr  digits;          /* digits           */
} SiGenDigits;

The fields in the SiGenDigits structure are encoded as follows:

Field

Value

typeOfDigits

Type of digits. Defined values:

0x00 = ACCTCODE   Account code

0x00 = AUTHCODE   Authorization code

0x02 = PRIVNETMARK   Private networking traveling class mark

0x03 = BUSCOMMGRID   Business communication group identity

encodeScheme

Encoding scheme. Defined values:

0x00 = ENC_BCD_EVEN   Even number of digits

0x01 = ENC_BCD_ODD   Odd number of digits

0x02 = ENC_IA5   IA5 character

0x03 = ENC_BIN   Binary coded

digits

Digits are encoded as shown in the following tables.


For the addrSig field, the actual address digits are encoded as follows:

Octet 1

2nd address digit

1st (most significant) address digit

...

...

...

Octet n

m + 1th address digit or filler

mth address digit


where each digit is encoded with the following bit pattern:

Bit pattern

Digit/signal

0000

0

0001

1

0010

2

0011

3

0100

4

0101

5

0110

6

0111

7

1000

8

1001

9

1010

spare

1011

code 11

1100

code 12

1101

spare

1110

spare

1111

ST


Tokens for the ANSI, BICC, and ETSI variants

Token

ANSI 92

ANSI 95

BICC

ETSI V2

ETSI V3

typeOfDigits

*

*

*

*

*

encodeScheme

*

*

*

*

*

digits

*

*

*

*

*


Tokens for the ITU variants

Token

ITU White

ITU 97

typeOfDigits

*

*

encodeScheme

*

*

digits

*

*