N
ntcn
Guest
In description of SMS PDU (available for me) it is specified, that the code 81h is equal to national number, and 91h - international (begins with "+"), for other codes suggest to look GSM 04.08, chapter 10.5.4.6, I could not find GSM 04.08, but to me have come SMS with type D0h and there instead of the simple numbers (4 bits per symbol) was latin word in the 7-bit coding ! And on the screen in phone the field "from" was not number, and a word. Where it is possible to take the list of codes (except for D0/81/91) ?
P.S. I have found the source code of the program for writing SMS PDU, but there is specified:
===
// Type of Number sub-field
DA_TON_UNKNOWN 0x80
DA_TON_INTERNATIONAL 0x90
DA_TON_NATIONAL 0xA0
DA_TON_NETWORK_SPECIFIC 0xB0
DA_TON_SUBSCRIBER 0xC0
DA_TON_ALPHANUMERIC 0xD0
DA_TON_ABBREVIATED 0xE0
DA_TON_RESERVED 0xF0
===
But national number has type 81h (instead 0xA0) !?
P.P.S. Here an example of the usual message (from S45i, a field of length of a line of the sender in 15DD2B, type of a line of the sender - 15DD2C, sender: "674", time in format "yy mm dd hh mm ss" in 15DD31):
===
15DD20: F2 00 9B 04 03 00 00 00 01 9B 04 03 B9 76 F4 00
15DD30: 00 40 90 02 02 00 93 61 A0 CB BA 7C 0E 8A 81 AA
===
Here an example of the message with type D0h (sender: "BeeLineInfo"):
===
15DD20: F2 00 76 24 14 00 00 00 01 76 24 14 D0 C2 72 99
15DD30: 9D 76 97 93 6E F3 1B 00 00 40 90 02 81 93 90 61
===
P.S. I have found the source code of the program for writing SMS PDU, but there is specified:
===
// Type of Number sub-field
DA_TON_UNKNOWN 0x80
DA_TON_INTERNATIONAL 0x90
DA_TON_NATIONAL 0xA0
DA_TON_NETWORK_SPECIFIC 0xB0
DA_TON_SUBSCRIBER 0xC0
DA_TON_ALPHANUMERIC 0xD0
DA_TON_ABBREVIATED 0xE0
DA_TON_RESERVED 0xF0
===
But national number has type 81h (instead 0xA0) !?
P.P.S. Here an example of the usual message (from S45i, a field of length of a line of the sender in 15DD2B, type of a line of the sender - 15DD2C, sender: "674", time in format "yy mm dd hh mm ss" in 15DD31):
===
15DD20: F2 00 9B 04 03 00 00 00 01 9B 04 03 B9 76 F4 00
15DD30: 00 40 90 02 02 00 93 61 A0 CB BA 7C 0E 8A 81 AA
===
Here an example of the message with type D0h (sender: "BeeLineInfo"):
===
15DD20: F2 00 76 24 14 00 00 00 01 76 24 14 D0 C2 72 99
15DD30: 9D 76 97 93 6E F3 1B 00 00 40 90 02 81 93 90 61
===