Supreeth Herle | 475dcaa | 2020-03-20 18:57:39 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # -*- coding: utf-8 -*- |
| 3 | |
| 4 | """ |
| 5 | Various 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 |
| 26 | EF_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 Herle | 4d9e6be | 2020-03-24 12:13:45 +0100 | [diff] [blame] | 138 | 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 Viviani | 0dc8f69 | 2020-05-29 00:14:55 +0100 | [diff] [blame] | 155 | } |
| 156 | |
Sebastian Viviani | e61170c | 2020-06-03 08:57:00 +0100 | [diff] [blame] | 157 | LOCI_STATUS_map = { |
| 158 | 0: 'updated', |
| 159 | 1: 'not updated', |
| 160 | 2: 'plmn not allowed', |
| 161 | 3: 'locatation area not allowed' |
| 162 | } |
herlesupreeth | a562ea0 | 2020-09-16 20:17:22 +0200 | [diff] [blame] | 163 | |
Sebastian Viviani | 0dc8f69 | 2020-05-29 00:14:55 +0100 | [diff] [blame] | 164 | EF_USIM_ADF_map = { |
| 165 | 'LI': '6F05', |
| 166 | 'ARR': '6F06', |
| 167 | 'IMSI': '6F07', |
| 168 | 'Keys': '6F08', |
| 169 | 'KeysPS': '6F09', |
| 170 | 'DCK': '6F2C', |
| 171 | 'HPPLMN': '6F31', |
| 172 | 'CNL': '6F32', |
| 173 | 'ACMmax': '6F37', |
| 174 | 'UST': '6F38', |
| 175 | 'ACM': '6F39', |
| 176 | 'FDN': '6F3B', |
| 177 | 'SMS': '6F3C', |
| 178 | 'GID1': '6F3E', |
| 179 | 'GID2': '6F3F', |
| 180 | 'MSISDN': '6F40', |
| 181 | 'PUCT': '6F41', |
| 182 | 'SMSP': '6F42', |
| 183 | 'SMSS': '6F42', |
| 184 | 'CBMI': '6F45', |
| 185 | 'SPN': '6F46', |
| 186 | 'SMSR': '6F47', |
| 187 | 'CBMID': '6F48', |
| 188 | 'SDN': '6F49', |
| 189 | 'EXT2': '6F4B', |
| 190 | 'EXT3': '6F4C', |
| 191 | 'BDN': '6F4D', |
| 192 | 'EXT5': '6F4E', |
| 193 | 'CCP2': '6F4F', |
| 194 | 'CBMIR': '6F50', |
| 195 | 'EXT4': '6F55', |
| 196 | 'EST': '6F56', |
| 197 | 'ACL': '6F57', |
| 198 | 'CMI': '6F58', |
| 199 | 'START-HFN': '6F5B', |
| 200 | 'THRESHOLD': '6F5C', |
| 201 | 'PLMNwAcT': '6F60', |
| 202 | 'OPLMNwAcT': '6F61', |
| 203 | 'HPLMNwAcT': '6F62', |
| 204 | 'PSLOCI': '6F73', |
| 205 | 'ACC': '6F78', |
| 206 | 'FPLMN': '6F7B', |
| 207 | 'LOCI': '6F7E', |
| 208 | 'ICI': '6F80', |
| 209 | 'OCI': '6F81', |
| 210 | 'ICT': '6F82', |
| 211 | 'OCT': '6F83', |
| 212 | 'AD': '6FAD', |
| 213 | 'VGCS': '6FB1', |
| 214 | 'VGCSS': '6FB2', |
| 215 | 'VBS': '6FB3', |
| 216 | 'VBSS': '6FB4', |
| 217 | 'eMLPP': '6FB5', |
| 218 | 'AAeM': '6FB6', |
| 219 | 'ECC': '6FB7', |
| 220 | 'Hiddenkey': '6FC3', |
| 221 | 'NETPAR': '6FC4', |
| 222 | 'PNN': '6FC5', |
| 223 | 'OPL': '6FC6', |
| 224 | 'MBDN': '6FC7', |
| 225 | 'EXT6': '6FC8', |
| 226 | 'MBI': '6FC9', |
| 227 | 'MWIS': '6FCA', |
| 228 | 'CFIS': '6FCB', |
| 229 | 'EXT7': '6FCC', |
| 230 | 'SPDI': '6FCD', |
| 231 | 'MMSN': '6FCE', |
| 232 | 'EXT8': '6FCF', |
| 233 | 'MMSICP': '6FD0', |
| 234 | 'MMSUP': '6FD1', |
| 235 | 'MMSUCP': '6FD2', |
| 236 | 'NIA': '6FD3', |
| 237 | 'VGCSCA': '6FD4', |
| 238 | 'VBSCA': '6FD5', |
| 239 | 'GBAP': '6FD6', |
| 240 | 'MSK': '6FD7', |
| 241 | 'MUK': '6FD8', |
| 242 | 'EHPLMN': '6FD9', |
| 243 | 'GBANL': '6FDA', |
| 244 | 'EHPLMNPI': '6FDB', |
| 245 | 'LRPLMNSI': '6FDC', |
| 246 | 'NAFKCA': '6FDD', |
| 247 | 'SPNI': '6FDE', |
| 248 | 'PNNI': '6FDF', |
| 249 | 'NCP-IP': '6FE2', |
| 250 | 'EPSLOCI': '6FE3', |
| 251 | 'EPSNSC': '6FE4', |
| 252 | 'UFC': '6FE6', |
| 253 | 'UICCIARI': '6FE7', |
| 254 | 'NASCONFIG': '6FE8', |
| 255 | 'PWC': '6FEC', |
| 256 | 'FDNURI': '6FED', |
| 257 | 'BDNURI': '6FEE', |
| 258 | 'SDNURI': '6FEF', |
| 259 | 'IWL': '6FF0', |
| 260 | 'IPS': '6FF1', |
| 261 | 'IPD': '6FF2', |
| 262 | 'ePDGId': '6FF3', |
| 263 | 'ePDGSelection': '6FF4', |
| 264 | 'ePDGIdEm': '6FF5', |
| 265 | 'ePDGSelectionEm': '6FF6', |
| 266 | } |