Giter VIP home page Giter VIP logo

Comments (3)

eerimoq avatar eerimoq commented on July 22, 2024

Hi,

I found two bugs in the BER codec thanks to your report:

  1. The SEQUENCE OF decoder ignores the tag, which it shouldn't. This is easy to fix, and I already fixed it locally.

  2. AUTOMATIC, EXPLICIT and IMPLICIT tagging is not compliant with the ASN.1 specifications. Tagging of the CHOICE type is wrong for sure. I'll have to investigate this further.

from asn1tools.

eerimoq avatar eerimoq commented on July 22, 2024

I fixed 1. in b7b9e28. 2. will take longer to fix. Unclear when it will be ready.

from asn1tools.

eerimoq avatar eerimoq commented on July 22, 2024

Version 0.25.0 can successfully decode dump.txt using structure.txt and type VoiceManagerMsg. It's uploaded to PyPI, install with pip install -U asn1tools.

>>> import asn1tools
>>> f = asn1tools.compile_files('structure.txt')
>>> f.decode('VoiceManagerMsg', open('dump.txt', 'rb').read())
{'phone': {'time-st': {'nsec': 353258578, 'sec': 1517541551}, 'call-id': '[email protected]', 'phone-msg': {'m-call': {'group-id': 'intouch', 'call
ed-pn': {'presentation': 0, 'nai': 4, 'number': '79958290016'}, 'calling-pn': {'presentation': 0, 'nai': 4, 'number': '79832650742'}, 'called-contact': {'uri': {'host': '11.
11.1.4', 'user': '+79958290016'}, 'nickname': '+79958290016'}, 'calling-contact': {'uri': {'host': '10.51.34.6', 'user': '+79832650742'}, 'nickname': '+79832650742', 'parame
ters': [{'value': '8a11i8td-CC-1003-OFC-14', 'key': 'tag'}]}, 'location-pn': {'presentation': 0, 'nai': 4, 'number': '79135999991'}}}}}
>>> 

from asn1tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.