sysmoISIM-SJA2: Enable programming of EF.MSISDN

Change-Id: I8ed27142009a50a1cc31a9f2e0e854a53add6e89
This commit is contained in:
Supreeth Herle 2020-03-26 10:00:45 +01:00 committed by herlesupreeth
parent be7007e1d9
commit c60192375e
2 changed files with 12 additions and 1 deletions

View File

@ -1287,6 +1287,17 @@ class SysmoISIMSJA2(UsimCard, IsimCard):
r = self._scc.select_file(['3f00', '7f10'])
data, sw = self._scc.update_record('6f42', 1, lpad(p['smsp'], 104), force_len=True)
# EF.MSISDN
# TODO: Alpha Identifier (currently 'ff'O * 20)
# TODO: Capability/Configuration1 Record Identifier
# TODO: Extension1 Record Identifier
if p.get('msisdn') is not None:
msisdn = enc_msisdn(p['msisdn'])
content = 'ff' * 20 + msisdn + 'ff' * 2
r = self._scc.select_file(['3f00', '7f10'])
data, sw = self._scc.update_record('6F40', 1, content, force_len=True)
# Populate AIDs
self.read_aids()

View File

@ -53,7 +53,7 @@ HPLMNAcT:
ffffff0000 # unused
ACC: 0200
MSISDN: Not available
MSISDN (NPI=1 ToN=3): 6766266
Administrative data: 00000002
MS operation mode: normal operation
Ciphering Indicator: disabled