diff options
author | Supreeth Herle <herlesupreeth@gmail.com> | 2019-12-22 09:00:59 +0100 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2020-02-15 04:22:53 +0700 |
commit | 4b1c7633954697eda687fb122a73166446fa1f83 (patch) | |
tree | d24712f16bbfb75d163dec85924abde1b9e247e8 /pysim-testdata | |
parent | d24f1635135f72743345c0296dd469ec037eff5b (diff) |
pySim-read.py: fix reading and parsing of EF.MSISDN
This change implements parsing of EF.MSISDN (and thus EF.ADN)
as per 3GPP TS 31.102, sections 4.2.26 and 4.4.2.3.
Example (commercial SIM card from 401/02):
EF.MSISDN: ffffffffffffffffffffffffffff07917787028982f7ffffffffffff
Decoded (NPI=1 ToN=1): +77782098287
Note that sysmoUSIM-SJS1 in the test setup has malformed
EF.MSISDN, so that's why the test output is changed.
Change-Id: Ie914ae83d787e3f1a90f9f305bffd45053b8c863
Diffstat (limited to 'pysim-testdata')
-rw-r--r-- | pysim-testdata/sysmoISIM-SJA2.ok | 2 | ||||
-rw-r--r-- | pysim-testdata/sysmoUSIM-SJS1.ok | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pysim-testdata/sysmoISIM-SJA2.ok b/pysim-testdata/sysmoISIM-SJA2.ok index a64aa8b..bfef882 100644 --- a/pysim-testdata/sysmoISIM-SJA2.ok +++ b/pysim-testdata/sysmoISIM-SJA2.ok @@ -50,7 +50,7 @@ HPLMNAcT: ffffff0000 # unused ACC: 0001 -MSISDN: Not available +MSISDN (NPI=1 ToN=1): +1234 AD: 00000002 Done ! diff --git a/pysim-testdata/sysmoUSIM-SJS1.ok b/pysim-testdata/sysmoUSIM-SJS1.ok index 8def4e3..6d85f38 100644 --- a/pysim-testdata/sysmoUSIM-SJS1.ok +++ b/pysim-testdata/sysmoUSIM-SJS1.ok @@ -50,7 +50,7 @@ HPLMNAcT: ffffff0000 # unused ACC: 0008 -MSISDN: Not available +MSISDN: Can't read file -- Length of MSISDN (136 bytes) is out of range AD: 00000002 Done ! |