<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/17882">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Enable parsing of ISIM Service table (IST)<br><br>As per TS 31.103, This EF indicates which ISIM services are available.<br>If a service is not indicated as available in the ISIM, the ME shall not select this service.<br><br>Parsing of IST is achieved by first selecting the ISIM application using its AID.<br>This is followed by selecting EF.IST with File ID - 6f07 in ADF.ISIM<br><br>Change-Id: I3f0a7227360b72a707dc1bcc4cc9c8a4ec7ad2b2<br>---<br>M pySim-read.py<br>M pysim-testdata/sysmoISIM-SJA2.ok<br>2 files changed, 19 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim-read.py b/pySim-read.py</span><br><span>index 4551e82..33e93a7 100755</span><br><span>--- a/pySim-read.py</span><br><span>+++ b/pySim-read.py</span><br><span>@@ -30,6 +30,7 @@</span><br><span> import sys</span><br><span> from pySim.ts_51_011 import EF, DF, EF_SST_map</span><br><span> from pySim.ts_31_102 import EF_UST_map</span><br><span style="color: hsl(120, 100%, 40%);">+from pySim.ts_31_103 import EF_IST_map</span><br><span> </span><br><span> from pySim.commands import SimCardCommands</span><br><span> from pySim.cards import card_detect, Card</span><br><span>@@ -255,5 +256,17 @@</span><br><span>            else:</span><br><span>                        print("USIM Service Table: Can't read, response code = %s" % (sw,))</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ # Check whether we have th AID of ISIM, if so select it by its AID</span><br><span style="color: hsl(120, 100%, 40%);">+    # EF.IST - File Id in ADF ISIM : 6f07</span><br><span style="color: hsl(120, 100%, 40%);">+ if '9000' == card.select_adf_by_aid(adf="isim"):</span><br><span style="color: hsl(120, 100%, 40%);">+            # EF.IST</span><br><span style="color: hsl(120, 100%, 40%);">+              (res, sw) = card.read_binary('6f07')</span><br><span style="color: hsl(120, 100%, 40%);">+          if sw == '9000':</span><br><span style="color: hsl(120, 100%, 40%);">+                      print("ISIM Service Table: %s" % res)</span><br><span style="color: hsl(120, 100%, 40%);">+                       # Print those which are available</span><br><span style="color: hsl(120, 100%, 40%);">+                     print("%s" % dec_st(res, table="isim"))</span><br><span style="color: hsl(120, 100%, 40%);">+           else:</span><br><span style="color: hsl(120, 100%, 40%);">+                 print("ISIM Service Table: Can't read, response code = %s" % (sw,))</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  # Done for this card and maybe for everything ?</span><br><span>      print("Done !\n")</span><br><span>diff --git a/pysim-testdata/sysmoISIM-SJA2.ok b/pysim-testdata/sysmoISIM-SJA2.ok</span><br><span>index 80045cf..afc4491 100644</span><br><span>--- a/pysim-testdata/sysmoISIM-SJA2.ok</span><br><span>+++ b/pysim-testdata/sysmoISIM-SJA2.ok</span><br><span>@@ -150,5 +150,11 @@</span><br><span>      Service 94 - Extended Terminal Applications</span><br><span>  Service 95 - Support of UICC access to IMS</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ISIM Service Table: 190200</span><br><span style="color: hsl(120, 100%, 40%);">+    Service 1 - P-CSCF address</span><br><span style="color: hsl(120, 100%, 40%);">+    Service 4 - GBA-based Local Key Establishment Mechanism</span><br><span style="color: hsl(120, 100%, 40%);">+       Service 5 - Support of P-CSCF discovery for IMS Local Break Out</span><br><span style="color: hsl(120, 100%, 40%);">+       Service 10 - Support of UICC access to IMS</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> Done !</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/17882">change 17882</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/+/17882"/><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: I3f0a7227360b72a707dc1bcc4cc9c8a4ec7ad2b2 </div>
<div style="display:none"> Gerrit-Change-Number: 17882 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: herlesupreeth <herlesupreeth@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>