[erlang-bugs] ASN.1 PER compile
Ferrer Guasch Vicent
vicent.ferrerguasch@REDACTED
Mon Oct 27 13:11:07 CET 2014
> >
> > I don't get any errors when compiling, the problem appears when using the
> generated module. That's why I thought the @ were a problem.
> > When I try to decode a S1Setup message I obtain this error:
> >
> > > 'S1AP':decode('S1AP-PDU',Str).
> > {error,{asn1,{case_clause,[0,17,0,48,0,0,4,0,59,0,8,0,66,
> >
> > 244,112,0,0,6,224,0,60,64,10|...]}}}
>
> It seems that Str is a list. We now only allow a binary as the second argument
> to the decode function.
>
You are right, my fault! It is working, but I wasn't using it right. I was used to pass a list. Thanks for the support.
> >
> > The test function:
> >
> > > asn1ct:test('S1AP','S1AP-PDU').
> > {error,
> > {asn1,
> > {encode,
> > {{'S1AP','S1AP-PDU',
> > {successfulOutcome,
> > {'SuccessfulOutcome',240,notify,<<"\n\topen_type">>}}},
> > {error,{asn1,function_clause}}}}}}
> >
>
> That is a bug, but not a new one. The asn1ct:test/2 function does not
> understand table constraints.
I will take into account, but I think I won't need it.
>
> /Bjorn
>
> --
> Björn Gustavsson, Erlang/OTP, Ericsson AB
Vicent
More information about the erlang-bugs
mailing list