<p>herlesupreeth has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/17832">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Define mapping between USIM Service Number and its description<br><br>This commit introduces a lookup table which maps USIM Service Number to its description.<br>The mapping is defined in 3GPP TS 31.102 version 13.4.0 Release 13, 4.2.8 EF.UST (USIM Service Table)<br><br>Change-Id: Ia9025a4be6ba29fe79ca4bf6c7a452188ea3d454<br>---<br>A pySim/ts_31_102.py<br>1 file changed, 138 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/32/17832/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py</span><br><span>new file mode 100644</span><br><span>index 0000000..9f5abe9</span><br><span>--- /dev/null</span><br><span>+++ b/pySim/ts_31_102.py</span><br><span>@@ -0,0 +1,138 @@</span><br><span style="color: hsl(120, 100%, 40%);">+#!/usr/bin/env python</span><br><span style="color: hsl(120, 100%, 40%);">+# -*- coding: utf-8 -*-</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+"""</span><br><span style="color: hsl(120, 100%, 40%);">+Various constants from ETSI TS 131 102</span><br><span style="color: hsl(120, 100%, 40%);">+"""</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Copyright (C) 2020 Supreeth Herle <herlesupreeth@gmail.com></span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# This program is free software: you can redistribute it and/or modify</span><br><span style="color: hsl(120, 100%, 40%);">+# it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(120, 100%, 40%);">+# the Free Software Foundation, either version 2 of the License, or</span><br><span style="color: hsl(120, 100%, 40%);">+# (at your option) any later version.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+# but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(120, 100%, 40%);">+# GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# You should have received a copy of the GNU General Public License</span><br><span style="color: hsl(120, 100%, 40%);">+# along with this program.  If not, see <http://www.gnu.org/licenses/>.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Mapping between USIM Service Number and its description</span><br><span style="color: hsl(120, 100%, 40%);">+EF_UST_map = {</span><br><span style="color: hsl(120, 100%, 40%);">+   1: 'Local Phone Book',</span><br><span style="color: hsl(120, 100%, 40%);">+        2: 'Fixed Dialling Numbers (FDN)',</span><br><span style="color: hsl(120, 100%, 40%);">+    3: 'Extension 2',</span><br><span style="color: hsl(120, 100%, 40%);">+     4: 'Service Dialling Numbers (SDN)',</span><br><span style="color: hsl(120, 100%, 40%);">+  5: 'Extension3',</span><br><span style="color: hsl(120, 100%, 40%);">+      6: 'Barred Dialling Numbers (BDN)',</span><br><span style="color: hsl(120, 100%, 40%);">+   7: 'Extension4',</span><br><span style="color: hsl(120, 100%, 40%);">+      8: 'Outgoing Call Information (OCI and OCT)',</span><br><span style="color: hsl(120, 100%, 40%);">+ 9: 'Incoming Call Information (ICI and ICT)',</span><br><span style="color: hsl(120, 100%, 40%);">+ 10: 'Short Message Storage (SMS)',</span><br><span style="color: hsl(120, 100%, 40%);">+    11: 'Short Message Status Reports (SMSR)',</span><br><span style="color: hsl(120, 100%, 40%);">+    12: 'Short Message Service Parameters (SMSP)',</span><br><span style="color: hsl(120, 100%, 40%);">+        13: 'Advice of Charge (AoC)',</span><br><span style="color: hsl(120, 100%, 40%);">+ 14: 'Capability Configuration Parameters 2 (CCP2)',</span><br><span style="color: hsl(120, 100%, 40%);">+   15: 'Cell Broadcast Message Identifier',</span><br><span style="color: hsl(120, 100%, 40%);">+      16: 'Cell Broadcast Message Identifier Ranges',</span><br><span style="color: hsl(120, 100%, 40%);">+       17: 'Group Identifier Level 1',</span><br><span style="color: hsl(120, 100%, 40%);">+       18: 'Group Identifier Level 2',</span><br><span style="color: hsl(120, 100%, 40%);">+       19: 'Service Provider Name',</span><br><span style="color: hsl(120, 100%, 40%);">+  20: 'User controlled PLMN selector with Access Technology',</span><br><span style="color: hsl(120, 100%, 40%);">+   21: 'MSISDN',</span><br><span style="color: hsl(120, 100%, 40%);">+ 22: 'Image (IMG)',</span><br><span style="color: hsl(120, 100%, 40%);">+    23: 'Support of Localised Service Areas (SoLSA)',</span><br><span style="color: hsl(120, 100%, 40%);">+     24: 'Enhanced Multi-Level Precedence and Pre-emption Service',</span><br><span style="color: hsl(120, 100%, 40%);">+        25: 'Automatic Answer for eMLPP',</span><br><span style="color: hsl(120, 100%, 40%);">+     26: 'RFU',</span><br><span style="color: hsl(120, 100%, 40%);">+    27: 'GSM Access',</span><br><span style="color: hsl(120, 100%, 40%);">+     28: 'Data download via SMS-PP',</span><br><span style="color: hsl(120, 100%, 40%);">+       29: 'Data download via SMS-CB',</span><br><span style="color: hsl(120, 100%, 40%);">+       30: 'Call Control by USIM',</span><br><span style="color: hsl(120, 100%, 40%);">+   31: 'MO-SMS Control by USIM',</span><br><span style="color: hsl(120, 100%, 40%);">+ 32: 'RUN AT COMMAND command',</span><br><span style="color: hsl(120, 100%, 40%);">+ 33: 'shall be set to 1',</span><br><span style="color: hsl(120, 100%, 40%);">+      34: 'Enabled Services Table',</span><br><span style="color: hsl(120, 100%, 40%);">+ 35: 'APN Control List (ACL)',</span><br><span style="color: hsl(120, 100%, 40%);">+ 36: 'Depersonalisation Control Keys',</span><br><span style="color: hsl(120, 100%, 40%);">+ 37: 'Co-operative Network List',</span><br><span style="color: hsl(120, 100%, 40%);">+      38: 'GSM security context',</span><br><span style="color: hsl(120, 100%, 40%);">+   39: 'CPBCCH Information',</span><br><span style="color: hsl(120, 100%, 40%);">+     40: 'Investigation Scan',</span><br><span style="color: hsl(120, 100%, 40%);">+     41: 'MexE',</span><br><span style="color: hsl(120, 100%, 40%);">+   42: 'Operator controlled PLMN selector with Access Technology',</span><br><span style="color: hsl(120, 100%, 40%);">+       43: 'HPLMN selector with Access Technology',</span><br><span style="color: hsl(120, 100%, 40%);">+  44: 'Extension 5',</span><br><span style="color: hsl(120, 100%, 40%);">+    45: 'PLMN Network Name',</span><br><span style="color: hsl(120, 100%, 40%);">+      46: 'Operator PLMN List',</span><br><span style="color: hsl(120, 100%, 40%);">+     47: 'Mailbox Dialling Numbers',</span><br><span style="color: hsl(120, 100%, 40%);">+       48: 'Message Waiting Indication Status',</span><br><span style="color: hsl(120, 100%, 40%);">+      49: 'Call Forwarding Indication Status',</span><br><span style="color: hsl(120, 100%, 40%);">+      50: 'Reserved and shall be ignored',</span><br><span style="color: hsl(120, 100%, 40%);">+  51: 'Service Provider Display Information',</span><br><span style="color: hsl(120, 100%, 40%);">+   52: 'Multimedia Messaging Service (MMS)',</span><br><span style="color: hsl(120, 100%, 40%);">+     53: 'Extension 8',</span><br><span style="color: hsl(120, 100%, 40%);">+    54: 'Call control on GPRS by USIM',</span><br><span style="color: hsl(120, 100%, 40%);">+   55: 'MMS User Connectivity Parameters',</span><br><span style="color: hsl(120, 100%, 40%);">+       56: 'Network\'s indication of alerting in the MS (NIA)',</span><br><span style="color: hsl(120, 100%, 40%);">+  57: 'VGCS Group Identifier List (EFVGCS and EFVGCSS)',</span><br><span style="color: hsl(120, 100%, 40%);">+        58: 'VBS Group Identifier List (EFVBS and EFVBSS)',</span><br><span style="color: hsl(120, 100%, 40%);">+   59: 'Pseudonym',</span><br><span style="color: hsl(120, 100%, 40%);">+      60: 'User Controlled PLMN selector for I-WLAN access',</span><br><span style="color: hsl(120, 100%, 40%);">+        61: 'Operator Controlled PLMN selector for I-WLAN access',</span><br><span style="color: hsl(120, 100%, 40%);">+    62: 'User controlled WSID list',</span><br><span style="color: hsl(120, 100%, 40%);">+      63: 'Operator controlled WSID list',</span><br><span style="color: hsl(120, 100%, 40%);">+  64: 'VGCS security',</span><br><span style="color: hsl(120, 100%, 40%);">+  65: 'VBS security',</span><br><span style="color: hsl(120, 100%, 40%);">+   66: 'WLAN Reauthentication Identity',</span><br><span style="color: hsl(120, 100%, 40%);">+ 67: 'Multimedia Messages Storage',</span><br><span style="color: hsl(120, 100%, 40%);">+    68: 'Generic Bootstrapping Architecture (GBA)',</span><br><span style="color: hsl(120, 100%, 40%);">+       69: 'MBMS security',</span><br><span style="color: hsl(120, 100%, 40%);">+  70: 'Data download via USSD and USSD application mode',</span><br><span style="color: hsl(120, 100%, 40%);">+       71: 'Equivalent HPLMN',</span><br><span style="color: hsl(120, 100%, 40%);">+       72: 'Additional TERMINAL PROFILE after UICC activation',</span><br><span style="color: hsl(120, 100%, 40%);">+      73: 'Equivalent HPLMN Presentation Indication',</span><br><span style="color: hsl(120, 100%, 40%);">+       74: 'Last RPLMN Selection Indication',</span><br><span style="color: hsl(120, 100%, 40%);">+        75: 'OMA BCAST Smart Card Profile',</span><br><span style="color: hsl(120, 100%, 40%);">+   76: 'GBA-based Local Key Establishment Mechanism',</span><br><span style="color: hsl(120, 100%, 40%);">+    77: 'Terminal Applications',</span><br><span style="color: hsl(120, 100%, 40%);">+  78: 'Service Provider Name Icon',</span><br><span style="color: hsl(120, 100%, 40%);">+     79: 'PLMN Network Name Icon',</span><br><span style="color: hsl(120, 100%, 40%);">+ 80: 'Connectivity Parameters for USIM IP connections',</span><br><span style="color: hsl(120, 100%, 40%);">+        81: 'Home I-WLAN Specific Identifier List',</span><br><span style="color: hsl(120, 100%, 40%);">+   82: 'I-WLAN Equivalent HPLMN Presentation Indication',</span><br><span style="color: hsl(120, 100%, 40%);">+        83: 'I-WLAN HPLMN Priority Indication',</span><br><span style="color: hsl(120, 100%, 40%);">+       84: 'I-WLAN Last Registered PLMN',</span><br><span style="color: hsl(120, 100%, 40%);">+    85: 'EPS Mobility Management Information',</span><br><span style="color: hsl(120, 100%, 40%);">+    86: 'Allowed CSG Lists and corresponding indications',</span><br><span style="color: hsl(120, 100%, 40%);">+        87: 'Call control on EPS PDN connection by USIM',</span><br><span style="color: hsl(120, 100%, 40%);">+     88: 'HPLMN Direct Access',</span><br><span style="color: hsl(120, 100%, 40%);">+    89: 'eCall Data',</span><br><span style="color: hsl(120, 100%, 40%);">+     90: 'Operator CSG Lists and corresponding indications',</span><br><span style="color: hsl(120, 100%, 40%);">+       91: 'Support for SM-over-IP',</span><br><span style="color: hsl(120, 100%, 40%);">+ 92: 'Support of CSG Display Control',</span><br><span style="color: hsl(120, 100%, 40%);">+ 93: 'Communication Control for IMS by USIM',</span><br><span style="color: hsl(120, 100%, 40%);">+  94: 'Extended Terminal Applications',</span><br><span style="color: hsl(120, 100%, 40%);">+ 95: 'Support of UICC access to IMS',</span><br><span style="color: hsl(120, 100%, 40%);">+  96: 'Non-Access Stratum configuration by USIM',</span><br><span style="color: hsl(120, 100%, 40%);">+       97: 'PWS configuration by USIM',</span><br><span style="color: hsl(120, 100%, 40%);">+      98: 'RFU',</span><br><span style="color: hsl(120, 100%, 40%);">+    99: 'URI support by UICC',</span><br><span style="color: hsl(120, 100%, 40%);">+    100: 'Extended EARFCN support',</span><br><span style="color: hsl(120, 100%, 40%);">+       101: 'ProSe',</span><br><span style="color: hsl(120, 100%, 40%);">+ 102: 'USAT Application Pairing',</span><br><span style="color: hsl(120, 100%, 40%);">+      103: 'Media Type support',</span><br><span style="color: hsl(120, 100%, 40%);">+    104: 'IMS call disconnection cause',</span><br><span style="color: hsl(120, 100%, 40%);">+  105: 'URI support for MO SHORT MESSAGE CONTROL',</span><br><span style="color: hsl(120, 100%, 40%);">+      106: 'ePDG configuration Information support',</span><br><span style="color: hsl(120, 100%, 40%);">+        107: 'ePDG configuration Information configured',</span><br><span style="color: hsl(120, 100%, 40%);">+     108: 'ACDC support',</span><br><span style="color: hsl(120, 100%, 40%);">+  109: 'MCPTT',</span><br><span style="color: hsl(120, 100%, 40%);">+ 110: 'ePDG configuration Information for Emergency Service support',</span><br><span style="color: hsl(120, 100%, 40%);">+  111: 'ePDG configuration Information for Emergency Service configured',</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span>\ No newline at end of file</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/17832">change 17832</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/17832"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia9025a4be6ba29fe79ca4bf6c7a452188ea3d454 </div>
<div style="display:none"> Gerrit-Change-Number: 17832 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: herlesupreeth <herlesupreeth@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>