Add very simplistic DF_PHONEBOOK support

This at least gives us the names for the DF and those EFs inside.

Change-Id: I12f70ae78e219e765ecb44cacff421d64c7b3f19
This commit is contained in:
Harald Welte
2022-07-16 11:53:59 +02:00
parent afe093ce41
commit de4c14c0dc
3 changed files with 76 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ order to describe the files specified in the relevant ETSI + 3GPP specifications
from pySim.profile import match_sim
from pySim.profile import CardProfile
from pySim.filesystem import *
from pySim.ts_31_102_telecom import DF_PHONEBOOK
import enum
from pySim.construct import *
from construct import Optional as COptional
@@ -497,6 +498,8 @@ class DF_TELECOM(CardDF):
EF_EXT('6f4e', None, 'EF.EXT4', 'Extension4 (BDN/SSC)'),
EF_SMSR(),
EF_CMI(),
# not really part of 51.011 but something that TS 31.102 specifies may exist here.
DF_PHONEBOOK(),
]
self.add_files(files)