mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-06 00:53:15 +03:00
Move parsing of MSISDN to generic Card class
Change-Id: I5b726bc0dc8c8e5eb42f209b1fe0f35a46ac91be
This commit is contained in:
1 parent
d1fb6fc359
commit
6d66af653f
2 files changed
+11
-6
No files matched your search
@@ -181,6 +181,13 @@ class Card(object):
|
||||
else:
|
||||
return (None, sw)
|
||||
|
||||
def read_msisdn(self):
|
||||
(res, sw) = self._scc.read_record(EF['MSISDN'], 1)
|
||||
if sw == '9000':
|
||||
return (dec_msisdn(res), sw)
|
||||
else:
|
||||
return (None, sw)
|
||||
|
||||
# Read the (full) AID for either ISIM or USIM application
|
||||
def read_aid(self, isim = False):
|
||||
|
||||
|
||||
Reference in new issue
Block a user