OCS CDR Format Description
Version No.: V1.0
Catalogue
General Information............................................................................................................................3
Version.........................................................................................................................................3
1.1.Abbreviations........................................................................................................................3
References...................................................................................................................................3
Voice and SMS CDR Format..............................................................................................................3
Voice and SMS CDR File Format.......................................................................................................5
Voice and SMS CDR File Structure............................................................................................5
File Encode Description..............................................................................................................6
Change of the file........................................................................................................................6
Daily Fee CDR Format.......................................................................................................................7
Daily Fee CDR File Format................................................................................................................7
CDR File Structure......................................................................................................................7
Change of the file........................................................................................................................7
General Information
Version
Version
Create/Change
Author
V1.0
Date
2005-05-13
Yin Hao
Content
Create
1.1. Abbreviations
Term
CC
CI
IMSI
LAC
MCC
MNC
MS
MSISDN
MSRN
Definition
Country Code
Cell Identify
International Mobile Subscriber Identity
Location Area Code
Mobile Country Code
Mobile Network Code
Mobile Station / Mobile Subcriber
Mobile Subscriber ISDN
Mobile Station Roaming Number
References
None
Voice and SMS CDR Format
The next CDR format is useful for Voice, SMS service.
Remark
SEQ
FIELD NAME
DETAIL
COMMENTS
1
2
3
event.CallingNbr
event.CalledNbr
event.EventBeginTime
Calling Number
Called Number
Start Time
YYYYMMDDHHMISS
1
2
3
4
5
event.Duration
event.CallType
Duration
Call Type
Unit:Second
0MsOriginating
1MsTerminating
2SMSOriginating
3SMSTerminating
4Other
4
7
6
7
8
event.EventSeq
event.EventType
event.BillingNbr
Event Sequence
Event Type
Bill Number
0bill calling
1bill called
3other
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
event.PeerNbr
event.Charge1
event.Charge2
event.Charge3
event.Charge4
event.PageCount
event.TimeNumber
event.product.Quantity
event.subs.SubsId
event.CallingIMEI
event.CalledIMEI
event.ChargeParty
event.CellA
event.UpData
event.DownData
event.Bytes
event.RecordType
Peer Number
Charge1
Charge2
Charge3
Charge4
Page Count
Time Number
Product Quantity
Sub ID
Calling IMEI
Called IMEI
Charge Party
Calling Cell
Up Data
Down Data
Up+Down Bytes
Record Type
Occurence==1
ZTE Subscriber ID
26
27
28
event.CdrErrorNo
event.SeviceType
event.IncomingRoamFlag
0-Voice,1-SMS
238
297
299
29
30
event.SUBS_ID_TYPE1
event.SUBS_ID_DATA1
CDR Error Number
Service Type
Incoming Roaming
Flag
Terminal Type
Terminal Information
320
322
Unit:byte
Unit:byte
According to
Description 1
Attribute
ID
20
21
40
41
42
43
44
45
71
74
106
201
215
216
223
228
232
233
235
236
31
32
33
34
35
event.CALLING_VLR_NBR
event.CALL_REF_NBR
event.MSC_ADDRESS
event.SESSION_ID
event.PatnerCode
Visited Number
Reference Number
MSC Address
Session ID
Patner Code
PLMN ID, for
international roaming
service
324
328
329
335
392
Description 1 event.RecordType
For MsOriginating:
0: Normal MOC
1: Emergency Call
2: Call Forwarding Unconditional
3: Call Forwarding on mobile subscriber Busy
4: Call Forwarding on No Reply
5: Call Forwarding on mobile subscriber Not Reachable
6: MOC from SSP by Pre-paid customer
7: MOC from SSP by Post-paid customer
Voice and SMS CDR File Format
Voice and SMS CDR File Structure
The CDR file is composed of Attribute Name= Attribute Value. One Record
has many attributes. One attribute Occupies one row. All the Attributes of the record
are covered in one record by {}. If some attribute for special CDR is not useful (for
example Upflow is not useful for Voice), this attribute can be ignored in the record.
The following is the example of the CDR Record Format:
{
event.CallType=0
event.RecordType=0
event.ChargeParty=1
event.PartFlag=0
}
{
event.CallType=1
event.RecordType=0
event.ChargeParty=1
event.PartFlag=3
}
The same type CDR must have the same type of attribute and the same number of
attributes.
The example CDR file is:
in99_G_33_002368_20060901.s
in99_G_8_002786_20060905.s
File Encode Description
1. The file is composed of call detail records. One file may include many CDRs.
2. The file is encoded by Text format.
3. One row has one Attribute Name= Attribute Value or { or }, One row is ended by
enter(0x0D) and newline(0x0A).
4. The first Attribute of every record must be event.CallType. This Attribute shows the Call
Type of CDR. For example, MOC CDR, event.CallType=0.
Change of the file
This file just describes the current requirement of the Carrier. The Carrier may have more
other requirement in the future. If the attributes are not enough, we may add new attributes. But
we dont change the file structure.
Daily Fee CDR Format
The next CDR format is useful for daily fee, for postpaid or prepaid (Basic Card,
Daily).
SEQ
FIELD NAME
DETAIL
1
2
3
Calling Number
Event ID
Event Type
Begin Time
End Time
Charge Time
7
8
Subscriber ID
Charge
Calling Number
Event ID
Event Type, 967: Daily fee event for postpaid, 961:
Daily fee event for prepaid
The begin time for charge the daily fee, if charge
daily fee on 2006-5-3, the begin time is 2006-5-3,
format:YYYYMMDD
The end time for charge the daily fee, if charge
daily fee on 2006-5-3, the end time is 2006-5-4,
format:YYYYMMDD
The daily fee record charging time,
ormat:YYYYMMDDHH24MISS
ZTE subscriber ID
Charge, with the unit of cent, 1/100 VND
Daily Fee CDR File Format
CDR File Structure
The CDR file is composed of Attribute Value 1| Attribute Value 2|. The
following is the example of the CDR Record Format:
84987000013|1435005|967|20060908|20060909|20060908020011|162|196667
The example CDR file is: recdr_D_20060908.061004
Change of the file
This file just describes the current requirement of the Carrier. The Carrier may
have more other requirement in the future. If the attributes are not enough, we may
add new attributes to the tail of the record.