Represents a called party address or calling party address.
typedef struct sccpAddr /* Called/Calling Party Address */
{
U8 presind; /* presence indicator */
U8 spare1; /* spare for alignment */
U8 swType; /* switch type (ANSI/ITU-T) */
U8 subsystemInd; /* subsystem indicator */
U8 pointCodeInd; /* point code indicator */
U8 glTitleInd; /* global title indicator */
U8 routingInd; /* routing indicator */
U32 pointCode; /* point code */
U8 natIntInd; /* national/international ind. */
U8 subsystem; /* subsystem number */
U8 glTransType; /* global title translation type */
U8 encoding; /* address encoding scheme */
U8 numPlan; /* numbering plan */
U8 natAddrInd; /* nature of address indicator */
U8 spare2; /* spare for alignment */
U8 glTitleLen; /* length of global title */
U8 glTitle[MAX_GLT_SZ]; /* Global Title */
} SccpAddr;
The fields in the SccpAddr structure are encoded as follows:
Field |
Value |
presind |
0 = NOT_PRESENT Field is not present in incoming message or not included in outgoing message 1 = PRESENT Field is present in incoming message or to be included in outgoing message |
swtype |
1 = SW_ITU ITU operation 2 = SW_ANSI ANSI operation |
subsystemInd |
0x00 = SUBSYS_NONE No subsystem number in address 0x01 = SUBSYS_INC Address contains subsystem number |
pointCodeInd |
0x00 = PTCODE_NONE No point code in address 0x01 = PTCODE_INC Address contains point code |
glTitleInd |
0x00 = GLT_NONE No global title in address 0x01 = GLT_TT_NP_E ANSI only - Global title includes translation type, numbering plan, and encoding 0x02 = GLT_TT ANSI only - Global title includes translation type only 0x01 = GLT_ITU_FMT1 ITU only - Global title includes encoding and nature of address only 0x02 = GLT_ITU_FMT2 ITU only - Global title includes translation type only 0x03 = GLT_ITU_FMT3 ITU only - Global title includes translation type, numbering plan, and encoding 0x04 = GLT_ITU_FMT4 ITU only - Global title includes translation type, numbering plan, encoding, and nature of address |
routingInd |
0x00 = ROUTE_GLT Route uses global title only 0x01 = ROUTE_PC_SN Route uses point code + SSN |
pointCode |
A 32-bit quantity of which the least significant 24 bits (ANSI or ITU-T) or the least significant 14 bits (ITU-T) are used. For example, an ANSI point code represented by the decimal string 1.4.7 is encoded as hex 0x00010407. If a point code is not included in the called address, then the default point code is used. |
natIntInd |
0x00 = ADDRIND_INT International address indicator 0x01 = ADDRIND_NAT National address indicator |
subsystem |
0x00 = SUBSYS_NONE Subsystem unknown or not used 0x01 = SUBSYS_SCCPMGMT SCCP management subsystem 0x03 = SUBSYS_ISUP ISUP subsystem 0x04 = SUBSYS_OMAP Operations, maintenance, and administration 0x05 = SUBSYS_MAP Mobile application part 0x06 = SUBSYS_HLR Home location register 0x07 = SUBSYS_VLR Visitor location register 0x08 = SUBSYS_MSC Mobile switching center 0x09 = SUBSYS_EIR Equipment identification register 0x0A = SUBSYS_AUTH Authentication center Other values in range 0x0B - 0xFF are also allowed. |
glTransType |
Translation type when the global title indicator field (glTitleInd) specifies that the global title includes translation type. Any 8-bit value [0x00 - 0xFF] is allowed. |
encoding |
Specifies whether the number of digits in the addrSig field is even or odd. If the number of digits is even, the last octet contains 2 digits. If the number of digits is odd, the last octet contains only one digit and the most significant 4 bits are not used. 0x00 = ENC_UNKNOWN Encoding unknown 0x01 = ENC_BCD_ODD BCD, odd number of digits 0x02 = ENC_BCD_EVEN BCD, even number of digits |
numPlan |
0x00 = NP_UNK Unknown 0x01 = NP_ISDN ISDN/telephony - E.164/E.163 0x02 = NP_TEL Telephony numbering - E.163 0x03 = NP_DATA Data numbering - X.121 0x04 = NP_TELEX Telex numbering - recommendation F.69 0x05 = NP_MARITIME Maritime mobile numbering 0x06 = NP_LANDMOB Land mobile numbering 0x07 = NP_ISDNMOB ISDN/mobile numbering 0x08 = NP_NATIONAL National standard numbering 0x09 = NP_PRIVATE Private numbering 0x0f = NP_EXT Reserved for extension |
natAddrInd |
0x01 = NATIND_SUBS Subscriber number 0x03 = NATIND_NATL National number 0x04 = NATIND_INTNATL International number |
glTitleLen |
Encoded as the byte length of the BCD-encoded global title. For example, a ten-digit global title is BCD-encoded as a value with a five-byte length. glTitleLen is set to five. |
glTitle |
The BCD-encoded global title. |
Global title is encoded as follows:
Octet 1 |
2nd address digit |
1st (most significant) address digit |
... |
... |
... |
Octet n |
m + 1th address digit or filler |
mth address digit |
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 |