blob: 215ed4c4e861d4fc09c4fc918eae0a17e585a2a9 [file] [log] [blame]
Supreeth Herle475dcaa2020-03-20 18:57:39 +01001#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4"""
5Various constants from ETSI TS 131 102
6"""
7
8#
9# Copyright (C) 2020 Supreeth Herle <herlesupreeth@gmail.com>
10#
11# This program is free software: you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation, either version 2 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program. If not, see <http://www.gnu.org/licenses/>.
23#
24
25# Mapping between USIM Service Number and its description
26EF_UST_map = {
27 1: 'Local Phone Book',
28 2: 'Fixed Dialling Numbers (FDN)',
29 3: 'Extension 2',
30 4: 'Service Dialling Numbers (SDN)',
31 5: 'Extension3',
32 6: 'Barred Dialling Numbers (BDN)',
33 7: 'Extension4',
34 8: 'Outgoing Call Information (OCI and OCT)',
35 9: 'Incoming Call Information (ICI and ICT)',
36 10: 'Short Message Storage (SMS)',
37 11: 'Short Message Status Reports (SMSR)',
38 12: 'Short Message Service Parameters (SMSP)',
39 13: 'Advice of Charge (AoC)',
40 14: 'Capability Configuration Parameters 2 (CCP2)',
41 15: 'Cell Broadcast Message Identifier',
42 16: 'Cell Broadcast Message Identifier Ranges',
43 17: 'Group Identifier Level 1',
44 18: 'Group Identifier Level 2',
45 19: 'Service Provider Name',
46 20: 'User controlled PLMN selector with Access Technology',
47 21: 'MSISDN',
48 22: 'Image (IMG)',
49 23: 'Support of Localised Service Areas (SoLSA)',
50 24: 'Enhanced Multi-Level Precedence and Pre-emption Service',
51 25: 'Automatic Answer for eMLPP',
52 26: 'RFU',
53 27: 'GSM Access',
54 28: 'Data download via SMS-PP',
55 29: 'Data download via SMS-CB',
56 30: 'Call Control by USIM',
57 31: 'MO-SMS Control by USIM',
58 32: 'RUN AT COMMAND command',
59 33: 'shall be set to 1',
60 34: 'Enabled Services Table',
61 35: 'APN Control List (ACL)',
62 36: 'Depersonalisation Control Keys',
63 37: 'Co-operative Network List',
64 38: 'GSM security context',
65 39: 'CPBCCH Information',
66 40: 'Investigation Scan',
67 41: 'MexE',
68 42: 'Operator controlled PLMN selector with Access Technology',
69 43: 'HPLMN selector with Access Technology',
70 44: 'Extension 5',
71 45: 'PLMN Network Name',
72 46: 'Operator PLMN List',
73 47: 'Mailbox Dialling Numbers',
74 48: 'Message Waiting Indication Status',
75 49: 'Call Forwarding Indication Status',
76 50: 'Reserved and shall be ignored',
77 51: 'Service Provider Display Information',
78 52: 'Multimedia Messaging Service (MMS)',
79 53: 'Extension 8',
80 54: 'Call control on GPRS by USIM',
81 55: 'MMS User Connectivity Parameters',
82 56: 'Network\'s indication of alerting in the MS (NIA)',
83 57: 'VGCS Group Identifier List (EFVGCS and EFVGCSS)',
84 58: 'VBS Group Identifier List (EFVBS and EFVBSS)',
85 59: 'Pseudonym',
86 60: 'User Controlled PLMN selector for I-WLAN access',
87 61: 'Operator Controlled PLMN selector for I-WLAN access',
88 62: 'User controlled WSID list',
89 63: 'Operator controlled WSID list',
90 64: 'VGCS security',
91 65: 'VBS security',
92 66: 'WLAN Reauthentication Identity',
93 67: 'Multimedia Messages Storage',
94 68: 'Generic Bootstrapping Architecture (GBA)',
95 69: 'MBMS security',
96 70: 'Data download via USSD and USSD application mode',
97 71: 'Equivalent HPLMN',
98 72: 'Additional TERMINAL PROFILE after UICC activation',
99 73: 'Equivalent HPLMN Presentation Indication',
100 74: 'Last RPLMN Selection Indication',
101 75: 'OMA BCAST Smart Card Profile',
102 76: 'GBA-based Local Key Establishment Mechanism',
103 77: 'Terminal Applications',
104 78: 'Service Provider Name Icon',
105 79: 'PLMN Network Name Icon',
106 80: 'Connectivity Parameters for USIM IP connections',
107 81: 'Home I-WLAN Specific Identifier List',
108 82: 'I-WLAN Equivalent HPLMN Presentation Indication',
109 83: 'I-WLAN HPLMN Priority Indication',
110 84: 'I-WLAN Last Registered PLMN',
111 85: 'EPS Mobility Management Information',
112 86: 'Allowed CSG Lists and corresponding indications',
113 87: 'Call control on EPS PDN connection by USIM',
114 88: 'HPLMN Direct Access',
115 89: 'eCall Data',
116 90: 'Operator CSG Lists and corresponding indications',
117 91: 'Support for SM-over-IP',
118 92: 'Support of CSG Display Control',
119 93: 'Communication Control for IMS by USIM',
120 94: 'Extended Terminal Applications',
121 95: 'Support of UICC access to IMS',
122 96: 'Non-Access Stratum configuration by USIM',
123 97: 'PWS configuration by USIM',
124 98: 'RFU',
125 99: 'URI support by UICC',
126 100: 'Extended EARFCN support',
127 101: 'ProSe',
128 102: 'USAT Application Pairing',
129 103: 'Media Type support',
130 104: 'IMS call disconnection cause',
131 105: 'URI support for MO SHORT MESSAGE CONTROL',
132 106: 'ePDG configuration Information support',
133 107: 'ePDG configuration Information configured',
134 108: 'ACDC support',
135 109: 'MCPTT',
136 110: 'ePDG configuration Information for Emergency Service support',
137 111: 'ePDG configuration Information for Emergency Service configured',
Sebastian Viviani0dc8f692020-05-29 00:14:55 +0100138}
139
Sebastian Vivianie61170c2020-06-03 08:57:00 +0100140LOCI_STATUS_map = {
141 0: 'updated',
142 1: 'not updated',
143 2: 'plmn not allowed',
144 3: 'locatation area not allowed'
145}
Sebastian Viviani0dc8f692020-05-29 00:14:55 +0100146EF_USIM_ADF_map = {
147 'LI': '6F05',
148 'ARR': '6F06',
149 'IMSI': '6F07',
150 'Keys': '6F08',
151 'KeysPS': '6F09',
152 'DCK': '6F2C',
153 'HPPLMN': '6F31',
154 'CNL': '6F32',
155 'ACMmax': '6F37',
156 'UST': '6F38',
157 'ACM': '6F39',
158 'FDN': '6F3B',
159 'SMS': '6F3C',
160 'GID1': '6F3E',
161 'GID2': '6F3F',
162 'MSISDN': '6F40',
163 'PUCT': '6F41',
164 'SMSP': '6F42',
165 'SMSS': '6F42',
166 'CBMI': '6F45',
167 'SPN': '6F46',
168 'SMSR': '6F47',
169 'CBMID': '6F48',
170 'SDN': '6F49',
171 'EXT2': '6F4B',
172 'EXT3': '6F4C',
173 'BDN': '6F4D',
174 'EXT5': '6F4E',
175 'CCP2': '6F4F',
176 'CBMIR': '6F50',
177 'EXT4': '6F55',
178 'EST': '6F56',
179 'ACL': '6F57',
180 'CMI': '6F58',
181 'START-HFN': '6F5B',
182 'THRESHOLD': '6F5C',
183 'PLMNwAcT': '6F60',
184 'OPLMNwAcT': '6F61',
185 'HPLMNwAcT': '6F62',
186 'PSLOCI': '6F73',
187 'ACC': '6F78',
188 'FPLMN': '6F7B',
189 'LOCI': '6F7E',
190 'ICI': '6F80',
191 'OCI': '6F81',
192 'ICT': '6F82',
193 'OCT': '6F83',
194 'AD': '6FAD',
195 'VGCS': '6FB1',
196 'VGCSS': '6FB2',
197 'VBS': '6FB3',
198 'VBSS': '6FB4',
199 'eMLPP': '6FB5',
200 'AAeM': '6FB6',
201 'ECC': '6FB7',
202 'Hiddenkey': '6FC3',
203 'NETPAR': '6FC4',
204 'PNN': '6FC5',
205 'OPL': '6FC6',
206 'MBDN': '6FC7',
207 'EXT6': '6FC8',
208 'MBI': '6FC9',
209 'MWIS': '6FCA',
210 'CFIS': '6FCB',
211 'EXT7': '6FCC',
212 'SPDI': '6FCD',
213 'MMSN': '6FCE',
214 'EXT8': '6FCF',
215 'MMSICP': '6FD0',
216 'MMSUP': '6FD1',
217 'MMSUCP': '6FD2',
218 'NIA': '6FD3',
219 'VGCSCA': '6FD4',
220 'VBSCA': '6FD5',
221 'GBAP': '6FD6',
222 'MSK': '6FD7',
223 'MUK': '6FD8',
224 'EHPLMN': '6FD9',
225 'GBANL': '6FDA',
226 'EHPLMNPI': '6FDB',
227 'LRPLMNSI': '6FDC',
228 'NAFKCA': '6FDD',
229 'SPNI': '6FDE',
230 'PNNI': '6FDF',
231 'NCP-IP': '6FE2',
232 'EPSLOCI': '6FE3',
233 'EPSNSC': '6FE4',
234 'UFC': '6FE6',
235 'UICCIARI': '6FE7',
236 'NASCONFIG': '6FE8',
237 'PWC': '6FEC',
238 'FDNURI': '6FED',
239 'BDNURI': '6FEE',
240 'SDNURI': '6FEF',
241 'IWL': '6FF0',
242 'IPS': '6FF1',
243 'IPD': '6FF2',
244 'ePDGId': '6FF3',
245 'ePDGSelection': '6FF4',
246 'ePDGIdEm': '6FF5',
247 'ePDGSelectionEm': '6FF6',
248}