daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Apr 21st, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> from libmich.asn1.processor import *
  2. >>> generate_modules({'altamira':'altamira'})
  3. processing Asn1Comunes.asn
  4. [proc] ASN.1 module Asn1Comunes: 89 assignments processed (10 pass)
  5. [proc] ASN.1 modules scanned: ['Asn1Comunes']
  6. processing AAnotificaciones.asn
  7. [proc] ASN.1 module PPIF-INTERFAZEXTERNA: 31 assignments processed (9 pass)
  8. [proc] ASN.1 modules scanned: ['PPIF-INTERFAZEXTERNA']
  9. modules successfully stored in /usr/lib/python2.7/site-packages/libmich/asn1/modules/altamira.pck
  10. >>> GLOBAL.clear()
  11. >>> ASN1.ASN1Obj.CODEC = BER
  12. >>> load_module('altamira')
  13. altamira: 120 objects loaded into GLOBAL
  14. >>> ASN1.ASN1Obj.CODEC = BER
  15. >>> GLOBAL.TYPE.keys()
  16. ['TpMobError', 'Nai', 'Mcc', 'Msin', 'Pri', 'Argumento', 'Imei', 'IdAssignment', 'DescAplicacion', 'Protocolo', 'Fecha', 'Eoick', 'BuzonVoz', 'GeographicalInformation', 'SecondPartyType', 'Teleservicio', 'Prioridad', 'Acc', 'HpnLocNum', 'Dp-MMINT', 'TipoOperacionOSA', 'TipoMsisdn', 'Mnc', 'Sci', 'Imsi', 'Celda', 'AppData', 'IdWatcher', 'Estado', 'ServiceKey', 'CapacidadPortadora', 'Tmsi', 'DpEGA', 'Errors', 'Npi', 'Valor', 'ArgumentoTriggerHLR', 'Apps', 'Buffer', 'ClassMarkInfo', 'Utpos', 'DpEGER', 'Isdn', 'LocationNumber', 'Msisdn', 'Idioma', 'Basc', 'Zona', 'TriggersHLR', 'IdAplicacion', 'MI-Hpn', 'InfoEstadoLocalizacion', 'Exceptions', 'MI-Mmint', 'DatosEvento', 'DatosConsulta', 'ListaEstadoLocalizacion', 'Users', 'ListaDatosConsulta', 'ListaDatosEvento', 'ParametroConsulta', 'ParametroEvento', 'Deuda', 'InfoAdicionalRCBancarias', 'TariffChange', 'BajaBono', 'Intervalo', 'PromocionEBC', 'CambioFechaPeriodif', 'LocNum', 'CalidadServicio', 'Producto', 'ELINTEGER64', 'CardChange', 'Bono', 'CyclicAction', 'BoltonEvent', 'FechaPeriodificacion', 'EstadoPeriodificacion', 'TipoHomezone', 'BalanceRecarga', 'InfoAdicionalRecargas', 'RenBonoTR', 'Balance', 'LimiteConsumoCiclo', 'Recarga', 'Ajuste', 'HomeZone', 'AltaPeriodificacion', 'WalletThresholdEvent', 'BajaPeriodificacion', 'ParamsEspecificos', 'InterfazExterna']
  17. >>> pdu = GLOBAL.TYPE('InterfazExterna')
  18. Traceback (most recent call last):
  19.   File "<stdin>", line 1, in <module>
  20. TypeError: 'OD' object is not callable
  21. >>> pdu = GLOBAL.TYPE['InterfazExterna']
  22. >>> pdu()
  23. >>> pdu
  24. <InterfazExterna (SEQUENCE type)>
  25. >>> pdu.decode()
RAW Paste Data
Top