herlesupreeth has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/21956 )


Change subject: sysmoISIM-SJA2: Enable programming of EF.MSISDN
......................................................................

sysmoISIM-SJA2: Enable programming of EF.MSISDN

Change-Id: I8ed27142009a50a1cc31a9f2e0e854a53add6e89
---
M pySim/cards.py
1 file changed, 11 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/56/21956/1

diff --git a/pySim/cards.py b/pySim/cards.py
index ac6d223..a8dcf10 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -1287,6 +1287,17 @@
                        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()


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/21956
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I8ed27142009a50a1cc31a9f2e0e854a53add6e89
Gerrit-Change-Number: 21956
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <[email protected]>
Gerrit-MessageType: newchange

Reply via email to