You are on page 1of 8
OCS CDR Format Description Version No.: V1.0
OCS CDR Format Description Version No.: V1.0

OCS CDR Format Description

OCS CDR Format Description Version No.: V1.0
OCS CDR Format Description Version No.: V1.0
OCS CDR Format Description Version No.: V1.0
OCS CDR Format Description Version No.: V1.0
OCS CDR Format Description Version No.: V1.0

Version No.: V1.0

OCS CDR Format Description Version No.: V1.0
OCS CDR Format Description Version No.: V1.0
Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6

Catalogue

General Information Version

3

............................................................................................................................

.........................................................................................................................................

3

3 3 3 5
3
3
3
5
Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6

1.1.Abbreviations

........................................................................................................................

Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6

..............................................................................................................

6

.......................................................................................................

Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6

5

References ................................................................................................................................... Voice and SMS CDR Format

Voice and SMS CDR File Format

............................................................................................

Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6

Voice and SMS CDR File Structure

File Encode Description Change of the file

..............................................................................................................

6

Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6
Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6

7

........................................................................................................................

7

Daily Fee CDR Format

.......................................................................................................................

7

................................................................................................................

Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6
Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6

......................................................................................................................

7

........................................................................................................................

Daily Fee CDR File Format

CDR File Structure Change of the file

Catalogue General Information Version 3 ............................................................................................................................ ......................................................................................................................................... 3 3 3 3 5 1.1.Abbreviations ........................................................................................................................ .............................................................................................................. 6
General Information Version Version Create/Change Author Content Remark Date V1.0 2005-05-13 Yin Hao Create 1.1. Abbreviations

General Information

Version

Version

Create/Change

Author

Content

Remark

Date

V1.0

2005-05-13

Yin Hao

Create

 
         

1.1. Abbreviations

General Information Version Version Create/Change Author Content Remark Date V1.0 2005-05-13 Yin Hao Create 1.1. Abbreviations
General Information Version Version Create/Change Author Content Remark Date V1.0 2005-05-13 Yin Hao Create 1.1. Abbreviations
General Information Version Version Create/Change Author Content Remark Date V1.0 2005-05-13 Yin Hao Create 1.1. Abbreviations
General Information Version Version Create/Change Author Content Remark Date V1.0 2005-05-13 Yin Hao Create 1.1. Abbreviations
Term Definition CC Country Code CI IMSI LAC Cell Identify International Mobile Subscriber Identity Location Area
Term
Definition
CC
Country Code
CI
IMSI
LAC
Cell Identify
International Mobile Subscriber Identity
Location Area Code
MCC
MNC
MS
MSISDN
MSRN
Mobile Country Code
Mobile Network Code
Mobile Station / Mobile Subcriber
Mobile Subscriber ISDN
Mobile Station Roaming Number
General Information Version Version Create/Change Author Content Remark Date V1.0 2005-05-13 Yin Hao Create 1.1. Abbreviations

References

General Information Version Version Create/Change Author Content Remark Date V1.0 2005-05-13 Yin Hao Create 1.1. Abbreviations
None
None

Voice and SMS CDR Format

The next CDR format is useful for Voice, SMS service.

SEQ FIELD NAME DETAIL COMMENTS Attribute ID 1 event.CallingNbr Calling Number   1 2 event.CalledNbr Called
SEQ FIELD NAME DETAIL COMMENTS Attribute ID 1 event.CallingNbr Calling Number   1 2 event.CalledNbr Called
SEQ
FIELD NAME
DETAIL
COMMENTS
Attribute
ID
1
event.CallingNbr
Calling Number
 
1
2
event.CalledNbr
Called Number
 
2
3
event.EventBeginTime
Start Time
YYYYMMDDHHMISS
3
4
event.Duration
Duration
Unit:Second
4
5
event.CallType
Call Type
0:MsOriginating
7
1:MsTerminating
2:SMSOriginating
3:SMSTerminating
4:Other
6
event.EventSeq
Event Sequence
 
20
7
event.EventType
Event Type
 
21
8
event.BillingNbr
Bill Number
0:bill calling
40
1:bill called
3:other
9
event.PeerNbr
Peer Number
 
41
10
event.Charge1
Charge1
 
42
11
event.Charge2
Charge2
 
43
12
event.Charge3
Charge3
 
44
13
event.Charge4
Charge4
 
45
14
event.PageCount
Page Count
 
71
15
event.TimeNumber
Time Number
Occurence==1
74
16
event.product.Quantity
Product Quantity
 
106
17
event.subs.SubsId
Sub ID
ZTE Subscriber ID
201
18
event.CallingIMEI
Calling IMEI
215
19
event.CalledIMEI
Called IMEI
216
20
event.ChargeParty
Charge Party
 
223
21
event.CellA
Calling Cell
 
228
22
event.UpData
Up Data
Unit:byte
232
23
event.DownData
Down Data
Unit:byte
233
24
event.Bytes
Up+Down Bytes
 
235
25
event.RecordType
Record Type
According to
236
Description 1
26
event.CdrErrorNo
CDR Error Number
 
238
27
event.SeviceType
Service Type
0-Voice,1-SMS
297
28
event.IncomingRoamFlag
Incoming Roaming
Flag
 
299
29
event.SUBS_ID_TYPE1
Terminal Type
 
320
30
event.SUBS_ID_DATA1
Terminal Information
 
322
31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34

31

event.CALLING_VLR_NBR

Visited Number

 

324

32

event.CALL_REF_NBR

Reference Number

 

328

33

event.MSC_ADDRESS

MSC Address

 

329

34

event.SESSION_ID

Session ID

 

335

35

event.PatnerCode

Patner Code

PLMN ID, for international roaming service

392

         

Description 1event.RecordType

For MsOriginating:

31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34

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

31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34
31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34
31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34

Voice and SMS CDR File Format

31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34
31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34
31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34

Voice and SMS CDR File Structure

31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34

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:

31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34
31 event.CALLING_VLR_NBR Visited Number 324 32 event.CALL_REF_NBR Reference Number 328 33 event.MSC_ADDRESS MSC Address 329 34

{

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

} {

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
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 don’t change the file structure.

Daily Fee CDR Format The next CDR format is useful for daily fee, for postpaid or

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 Calling Number Calling Number 2 Event ID Event ID 3 Event
SEQ
FIELD NAME
DETAIL
1
Calling Number
Calling Number
2
Event ID
Event ID
3
Event Type
Event Type, 967: Daily fee event for postpaid, 961:
Daily fee event for prepaid
4
Begin Time
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
5
End Time
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
6
Charge Time
The daily fee record charging time,
ormat:YYYYMMDDHH24MISS
7
Subscriber ID
ZTE subscriber ID
8
Charge
Charge, with the unit of cent, 1/100 VND
 
 
Daily Fee CDR Format The next CDR format is useful for daily fee, for postpaid or

Daily Fee CDR File Format

Daily Fee CDR Format The next CDR format is useful for daily fee, for postpaid or
Daily Fee CDR Format The next CDR format is useful for daily fee, for postpaid or

CDR File Structure

Daily Fee CDR Format The next CDR format is useful for daily fee, for postpaid or
Daily Fee CDR Format The next CDR format is useful for daily fee, for postpaid or

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

have more other requirement in the future. If the attributes are not enough, we may add new attributes to the tail of the record.

have more other requirement in the future. If the attributes are not enough, we may add