Hi,
I try to decode an ASN.1 BER file with ocomc, but I can't find an example to do that, I found example to encode to ASN.1 but not for decode, can someone give me an example,
I have this NPL file
-------------------------------------------------------------------
//Offline Mediation Controller NPL Editor, Wed Mar 21 18:00:29 CST 2018
JavaHook mapper = com.metasolv.nm.collector.asn1file.Asn1FileEINode;
// In order to make this node to collect ASN.1 file, several configuration items must be
// properly set under this "Config" section. Here is a sample config section:
//
// Config {
// Asn1ProjectClass "com.nt.udc.asn1.gsm3gppv360pure.Gsm3gppv360pure";
// GetCoderMethod "getBERCoder";
// CompiledPDUClass "com.nt.udc.asn1.gsm3gppv360pure.gprs_charging_datatypes.CallEventRecord";
// FileHeaderSize "0"; //It should be 0(if no file header) or file header size in bytes (As per 3GPP TS 32.297 ver 10.1.0).
// RecordHeaderSize "0"; //It should be 0(if no CDR header) or 5(if has CDR Header.As per 3GPP TS 32.297 ver 10.1.0).
// }
//
// Details on each configuration item is listed below.
Config {
// Replace string <ASN1_PROJECT_CLASS> with the ASN.1 project class name with the full
// class package, which was created by the OSS ASN.1 to Java compiler.
Asn1ProjectClass "com.nt.udc.asn1.tap3.Tap3";
// Replace string <GET_CODER_METHOD> with the proper method name, which is generated by
// the OSS ASN.1 to Java compiler. Those "Get" method is defined in the ASN.1 project class.
// The list of supported "Get" method names are:
// - getBERCoder
// - getPERAlignedCoder
GetCoderMethod "getBERCoder";
// Replace string <COMPILED_PDU_CLASS> with the proper PDU class name with the full class
// package, which is generated by the OSS ASN.1 to Java compiler.
CompiledPDUClass "com.nt.udc.asn1.tap3.tap0312.DataInterChange";
//CompiledPDUClass "com.nt.udc.asn1.atlantidasd.atlantidasd_datatypes.SDPPPSCallEventDataRecord";
FileHeaderSize "0";
RecordHeaderSize "0";
}
InputRec {
// String dummy;
String msisdn; // MSISDN
} in;
OutputRec {
// String dummy;
String msisdn; // MSISDN
} out;
mapper.toNar(in,out);
//out.msisdn = in.msisdn;
write(out);
---------------------------------------------------------------
But never does anything to the file.
Thanks