-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMS-Deliver decoding fails with Alphanumeric TP-OA #3
Comments
Your report is too light on detail for me to accept the change. The address encoding/decoding follows the standard 3GPP TS 23.040 version 9.3.0 Release 9 Section 9.1.2.5. Specifically as per this abridged extract: The Type-of-Address field format is as follows: I take that to mean that the address is 7bit encoded. That applies to the whole field - including the length field, and so the length in the address is the number of septets. Your change uses the same length as semi-octet encoding, which the other ToNs use, but that is not Alphanumeric encoding as defined in the spec. Can you provide a reference that shows that the length should be interpreted as per your change? |
Nuts - the section you reference is actually a bit earlier, not a bit further. The encode and decode should both be fixed in the one PR - they are the two sides of the one problem. Your decode fix is incomplete due to the "excludes any semi octet containing only fill bits" clause - it doesn't allow for that and will drop a semi-octet when l is odd. And the tests need to be extended to cover the semi-octet of fill bits case - in both directions. I'll take a look at it shortly. |
I've committed a fix in 690ae30. |
Seems fine on the decoding side. Could you tag a new patch release please. |
Fix in v0.1.2. |
The unmarshal code appears to miscalculate the length of the address. Will submit a PR
The text was updated successfully, but these errors were encountered: