blob: 473e595adca66357fdb069aaafc6927ac0bb80e2 [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
140EF_USIM_ADF_map = {
141 'LI': '6F05',
142 'ARR': '6F06',
143 'IMSI': '6F07',
144 'Keys': '6F08',
145 'KeysPS': '6F09',
146 'DCK': '6F2C',
147 'HPPLMN': '6F31',
148 'CNL': '6F32',
149 'ACMmax': '6F37',
150 'UST': '6F38',
151 'ACM': '6F39',
152 'FDN': '6F3B',
153 'SMS': '6F3C',
154 'GID1': '6F3E',
155 'GID2': '6F3F',
156 'MSISDN': '6F40',
157 'PUCT': '6F41',
158 'SMSP': '6F42',
159 'SMSS': '6F42',
160 'CBMI': '6F45',
161 'SPN': '6F46',
162 'SMSR': '6F47',
163 'CBMID': '6F48',
164 'SDN': '6F49',
165 'EXT2': '6F4B',
166 'EXT3': '6F4C',
167 'BDN': '6F4D',
168 'EXT5': '6F4E',
169 'CCP2': '6F4F',
170 'CBMIR': '6F50',
171 'EXT4': '6F55',
172 'EST': '6F56',
173 'ACL': '6F57',
174 'CMI': '6F58',
175 'START-HFN': '6F5B',
176 'THRESHOLD': '6F5C',
177 'PLMNwAcT': '6F60',
178 'OPLMNwAcT': '6F61',
179 'HPLMNwAcT': '6F62',
180 'PSLOCI': '6F73',
181 'ACC': '6F78',
182 'FPLMN': '6F7B',
183 'LOCI': '6F7E',
184 'ICI': '6F80',
185 'OCI': '6F81',
186 'ICT': '6F82',
187 'OCT': '6F83',
188 'AD': '6FAD',
189 'VGCS': '6FB1',
190 'VGCSS': '6FB2',
191 'VBS': '6FB3',
192 'VBSS': '6FB4',
193 'eMLPP': '6FB5',
194 'AAeM': '6FB6',
195 'ECC': '6FB7',
196 'Hiddenkey': '6FC3',
197 'NETPAR': '6FC4',
198 'PNN': '6FC5',
199 'OPL': '6FC6',
200 'MBDN': '6FC7',
201 'EXT6': '6FC8',
202 'MBI': '6FC9',
203 'MWIS': '6FCA',
204 'CFIS': '6FCB',
205 'EXT7': '6FCC',
206 'SPDI': '6FCD',
207 'MMSN': '6FCE',
208 'EXT8': '6FCF',
209 'MMSICP': '6FD0',
210 'MMSUP': '6FD1',
211 'MMSUCP': '6FD2',
212 'NIA': '6FD3',
213 'VGCSCA': '6FD4',
214 'VBSCA': '6FD5',
215 'GBAP': '6FD6',
216 'MSK': '6FD7',
217 'MUK': '6FD8',
218 'EHPLMN': '6FD9',
219 'GBANL': '6FDA',
220 'EHPLMNPI': '6FDB',
221 'LRPLMNSI': '6FDC',
222 'NAFKCA': '6FDD',
223 'SPNI': '6FDE',
224 'PNNI': '6FDF',
225 'NCP-IP': '6FE2',
226 'EPSLOCI': '6FE3',
227 'EPSNSC': '6FE4',
228 'UFC': '6FE6',
229 'UICCIARI': '6FE7',
230 'NASCONFIG': '6FE8',
231 'PWC': '6FEC',
232 'FDNURI': '6FED',
233 'BDNURI': '6FEE',
234 'SDNURI': '6FEF',
235 'IWL': '6FF0',
236 'IPS': '6FF1',
237 'IPD': '6FF2',
238 'ePDGId': '6FF3',
239 'ePDGSelection': '6FF4',
240 'ePDGIdEm': '6FF5',
241 'ePDGSelectionEm': '6FF6',
242}