herlesupreeth has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/16948 )
Change subject: More additions to UST parse
......................................................................
More additions to UST parse
Change-Id: I3896fcbde09fc843c68e597729ee3ba04e5ea3d0
---
M pySim-read.py
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/48/16948/1
diff --git a/pySim-read.py b/pySim-read.py
index e9497d5..9e3d2f0 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -131,6 +131,12 @@
byte3 = int(swapped[(3*2) - 2:(3*2)], 16)
service21 = (byte3&0x10 == 0x10)
print("Service 21 - MSISDN: %s" % service21)
+ if len(res) >= 10:
+ byte5 = int(swapped[(5*2) - 2:(5*2)], 16)
+ service34 = (byte5&0x02 == 0x02)
+ service35 = (byte5&0x04 == 0x04)
+ print("Service 34 - Enabled Services Table: %s" %
service34)
+ print("Service 35 - APN Control List (ACL): %s" %
service35)
else:
print("USIM Service Table: Can't read, response code = %s" %
(sw,))
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/16948
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I3896fcbde09fc843c68e597729ee3ba04e5ea3d0
Gerrit-Change-Number: 16948
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <[email protected]>
Gerrit-MessageType: newchange