Skip to content

Commit

Permalink
Enable parsing of ISIM Service table (IST)
Browse files Browse the repository at this point in the history
As per TS 31.103, This EF indicates which ISIM services are available.
If a service is not indicated as available in the ISIM, the ME shall not select this service.

Parsing of IST is achieved by first selecting the ISIM application using its AID.
This is followed by selecting EF.IST with File ID - 6f07 in ADF.ISIM

Change-Id: I3f0a7227360b72a707dc1bcc4cc9c8a4ec7ad2b2
  • Loading branch information
herlesupreeth committed Apr 27, 2020
1 parent df33037 commit ee15c77
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pySim-read.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import sys
from pySim.ts_51_011 import EF, DF, EF_SST_map
from pySim.ts_31_102 import EF_UST_map
from pySim.ts_31_103 import EF_IST_map

from pySim.commands import SimCardCommands
from pySim.cards import card_detect, Card
Expand Down Expand Up @@ -255,5 +256,17 @@ def parse_options():
else:
print("USIM Service Table: Can't read, response code = %s" % (sw,))

# Check whether we have th AID of ISIM, if so select it by its AID
# EF.IST - File Id in ADF ISIM : 6f07
if '9000' == card.select_adf_by_aid(adf="isim"):
# EF.IST
(res, sw) = card.read_binary('6f07')
if sw == '9000':
print("ISIM Service Table: %s" % res)
# Print those which are available
print("%s" % dec_st(res, table="isim"))
else:
print("ISIM Service Table: Can't read, response code = %s" % (sw,))

# Done for this card and maybe for everything ?
print("Done !\n")
6 changes: 6 additions & 0 deletions pysim-testdata/sysmoISIM-SJA2.ok
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,11 @@ USIM Service Table: beff9f9de73e0408400170730000002e00000000
Service 94 - Extended Terminal Applications
Service 95 - Support of UICC access to IMS

ISIM Service Table: 190200
Service 1 - P-CSCF address
Service 4 - GBA-based Local Key Establishment Mechanism
Service 5 - Support of P-CSCF discovery for IMS Local Break Out
Service 10 - Support of UICC access to IMS

Done !

0 comments on commit ee15c77

Please sign in to comment.