blob: 3e14620b0eeac723d5fedc6e7886cbecff0ea1ec [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',
Supreeth Herle4d9e6be2020-03-24 12:13:45 +0100138 112: 'eCall Data over IMS',
139 113: 'URI support for SMS-PP DOWNLOAD as defined in 3GPP TS 31.111 [12]',
140 114: 'From Preferred',
141 115: 'IMS configuration data',
142 116: 'TV configuration',
143 117: '3GPP PS Data Off',
144 118: '3GPP PS Data Off Service List',
145 119: 'V2X',
146 120: 'XCAP Configuration Data',
147 121: 'EARFCN list for MTC/NB-IOT UEs',
148 122: '5GS Mobility Management Information',
149 123: '5G Security Parameters',
150 124: 'Subscription identifier privacy support',
151 125: 'SUCI calculation by the USIM',
152 126: 'UAC Access Identities support',
153 127: 'Expect control plane-based Steering of Roaming information during initial registration in VPLMN',
154 128: 'Call control on PDU Session by USIM',
Sebastian Viviani0dc8f692020-05-29 00:14:55 +0100155}
156
Sebastian Vivianie61170c2020-06-03 08:57:00 +0100157LOCI_STATUS_map = {
158 0: 'updated',
159 1: 'not updated',
160 2: 'plmn not allowed',
161 3: 'locatation area not allowed'
162}
Sebastian Viviani0dc8f692020-05-29 00:14:55 +0100163EF_USIM_ADF_map = {
164 'LI': '6F05',
165 'ARR': '6F06',
166 'IMSI': '6F07',
167 'Keys': '6F08',
168 'KeysPS': '6F09',
169 'DCK': '6F2C',
170 'HPPLMN': '6F31',
171 'CNL': '6F32',
172 'ACMmax': '6F37',
173 'UST': '6F38',
174 'ACM': '6F39',
175 'FDN': '6F3B',
176 'SMS': '6F3C',
177 'GID1': '6F3E',
178 'GID2': '6F3F',
179 'MSISDN': '6F40',
180 'PUCT': '6F41',
181 'SMSP': '6F42',
182 'SMSS': '6F42',
183 'CBMI': '6F45',
184 'SPN': '6F46',
185 'SMSR': '6F47',
186 'CBMID': '6F48',
187 'SDN': '6F49',
188 'EXT2': '6F4B',
189 'EXT3': '6F4C',
190 'BDN': '6F4D',
191 'EXT5': '6F4E',
192 'CCP2': '6F4F',
193 'CBMIR': '6F50',
194 'EXT4': '6F55',
195 'EST': '6F56',
196 'ACL': '6F57',
197 'CMI': '6F58',
198 'START-HFN': '6F5B',
199 'THRESHOLD': '6F5C',
200 'PLMNwAcT': '6F60',
201 'OPLMNwAcT': '6F61',
202 'HPLMNwAcT': '6F62',
203 'PSLOCI': '6F73',
204 'ACC': '6F78',
205 'FPLMN': '6F7B',
206 'LOCI': '6F7E',
207 'ICI': '6F80',
208 'OCI': '6F81',
209 'ICT': '6F82',
210 'OCT': '6F83',
211 'AD': '6FAD',
212 'VGCS': '6FB1',
213 'VGCSS': '6FB2',
214 'VBS': '6FB3',
215 'VBSS': '6FB4',
216 'eMLPP': '6FB5',
217 'AAeM': '6FB6',
218 'ECC': '6FB7',
219 'Hiddenkey': '6FC3',
220 'NETPAR': '6FC4',
221 'PNN': '6FC5',
222 'OPL': '6FC6',
223 'MBDN': '6FC7',
224 'EXT6': '6FC8',
225 'MBI': '6FC9',
226 'MWIS': '6FCA',
227 'CFIS': '6FCB',
228 'EXT7': '6FCC',
229 'SPDI': '6FCD',
230 'MMSN': '6FCE',
231 'EXT8': '6FCF',
232 'MMSICP': '6FD0',
233 'MMSUP': '6FD1',
234 'MMSUCP': '6FD2',
235 'NIA': '6FD3',
236 'VGCSCA': '6FD4',
237 'VBSCA': '6FD5',
238 'GBAP': '6FD6',
239 'MSK': '6FD7',
240 'MUK': '6FD8',
241 'EHPLMN': '6FD9',
242 'GBANL': '6FDA',
243 'EHPLMNPI': '6FDB',
244 'LRPLMNSI': '6FDC',
245 'NAFKCA': '6FDD',
246 'SPNI': '6FDE',
247 'PNNI': '6FDF',
248 'NCP-IP': '6FE2',
249 'EPSLOCI': '6FE3',
250 'EPSNSC': '6FE4',
251 'UFC': '6FE6',
252 'UICCIARI': '6FE7',
253 'NASCONFIG': '6FE8',
254 'PWC': '6FEC',
255 'FDNURI': '6FED',
256 'BDNURI': '6FEE',
257 'SDNURI': '6FEF',
258 'IWL': '6FF0',
259 'IPS': '6FF1',
260 'IPD': '6FF2',
261 'ePDGId': '6FF3',
262 'ePDGSelection': '6FF4',
263 'ePDGIdEm': '6FF5',
264 'ePDGSelectionEm': '6FF6',
265}