I am trying to write asn.1 schema for IMS cdrs having file header and repeating cdr headers(TS 32297 headers) but not able to decode these headers
In a specification shared by the client these headers are defined like this:
FileHeader ::= SEQUENCE
{ fileLength [0] INTEGER (SIZE(4) CODE("DEC")) OPTIONAL,
headerlength [1] INTEGER (SIZE (3) CODE ("DEC")) OPTIONAL,
highreleaseIdentifier [2] OCTET STRING (SIZE (1)CODE ("LEFT")) OPTIONAL,
lowreleaseIdentifier [3] OCTET STRING (SIZE (1)CODE ("LEFT")) OPTIONAL,
fileTimestamp [4] OCTET STRING (SIZE (4)CODE ("LEFT")) OPTIONAL,
lastcdrTimestamp [5] OCTET STRING (SIZE (4)CODE ("LEFT")) OPTIONAL,
dataRecordIdentifier [6] OCTET STRING (SIZE (8)CODE ("LEFT")) OPTIONAL,
totalCdr [10] OCTET STRING (SIZE (4)CODE ("LEFT")) OPTIONAL,
filesequencenumber [11] OCTET STRING (SIZE (4)CODE ("LEFT")) OPTIONAL,
filecloserReason [12] IMPLICIT FilecloserReason (SIZE (4)CODE("DEC")) OPTIONAL,
ipnodeaddress [13] OCTET STRING (SIZE (20)CODE ("LEFT")) OPTIONAL,
lostCdrindicator [14] OCTET STRING (SIZE (1)CODE ("LEFT")) OPTIONAL,
lengthCdrFilter [15] INTEGER (SIZE (2)CODE ("LEFT")) OPTIONAL,
cdrroutingFilter [16] OCTET STRING (SIZE (5)CODE ("LEFT")) OPTIONAL
}
CDRHeader ::= SEQUENCE
{
cDRLength [0] INTEGER (SIZE(2) CODE("DEC")) OPTIONAL,
releaseIdentifier [1] IMPLICIT OCTET STRING (SIZE (1)CODE ("LEFT")) OPTIONAL, -- This comprises of Release Id and Version Id
dataRecordIdentifier [2] IMPLICIT OCTET STRING (SIZE (1)CODE ("LEFT")) OPTIONAL, -- It comprises of Data Record Number and TS Number
releaseIdentifierextension [3] IMPLICIT ReleaseIdentifierextension (SIZE (1)CODE("DEC")) OPTIONAL
}
But these CODE("DEC")/CODE ("LEFT") is not understandable by ASNVE1 so not able to compile this asn specs.
Please suggest how to modify the ASN schema for the headers
Your specification is not valid
You can remove all the CODE("DEC") and CODE ("LEFT")