Change in pysim[master]: Fixed reading of MSISDN parameter

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Thu Jan 23 22:28:32 UTC 2020


neels has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/16947 )

Change subject: Fixed reading of MSISDN parameter
......................................................................


Patch Set 15: Code-Review+1

(4 comments)

I don't really know much about pysim, just adding some comments to show appreciation of contribution from names I haven't seen before :)

https://gerrit.osmocom.org/c/pysim/+/16947/15//COMMIT_MSG 
Commit Message:

https://gerrit.osmocom.org/c/pysim/+/16947/15//COMMIT_MSG@7 
PS15, Line 7: Fixed reading of MSISDN parameter
would be nice to add a brief explanation that this adds MSISDN parsing, and what kinds of MSISDN are fixed by this patch


https://gerrit.osmocom.org/c/pysim/+/16947/15/pySim-read.py 
File pySim-read.py:

https://gerrit.osmocom.org/c/pysim/+/16947/15/pySim-read.py@218 
PS15, Line 218: 			xlen = len(bytes_res) - 14
(is it always exactly 14?)


https://gerrit.osmocom.org/c/pysim/+/16947/15/pySim-read.py@219 
PS15, Line 219: 			msisdn_lhv = bytes_res[xlen:][:12]
(a comment to explain how and why this splits the data would be nice)


https://gerrit.osmocom.org/c/pysim/+/16947/15/pySim-read.py@222 
PS15, Line 222: 			if bcd_len != int('ff', 16):
"int('ff', 16)": rather just write 255 or 0xff



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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ie914ae83d787e3f1a90f9f305bffd45053b8c863
Gerrit-Change-Number: 16947
Gerrit-PatchSet: 15
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-Assignee: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-CC: dexter <pmaier at sysmocom.de>
Gerrit-Comment-Date: Thu, 23 Jan 2020 22:28:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200123/34d42fb2/attachment.htm>


More information about the gerrit-log mailing list