blob: 1137080bddf697827dae536484500f7dbb2c4e7b (
plain)
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
|
[i] Testing gsm0480_extract_ie_by_tag()
[?] REGISTER message with Facility IE (len=21): a1 13 02 01 03 02 01 3b 30 0b 04 01 0f 04 06 2a d5 4c 16 1b 01
[?] REGISTER message with SS version IE (len=1): 00
[?] FACILITY message with Facility IE (len=18): a2 10 02 01 01 30 0b 02 01 3c 30 06 04 01 0f 04 01 32
[?] RELEASE COMPLETE message with Facility IE (len=8): a3 06 02 01 05 02 01 24
[i] Testing gsm0480_parse_facility_ie()
[?] FACILITY message with Facility IE (len=18): a2 10 02 01 01 30 0b 02 01 3c 30 06 04 01 0f 04 01 32
[?] InvokeID: expected 0x01, decoded 0x01
[?] Operation code: expected 0x3c, decoded 0x3c
[?] Data Coding Scheme: expected 0x0f, decoded 0x0f
[?] Data length: expected 0x01, decoded 0x01
[?] Data: expected 32, decoded 32
Tested if it still works. Text was: **321#
interrogateSS CFU text..'' code 33
Testing parsing a USSD request and truncated versions
Result for len=28 is 1
Result for len=27 is 1
Result for len=26 is 1
Result for len=25 is 1
Result for len=24 is 0
Result for len=23 is 0
Result for len=22 is 0
Result for len=21 is 0
Result for len=20 is 0
Result for len=19 is 0
Result for len=18 is 0
Result for len=17 is 0
Result for len=16 is 0
Result for len=15 is 0
Result for len=14 is 0
Result for len=13 is 0
Result for len=12 is 0
Result for len=11 is 0
Result for len=10 is 0
Result for len=9 is 0
Result for len=8 is 0
Result for len=7 is 0
Result for len=6 is 0
Result for len=5 is 0
Result for len=4 is 0
Result for len=3 is 0
Mangling the container now
Result for len=28 is 0
Result for len=27 is 0
Result for len=26 is 1
Result for len=25 is 1
Result for len=24 is 0
Result for len=23 is 0
Result for len=22 is 0
Result for len=21 is 0
Result for len=20 is 0
Result for len=19 is 0
Result for len=18 is 0
Result for len=17 is 0
Result for len=16 is 0
Result for len=15 is 0
Result for len=14 is 0
Result for len=13 is 0
Result for len=12 is 0
Result for len=11 is 0
Result for len=10 is 0
Result for len=9 is 0
Result for len=8 is 0
Result for len=7 is 0
Result for len=6 is 0
Result for len=5 is 1
<CR> case test for 7 bit encode
original = 30 31 32 33 34 35 36 37
encoded = b0 98 6c 46 ab d9 6e
decoded = 30 31 32 33 34 35 36 37
original = 30 31 32 33 34 35 36
encoded = b0 98 6c 46 ab d9 1a
decoded = 30 31 32 33 34 35 36
original = 30 31 32 33 34 35 36 37 0d
encoded = b0 98 6c 46 ab d9 6e 0d
decoded = 30 31 32 33 34 35 36 37 0d
original = 30 31 32 33 34 35 36 0d
encoded = b0 98 6c 46 ab d9 1a 0d
decoded = 30 31 32 33 34 35 36 0d 0d
original = 30 31 32 33 34 35 0d
encoded = b0 98 6c 46 ab 35 1a
decoded = 30 31 32 33 34 35 0d
Checking GSM 04.80 USSD message generation.
original =
encoded =
decoded =
Created unstructuredSS_Notify (0x00): 30 08 04 01 0f 04 00 04 01 00
original = 66 6f 72 74 79 2d 74 77 6f
encoded = e6 b7 9c 9e 6f d1 ef 6f
decoded = 66 6f 72 74 79 2d 74 77 6f
Created unstructuredSS_Notify (0x42): 30 10 04 01 0f 04 08 e6 b7 9c 9e 6f d1 ef 6f 04 01 42
|