You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.
I have another example I don't know how to add. My format description shows (shortened example)
UMTSGSMPLMNCallDataRecord ::= SEQUENCE{
callModule CHOICE{
transit [0] IMPLICIT Transit,
mSOriginating [1] IMPLICIT MSOriginating
}
}
Transit ::= SET{
tAC [0] IMPLICIT TAC OPTIONAL,
callIdentificationNumber [1] IMPLICIT CallIDNumber OPTIONAL
}
I translated this to ....
ctx.AddChoice("CallModule", []asn1.Choice{
{
Type: reflect.TypeOf(Transit),
Options: "implicit,tag:0",
},
{
Type: MSOriginating,
Options: "implicit,tag:1",
}
}
type Transit struct {
TAC []byte
asn1:"implicit,optional,tag:0"
// OCTET STRING (SIZE 3..4)CallIDNumber []byte
asn1:"implicit,optional,tag:1"
// OCTET STRING (SIZE 3)}
But the compiler doesn't like that arrangement. 'type Transit is not an expression'
Any pointers please would be helpful.
The text was updated successfully, but these errors were encountered: