Move parsing of MSISDN to generic Card class
Change-Id: I5b726bc0dc8c8e5eb42f209b1fe0f35a46ac91be
diff --git a/pySim/cards.py b/pySim/cards.py
index 8081f87..d27092d 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -181,6 +181,13 @@
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):