Академический Документы
Профессиональный Документы
Культура Документы
V100R002C02LG0237
Issue
26
Date
2014-03-31
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees or
representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website:
http://www.huawei.com
Email:
support@huawei.com
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
Intended Audience
This document is intended for:
Service operators
Debugging engineers
Maintenance engineers
Symbol Conventions
The symbols that may be found in this document are defined as follows.
Symbol
Description
Indicates an imminently hazardous situation which, if
not avoided, will result in death or serious injury.
Indicates a potentially hazardous situation which, if not
avoided, could result in death or serious injury.
Indicates a potentially hazardous situation which, if not
avoided, may result in minor or moderate injury.
Indicates a potentially hazardous situation which, if not
avoided, could result in equipment damage, data loss,
performance deterioration, or unanticipated results.
NOTICE is used to address practices not related to
personal injury.
Calls attention to important information, best practices
and tips.
NOTE is used to address information not related to
personal injury, equipment damage, and environment
Issue 26 (2014-03-31)
ii
OCS
Call Detail Record Reference
Symbol
Description
deterioration.
Change History
Updates between document issues are cumulative. Therefore, the latest document issue
contains all updates made in previous issues.
Issue 26 (2014-03-31)
Twenty sixth release. Comparing with the previous version, the update is as follows:
Added the values of 191 in OperateType and 219-222 in OperateResult in w_kpi CDR.
Issue 25 (2014-01-21)
Twenty fifth release. Comparing with the previous version, the updates are as follows:
The length of the ProductID field is changed from Char[20] to Char[256], and the field
description is modified in the gft CDR.
Issue 24 (2013-11-30)
Twenty fourth release. Comparing with the previous version, the updates are as follows:
Modified the data type of OperateResult from Char[1] to Char[8] in w_aoc CDR.
Added the values of 15, 16, 42, 77, 185 and 196 in OperateType in w_kpi CDR.
Added the values of 51, 201-214 and 216-218 in OperateResult in w_kpi CDR.
Issue 23 (2013-07-30)
Twenty third release. Comparing with the previous version, the update is as follows:
Modify the document bug.
Issue 22 (2013-05-28)
Twenty second release. Comparing with the previous version, the updates are as follows:
Modified the generation scenario and the description in the field name of
ChargingPartyNumber in the clr CDR.
Deleted the value range for IMEI parameter in rec, sms, mms and data CDRs.
Issue 26 (2014-03-31)
iii
OCS
Call Detail Record Reference
Issue 21 (2013-03-28)
Twenty first release. Comparing with the previous version, the updates are as follows:
The 305th-332th parameters are deleted in rec CDR for previous version.
Change the data type from Integer[4] into Integer[8] for TerPreSum and TerCurSum
parameters in w_trans CDR.
Delete the note for CallDuration parameter in w_abr, rec and w_rec CDRs.
Issue 20 (2012-12-27)
Twentieth release. Comparing with the previous version, the updates are as follows:
Issue 19 (2012-09-29)
Nineteenth release. Comparing with the previous version, the updates are as follows:
Issue 18 (2012-05-02)
Eighteenth release. Comparing with the previous version, the updates are as follows:
Issue 17 (2012-03-15)
Seventeenth release. Comparing with the previous version, the updates are as follows:
Issue 26 (2014-03-31)
iv
OCS
Call Detail Record Reference
Add the values of 75, 76, and 193 in OperateType in w_kpi CDR.
Issue 16 (2012-01-10)
Sixteenth release. Comparing with the previous version, the updates are as follows:
Add the information about accumulator changes to the AddtionalInfo field in a vou CDR.
Issue 15 (2011-12-15)
Fifteenth release. Comparing with the previous version, the updates are as follows:
Issue 14 (2011-11-30)
Fourteenth release. Comparing with the previous version, the updates are as follows:
Issue 13 (2011-09-15)
Thirteenth release. Comparing with the previous version, the updates are as follows:
Issue 12 (2011-08-23)
Twelfth release. Comparing with the previous version, the updates are as follows:
Modify the description about the Integer data type in CDR Field Type.
Modify all of the value range which data type are Integer[8] in the return CDR.
Issue 11 (2011-07-31)
Eleventh release. Comparing with the previous version, the updates are as follows:
Issue 10 (2011-06-30)
Tenth release. Comparing with the previous version, the updates are as follows:
Change the ninety seventh parameter from Reserved to LoanAmount in vou CDR.
Change the ninety eighth parameter from Reserved to LoanPoundage in vou CDR.
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
Add the value of 31, 33, 39, 83, 84, and 85 in OperateType in w_kpi CDR.
Change the data type of AddtionalInfo form char[256] to char[512] in mgr CDR.
Add the default value in ServiceID, SPID, and CategoryID in data CDR.
Issue 09 (2011-06-14)
Ninth release. Comparing with the previous version, the updates are as follows:
Issue 08 (2011-05-31)
Eighth release. Comparing with the previous version, the updates are as follows:
Delete the values of 1, 22, 106, 107 and 108 in Result Code in w_trans CDR.
Modify the description of the field ChargingPartyNumber in rec, sms, mms, data, vou,
com, mgr, and clr CDRs.
Add the values of 79, 80,151,172 and 173 in OperateType in w_kpi CDR.
Add the parameters from 305 to 332 in CBP-Generated CDR Instance-rec CDR.
Issue 07 (2011-05-11)
Seventh release. Comparing with the previous version, the updates are as follows:
Issue 26 (2014-03-31)
vi
OCS
Call Detail Record Reference
Issue 06 (2011-04-12)
Sixth release. Comparing with the previous version, the updates are as follows:
Issue 05 (2011-03-30)
Fifth release. Comparing with the previous version, the updates are as follows:
Change the data type of ServiceType from char[20] to char[32] in rec CDR.
Add the value of 157, 171 and ranging from 160 to 165 in OperateType in w_kpi CDR.
Add the value of 102022109 in Result code of CBP-generated CDRs table in section
3.1.1 General Description.
Issue 04 (2011-03-18)
Forth release. Comparing with the previous version, the updates are as follows:
Add the values of 143, 144, 156, 158,159 and ranging from 166 to 170 in OperateType
in w_kpi CDR.
Issue 03 (2011-03-04)
Third release. Comparing with the previous version, the updates are as follows:
Issue 02 (2011-02-25)
Second release. Comparing with the previous version, the updates are as follows:
Issue 01 (2011-01-27)
The first release.
Issue 26 (2014-03-31)
vii
OCS
Call Detail Record Reference
Contents
Contents
About This Document .................................................................................................................... ii
1 CDR Overview............................................................................................................................... 1
1.1 Basic Concepts.............................................................................................................................................................. 1
1.2 CDR Storage Directories .............................................................................................................................................. 4
1.2.1 CBP-generated CDR storage directories.................................................................................................................... 4
1.2.2 SCP-generated CDR storage directories .................................................................................................................... 5
1.2.3 BMP-generated CDR storage directories ................................................................................................................... 6
1.3 Maximum CDR File Size ............................................................................................................................................. 7
1.4 CDR-Processing Mechanism ........................................................................................................................................ 7
1.4.1 CBP-generated CDR Processing Process .................................................................................................................. 7
1.4.2 SCP-generated CDR Processing Process ................................................................................................................... 9
1.4.3 BMP-generated CDR Processing Process................................................................................................................ 10
1.4.4 CDR Processing Flow .............................................................................................................................................. 11
1.5 CDR Types.................................................................................................................................................................. 12
1.5.1 CBP-Generated CDR ............................................................................................................................................... 12
1.5.2 SCP-Generated CDR ............................................................................................................................................... 12
1.5.3 BMP-Generated CDR .............................................................................................................................................. 13
1.6 CDR Types in Service Application Scenarios ............................................................................................................. 14
1.7 Conventions ................................................................................................................................................................ 15
viii
OCS
Call Detail Record Reference
Contents
Issue 26 (2014-03-31)
ix
OCS
Call Detail Record Reference
1 CDR Overview
CDR Overview
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
OCS
The online charging system (OCS) implements the convergence of the following items:
Online charging and offline charging Voice service charging and data service charging
Prepaid subscriber management and postpaid subscriber management. The OCS provides
functions such as rating, subscriber balance management, and real-time monitor. The OCS is
composed of the convergent billing point (CBP), business management point (BMP), and
service control point (SCP).
CBP
The CBP is designed to provide the following capabilities:
CDR processing
After the charging is complete, the CBP system generates the CDR.
SCP
In the OCS system, the SCP provides call access and call control functions.
In the OCS system, the SCP provides service control and service processing functions,
including:
Data verification
The SCP is connected to the BMP for data synchronization. The SCP communicates with the
uniform voucher center (UVC) for recharging. The SCP communicates with the intelligent
peripheral (IP) to obtain the voice resources needed by the subscriber terminal. In addition,
the SCP is connected to the CBP to send messages to the CBP for charging and rating. The
SCP provides the interactive voice response (IVR) process through which subscribers can
recharge accounts, query for balances, and change passwords.
CDR
A CDR refers to the information about a charging event collected in a certain format. The
information includes call start time, call duration, and transferred data amount. The
information is used for charging and settlement. It is also provided for subscribers as the
service usage records.
The system generates a separate CDR for each party of a charging event. In this case, the
system does not consider whether the party pays for a partial charge or the entire charge. In
other words, a charging event can have one or more CDRs, for example, when the call
duration is long or when there is more than one charged party.
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
RBI
The recorded bill interface (RBI) is the channel for transferring files between the CBP and an
external element. The RBI can split, compress, and filter collected CDR files. It can also
transfer CDRs of the CBP to the charging center.
Mediation
The Mediation collects CDRs generated by each network elements. In the OCS service, the
Mediation preprocesses the CDR files transferred by the RBI and uploads them to the Billing
system.
Billing
In the OCS service, the Mediation preprocesses the CDR files transferred by the RBI and
uploads them to the Billing system for CDR sorting, storage, accumulation, and summary.
The prefix of the CDRs of test subscribers is trec, regardless of the subscriber type
(prepaid) and processing result (normal, failure, or error).
This document uses the prefixes of the normal CDRs of prepaid subscribers as examples to describe the
formats of the CDRs generated by the CBP.
The naming format of the CDRs generated by the SCP is different from the naming format of the CDRs
generated by the CBP.
Offline CDR
A charging mechanism in which the charging information does not affect the service
providing in real time. The offline charging is based on CDR charging, that is, the system
performs rating and fee deduction based on the collected original call records of subscribers.
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
Online CDR
A charging mechanism in which the account balance is monitored online and in real time.
When the account balance of a subscriber is used up, the system prevents the subscriber from
using services. In this case, the risk of owing fees is reduced.
Prepaid subscribers
Test subscribers
Path to various CDRs: ${CBP_CDRPATH}/output/test. All the normal, failure, and
error CDRs of test subscribers are stored in this path.
The temp and bak directories are created in the preceding paths to store the temporary and
backup CDRs respectively. For example, ${CBP_CDRPATH}/output/pps/normal/temp and
${CBP_CDRPATH}/output/pps/normal/bak.
Temporary directory: It is the directory for storing temporary CDR files before the CDR files meet
the switching conditions.
Backup directory: After obtaining a CDR from the destination directory where the CBP stores CDRs,
the RBI backs up the CDR in the backup directory.
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
Path to the CDRs that are generated after the international roaming offline CDRs are
rated: ${CBP_CDRPATH}/output/offline/ir
The voice, sms and data directories in this path contain the temp and bak
subdirectories.
Path to the CDRs that are generated after the SCP passby CDRs are re-rated:
${CBP_CDRPATH}/output/offline/scpabr
The voice and data directories in this path contain the temp and bak subdirectories.
Path to the CDRs that are generated after the MDSP passby offline CDRs are re-rated:
${CBP_CDRPATH}/output/offline/mdsp
The directories that are categorized by data service type in this path contain the temp
and bak subdirectories.
Path to the CDRs that are generated after the IMS offline CDRs are re-rated:
${CBP_CDRPATH}/output/offline/ims
The temp and bak directories exist in this path.
The re-rating of offline CDRs has a special requirement. The *.err CDRs generated for the CDRs that
fail to be re-rated are all stored in the error directory. No fail directory is involved.
The duration for writing the CDR file reaches the maximum duration.
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
It is the destination directory for storing CDR files after the CDR files meet the
switching conditions.
The duration for writing the CDR file reaches the maximum duration.
For details, see 1.3 Maximum CDR File Size.
The CDR files are not switched automatically at 00:00:00.
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
A CDR file in the temporary directory is moved to the destination directory if either of the
following conditions is met:
The duration for writing the CDR file reaches the maximum duration.
For details, see 1.3 Maximum CDR File Size.
The size of a SCP-generated CDR file is set by using the CRTRECSIZE field in the
nodesyspara.cfg file in the following directory:
${TELLIN_DIR}/config
For example:
[COMMON]
...
CRTRECTIME = 600
// Maximum interval for storing the CDR file [600,86400 seconds]
CRTRECSIZE = 5000
// Maximum size of CDR file [1,10000KB]
In this example, the maximum size of a CDR file is set to 5,000 KB and the maximum
duration for writing a CDR file is set to 600 seconds. Thus, a CDR file is moved from
the temporary directory to the destination one if either of the following conditions is met:
The maximum duration for writing the CDR file is equal to or greater than 600
seconds.
The size of a BMP-generated CDR file can be not configured. The size of a
BMP-generated CDR file is set in the MAX_FILESIZE field in the DataStoreFile file
.
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
Figure 1-1 Relationships between components for processing CDRs generated by the CBP
Table 1-1 describes the process in which components process CDRs generated by the CBP.
Table 1-1 Process of processing CDRs generated by the CBP
No.
Description
The charging information sent from external NEs and charging data
configured on the SMAP are loaded on the CBP for charging.
Internal CDR files generated after the charging on the CBP are sent to the
Mediation/RBI for format conversion through file interfaces.
The Mediation/RBI converts internal CDR formats into external CDR
formats. According to configurations, the RBI regularly obtains CDRs after
conversion from the output directory of the Mediation/RBI.
The Mediation/RBI sends the CDR files after format conversion to the
integrated accounting and settlement system for further processing.
Messages: The CBP analyzes charging requests according to the Diameter messages that
are transferred between external NEs and the CBP, performs charging, and generates
CDR files.
CDRs: The CBP analyzes charging information in the offline CDRs that are transferred
between external NEs and the CBP, performs charging, and generates CDR files.
The processes of processing charging requests in messages and CDRs are similar.
The following takes the charging request initiated by the SCP as an example to describe the
CDR generation process:
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
1.
2.
The SCP requests the CBP to perform charging based on the charging request initiated
by a subscriber.
3.
The CBP interacts with the SCP, charges the subscriber for services in real time based on
the charging information and charging data configured on the SMAP, and generates
CDR files after the charging.
Table 1-2 describes the process in which components process CDRs generated by the SCP.
Table 1-2 Process of processing CDRs generated by the SCP
No.
Description
The Mediation/RBI preprocesses the CDR files and uploads them to the
accounting and settlement system for further processing.
Issue 26 (2014-03-31)
OCS
Call Detail Record Reference
1 CDR Overview
If the interaction between the SCP and CBP is normal, the CDRs generated by the SCP
are used for reconciliation, query, and problem locating, and do not affect the CDRs
generated by the CBP.
When an exception occurs during the interaction between the SCP and CBP in a calling,
called, or forwarding flow, the SCP generates a CDR of abnormal call fee deduction if
the system allows the subscriber to go on using the call service. Then the CBP deducts
the fee that has not been deducted based on the CDR.
In call processes including the ones of a calling party, a called party, and a forwarding
party, when an exception occurs during the interaction between the SCP and CBP, the
SCP generates a CDR of abnormal call fee deduction if the system allows the party to go
on using the call service. Then the CBP deducts the fee after the normal time based on
the CDR.
In the process of using the SM service, when an exception occurs during the interaction
between the SCP and CBP, the SCP generates an SM offline CDR if the system allows
the user to go on using the SM service. The exception can be a time-out disconnection
between the SCP and CBP or a system error. In this case, the CBP obtains CDRs
periodically and deducts the fee based on the CDR.
Table 1-3 describes the process for processing a BMP-generated CDR is as follows:
Table 1-3 Process of processing normal CDRs generated by the BMP
No.
Description
Issue 26 (2014-03-31)
10
OCS
Call Detail Record Reference
1 CDR Overview
No.
Description
The accounting and settlement system obtains CDR files and processes the
files for further processing.
A CBP-generated CDR is transferred from the Mediation to the Billing system. The CDR
is used to generate a detailed bill or a bill of the accumulated charge.
When the SCP interacts normally with the CBP, a CDR generated by the SCP has no
direct impact on a CDR generated by the CBP.
In call processes including the ones of a calling party, a called party, and a forwarding
party, when an exception occurs during the interaction between the SCP and CBP, the
SCP generates a CDR of abnormal call fee deduction if the system allows the party to
go on using the call service. Then the CBP deducts the fee after the normal time
based on the CDR. For the CDR-processing mechanism, see section 1.4.2
SCP-generated CDR Processing Process.
In the process of using the SM service, when an exception occurs during the
interaction between the SCP and CBP, the SCP generates an SM offline CDR if the
system allows the user to go on using the SM service. The exception can be a
time-out disconnection between the SCP and CBP or a system error. In this case, the
CBP obtains CDRs periodically and deducts the fee based on the CDR. For the
CDR-processing mechanism, see section 1.4.2 SCP-generated CDR Processing
Process.
The CBP system supports the charging requests in the message and the CDR modes. It also
generates matching CDR files. The CDR-processing processes are similar for the two modes.
The charging request initiated by the SCP is taken as an example in this document.
The CBP system generates a CDR when a charging event ends. For prepaid charging events,
the processing mechanisms for writing CDRs are same. The CBP system completes charging
after one or more attempts to interact with an external network element in the Diameter
message or CDR mode. After a charging event ends, the CBP system writes the CDR file.
The process for generating a CDR file is as follows:
1.
2.
The SCP requests the CBP to charge based on the charging event initiated by a user.
3.
The CBP interacts with the SCP and completes the charging.
4.
Issue 26 (2014-03-31)
11
OCS
Call Detail Record Reference
1 CDR Overview
Processing a CDR
After a charging event ends, the CBP system writes the CDR records and stores them in the
specified directory. Thus, the process for writing a CDR is complete.
The charge bill dumping service then scans the CDR storage directories. If CDR files meet
the required conditions, the service stores them in the database so that other network elements
can use the CDR files.
CDR Description
rec
sms
The sms CDR records the information about the short message.
mms
The mms CDR records the information about the multimedia message.
data
The data CDR records the basic traffic of the data service.
vou
The vou CDR records the information about the recharge or bonus.
mon
The mon CDR records the information about the monthly fee and the
bonus.
com
mgr
clr
The clr CDR records the information about clearing the accounts of
subscribers.
return
The return CDR records this CDR when forcing a subscriber to pay for
the loan during recharge or transfer.
gft
The gft CDR records the bonus information when a subscriber recharging
or being charged the month rental and there is bonus for a subscriber.
Issue 26 (2014-03-31)
12
OCS
Call Detail Record Reference
1 CDR Overview
CDR Description
w_rec
w_abr
The system records the w_abr CDR after sending a request to the
CBE and errors occur on the CBE.
w_vou
The system records the w_vou CDR after setting common recharge
cards and sending a confirmation request.
w_abu
The system records the w_abu CDR after setting the state of common
recharge cards and sending a request to the CBE to confirm the
recharge, but errors occur on the CBE.
w_smr
The system records the w_smr CDR is recorded when the subscriber
information does not exist, but the SMS transfer is allowed.
w_smo
w_trans
The w_trans CDR records the information when the balance transfer.
w_loan
w_kpi
w_postop
w_aoc
The w_aoc CDR records the USSD notify information about the call
cost, call time and remain balance to subscriber after a call.
CDR Description
package
pack_revert
manproduct
Issue 26 (2014-03-31)
13
OCS
Call Detail Record Reference
1 CDR Overview
Scenario Description
CDR
Type
CDR Format
Reference
rec CDR
vou CDR
CBP-generated CDR
In the OCS service, when subscriber A
calls subscriber B and subscriber B
hangs up after answering the call for
certain duration, an rec CDR is
generated.
Call
Recharge
Short Message
sms CDR
Month rent
mon
CDR
w_rec
CDR
SCP-generated CDR
Call
Issue 26 (2014-03-31)
14
OCS
Call Detail Record Reference
Service
Application
Scenario
Category
1 CDR Overview
Scenario Description
CDR
Type
CDR Format
Reference
w_vou
CDR
w_smo
CDR
package
CDR
Recharge
SM
BMP-generated CDR
Switch main
product
1.7 Conventions
The section describes the conventions in this document.
This document covers only the CBP CDR and SCP CDR processing flow and mechanism.
The number of CDR fields will increase in later versions. The new fields will be added to the end of the
CDR. When the cooperation of a third party is required, do not limit the number of CDR fields.
Issue 26 (2014-03-31)
15
OCS
Call Detail Record Reference
Description
CDR prefix
Indicates the prefix of a CDR file name and refers to the type of the
CDR. For example, the prefix rec indicates that a CDR is a call CDR.
CDRs can be distinguished based on CDR file name prefixes. For
details, see 1.5.1 CBP-Generated CDR.
YYYYMMDD
Indicates an underline.
Issue 26 (2014-03-31)
16
OCS
Call Detail Record Reference
Field
Description
CBP node
number
SN
CDR suffix
Description
CDR prefix
Indicates the prefix of a CDR file name and refers to the type of the
CDR.
For example, the prefix w_rec indicates that a CDR is a call CDR.
CDRs can be distinguished based on CDR file name prefixes. For
details, see 1.5.2 SCP-Generated CDR .
YYYYMMDD
Indicates an underline.
SCPID
BB
CC
Issue 26 (2014-03-31)
17
OCS
Call Detail Record Reference
Field
Description
The SCF number is a numeric string of two digits.
Value range: 01-99
Index number
CDR suffix
Description
CDR prefix
Indicates the prefix of a CDR file name and refers to the type of the
CDR.
Indicates an underline.
YYYYMMDDH
HMMSS
Indicates an underline.
BMPNodeID
SEQ
Issue 26 (2014-03-31)
18
OCS
Call Detail Record Reference
Field
Description
Value range: 000001-999999
NOTE
There is no duplicate serial number on the current day. Serial numbers are
consecutive, and they are also generated for empty files.
CDR suffix
The values of certain fields can be null, which appears as "||" in the CDR records.
Description
Integer
Indicates an integer.
Integer[4]
Value range: -231 - 231-1
Integer[8]
Value range: -263 - 263-1
Char
Issue 26 (2014-03-31)
19
OCS
Call Detail Record Reference
Data Type
Description
Numbers enclosed in [] indicates the length of a character string.
The expression of the character string length can be classified into
two types:
Range type
Char[20]: Indicates a character string of 0 to 20 characters.
Format
Example
Year
YYYY
2006
Month
MM
04
Date
DD
25
Hour
hh
11
Minute
mm
42
Second
ss
23
Issue 26 (2014-03-31)
20
OCS
Call Detail Record Reference
Issue 26 (2014-03-31)
21
OCS
Call Detail Record Reference
Description
Successfully.
102022024
102022027
102022028
102022046
102022051
102022056
When the fee for the short message is refunded, the history
fee deduction record cannot be found.
102022057
102022058
102022060
102022081
102022082
102022083
102022084
102022085
102022086
102022087
102022088
102022089
102022090
102022092
Issue 26 (2014-03-31)
22
OCS
Call Detail Record Reference
Result code
Description
cycle.
102022093
102022094
102022095
102022096
102022097
102022098
102022099
102022100
102022101
102022102
102022103
102022104
102022105
102022106
102022109
102022111
102022112
102022113
102023002
102023003
Rollback is performed.
102023005
Issue 26 (2014-03-31)
23
OCS
Call Detail Record Reference
Result code
Description
102023008
102023009
102023010
102023011
102023012
102023013
102023014
102023015
102023025
102023038
102023040
102023064
102023073
102023098
102023099
102023100
102023101
102029998
Authentication failed.
102022109
402020000-402029999
System error.
Issue 26 (2014-03-31)
24
OCS
Call Detail Record Reference
Account Description
2000
2001
4001
4002
4003
4004
4005
4006
4007
4008
4501
4502
4503
4504
4505
4506
4507
4508
Issue 26 (2014-03-31)
25
OCS
Call Detail Record Reference
Generation Scenario
When subscriber A calls subscriber B and subscriber B answers the call, the OCS system
generates an rec CDR after the call.
If the charging number has child-parent relations with other numbers, that is, the charging number and
other numbers are child-parent cards, the charging information about other numbers is contained in the
generated CDR of the charging party.
The child-parent cards refer to two or more numbers with one number being the parent card and other
numbers being child cards. The parent card pays for the child cards and child cards can use the products
that the parent card subscribes to.
Format
Table 3-3 describes each field of rec CDR file.
NbOfPeriodicTime indicates the number repetitions in the following charging periods (CPs) area.
Field Name
Field Type
Description
SerialNo
Integer[8]
SubSequence
Integer[4]
TimeStamp
Char[14]
ServiceKey
Integer[4]
Issue 26 (2014-03-31)
26
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
CallingPartyNu
mber
Char[64]
CalledPartyNu
mber
Char[64]
CallingPartyIM
SI
Char[64]
CalledPartyIMS
I
Char[64]
Issue 26 (2014-03-31)
27
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
DialedNumber
Char[64]
10
OriginalCalledP
arty
Char[64]
11
ServiceFlow
Char[1]
1: calling process
2: called process
3: forward flow
Not null
12
CallForwardInd
icator
Char[2]
Issue 26 (2014-03-31)
28
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
13
CallingRoamInf
o
Char[20]
14
CallingCellID
Char[20]
15
CalledRoamInf
o
Char[20]
16
CalledCellID
Char[20]
17
TimeStampOfS
SP
Char[14]
18
TimeZoneOfSS
P
Integer[4]
19
BearerCapabilit
y
Char[32]
Issue 26 (2014-03-31)
0: NormalCall
8: VideoCall
9: VoiceData
10: VoiceFax
29
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
20
BearerCapabilit
y2
Char[32]
Reserved
21
ChargingTime
Char[14]
22
WaitDuration
Integer[4]
23
CallDuration
Integer[4]
24
TerminationRea
son
Integer[4]
0: unknown
1: Hang up
2: Insufficient balance
Other: reserved
CallReferenceN
umber
Char[128]
26
IMEI
Char[24]
27
ChargeDuration
Integer[4]
28
AccessPrefix
Char[20]
29
RoutingPrefix
Char[20]
Issue 26 (2014-03-31)
30
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
30
RedirectingPart
yID
Char[20]
31
BrandID
Integer[4]
32
SubCOSID
Integer[4]
33
ChargingParty
Number
Char[64]
MSISDN
The number format is the format of the
mobile phone number.
35
ChargePartyInd
icator
PayType
Char[1]
Char[1]
36
BillCycleID
Char[20]
0: Prepaid
1: Postpaid
Issue 26 (2014-03-31)
31
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
ChargingType
Char[1]
38
CallType
Char[1]
0: Local call
3: International call
RoamState
Char[1]
40
ResultCode
Integer[4]
0: No roaming
3: International Roaming
41
FPHPrefix
Char[20]
42
CallingHomeC
ountryCode
Integer[4]
43
CallingHomeAr
eaNumber
Integer[4]
44
CallingHomeN
etworkCode
Integer[4]
Issue 26 (2014-03-31)
32
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
45
CallingRoamCo
untryCode
Integer[4]
46
CallingRoamAr
eaNumber
Integer[4]
47
CallingRoamNe
tworkCode
Integer[4]
48
CalledHomeCo
untryCode
Integer[4]
49
CalledHomeAr
eaNumber
Integer[4]
50
CalledHomeNet
workCode
Integer[4]
51
CalledRoamCo
untryCode
Integer[4]
52
CalledRoamAre
aNumber
Integer[4]
53
CalledRoamNet
workCode
Integer[4]
54
ProductID
Char[20]
55
ServiceType
Char[32]
Issue 26 (2014-03-31)
33
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
They are predefined in OCS.
The options are as follows:
Other: reserved
The value range of each digit indicates whether
the service is activated.
0: Not activated
1: Activated
Not null
56
HotLineIndicat
or
Integer[4]
Issue 26 (2014-03-31)
0: Normal call
1: ForbiddenNumber
2: EmergencyNumber
3: FreeNumber
4: SpecialNumber
8: CallCenterandAttandent
34
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
9: Voice Mail
HomeZoneID
Integer[4]
58
NPFlag
Char[1]
0: Not NP
1: NP out
NPPrefix
Char[6]
60
CallingGroupN
o
Integer[4]
61
CalledGroupNo
Integer[4]
62
UserState
Char[10]
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
Issue 26 (2014-03-31)
35
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
management state of a subscriber. The options
are as follows:
Third digit: Whether the subscriber claims
missing.
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
0: no
1: yes
63
SubscriberID
Char[20]
0: no
1: yes
64
OpposeNumber
Type
Integer[4]
1: PSTN
2: Mobile
3: Native Unknown
4: International Unknown
Other: to be extended
Reserved
Integer[4]
66
ChargeOfItems
Accounts
Integer[8]
67
Issue 26 (2014-03-31)
ChargeOfDurati
Integer[8]
36
OCS
Call Detail Record Reference
SN
Field Name
Field Type
onAccounts
Description
resource.
Value range: -263-263-1
Not null
The default value is 0.
68
ChargeOfFund
Accounts
Integer[8]
69
ChargeFromPre
paid
Integer[8]
70
PrepaidBalance
Integer[8]
71
ChargeFromPos
tpaid
Integer[8]
72
PostPaidBalanc
e
Integer[8]
73
AccountID
Char[20]
74
AccountKey
Integer[8]
75
CurrencyCode
Integer[4]
76
Issue 26 (2014-03-31)
Reserved
Char[20]
37
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
77
AccountType1
Integer[4]
78
FeeType1
Integer[4]
79
ChargeAmount
1
Integer[8]
80
CurrentAcctAm
ount1
Integer[8]
81
AccountType2
Integer[4]
82
FeeType2
Integer[4]
83
ChargeAmount
2
Integer[8]
84
CurrentAcctAm
ount2
Integer[8]
85
Issue 26 (2014-03-31)
AccountType3
Integer[4]
38
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0 means not used.
Not null
The default value is 0.
86
FeeType3
Integer[4]
87
ChargeAmount
3
Integer[8]
88
CurrentAcctAm
ount3
Integer[8]
89
AccountType4
Integer[4]
90
FeeType4
Integer[4]
91
ChargeAmount
4
Integer[8]
92
CurrentAcctAm
ount4
Integer[8]
93
AccountType5
Integer[4]
Issue 26 (2014-03-31)
39
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
94
FeeType5
Integer[4]
95
ChargeAmount
5
Integer[8]
96
CurrentAcctAm
ount5
Integer[8]
97
AccountType6
Integer[4]
98
FeeType6
Integer[4]
99
ChargeAmount
6
Integer[8]
100
CurrentAcctAm
ount6
Integer[8]
101
AccountType7
Integer[4]
Issue 26 (2014-03-31)
40
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
102
FeeType7
Integer[4]
103
ChargeAmount
7
Integer[8]
104
CurrentAcctAm
ount7
Integer[8]
105
AccountType8
Integer[4]
106
FeeType8
Integer[4]
107
ChargeAmount
8
Integer[8]
108
CurrentAcctAm
ount8
Integer[8]
109
AccountType9
Integer[4]
Issue 26 (2014-03-31)
41
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
110
FeeType9
Integer[4]
111
ChargeAmount
9
Integer[8]
112
CurrentAcctAm
ount9
Integer[8]
113
AccountType10
Integer[4]
114
FeeType10
Integer[4]
115
ChargeAmount
10
Integer[8]
116
CurrentAcctAm
ount10
Integer[8]
117
BonusValidity1
Char[14]
118
Issue 26 (2014-03-31)
BonusValidity2
Char[14]
42
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
rewarded resource. The validity period does not
change when fees are deducted from accounts. In
this case, the validity periods of consumption
resources are not recorded.
Format: YYYYMMDDhhmmss
119
BonusValidity3
Char[14]
120
BonusValidity4
Char[14]
121
BonusValidity5
Char[14]
122
BonusValidity6
Char[14]
123
BonusValidity7
Char[14]
124
BonusValidity8
Char[14]
125
Issue 26 (2014-03-31)
BonusValidity9
Char[14]
43
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Format: YYYYMMDDhhmmss
126
BonusValidity1
0
Char[14]
127
CallingVPNTo
pGroupNumber
Char[15]
128
CallingVPNGro
upNumber
Char[10]
129
CallingVPNSho
rtNumber
Char[10]
130
CalledVPNTop
GroupNumber
Char[15]
131
CalledVPNGro
upNumber
Char[10]
132
CalledVPNShor
tNumber
Char[10]
133
CallingNetwork
Type
Char[10]
100: PSTN
200: GSM
Can be null
134
CalledNetwork
Type
Char[10]
Issue 26 (2014-03-31)
100: PSTN
101: PBX
102: PHS
44
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
200: GSM
201: GPRS
202: EDGE
300: CDMA
400: WCDMA
500: TD-SCDMA
600: IP/IMS
601: Wifi
602: WIMAX
Other to be extended
Can be null
135
GroupCallType
Char[10]
0: On-net call
1: Off-net call
3: Common call
Can be null
136
GroupPayFlag
Char[10]
0: Personal payment
1: Group payment
Can be null
137
Reserved
Integer[4]
138
Reserved
Char[10]
139
Reserved
Char[10]
140
Reserved
Char[10]
141
Reserved
Char[10]
142
AddtionalInfo
Char[256]
143
144
Issue 26 (2014-03-31)
StartTimeOfBil
lCycle
Char[14]
SecondChargin
Char[64]
45
OCS
Call Detail Record Reference
SN
Field Name
Field Type
gPartyNumber
Description
of the child-parent cards. In the example, the
value of the field is the number of subscriber C.
The number is same as calling party number in
MO and called party number in MT.
There are several special situations. Like
Child-Parent card feature, the calling party
number is the child, the charging party number is
the parent's number. This field is null when the
service is paid only by account.
The number format are as follows:
MSISDN
The number format is the format of the
mobile phone number.
SecondChargin
gPartyPayType
Char[1]
0: Prepaid
1: Postpaid
NOTE
If the value of the field is null, the system records the
payment type of the parent card subscriber.
146
SecondChargin
gPartyBillCycle
ID
Char[20]
147
ChargeOfItems
SecondAccount
s
Integer[8]
148
Issue 26 (2014-03-31)
ChargeOfDurati
onSecondAcco
Integer[8]
46
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: -263-263-1
unts
Not null
The default value is 0.
149
ChargeOfFund
SecondAccount
s
Integer[8]
150
ChargeFromSec
ondPrepaidAcc
ount
Integer[8]
151
SecondPrepaid
AccountBalanc
e
Integer[8]
152
ChargeFromSec
ondPostpaidAc
count
Integer[8]
153
154
SecondPostpaid
AccountBalanc
e
Integer[8]
SecondAccount
ID
Char[20]
155
SecondAccount
Key
Integer[8]
156
SecondAccount
CurrencyCode
Integer[4]
157
Reserved
Char[20]
158
SecondAccount
Integer[4]
Issue 26 (2014-03-31)
47
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Type1
Description
others, such as the parent card.
0 means not used.
Not null
The default value is 0.
159
SecondFeeType
1
Integer[4]
160
SecondCharge
Amount1
Integer[8]
161
SecondCurrent
AcctAmount1
Integer[8]
162
SecondAccount
Type2
Integer[4]
163
SecondFeeType
2
Integer[4]
164
SecondCharge
Amount2
Integer[8]
165
SecondCurrent
AcctAmount2
Integer[8]
Issue 26 (2014-03-31)
48
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
166
SecondAccount
Type3
Integer[4]
167
SecondFeeType
3
Integer[4]
168
SecondCharge
Amount3
Integer[8]
169
SecondCurrent
AcctAmount3
Integer[8]
170
SecondAccount
Type4
Integer[4]
171
SecondFeeType
4
Integer[4]
172
SecondCharge
Amount4
Integer[8]
173
Issue 26 (2014-03-31)
SecondCurrent
AcctAmount4
Integer[8]
49
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: -263-263-1
Not null
The default value is 0.
174
SecondAccount
Type5
Integer[4]
175
SecondFeeType
5
Integer[4]
176
SecondCharge
Amount5
Integer[8]
177
SecondCurrent
AcctAmount5
Integer[8]
178
SecondBonusV
alidity1
Char[14]
179
SecondBonusV
alidity2
Char[14]
180
Issue 26 (2014-03-31)
SecondBonusV
alidity3
Char[14]
50
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
recorded.
Format: YYYYMMDDhhmmss
181
SecondBonusV
alidity4
Char[14]
182
SecondBonusV
alidity5
Char[14]
183
184
185
CallingCluster
Number
Integer[4]
CalledClusterN
umber
Integer[4]
OriginalCalling
Party
Char[64]
186
Reserved
Integer[4]
187
Reserved
Integer[4]
188
OppositePartyN
umber
Char[64]
Issue 26 (2014-03-31)
MSISDN
The number format is the format of the
mobile phone number.
51
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
SuperBuddyCal
lType
Integer[4]
Not null
NOTE
If this field has values 2 and 3 at the same time, the
value 2 takes priority in CDRs.
190
SponsorID
Char[8]
191
SponsorDiscou
nt
Char[25]
192
DiameterSessio
nID
Char[128]
Issue 26 (2014-03-31)
52
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
system, set the value to 0.
StartcountryGro
up
Integer[4]
194
EndcountryGro
up
Integer[4]
195
Reserved
Integer[4]
196
Reserved
Integer[4]
197
Reserved
Integer[4]
198
Reserved
Char[1]
199
Reserved
Char[32]
200
Reserved
Char[32]
201
Reserved
Char[64]
202
Reserved
Integer[4]
203
Reserved
Char[14]
204
DiscountOfLast
EffProduct
Integer[4]
Not null
The default value is 100.
205
subscriberkey
Integer[4]
206
Issue 26 (2014-03-31)
accumulationch
ange
Char[256]
53
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The value format is as follows:
Accumulation ID 1, accumulation switch time 1,
change value 1; accumulation ID 2, accumulation
switch time 2, change value 2...
The value contains only numerals. The account
ID and balance change is separated by a comma
(,), and information of different accounts is
separated by a semicolon (;). The information
about up to 10 accounts can be included. The
excess account information will be discarded.
207
208
UsageServiceT
ype
Integer[4]
SourceSerialNo
Integer[8]
209
SourceSubSequ
ence
Integer[4]
210
AcctBalChgList
Char[768]
211
SubscriberType
Integer[4]
Reserved
212
OriginCdrFilen
ame
Char[64]
Issue 26 (2014-03-31)
54
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
213
CurCDRLineN
o
Integer[4]
Reserved
214
DDSDiscountO
ff
Integer[4]
215
Reserved
Integer[8]
216
Reserved
Integer[8]
217
Reserved
Integer[8]
218
Reserved
Integer[8]
219
SecondSubscrib
erKey
Integer[4]
220
Reserved
Integer[4]
221
Reserved
Integer[4]
222
Reserved
Integer[4]
223
Reserved
Char[22]
224
familyid
Integer[4]
225
accounttype1
Integer[4]
226
BalanceBefore
Charge1
Integer[8]
227
BalanceAfterCh
arge1
Integer[8]
228
ChargeFee1
Integer[8]
229
accounttype2
Integer[4]
230
BalanceBefore
Charge2
Integer[8]
Issue 26 (2014-03-31)
55
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
231
BalanceAfterCh
arge2
Integer[8]
232
ChargeFee2
Integer[8]
233
accounttype3
Integer[4]
234
BalanceBefore
Charge3
Integer[8]
235
BalanceAfterCh
arge3
Integer[8]
236
ChargeFee3
Integer[8]
237
accounttype4
Integer[4]
238
BalanceBefore
Charge4
Integer[8]
239
BalanceAfterCh
arge4
Integer[8]
240
ChargeFee4
Integer[8]
241
accounttype5
Integer[4]
242
BalanceBefore
Charge5
Integer[8]
243
BalanceAfterCh
arge5
Integer[8]
244
Issue 26 (2014-03-31)
ChargeFee5
Integer[8]
56
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
account.
The default value is 0.
245
accounttype6
Integer[4]
246
BalanceBefore
Charge6
Integer[8]
247
BalanceAfterCh
arge6
Integer[8]
248
ChargeFee6
Integer[8]
249
accounttype7
Integer[4]
250
BalanceBefore
Charge7
Integer[8]
251
BalanceAfterCh
arge7
Integer[8]
252
ChargeFee7
Integer[8]
253
accounttype8
Integer[4]
254
BalanceBefore
Charge8
Integer[8]
255
BalanceAfterCh
arge8
Integer[8]
256
ChargeFee8
Integer[8]
257
Issue 26 (2014-03-31)
accounttype9
Integer[4]
57
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
258
BalanceBefore
Charge9
Integer[8]
259
BalanceAfterCh
arge9
Integer[8]
260
ChargeFee9
Integer[8]
261
accounttype10
Integer[4]
262
BalanceBefore
Charge10
Integer[8]
263
BalanceAfterCh
arge10
Integer[8]
264
ChargeFee10
Integer[8]
265
accounttype11
Integer[4]
266
BalanceBefore
Charge11
Integer[8]
267
BalanceAfterCh
arge11
Integer[8]
268
ChargeFee11
Integer[8]
269
accounttype12
Integer[4]
270
Issue 26 (2014-03-31)
BalanceBefore
Charge12
Integer[8]
58
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
271
BalanceAfterCh
arge12
Integer[8]
272
ChargeFee12
Integer[8]
273
accounttype13
Integer[4]
274
BalanceBefore
Charge13
Integer[8]
275
BalanceAfterCh
arge13
Integer[8]
276
ChargeFee13
Integer[8]
277
accounttype14
Integer[4]
278
BalanceBefore
Charge14
Integer[8]
279
BalanceAfterCh
arge14
Integer[8]
280
ChargeFee14
Integer[8]
281
accounttype15
Integer[4]
282
BalanceBefore
Charge15
Integer[8]
283
Issue 26 (2014-03-31)
BalanceAfterCh
arge15
Integer[8]
59
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
284
ChargeFee15
Integer[8]
285
accounttype16
Integer[4]
286
BalanceBefore
Charge16
Integer[8]
287
BalanceAfterCh
arge16
Integer[8]
288
ChargeFee16
Integer[8]
289
accounttype17
Integer[4]
290
BalanceBefore
Charge17
Integer[8]
291
BalanceAfterCh
arge17
Integer[8]
292
ChargeFee17
Integer[8]
293
accounttype18
Integer[4]
294
BalanceBefore
Charge18
Integer[8]
295
BalanceAfterCh
arge18
Integer[8]
296
Issue 26 (2014-03-31)
ChargeFee18
Integer[8]
60
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
297
accounttype19
Integer[4]
298
BalanceBefore
Charge19
Integer[8]
299
BalanceAfterCh
arge19
Integer[8]
300
ChargeFee19
Integer[8]
301
accounttype20
Integer[4]
302
BalanceBefore
Charge20
Integer[8]
303
BalanceAfterCh
arge20
Integer[8]
304
ChargeFee20
Integer[8]
Generation Scenario
When OCS subscriber A sends an SM to subscriber B, and the system successfully deducts
the fee from the account of subscriber A, an sms CDR is generated.
For the description of child-parent cards, see section 3.1.2 rec CDR .
Issue 26 (2014-03-31)
61
OCS
Call Detail Record Reference
Format
Table 3-4 describes each field of sms CDR file.
Table 3-4 Format of sms CDR
SN
Field Name
Field Type
Description
SerialNo
Integer[8]
SubSequence
Integer[4]
TimeStamp
Char[14]
ServiceKey
Integer[4]
CallingPartyNum
ber
Char[64]
NOTE
For E164 number, using international format.
For SPID, keep the original format.
Issue 26 (2014-03-31)
CalledPartyNumb
Char[64]
62
OCS
Call Detail Record Reference
SN
Field Name
Field Type
er
Description
format are as follows:
NOTE
For E164 number, using international format.
For SPID, keep the original format.
CallingPartyIMSI
Char[64]
CalledPartyIMSI
Char[64]
DialedNumber
Char[64]
10
Issue 26 (2014-03-31)
OriginalCalledPar
ty
Char[64]
63
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Special number reroute. International
number form in call forwarding, actual
call number in special number reroute,
filling in original called number when
dialed through an international gateway
office.
Value range: numerals within 0-9, *, #
11
ServiceFlow
Char[1]
12
CallForwardIndic
ator
Char[1]
1: MO process
2: MT process
0: No forwarding
CallingRoamInfo
Char[20]
14
CallingCellID
Char[20]
15
CalledRoamInfo
Char[20]
16
Issue 26 (2014-03-31)
CalledCellID
Char[20]
64
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
CallingCellID.
Value range: numerals within 0-9, *, #
17
TimeStampOfSS
P
Char[14]
18
TimeZoneOfSSP
Integer[4]
Reserved
Char[32]
20
call ID
Char[32]
21
ChargingTime
Char[14]
22
package
Char[32]
23
ChargeAmount
Integer[8]
24
SendResult
Integer[4]
0: Successfully
Issue 26 (2014-03-31)
65
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
25
SMSID
Char[20]
26
IMEI
Char[24]
27
SMLength
Integer[4]
28
Reserved
Char[20]
29
APN
Char[32]
30
RefundIndicator
Char[20]
31
BrandID
Integer[4]
0: Deduct
1: Refund
32
SubCOSID
Integer[4]
33
ChargingPartyNu
mber
Char[64]
MSISDN
The number format is the format of
the mobile phone number.
Issue 26 (2014-03-31)
66
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
34
ChargePartyIndic
ator
Char[1]
35
PayType
Char[1]
36
BillCycleID
Char[20]
0: Prepaid
1: Postpaid
ChargingType
Char[1]
0: V-H
1: H-H
2: V-V
3: H-V
For MT process:
0: For free
1: Roaming fee
Not null
38
OnNetINdicator
Char[1]
39
RoamState
Char[1]
0: on-net
1: off-net
Issue 26 (2014-03-31)
0: No roaming
67
OCS
Call Detail Record Reference
SN
40
Field Name
ResultCode
Field Type
Integer[4]
Description
3: International Roaming
41
Reserved
Integer[4]
42
CallingHomeCou
ntryCode
Integer[4]
43
CallingHomeAre
aNumber
Integer[4]
44
CallingHomeNet
workCode
Integer[4]
45
CallingRoamCou
ntryCode
Integer[4]
46
CallingRoamArea
Number
Integer[4]
47
CallingRoamNet
workCode
Integer[4]
48
CalledHomeCoun
tryCode
Integer[4]
49
CalledHomeArea
Number
Integer[4]
50
Issue 26 (2014-03-31)
CalledHomeNetw
Integer[4]
68
OCS
Call Detail Record Reference
SN
Field Name
Field Type
orkCode
Description
called party.
>=0, -1, 0 or 9999 means unknown.
The default value is 0.
51
CalledRoamCoun
tryCode
Integer[4]
52
CalledRoamArea
Number
Integer[4]
53
CalledRoamNetw
orkCode
Integer[4]
54
ProductID
Char[20]
55
ServiceType
Char[20]
Other: reserved
56
Issue 26 (2014-03-31)
SpecialNumberIn
dicator
Integer[4]
0: Not activated
1: Activated
69
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
P2A.
The options are as follows:
0: Normal SMS/P2P
1: Free SMS
2: BarringNumber
HomeZoneID
Integer[4]
58
NPFlag
Char[1]
0: Not NP
1: NP out
NPPrefix
Char[6]
60
CallingGroupNo
Integer[4]
61
CalledGroupNo
Integer[4]
62
UserState
Char[10]
Issue 26 (2014-03-31)
70
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
0: no
1: yes
63
SubscriberID
Char[20]
0: no
1: yes
64
Issue 26 (2014-03-31)
OpposeNetworkT
ype
Integer[4]
1: PSTN
2: Mobile
3: Native Unknown
4: International Unknown
Other: to be extended
71
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
65
SMSType
Integer[4]
0: local
3: international toll
ChargeOfItemsA
ccounts
Integer[8]
67
Reserved
Char[20]
68
ChargeOfFundAc
counts
Integer[8]
69
ChargeFromPrep
aid
Integer[8]
70
PrepaidBalance
Integer[8]
71
ChargeFromPostp
aid
Integer[8]
72
PostPaidBalance
Integer[8]
73
AccountID
Char[20]
Issue 26 (2014-03-31)
72
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
74
AccountKey
Integer[8]
75
CurrencyCode
Integer[4]
76
Reserved
Char[20]
77
AccountType1
Integer[4]
78
FeeType1
Integer[4]
79
ChargeAmount1
Integer[8]
80
CurrentAcctAmo
unt1
Integer[8]
81
AccountType2
Integer[4]
82
FeeType2
Integer[4]
Issue 26 (2014-03-31)
73
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
83
ChargeAmount2
Integer[8]
84
CurrentAcctAmo
unt2
Integer[8]
85
AccountType3
Integer[4]
86
FeeType3
Integer[4]
87
ChargeAmount3
Integer[8]
88
CurrentAcctAmo
unt3
Integer[8]
89
AccountType4
Integer[4]
90
Issue 26 (2014-03-31)
FeeType4
Integer[4]
74
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0 means not used.
Not null
The default value is 0.
91
ChargeAmount4
Integer[8]
92
CurrentAcctAmo
unt4
Integer[8]
93
AccountType5
Integer[4]
94
FeeType5
Integer[4]
95
ChargeAmount5
Integer[8]
96
CurrentAcctAmo
unt5
Integer[8]
97
AccountType6
Integer[4]
Issue 26 (2014-03-31)
75
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
98
FeeType6
Integer[4]
99
ChargeAmount6
Integer[8]
100
CurrentAcctAmo
unt6
Integer[8]
101
AccountType7
Integer[4]
102
FeeType7
Integer[4]
103
ChargeAmount7
Integer[8]
104
CurrentAcctAmo
unt7
Integer[8]
105
AccountType8
Integer[4]
Issue 26 (2014-03-31)
76
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
106
FeeType8
Integer[4]
107
ChargeAmount8
Integer[8]
108
CurrentAcctAmo
unt8
Integer[8]
109
AccountType9
Integer[4]
110
FeeType9
Integer[4]
111
ChargeAmount9
Integer[8]
112
CurrentAcctAmo
unt9
Integer[8]
113
Issue 26 (2014-03-31)
AccountType10
Integer[4]
77
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0 means not used.
Not null
The default value is 0.
114
FeeType10
Integer[4]
115
ChargeAmount10
Integer[8]
116
CurrentAcctAmo
unt10
Integer[8]
117
BonusValidity1
Char[14]
118
BonusValidity2
Char[14]
119
BonusValidity3
Char[14]
120
Issue 26 (2014-03-31)
BonusValidity4
Char[14]
78
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
from accounts. In this case, the validity
periods of consumption resources are not
recorded.
Format: YYYYMMDDhhmmss
121
BonusValidity5
Char[14]
122
BonusValidity6
Char[14]
123
BonusValidity7
Char[14]
124
BonusValidity8
Char[14]
125
BonusValidity9
Char[14]
126
BonusValidity10
Char[14]
Issue 26 (2014-03-31)
79
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
127
Reserved
Char[15]
128
Reserved
Char[10]
129
Reserved
Char[10]
130
Reserved
Char[15]
131
Reserved
Char[10]
132
Reserved
Char[10]
133
Reserved
Char[10]
134
Reserved
Char[10]
135
Reserved
Char[10]
136
Reserved
Char[10]
137
Reserved
Integer[4]
138
session id
Char[20]
139
Service Name
Char[32]
140
Consumed
Resources
Integer[4]
141
Original Amount
Integer[4]
142
AddtionalInfo
Char[256]
143
Reserved
Char[20]
144
StartTimeOfBillC
ycle
Char[14]
SecondChargingP
Char[64]
145
Issue 26 (2014-03-31)
80
OCS
Call Detail Record Reference
SN
Field Name
Field Type
artyNumber
Description
of the field is the number of subscriber C.
This field is null when the service is paid
only by account. There are several special
situations. Like Child-Parent card feature,
the calling party number is the child, the
charging party number is the parent's
number.
The number format is as follows:
MSISDN
The number format is the format of
the mobile phone number.
SecondChargingP
artyPayType
Char[1]
0: Prepaid
1: Postpaid
NOTE
If the value of the field is null, the system
records the payment type of the parent card
subscriber.
147
SecondChargingP
artyBillCycleID
Char[20]
148
ChargeOfItemsSe
condAccounts
Integer[8]
149
Issue 26 (2014-03-31)
ChargeOfDuratio
nSecondAccounts
Integer[8]
81
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: -263-263-1
Not null
The default value is 0.
150
ChargeOfFundSe
condAccounts
Integer[8]
151
ChargeFromSeco
ndPrepaidAccoun
t
Integer[8]
152
SecondPrepaidAc
countBalance
Integer[8]
153
ChargeFromSeco
ndPostpaidAccou
nt
Integer[8]
154
SecondPostpaidA
ccountBalance
Integer[8]
155
SecondAccountI
D
Char[20]
156
SecondAccountK
ey
Integer[8]
157
Issue 26 (2014-03-31)
SecondAccountC
Integer[4]
82
OCS
Call Detail Record Reference
SN
Field Name
Field Type
urrencyCode
Description
parent card. Also, if this field missed or
present be Zero, it means the system use
local minimal currency as default, and no
need to specify in CDR.
The default value is 0.
158
Reserved
Char[20]
159
SecondAccountT
ype1
Integer[4]
160
SecondFeeType1
Integer[4]
161
SecondChargeA
mount1
Integer[8]
162
SecondCurrentAc
ctAmount1
Integer[8]
163
SecondAccountT
ype2
Integer[4]
164
SecondFeeType2
Integer[4]
165
Issue 26 (2014-03-31)
SecondChargeA
mount2
Integer[8]
83
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0 means unchanged.
Value range: -263-263-1
Not null
The default value is 0.
166
SecondCurrentAc
ctAmount2
Integer[8]
167
SecondAccountT
ype3
Integer[4]
168
SecondFeeType3
Integer[4]
169
SecondChargeA
mount3
Integer[8]
170
SecondCurrentAc
ctAmount3
Integer[8]
171
SecondAccountT
ype4
Integer[4]
172
SecondFeeType4
Integer[4]
Issue 26 (2014-03-31)
84
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
173
SecondChargeA
mount4
Integer[8]
174
SecondCurrentAc
ctAmount4
Integer[8]
175
SecondAccountT
ype5
Integer[4]
176
SecondFeeType5
Integer[4]
177
SecondChargeA
mount5
Integer[8]
178
SecondCurrentAc
ctAmount5
Integer[8]
179
Issue 26 (2014-03-31)
SecondBonusVali
dity1
Char[14]
85
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Format: YYYYMMDDhhmmss
180
SecondBonusVali
dity2
Char[14]
181
SecondBonusVali
dity3
Char[14]
182
SecondBonusVali
dity4
Char[14]
183
SecondBonusVali
dity5
Char[14]
184
Reserved
Integer[4]
185
Reserved
Integer[4]
186
OppositePartyNu
mber
Char[64]
Issue 26 (2014-03-31)
86
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
MSISDN
The number format is the format of
the mobile phone number.
Reserved
Integer[4]
188
Reserved
Char[25]
189
DiameterSessionI
D
Char[128]
Reserved
Integer[4]
191
Reserved
Integer[4]
192
DiscountOfLastE
ffProduct
Integer[4]
Not null
Issue 26 (2014-03-31)
87
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 100.
193
subscriberkey
Integer[4]
194
accumulationchan
ge
Char[256]
195
196
UsageServiceTyp
e
Integer[4]
SourceSerialNo
Integer[8]
197
SourceSubSequen
ce
Integer[4]
198
Issue 26 (2014-03-31)
AcctBalChgList
Char[768]
88
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The value format is as follows:
lAcctBalanceID, iProductKey, iFeeID,
iAmount0, iAmount1, iAcctBalanceType,
MeasureID, billCycleID;
The value contains only numerals. The
fields in each group are separated by
commas (,), and groups are separated by
semicolons (;). Up to 10 groups can be
included. The contents exceeding 10
groups will be discarded.
199
200
OriginCdrFilena
me
Char[64]
CurCDRLineNo
Integer[4]
201
Reserved
Integer[4]
202
Reserved
Integer[8]
203
Reserved
Integer[8]
204
Reserved
Integer[8]
205
Reserved
Integer[8]
206
SecondSubscriber
Key
Integer[4]
207
SecondProductID
Integer[4]
Reserved
208
OpposeTenantID
Integer[4]
Reserved
209
accounttype1
Integer[4]
210
BalanceBeforeCh
arge1
Integer[8]
211
BalanceAfterChar
ge1
Integer[8]
212
ChargeFee1
Integer[8]
213
Issue 26 (2014-03-31)
accounttype2
Integer[4]
89
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
214
BalanceBeforeCh
arge2
Integer[8]
215
BalanceAfterChar
ge2
Integer[8]
216
ChargeFee2
Integer[8]
217
accounttype3
Integer[4]
218
BalanceBeforeCh
arge3
Integer[8]
219
BalanceAfterChar
ge3
Integer[8]
220
ChargeFee3
Integer[8]
221
accounttype4
Integer[4]
222
BalanceBeforeCh
arge4
Integer[8]
223
BalanceAfterChar
ge4
Integer[8]
224
ChargeFee4
Integer[8]
225
accounttype5
Integer[4]
226
Issue 26 (2014-03-31)
BalanceBeforeCh
Integer[8]
90
OCS
Call Detail Record Reference
SN
Field Name
Field Type
arge5
Description
before the system deducts the fee from.
The default value is 0.
227
BalanceAfterChar
ge5
Integer[8]
228
ChargeFee5
Integer[8]
229
accounttype6
Integer[4]
230
BalanceBeforeCh
arge6
Integer[8]
231
BalanceAfterChar
ge6
Integer[8]
232
ChargeFee6
Integer[8]
233
accounttype7
Integer[4]
234
BalanceBeforeCh
arge7
Integer[8]
235
BalanceAfterChar
ge7
Integer[8]
236
ChargeFee7
Integer[8]
237
accounttype8
Integer[4]
238
Issue 26 (2014-03-31)
BalanceBeforeCh
arge8
Integer[8]
91
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
239
BalanceAfterChar
ge8
Integer[8]
240
ChargeFee8
Integer[8]
241
accounttype9
Integer[4]
242
BalanceBeforeCh
arge9
Integer[8]
243
BalanceAfterChar
ge9
Integer[8]
244
ChargeFee9
Integer[8]
245
accounttype10
Integer[4]
246
BalanceBeforeCh
arge10
Integer[8]
247
BalanceAfterChar
ge10
Integer[8]
248
ChargeFee10
Integer[8]
249
accounttype11
Integer[4]
250
BalanceBeforeCh
arge11
Integer[8]
251
Issue 26 (2014-03-31)
BalanceAfterChar
Integer[8]
92
OCS
Call Detail Record Reference
SN
Field Name
Field Type
ge11
Description
account after the system deducts the fee
from.
The default value is 0.
252
ChargeFee11
Integer[8]
253
accounttype12
Integer[4]
254
BalanceBeforeCh
arge12
Integer[8]
255
BalanceAfterChar
ge12
Integer[8]
256
ChargeFee12
Integer[8]
257
accounttype13
Integer[4]
258
BalanceBeforeCh
arge13
Integer[8]
259
BalanceAfterChar
ge13
Integer[8]
260
ChargeFee13
Integer[8]
261
accounttype14
Integer[4]
262
BalanceBeforeCh
arge14
Integer[8]
Issue 26 (2014-03-31)
93
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
263
BalanceAfterChar
ge14
Integer[8]
264
ChargeFee14
Integer[8]
265
accounttype15
Integer[4]
266
BalanceBeforeCh
arge15
Integer[8]
267
BalanceAfterChar
ge15
Integer[8]
268
ChargeFee15
Integer[8]
269
accounttype16
Integer[4]
270
BalanceBeforeCh
arge16
Integer[8]
271
BalanceAfterChar
ge16
Integer[8]
272
ChargeFee16
Integer[8]
273
accounttype17
Integer[4]
274
BalanceBeforeCh
arge17
Integer[8]
Issue 26 (2014-03-31)
94
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
275
BalanceAfterChar
ge17
Integer[8]
276
ChargeFee17
Integer[8]
277
accounttype18
Integer[4]
278
BalanceBeforeCh
arge18
Integer[8]
279
BalanceAfterChar
ge18
Integer[8]
280
ChargeFee18
Integer[8]
281
accounttype19
Integer[4]
282
BalanceBeforeCh
arge19
Integer[8]
283
BalanceAfterChar
ge19
Integer[8]
284
ChargeFee19
Integer[8]
285
accounttype20
Integer[4]
286
Issue 26 (2014-03-31)
BalanceBeforeCh
arge20
Integer[8]
95
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
287
BalanceAfterChar
ge20
Integer[8]
288
ChargeFee20
Integer[8]
Generation Scenario
When OCS subscriber A sends a multimedia message to subscriber B, and the system
successfully deducts the fee from the account of subscriber A, an mms CDR is generated.
For the description of child-parent cards, see section 3.1.2 rec CDR .
Format
Table 3-5 describes each field of mms CDR file.
Table 3-5 Format of mms CDR
SN
Field Name
Field Type
Description
SerialNo
Integer[8]
SubSequence
Integer[4]
Issue 26 (2014-03-31)
96
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
TimeStamp
Char[14]
ServiceKey
Integer[4]
CallingPartyNumb
er
Char[64]
CalledPartyNumbe
r
Char[64]
CallingPartyIMSI
Char[64]
CalledPartyIMSI
Char[64]
Issue 26 (2014-03-31)
97
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
DialedNumber
Char[64]
10
OriginalCalledPart
y
Char[64]
11
ServiceFlow
Char[1]
12
CallForwardIndicat
or
Char[1]
1: MO process
2: MT process
3: MF process (reserved)
4: Read Reply
5: Delivery Report
6: Replied Report
13
Issue 26 (2014-03-31)
CallingRoamInfo
Char[20]
0: No forwarding
98
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
It can be the location number, MSC address,
VLR number, and so on. The actual value is
related with the service configuration.
14
CallingCellID
Char[20]
15
CalledRoamInfo
Char[20]
16
CalledCellID
Char[20]
17
TimeStampOfSSP
Char[14]
18
TimeZoneOfSSP
Integer[4]
Reserved
Char[32]
20
Reserved
Char[32]
21
ChargingTime
Char[14]
22
Reserved
Integer[4]
23
ChargeAmount
Integer[8]
Issue 26 (2014-03-31)
99
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
24
SendResult
Integer[4]
0: Successfully
MMSID
Char[24]
26
IMEI
Char[24]
27
MMSLength
Integer[4]
28
call ID
Char[32]
29
DiameterSessionID
Char[128]
RefundIndicator
Char[20]
31
BrandID
Integer[4]
0: Deduct
1: Refund
32
Issue 26 (2014-03-31)
SubCOSID
Integer[4]
100
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
33
ChargingPartyNum
ber
Char[64]
MSISDN
The number format is the format of the
mobile phone number.
35
ChargePartyIndicat
or
PayType
Char[1]
Char[1]
36
BillCycleID
Char[20]
0: Prepaid
1: Postpaid
ChargingType
Char[1]
Issue 26 (2014-03-31)
0: V-H
101
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
1: H-H
2: V-V
3: H-V
For MT process:
38
OnNetIndicator
Char[1]
0: For free
1: Roaming fee
39
RoamState
Char[1]
0: on-net
1: off-net
2: International
40
ResultCode
Integer[4]
0: No roaming
3: International Roaming
41
Reserved
Integer[4]
42
CallingHomeCount
ryCode
Integer[4]
43
CallingHomeArea
Number
Integer[4]
44
CallingHomeNetw
orkCode
Integer[4]
45
CallingRoamCount
ryCode
Integer[4]
46
Issue 26 (2014-03-31)
CallingRoamArea
Integer[4]
102
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Number
Description
party.
>=0, -1, 0 or 9999 means unknown.
The default value is 0.
47
CallingRoamNetw
orkCode
Integer[4]
48
CalledHomeCountr
yCode
Integer[4]
49
CalledHomeAreaN
umber
Integer[4]
50
CalledHomeNetwo
rkCode
Integer[4]
51
CalledRoamCountr
yCode
Integer[4]
52
CalledRoamAreaN
umber
Integer[4]
53
CalledRoamNetwo
rkCode
Integer[4]
54
ProductID
Char[20]
55
ServiceType
Char[20]
Issue 26 (2014-03-31)
103
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Other: reserved
0: Not activated
1: Activated
Not null
56
SpecialNumberIndi
cator
Integer[4]
0: Normal MMS/P2P
1: BarringMMS
2: Free MMS
3: CommonMMSHotLineNumber
HomeZoneID
Integer[4]
58
NPFlag
Char[1]
59
NPPrefix
Char[6]
0: Not NP
1: NP out
Issue 26 (2014-03-31)
104
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
60
CallingGroupNo
Integer[4]
61
CalledGroupNo
Integer[4]
62
UserState
Char[10]
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
Issue 26 (2014-03-31)
105
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0: no
1: yes
0: no
1: yes
SubscriberID
Char[20]
64
OpposeNetworkTy
pe
Integer[4]
1: PSTN
2: Mobile
3: Native Unknown
4: International Unknown
Other: to be extended
Reserved
Char[20]
66
ChargeOfItemsAcc
ounts
Integer[8]
67
ChargeOfDuration
Accounts
Integer[8]
68
ChargeOfFundAcc
ounts
Integer[8]
69
ChargeFromPrepai
d
Integer[8]
70
Issue 26 (2014-03-31)
PrepaidBalance
Integer[8]
106
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: -263-263-1
Not null
The default value is 0.
71
ChargeFromPostpa
id
Integer[8]
72
PostPaidBalance
Integer[8]
73
AccountID
Char[20]
74
AccountKey
Integer[8]
75
CurrencyCode
Integer[4]
76
package
Char[32]
77
AccountType1
Integer[4]
78
FeeType1
Integer[4]
79
ChargeAmount1
Integer[8]
Issue 26 (2014-03-31)
107
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
80
CurrentAcctAmou
nt1
Integer[8]
81
AccountType2
Integer[4]
82
FeeType2
Integer[4]
83
ChargeAmount2
Integer[8]
84
CurrentAcctAmou
nt2
Integer[8]
85
AccountType3
Integer[4]
86
FeeType3
Integer[4]
87
ChargeAmount3
Integer[8]
Issue 26 (2014-03-31)
108
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: -263-263-1
Not null
The default value is 0.
88
CurrentAcctAmou
nt3
Integer[8]
89
AccountType4
Integer[4]
90
FeeType4
Integer[4]
91
ChargeAmount4
Integer[8]
92
CurrentAcctAmou
nt4
Integer[8]
93
AccountType5
Integer[4]
94
FeeType5
Integer[4]
95
Issue 26 (2014-03-31)
ChargeAmount5
Integer[8]
109
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0 means not unchanged.
Value range: -263-263-1
Not null
The default value is 0.
96
CurrentAcctAmou
nt5
Integer[8]
97
AccountType6
Integer[4]
98
FeeType6
Integer[4]
99
ChargeAmount6
Integer[8]
100
CurrentAcctAmou
nt6
Integer[8]
101
AccountType7
Integer[4]
102
FeeType7
Integer[4]
103
Issue 26 (2014-03-31)
ChargeAmount7
Integer[8]
110
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
account.
0 means not unchanged.
Value range: -263-263-1
Not null
The default value is 0.
104
CurrentAcctAmou
nt7
Integer[8]
105
AccountType8
Integer[4]
106
FeeType8
Integer[4]
107
ChargeAmount8
Integer[8]
108
CurrentAcctAmou
nt8
Integer[8]
109
AccountType9
Integer[4]
110
FeeType9
Integer[4]
Issue 26 (2014-03-31)
111
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
111
ChargeAmount9
Integer[8]
112
CurrentAcctAmou
nt9
Integer[8]
113
AccountType10
Integer[4]
114
FeeType10
Integer[4]
115
ChargeAmount10
Integer[8]
116
CurrentAcctAmou
nt10
Integer[8]
117
BonusValidity1
Char[14]
118
Issue 26 (2014-03-31)
BonusValidity2
Char[14]
112
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
consumption resources are not recorded.
Format: YYYYMMDDhhmmss
119
BonusValidity3
Char[14]
120
BonusValidity4
Char[14]
121
BonusValidity5
Char[14]
122
BonusValidity6
Char[14]
123
BonusValidity7
Char[14]
124
BonusValidity8
Char[14]
125
BonusValidity9
Char[14]
Issue 26 (2014-03-31)
113
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
126
BonusValidity10
Char[14]
127
Reserved
Char[15]
128
Reserved
Char[10]
129
Reserved
Char[10]
130
Reserved
Char[15]
131
Reserved
Char[10]
132
Reserved
Char[10]
133
Reserved
Char[10]
134
Reserved
Char[10]
135
Reserved
Char[10]
136
Reserved
Char[10]
137
Reserved
Integer[4]
138
session id
Char[20]
139
Service Name
Char[32]
140
Consumed
Resources
Integer[4]
141
Original Amount
Integer[4]
142
AddtionalInfo
Char[256]
143
Issue 26 (2014-03-31)
OriginAddressTyp
e
Char[2]
0: e-mail address
1: MSISDN
114
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
2: IPv4 Address
3: IPv6 Address
4: Numeric Shortcode
5: Alphanumeric Shortcode
6: Other
DestAddressType
Char[2]
0: e-mail address
1: MSISDN
2: IPv4 Address
3: IPv6 Address
4: Numeric Shortcode
5: Alphanumeric Shortcode
6: Other
Message-Type
Integer[4]
Issue 26 (2014-03-31)
1: m-send-req
2: m-send-conf
3: m-notification-ind
4: m-notifyresp-ind
5: m-retrieve-conf
6: m-acknowledge-ind
7: m-delivery-ind
8: m-read-rec-ind
9: m-read-orig-ind
10: m-forward-req
11: m-forward-conf
12: m-mbox-store-conf
13: m-mbox-view-conf
14: m-mbox-upl
101: MOAT
102: AOMT
103: MOMT
104: MOET
105: EOMT
106: DlvRpt
107: RdRpt
108: Reply
115
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
109: P2PMT
110: FOMT
111: FOAT
112: FOET
113: MOFT
114~: reserved
VASP-Id
Char[20]
147
VAS-Id
Char[20]
148
Service-Id
Char[20]
149
Reserved
Char[20]
150
StartTimeOfBillCy
cle
Char[14]
151
SecondChargingPa
rtyNumber
Char[64]
MSISDN
The number format is the format of the
mobile phone number.
SecondChargingPa
rtyPayType
Char[1]
Issue 26 (2014-03-31)
0: Prepaid
1: Postpaid
116
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
NOTE
If the value of the field is null, the system records
the payment type of the parent card subscriber.
153
SecondChargingPa
rtyBillCycleID
Char[20]
154
ChargeOfItemsSec
ondAccounts
Integer[8]
155
ChargeOfDuration
SecondAccounts
Integer[8]
156
ChargeOfFundSec
ondAccounts
Integer[8]
157
ChargeFromSecon
dPrepaidAccount
Integer[8]
158
SecondPrepaidAcc
ountBalance
Integer[8]
159
ChargeFromSecon
dPostpaidAccount
Integer[8]
Issue 26 (2014-03-31)
117
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
160
SecondPostpaidAc
countBalance
Integer[8]
161
SecondAccountID
Char[20]
162
SecondAccountKe
y
Integer[8]
163
SecondAccountCur
rencyCode
Integer[4]
164
APN
Char[32]
165
SecondAccountTy
pe1
Integer[4]
166
SecondFeeType1
Integer[4]
167
SecondChargeAmo
unt1
Integer[8]
Issue 26 (2014-03-31)
118
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
168
SecondCurrentAcct
Amount1
Integer[8]
169
SecondAccountTy
pe2
Integer[4]
170
SecondFeeType2
Integer[4]
171
SecondChargeAmo
unt2
Integer[8]
172
SecondCurrentAcct
Amount2
Integer[8]
173
SecondAccountTy
pe3
Integer[4]
174
SecondFeeType3
Integer[4]
175
Issue 26 (2014-03-31)
SecondChargeAmo
unt3
Integer[8]
119
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0 means not unchanged.
Value range: -263-263-1
Not null
The default value is 0.
176
SecondCurrentAcct
Amount3
Integer[8]
177
SecondAccountTy
pe4
Integer[4]
178
SecondFeeType4
Integer[4]
179
SecondChargeAmo
unt4
Integer[8]
180
SecondCurrentAcct
Amount4
Integer[8]
181
SecondAccountTy
pe5
Integer[4]
182
SecondFeeType5
Integer[4]
Issue 26 (2014-03-31)
120
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
183
SecondChargeAmo
unt5
Integer[8]
184
SecondCurrentAcct
Amount5
Integer[8]
185
SecondBonusValid
ity1
Char[14]
186
SecondBonusValid
ity2
Char[14]
187
SecondBonusValid
ity3
Char[14]
188
SecondBonusValid
ity4
Char[14]
189
Issue 26 (2014-03-31)
SecondBonusValid
ity5
Char[14]
121
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Format: YYYYMMDDhhmmss
190
Reserved
Integer[4]
191
Reserved
Integer[4]
192
OppositePartyNum
ber
Char[64]
MSISDN
The number format is the format of the
mobile phone number.
Reserved
Char[8]
194
Reserved
Char[25]
195
Reserved
Integer[4]
196
Reserved
Integer[4]
197
Reserved
Integer[4]
198
DiscountOfLastEff
Product
Integer[4]
Not null
The default value is 100.
199
subscriberkey
Integer[4]
200
accumulationchang
e
Char[256]
Issue 26 (2014-03-31)
122
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
accumulation switch time 2, change value
2...
The value contains only numerals. The
account ID and balance change is separated
by a comma (,), and information of different
accounts is separated by a semicolon (;). The
information about up to 10 accounts can be
included. The excess account information
will be discarded.
201
UsageServiceType
Integer[4]
SourceSerialNo
Integer[8]
203
SourceSubSequenc
e
Integer[4]
204
AcctBalChgList
Char[768]
Issue 26 (2014-03-31)
123
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
discarded.
205
OriginCdrFilename
Char[64]
206
CurCDRLineNo
Integer[4]
207
Reserved
Integer[4]
208
Reserved
Integer[8]
209
Reserved
Integer[8]
210
Reserved
Integer[8]
211
Reserved
Integer[8]
212
SecondSubscriber
Key
Integer[4]
213
SecondProductID
Integer[4]
Reserved
214
accounttype1
Integer[4]
215
BalanceBeforeChar
ge1
Integer[8]
216
BalanceAfterCharg
e1
Integer[8]
217
ChargeFee1
Integer[8]
218
accounttype2
Integer[4]
219
BalanceBeforeChar
ge2
Integer[8]
220
BalanceAfterCharg
e2
Integer[8]
221
Issue 26 (2014-03-31)
ChargeFee2
Integer[8]
124
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
second account.
The default value is 0.
222
accounttype3
Integer[4]
223
BalanceBeforeChar
ge3
Integer[8]
224
BalanceAfterCharg
e3
Integer[8]
225
ChargeFee3
Integer[8]
226
accounttype4
Integer[4]
227
BalanceBeforeChar
ge4
Integer[8]
228
BalanceAfterCharg
e4
Integer[8]
229
ChargeFee4
Integer[8]
230
accounttype5
Integer[4]
231
BalanceBeforeChar
ge5
Integer[8]
232
BalanceAfterCharg
e5
Integer[8]
233
ChargeFee5
Integer[8]
234
Issue 26 (2014-03-31)
accounttype6
Integer[4]
125
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
account.
The default value is 0.
235
BalanceBeforeChar
ge6
Integer[8]
236
BalanceAfterCharg
e6
Integer[8]
237
ChargeFee6
Integer[8]
238
accounttype7
Integer[4]
239
BalanceBeforeChar
ge7
Integer[8]
240
BalanceAfterCharg
e7
Integer[8]
241
ChargeFee7
Integer[8]
242
accounttype8
Integer[4]
243
BalanceBeforeChar
ge8
Integer[8]
244
BalanceAfterCharg
e8
Integer[8]
245
ChargeFee8
Integer[8]
246
accounttype9
Integer[4]
247
Issue 26 (2014-03-31)
BalanceBeforeChar
Integer[8]
126
OCS
Call Detail Record Reference
SN
Field Name
Field Type
ge9
Description
before the system deducts the fee from.
The default value is 0.
248
BalanceAfterCharg
e9
Integer[8]
249
ChargeFee9
Integer[8]
250
accounttype10
Integer[4]
251
BalanceBeforeChar
ge10
Integer[8]
252
BalanceAfterCharg
e10
Integer[8]
253
ChargeFee10
Integer[8]
254
accounttype11
Integer[4]
255
BalanceBeforeChar
ge11
Integer[8]
256
BalanceAfterCharg
e11
Integer[8]
257
ChargeFee11
Integer[8]
258
accounttype12
Integer[4]
259
BalanceBeforeChar
ge12
Integer[8]
260
Issue 26 (2014-03-31)
BalanceAfterCharg
Integer[8]
127
OCS
Call Detail Record Reference
SN
Field Name
Field Type
e12
Description
after the system deducts the fee from.
The default value is 0.
261
ChargeFee12
Integer[8]
262
accounttype13
Integer[4]
263
BalanceBeforeChar
ge13
Integer[8]
264
BalanceAfterCharg
e13
Integer[8]
265
ChargeFee13
Integer[8]
266
accounttype14
Integer[4]
267
BalanceBeforeChar
ge14
Integer[8]
268
BalanceAfterCharg
e14
Integer[8]
269
ChargeFee14
Integer[8]
270
accounttype15
Integer[4]
271
BalanceBeforeChar
ge15
Integer[8]
272
Issue 26 (2014-03-31)
BalanceAfterCharg
Integer[8]
128
OCS
Call Detail Record Reference
SN
Field Name
Field Type
e15
Description
after the system deducts the fee from.
The default value is 0.
273
ChargeFee15
Integer[8]
274
accounttype16
Integer[4]
275
BalanceBeforeChar
ge16
Integer[8]
276
BalanceAfterCharg
e16
Integer[8]
277
ChargeFee16
Integer[8]
278
accounttype17
Integer[4]
279
BalanceBeforeChar
ge17
Integer[8]
280
BalanceAfterCharg
e17
Integer[8]
281
ChargeFee17
Integer[8]
282
accounttype18
Integer[4]
283
BalanceBeforeChar
ge18
Integer[8]
284
Issue 26 (2014-03-31)
BalanceAfterCharg
e18
Integer[8]
129
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
from.
The default value is 0.
285
ChargeFee18
Integer[8]
286
accounttype19
Integer[4]
287
BalanceBeforeChar
ge19
Integer[8]
288
BalanceAfterCharg
e19
Integer[8]
289
ChargeFee19
Integer[8]
290
accounttype20
Integer[4]
291
BalanceBeforeChar
ge20
Integer[8]
292
BalanceAfterCharg
e20
Integer[8]
293
ChargeFee20
Integer[8]
Issue 26 (2014-03-31)
130
OCS
Call Detail Record Reference
Generation Scenario
An OCS subscriber downloads a ring tone through the GPRS. The ring tone costs the
subscriber 2 Rupee, a data CDR is generated.
Format
Table 3-6 describes each field of data CDR file.
Table 3-6 Format of data CDR
SN
Field Name
Field Type
Description
SerialNo
Integer[8]
SubSequence
Integer[4]
TimeStamp
Char[14]
ServiceKey
Integer[4]
Issue 26 (2014-03-31)
CallingPartyNumbe
r
Char[64]
131
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
ABC_DE@huawei.com
Value range: numerals within 0-9, *, #
Not null
APN
Char[22]
URL
Char[22]
CallingPartyIMSI
Char[64]
AccessNetworkAdd
ress
Char[22]
10
GGSNAddress
Char[22]
11
CallingRoamInfo
Char[20]
12
CallingCellID
Char[20]
13
TimeStampOfSGS
N
Char[14]
14
TimeZoneOfSGSN
Integer[4]
Issue 26 (2014-03-31)
132
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
15
Reserved
Char[32]
16
ChargingTime
Char[14]
17
TotalFlux
Integer[8]
18
UpFlux
Integer[8]
19
DownFlux
Integer[8]
20
ElapseDuration
Integer[4]
21
Reserved
Integer[4]
22
IMEI
Char[24]
23
TransitionID
Char[32]
24
ServiceID
Char[20]
25
SPID
Char[20]
26
CategoryID
Char[20]
27
ContentID
Char[20]
28
QoS
Char[30]
Service quality.
29
OriginalNetworkTy
pe
Char[20]
Issue 26 (2014-03-31)
133
OCS
Call Detail Record Reference
SN
30
Field Name
DiameterSessionID
Field Type
Char[128]
Description
1: PSTN
2: Mobile
3: Native Unknown
4: International Unknown
Other to be extended
BrandID
Integer[4]
32
SubCOSID
Integer[4]
33
ChargingPartyNum
ber
Char[64]
Issue 26 (2014-03-31)
134
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
MSISDN
The number format is the format of the
mobile phone number.
PayType
Char[1]
35
BillCycleID
Char[20]
0: Prepaid
1: Postpaid
ChargingType
Char[1]
37
ResultCode
Integer[4]
0: based on duration
1: based on traffic
38
RoamState
Char[1]
0: No roaming
3: International Roaming
CallingHomeCount
ryCode
Integer[4]
Issue 26 (2014-03-31)
135
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
40
CallingHomeAreaN
umber
Integer[4]
41
CallingHomeNetwo
rkCode
Integer[4]
42
CallingRoamCountr
yCode
Integer[4]
43
CallingRoamAreaN
umber
Integer[4]
44
CallingRoamNetwo
rkCode
Integer[4]
45
Operation Type
Char[20]
0: Deduct fees
1: Refund fees
46
msg id
Char[20]
47
session id
Char[20]
48
Service Name
Char[32]
49
Consumed
Resources
Integer[4]
50
Original Amount
Integer[4]
51
ProductID
Char[20]
52
ServiceType
Char[20]
Reserved
Issue 26 (2014-03-31)
136
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
53
Reserved
Char[20]
54
Reserved
Integer[4]
55
UserState
Char[10]
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
0: no
1: yes
Issue 26 (2014-03-31)
137
OCS
Call Detail Record Reference
SN
56
Field Name
SubscriberID
Field Type
Char[20]
Description
0: no
1: yes
57
ChargeDuration
Integer[4]
58
TotalChargeFlux
Integer[8]
59
Reserved
Char[20]
60
Reserved
Char[20]
61
ChargeOfFluxAcco
unts
Integer[8]
62
ChargeOfDuratiion
Accounts
Integer[8]
63
ChargeOfFundAcco
unts
Integer[8]
64
ChargeFromPrepaid
Integer[8]
65
PrepaidBalance
Integer[8]
Issue 26 (2014-03-31)
138
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
66
ChargeFromPostpai
d
Integer[8]
67
PostPaidBalance
Integer[8]
68
AccountID
Char[20]
69
AccountKey
Integer[8]
70
CurrencyCode
Integer[4]
71
Reserved
Char[20]
72
AccountType1
Integer[4]
73
FeeType1
Integer[4]
74
ChargeAmount1
Integer[8]
Issue 26 (2014-03-31)
139
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
75
CurrentAcctAmoun
t1
Integer[8]
76
AccountType2
Integer[4]
77
FeeType2
Integer[4]
78
ChargeAmount2
Integer[8]
79
CurrentAcctAmoun
t2
Integer[8]
80
AccountType3
Integer[4]
81
FeeType3
Integer[4]
82
ChargeAmount3
Integer[8]
Issue 26 (2014-03-31)
140
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
83
CurrentAcctAmoun
t3
Integer[8]
84
AccountType4
Integer[4]
85
FeeType4
Integer[4]
86
ChargeAmount4
Integer[8]
87
CurrentAcctAmoun
t4
Integer[8]
88
AccountType5
Integer[4]
89
FeeType5
Integer[4]
90
ChargeAmount5
Integer[8]
Issue 26 (2014-03-31)
141
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: -263-263-1
Not null
The default value is 0.
91
CurrentAcctAmoun
t5
Integer[8]
92
AccountType6
Integer[4]
93
FeeType6
Integer[4]
94
ChargeAmount6
Integer[8]
95
CurrentAcctAmoun
t6
Integer[8]
96
AccountType7
Integer[4]
97
FeeType7
Integer[4]
98
Issue 26 (2014-03-31)
ChargeAmount7
Integer[8]
142
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
seventh account.
0 means not unchanged.
Value range: -263-263-1
Not null
The default value is 0.
99
CurrentAcctAmoun
t7
Integer[8]
100
AccountType8
Integer[4]
101
FeeType8
Integer[4]
102
ChargeAmount8
Integer[8]
103
CurrentAcctAmoun
t8
Integer[8]
104
AccountType9
Integer[4]
105
FeeType9
Integer[4]
Issue 26 (2014-03-31)
143
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
106
ChargeAmount9
Integer[8]
107
CurrentAcctAmoun
t9
Integer[8]
108
AccountType10
Integer[4]
109
FeeType10
Integer[4]
110
ChargeAmount10
Integer[8]
111
CurrentAcctAmoun
t10
Integer[8]
112
BonusValidity1
Char[14]
113
Issue 26 (2014-03-31)
BonusValidity2
Char[14]
144
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
from accounts. In this case, the validity
periods of consumption resources are not
recorded.
Format: YYYYMMDDhhmmss
114
BonusValidity3
Char[14]
115
BonusValidity4
Char[14]
116
BonusValidity5
Char[14]
117
BonusValidity6
Char[14]
118
BonusValidity7
Char[14]
119
BonusValidity8
Char[14]
Issue 26 (2014-03-31)
145
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
120
BonusValidity9
Char[14]
121
BonusValidity10
Char[14]
122
OnlineType
Integer[4]
0: online
1: offline
Reserved
Char[22]
124
Reserved
Char[23]
125
Reserved
Char[24]
126
AddtionalInfo
Char[256]
127
BearerType
Integer[4]
128
StartTime
Char[14]
129
StopTime
Char[14]
130
BearerProtocolType
Integer[4]
Issue 26 (2014-03-31)
146
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
be extended later.
The options are as follows:
01: WAP/IP
10: HTTP/TCP/IP
20: STMP
30: RTSP
40: FTP
100: ADSL/LAN
101: Dial-Up/ISDN
102: WiFi
200: GPRS/UMTS
300: CDMA
400: WiMAX
500: TD-SCDMA
other: to be extended
ChargingID
Char[20]
132
ServiceLevel
Integer[4]
133
StartTimeOfBillCy
cle
Char[14]
134
ChargePartyIndicat
or
Char[1]
SecondChargingPar
tyNumber
Char[64]
Issue 26 (2014-03-31)
147
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
null when the service is paid only by
account.
The number format are as follows:
MSISDN
The number format is the format of the
mobile phone number.
SecondChargingPar
tyPayType
Char[1]
0: Prepaid
1: Postpaid
NOTE
If the value of the field is null, the system
records the payment type of the parent card
subscriber.
137
SecondChargingPar
tyBillCycleID
Char[20]
138
Reserved
Char[15]
139
Reserved
Char[10]
140
Reserved
Char[10]
141
Reserved
Char[15]
142
Reserved
Char[10]
143
Reserved
Char[10]
144
Reserved
Char[10]
145
Reserved
Char[10]
146
Reserved
Char[10]
Issue 26 (2014-03-31)
148
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
147
Reserved
Char[10]
148
Reserved
Char[10]
149
Reserved
Char[10]
150
Reserved
Char[10]
151
Reserved
Char[10]
152
Reserved
Char[10]
153
ChargeOfFluxSeco
ndAccounts
Integer[4]
154
ChargeOfDurationS
econdAccounts
Integer[4]
155
ChargeOfFundSeco
ndAccounts
Integer[8]
156
ChargeFromSecond
PrepaidAccount
Integer[8]
157
SecondPrepaidAcco
untBalance
Integer[8]
158
ChargeFromSecond
PostpaidAccount
Integer[8]
Issue 26 (2014-03-31)
149
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
159
SecondPostpaidAcc
ountBalance
Integer[8]
160
SecondAccountID
Char[20]
161
SecondAccountKey
Integer[8]
162
SecondAccountCur
rencyCode
Integer[4]
163
Reserved
Char[20]
164
SecondAccountTyp
e1
Integer[4]
165
SecondFeeType1
Integer[4]
166
SecondChargeAmo
unt1
Integer[8]
167
SecondCurrentAcct
Amount1
Integer[8]
Issue 26 (2014-03-31)
150
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
168
SecondAccountTyp
e2
Integer[4]
169
SecondFeeType2
Integer[4]
170
SecondChargeAmo
unt2
Integer[8]
171
SecondCurrentAcct
Amount2
Integer[8]
172
SecondAccountTyp
e3
Integer[4]
173
SecondFeeType3
Integer[4]
174
SecondChargeAmo
unt3
Integer[8]
Issue 26 (2014-03-31)
151
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
175
SecondCurrentAcct
Amount3
Integer[8]
176
SecondAccountTyp
e4
Integer[4]
177
SecondFeeType4
Integer[4]
178
SecondChargeAmo
unt4
Integer[8]
179
SecondCurrentAcct
Amount4
Integer[8]
180
SecondAccountTyp
e5
Integer[4]
181
SecondFeeType5
Integer[4]
182
SecondChargeAmo
unt5
Integer[8]
Issue 26 (2014-03-31)
152
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
183
SecondCurrentAcct
Amount5
Integer[8]
184
SecondBonusValidi
ty1
Char[14]
185
SecondBonusValidi
ty2
Char[14]
186
SecondBonusValidi
ty3
Char[14]
187
SecondBonusValidi
ty4
Char[14]
188
SecondBonusValidi
ty5
Char[14]
189
Reserved
Integer[4]
190
Reserved
Integer[4]
Issue 26 (2014-03-31)
153
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
191
Reserved
Integer[4]
192
Reserved
Char[25]
193
Reserved
Integer[4]
194
Reserved
Integer[4]
195
SubscriberIDType
Char[1]
0: END_USER_E164
2: END_USER_SIP_URI
Not null
The default value is 0.
196
DiscountOfLastEff
Product
Integer[4]
Not null
The default value is 100.
197
subscriberkey
Integer[4]
198
accumulationchang
e
Char[256]
199
UsageServiceType
Integer[4]
200
Issue 26 (2014-03-31)
SourceSerialNo
Integer[8]
154
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
re-rating, the value of this field is the
corresponding value in the original CDRs
for re-rating. If the re-rating is performed
multiple times, the value of this field
remains unchanged.
Not null
The default value is 0.
201
SourceSubSequenc
e
Integer[4]
202
AcctBalChgList
Char[768]
203
OriginCdrFilename
Char[64]
204
CurCDRLineNo
Integer[4]
205
Reserved
Integer[4]
206
Reserved
Integer[4]
207
Reserved
Integer[4]
208
Reserved
Integer[4]
209
SecondSubscriberK
ey
Integer[4]
Issue 26 (2014-03-31)
155
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
210
SecondProductID
Integer[4]
Reserved
211
accounttype1
Integer[4]
212
BalanceBeforeChar
ge1
Integer[8]
213
BalanceAfterCharg
e1
Integer[8]
214
ChargeFee1
Integer[8]
215
accounttype2
Integer[4]
216
BalanceBeforeChar
ge2
Integer[8]
217
BalanceAfterCharg
e2
Integer[8]
218
ChargeFee2
Integer[8]
219
accounttype3
Integer[4]
220
BalanceBeforeChar
ge3
Integer[8]
221
BalanceAfterCharg
e3
Integer[8]
222
ChargeFee3
Integer[8]
223
Issue 26 (2014-03-31)
accounttype4
Integer[4]
156
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
account.
The default value is 0.
224
BalanceBeforeChar
ge4
Integer[8]
225
BalanceAfterCharg
e4
Integer[8]
226
ChargeFee4
Integer[8]
227
accounttype5
Integer[4]
228
BalanceBeforeChar
ge5
Integer[8]
229
BalanceAfterCharg
e5
Integer[8]
230
ChargeFee5
Integer[8]
231
accounttype6
Integer[4]
232
BalanceBeforeChar
ge6
Integer[8]
233
BalanceAfterCharg
e6
Integer[8]
234
ChargeFee6
Integer[8]
235
accounttype7
Integer[4]
236
Issue 26 (2014-03-31)
BalanceBeforeChar
Integer[8]
157
OCS
Call Detail Record Reference
SN
Field Name
Field Type
ge7
Description
from.
The default value is 0.
237
BalanceAfterCharg
e7
Integer[8]
238
ChargeFee7
Integer[8]
239
accounttype8
Integer[4]
240
BalanceBeforeChar
ge8
Integer[8]
241
BalanceAfterCharg
e8
Integer[8]
242
ChargeFee8
Integer[8]
243
accounttype9
Integer[4]
244
BalanceBeforeChar
ge9
Integer[8]
245
BalanceAfterCharg
e9
Integer[8]
246
ChargeFee9
Integer[8]
247
accounttype10
Integer[4]
248
BalanceBeforeChar
ge10
Integer[8]
Issue 26 (2014-03-31)
158
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
249
BalanceAfterCharg
e10
Integer[8]
250
ChargeFee10
Integer[8]
251
accounttype11
Integer[4]
252
BalanceBeforeChar
ge11
Integer[8]
253
BalanceAfterCharg
e11
Integer[8]
254
ChargeFee11
Integer[8]
255
accounttype12
Integer[4]
256
BalanceBeforeChar
ge12
Integer[8]
257
BalanceAfterCharg
e12
Integer[8]
258
ChargeFee12
Integer[8]
259
accounttype13
Integer[4]
260
BalanceBeforeChar
ge13
Integer[8]
261
Issue 26 (2014-03-31)
BalanceAfterCharg
Integer[8]
159
OCS
Call Detail Record Reference
SN
Field Name
Field Type
e13
Description
account after the system deducts the fee
from.
The default value is 0.
262
ChargeFee13
Integer[8]
263
accounttype14
Integer[4]
264
BalanceBeforeChar
ge14
Integer[8]
265
BalanceAfterCharg
e14
Integer[8]
266
ChargeFee14
Integer[8]
267
accounttype15
Integer[4]
268
BalanceBeforeChar
ge15
Integer[8]
269
BalanceAfterCharg
e15
Integer[8]
270
ChargeFee15
Integer[8]
271
accounttype16
Integer[4]
272
BalanceBeforeChar
ge16
Integer[8]
Issue 26 (2014-03-31)
160
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
273
BalanceAfterCharg
e16
Integer[8]
274
ChargeFee16
Integer[8]
275
accounttype17
Integer[4]
276
BalanceBeforeChar
ge17
Integer[8]
277
BalanceAfterCharg
e17
Integer[8]
278
ChargeFee17
Integer[8]
279
accounttype18
Integer[4]
280
BalanceBeforeChar
ge18
Integer[8]
281
BalanceAfterCharg
e18
Integer[8]
282
ChargeFee18
Integer[8]
283
accounttype19
Integer[4]
284
Issue 26 (2014-03-31)
BalanceBeforeChar
ge19
Integer[8]
161
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
285
BalanceAfterCharg
e19
Integer[8]
286
ChargeFee19
Integer[8]
287
accounttype20
Integer[4]
288
BalanceBeforeChar
ge20
Integer[8]
289
BalanceAfterCharg
e20
Integer[8]
290
ChargeFee20
Integer[8]
Generation Scenario
A vou CDR is generated in the following scenarios:
When an OCS subscriber uses the call service for the first time or activates the MSISDN
through the IVR recharge, the subscriber can obtain a certain bonus.
When an OCS subscriber uses a recharge card or cash for recharge, the system provides
a bonus.
Issue 26 (2014-03-31)
162
OCS
Call Detail Record Reference
Format
Table 3-7 describes each field of vou CDR file.
Table 3-7 Format of vou CDR
SN
Field Name
Field
Type
Description
SerialNo
Integer[8]
TimeStamp
Char[14]
BrandID
Integer[4]
SubCOSID
Integer[4]
ChargingPartyNum
ber
Char[64]
Issue 26 (2014-03-31)
MSISDN
The number format is the format of the
mobile phone number.
163
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
ABC_DE@huawei.com
Value range: numerals within 0-9, *, #
NOTE
It can be null in MO.
PayType
Char[1]
0: Prepaid
1: Postpaid
VoucherPINNumb
er
Char[32]
Record as null.
VoucherBatchNum
ber
Char[12]
VoucherSequence
Char[20]
10
VoucherCosID
Integer[4]
11
VoucherSPID
Char[20]
CardFaceValue
Integer[8]
13
CardValueAdded
Integer[8]
14
Issue 26 (2014-03-31)
CardValidityAdde
d
Integer[4]
164
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
The default value is 0.
15
TradeTime
Char[19]
16
OperatedBy
Char[64]
17
ThirdPartyNumber
Char[64]
18
AccessMethod
Integer[4]
1: IVR
2: USSD
3: SMS
4: SMAP
5: WebService interface
6: RTBP(for Ufone)
Not null
The default value is 0.
19
TradeType
Char[12]
Issue 26 (2014-03-31)
0: first activation
165
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
1007: Loan
Not null
20
RechargeAreaNum
ber
Integer[4]
21
TransitionID
Char[36]
22
VoucherEncryptNu
mber
Char[22]
Record as null.
23
CallingCellID
Char[20]
24
Reserved
Integer[4]
25
Reserved
Char[25]
26
ProductID
Char[20]
27
ServiceType
Char[20]
Reserved
28
OldUserState
Char[10]
Issue 26 (2014-03-31)
166
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
the second digit C indicates the state of a
postpaid subscriber. The options are as
follows:
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
0: no
1: yes
29
CurrentUserSate
Char[10]
0: no
1: yes
Issue 26 (2014-03-31)
167
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
the second digit C indicates the state of a
postpaid subscriber. The options are as
follows:
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
0: no
1: yes
30
PreviousActivestop
Char[14]
0: no
1: yes
31
NewActivestop
Char[14]
32
Issue 26 (2014-03-31)
SuspendStop
Char[14]
168
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
recharging.
Format: YYYYMMDDhhmmss
33
DisableStop
Char[14]
34
ValidityAdded
Integer[4]
35
RewardCycles
Integer[4]
36
RebateSchemaID
Char[20]
37
BillCycleID
Char[20]
SubscriberID
Char[20]
39
Reserved
Char[20]
40
ResultCode
Integer[4]
41
AccountID
Char[20]
42
RechargeTax
Integer[8]
43
RechargePenalty
Integer[8]
Issue 26 (2014-03-31)
169
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
recorded in this field.
The default value is 0.
44
CurrencyCode
Integer[4]
45
Reserved
Char[20]
46
PrepaidBalanceBef
ore
Integer[8]
47
RechargeForPrepai
d
Integer[8]
48
PrepaidBalance
Integer[8]
49
PostPaidBalanceBe
fore
Integer[8]
50
RechargeForPostpa
id
Integer[8]
51
PostPaidBalance
Integer[8]
Issue 26 (2014-03-31)
170
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
The default value is 0.
52
AccountType1
Integer[4]
53
ChargeAmount1
Integer[8]
54
CurrentAcctAmou
nt1
Integer[8]
55
AccountType2
Integer[4]
56
ChargeAmount2
Integer[8]
57
CurrentAcctAmou
nt2
Integer[8]
58
AccountType3
Integer[4]
59
Issue 26 (2014-03-31)
ChargeAmount3
Integer[8]
171
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
Unit: minimum currency unit
Value range: -263-263-1
Not null
The default value is 0.
60
CurrentAcctAmou
nt3
Integer[8]
61
AccountType4
Integer[4]
62
ChargeAmount4
Integer[8]
63
CurrentAcctAmou
nt4
Integer[8]
64
AccountType5
Integer[4]
65
ChargeAmount5
Integer[8]
66
CurrentAcctAmou
nt5
Integer[8]
Issue 26 (2014-03-31)
172
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
Value range: -263-263-1
Not null
The default value is 0.
67
AccountType6
Integer[4]
68
ChargeAmount6
Integer[8]
69
CurrentAcctAmou
nt6
Integer[8]
70
AccountType7
Integer[4]
71
ChargeAmount7
Integer[8]
72
CurrentAcctAmou
nt7
Integer[8]
73
AccountType8
Integer[4]
Issue 26 (2014-03-31)
173
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
74
ChargeAmount8
Integer[8]
75
CurrentAcctAmou
nt8
Integer[8]
76
AccountType9
Integer[4]
77
ChargeAmount9
Integer[8]
78
CurrentAcctAmou
nt9
Integer[8]
79
AccountType10
Integer[4]
80
ChargeAmount10
Integer[8]
81
Issue 26 (2014-03-31)
CurrentAcctAmou
Integer[8]
174
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
nt10
Description
tenth account.
Unit: minimum currency unit
Value range: -263-263-1
Not null
The default value is 0.
82
BonusValidity1
Char[14]
83
BonusValidity2
Char[14]
84
BonusValidity3
Char[14]
85
BonusValidity4
Char[14]
86
BonusValidity5
Char[14]
87
BonusValidity6
Char[14]
88
Issue 26 (2014-03-31)
BonusValidity7
Char[14]
175
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
accounts. In this case, the validity periods of
consumption resources are not recorded.
Format: YYYYMMDDhhmmss
89
BonusValidity8
Char[14]
90
BonusValidity9
Char[14]
91
BonusValidity10
Char[14]
92
PreviousSuspendSt
op
Char[14]
93
PreviousDisableSt
op
Char[14]
94
AgentName
Char[64]
95
AddtionalInfo
Char[256]
96
Issue 26 (2014-03-31)
StartTimeOfBillCy
Char[14]
176
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
cle
97
LoanAmount
Integer[8]
98
LoanPoundage
Integer[8]
99
Reserved
Integer[4]
100
Reserved
Integer[8]
101
Reserved
Integer[8]
102
Reserved
Integer[8]
103
Reserved
Integer[4]
104
Reserved
Char[14]
105
Reserved
Char[14]
106
Reserved
Integer[4]
107
Reserved
Integer[4]
108
Reserved
Char[20]
109
SubscriberIDType
Char[1]
110
DiameterSessionID
Char[128]
subscriberkey
Integer[4]
112
Issue 26 (2014-03-31)
accountkey
Integer[8]
177
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
The default value is 0.
113
UsageServiceType
Integer[4]
114
OriginCdrFilename
Char[64]
115
CurCDRLineNo
Integer[4]
116
Reason
Integer[4]
117
Comment
Char[256]
118
LoanGrade
Integer[4]
119
LoanAcctType
Integer[4]
120
LoanAcctBalance
Integer[8]
121
ETUGracePeriod
Char[14]
122
Reserved
Integer[8]
123
Reserved
Integer[8]
124
Reserved
Integer[8]
125
Reserved
Integer[8]
126
FeeType1
Integer[4]
127
FeeType2
Integer[4]
Issue 26 (2014-03-31)
178
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
Not null
The default value is 0.
128
FeeType3
Integer[4]
129
FeeType4
Integer[4]
130
FeeType5
Integer[4]
131
FeeType6
Integer[4]
132
FeeType7
Integer[4]
133
FeeType8
Integer[4]
134
Issue 26 (2014-03-31)
FeeType9
Integer[4]
179
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
Fee types record fee change information such
as consumption fees and rewarded fees.
0 means not used.
Not null
The default value is 0.
135
FeeType10
Integer[4]
136
accounttype1
Integer[4]
137
BalanceBeforeCha
rge1
Integer[8]
138
BalanceAfterCharg
e1
Integer[8]
139
ChargeFee1
Integer[8]
140
accounttype2
Integer[4]
141
BalanceBeforeCha
rge2
Integer[8]
142
BalanceAfterCharg
e2
Integer[8]
143
ChargeFee2
Integer[8]
144
accounttype3
Integer[4]
145
BalanceBeforeCha
rge3
Integer[8]
Issue 26 (2014-03-31)
180
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
The default value is 0.
146
BalanceAfterCharg
e3
Integer[8]
147
ChargeFee3
Integer[8]
148
accounttype4
Integer[4]
149
BalanceBeforeCha
rge4
Integer[8]
150
BalanceAfterCharg
e4
Integer[8]
151
ChargeFee4
Integer[8]
152
accounttype5
Integer[4]
153
BalanceBeforeCha
rge5
Integer[8]
154
BalanceAfterCharg
e5
Integer[8]
155
ChargeFee5
Integer[8]
156
accounttype6
Integer[4]
157
BalanceBeforeCha
rge6
Integer[8]
158
Issue 26 (2014-03-31)
BalanceAfterCharg
Integer[8]
181
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
e6
Description
after the system deducts the fee from.
The default value is 0.
159
ChargeFee6
Integer[8]
160
accounttype7
Integer[4]
161
BalanceBeforeCha
rge7
Integer[8]
162
BalanceAfterCharg
e7
Integer[8]
163
ChargeFee7
Integer[8]
164
accounttype8
Integer[4]
165
BalanceBeforeCha
rge8
Integer[8]
166
BalanceAfterCharg
e8
Integer[8]
167
ChargeFee8
Integer[8]
168
accounttype9
Integer[4]
169
BalanceBeforeCha
rge9
Integer[8]
170
BalanceAfterCharg
e9
Integer[8]
Issue 26 (2014-03-31)
182
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
171
ChargeFee9
Integer[8]
172
accounttype10
Integer[4]
173
BalanceBeforeCha
rge10
Integer[8]
174
BalanceAfterCharg
e10
Integer[8]
175
ChargeFee10
Integer[8]
176
accounttype11
Integer[4]
177
BalanceBeforeCha
rge11
Integer[8]
178
BalanceAfterCharg
e11
Integer[8]
179
ChargeFee11
Integer[8]
180
accounttype12
Integer[4]
181
BalanceBeforeCha
rge12
Integer[8]
182
BalanceAfterCharg
e12
Integer[8]
183
ChargeFee12
Integer[8]
Issue 26 (2014-03-31)
183
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
184
accounttype13
Integer[4]
185
BalanceBeforeCha
rge13
Integer[8]
186
BalanceAfterCharg
e13
Integer[8]
187
ChargeFee13
Integer[8]
188
accounttype14
Integer[4]
189
BalanceBeforeCha
rge14
Integer[8]
190
BalanceAfterCharg
e14
Integer[8]
191
ChargeFee14
Integer[8]
192
accounttype15
Integer[4]
193
BalanceBeforeCha
rge15
Integer[8]
194
BalanceAfterCharg
e15
Integer[8]
195
ChargeFee15
Integer[8]
196
Issue 26 (2014-03-31)
accounttype16
Integer[4]
184
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
The default value is 0.
197
BalanceBeforeCha
rge16
Integer[8]
198
BalanceAfterCharg
e16
Integer[8]
199
ChargeFee16
Integer[8]
200
accounttype17
Integer[4]
201
BalanceBeforeCha
rge17
Integer[8]
202
BalanceAfterCharg
e17
Integer[8]
203
ChargeFee17
Integer[8]
204
accounttype18
Integer[4]
205
BalanceBeforeCha
rge18
Integer[8]
206
BalanceAfterCharg
e18
Integer[8]
207
ChargeFee18
Integer[8]
208
accounttype19
Integer[4]
Issue 26 (2014-03-31)
185
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
209
BalanceBeforeCha
rge19
Integer[8]
210
BalanceAfterCharg
e19
Integer[8]
211
ChargeFee19
Integer[8]
212
accounttype20
Integer[4]
213
BalanceBeforeCha
rge20
Integer[8]
214
BalanceAfterCharg
e20
Integer[8]
215
ChargeFee20
Integer[8]
Generation Scenario
When an OCS subscriber subscribes to a package, and the system successfully deducts the
monthly fee from the account of the subscriber or the system rebates resources to the
subscriber periodically, an mon CDR is generated.
For the description of child-parent cards, see section 3.1.2 rec CDR .
Issue 26 (2014-03-31)
186
OCS
Call Detail Record Reference
Format
Table 3-8 describes each field of mon CDR file.
Table 3-8 Format of mon CDR
SN
Field Name
Field Type
Description
SerialNo
Integer[8]
TimeStamp
Char[14]
BrandID
Integer[4]
SubCOSID
Integer[4]
PayType
Char[1]
0: Prepaid
1: Postpaid
Not null
6
ChargingPartyNu
mber
Char[64]
ChargingPartyTyp
e
Char[1]
0: MSISDN subscriber
1: Customer ID
2: Group No
Not null
8
Reserved
Integer[4]
BillCycleID
Char[20]
Issue 26 (2014-03-31)
187
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
CycleBeginTime
Char[14]
11
CycleEndTime
Char[14]
12
CycleType
Integer[4]
1: bill cycle
Indicates that the cycle is the bill cycle.
2: days
Indicates that the cycle is days.
3: weeks
Indicates that the cycle is weeks.
4: months
Indicates that the cycle is months.
Other: reserved
Not null
The default value is 0.
13
CycleLength
Integer[4]
14
ElapseCycles
Integer[4]
15
InnerCycleBeginTi
me
Char[14]
16
Issue 26 (2014-03-31)
InnerCycleEndTim
e
Char[14]
188
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
17
ProductID
Char[20]
18
ServiceType
Integer[4]
1: Voice
2: SMS
3: MMS
4: GPRS
6: RBT
8: VoiceVideoPhoneService
9: VoiceData
10: VoiceFax
11: Content
20: FN
21: HomeZone
22: CallScreen
24: VoIP
26: CUG
33: Package
38: OneTimePackage
41: MCN
42: VMS
45: DestNumber
50: AOC
63: SuperBuddy
73: DailyBucket
106: RBT_MO
Not null
The default value is 0.
19
UserState
Char[10]
Issue 26 (2014-03-31)
189
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
cycle state of a subscriber. The first digit C
indicates the state of a prepaid subscriber,
and the second digit C indicates the state of a
postpaid subscriber. The options are as
follows:
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
0: no
1: yes
0: no
1: yes
Not null
20
SubscriberID
Char[20]
21
Issue 26 (2014-03-31)
OrderStatus
Char[20]
190
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The options are as follows:
0: normal
1: suspend
2: not activated
3: expired
TotalCycles
Integer[4]
23
Reserved
Char[20]
24
Reserved
Char[20]
25
ResultCode
Integer[4]
26
ChargeOfItemsAcc
ounts
Integer[8]
27
DeductResourceAc
counts
Integer[4]
28
DeductFundAccou
nts
Integer[4]
29
DeductFromPrepai
d
Integer[8]
30
PrepaidBalance
Integer[8]
31
DeductFromPostpa
id
Integer[8]
32
Issue 26 (2014-03-31)
PostPaidBalance
Integer[8]
191
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
limitation.
NOTE
If the rental of a postpaid subscriber is debited
to the previous bill cycle, the rental CDR of
the subscriber needs to record the balance of
the previous bill cycle after fee deduction.
AccountID
Char[20]
34
AccountKey
Integer[8]
35
CurrencyCode
Integer[4]
36
Reserved
Char[20]
37
AccountType1
Integer[4]
AccountType
ChargeAmount
CurrentAcctAmount
NOTE
In the recharge and rental deduction processes,
this fee group records only reward-related
information, but does not record consumption-,
tax-, and rental-related information.
ChargeAmount1
Integer[8]
Issue 26 (2014-03-31)
192
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: -263-263-1
The default value is 0.
39
CurrentAcctAmou
nt1
Integer[8]
40
AccountType2
Integer[4]
41
ChargeAmount2
Integer[8]
42
CurrentAcctAmou
nt2
Integer[8]
43
AccountType3
Integer[4]
44
ChargeAmount3
Integer[8]
45
CurrentAcctAmou
nt3
Integer[8]
46
AccountType4
Integer[4]
Issue 26 (2014-03-31)
193
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
47
ChargeAmount4
Integer[8]
48
CurrentAcctAmou
nt4
Integer[8]
49
AccountType5
Integer[4]
50
ChargeAmount5
Integer[8]
51
CurrentAcctAmou
nt5
Integer[8]
52
AccountType6
Integer[4]
53
ChargeAmount6
Integer[8]
54
CurrentAcctAmou
nt6
Integer[8]
Issue 26 (2014-03-31)
194
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
55
AccountType7
Integer[4]
56
ChargeAmount7
Integer[8]
57
CurrentAcctAmou
nt7
Integer[8]
58
AccountType8
Integer[4]
59
ChargeAmount8
Integer[8]
60
CurrentAcctAmou
nt8
Integer[8]
61
AccountType9
Integer[4]
62
ChargeAmount9
Integer[8]
Issue 26 (2014-03-31)
195
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
63
CurrentAcctAmou
nt9
Integer[8]
64
AccountType10
Integer[4]
65
ChargeAmount10
Integer[8]
66
CurrentAcctAmou
nt10
Integer[8]
67
Reserved
Char[20]
68
BonusValidity1
Char[14]
69
BonusValidity2
Char[14]
70
BonusValidity3
Char[14]
71
Issue 26 (2014-03-31)
BonusValidity4
Char[14]
196
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
not change when fees are deducted from
accounts. In this case, the validity periods of
consumption resources are not recorded.
Format: YYYYMMDDhhmmss
72
BonusValidity5
Char[14]
73
BonusValidity6
Char[14]
74
BonusValidity7
Char[14]
75
BonusValidity8
Char[14]
76
BonusValidity9
Char[14]
77
BonusValidity10
Char[14]
78
FreeRBTRentFlag
Integer[4]
Issue 26 (2014-03-31)
0: yes
1: no
197
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
79
Free_RBT_Monthl
yfee
Integer[4]
80
Reserved
Char[24]
81
AddtionalInfo
Char[256]
82
83
StartTimeOfBillCy
cle
Char[14]
ChargePartyIndicat
or
Char[1]
SecondChargingPa
rtyNumber
Char[64]
MSISDN
The number format is the format of the
mobile phone number.
Issue 26 (2014-03-31)
198
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: numerals within 0-9, *, #
Not null
85
SecondChargingPa
rtyPayType
Char[1]
0: Prepaid
1: Postpaid
NOTE
If the value of the field is null, the system records
the payment type of the parent card subscriber.
86
SecondChargingPa
rtyBillCycleID
Char[20]
CallingVPNTopGr
oupNumber
Char[15]
88
CallingVPNGroup
Number
Char[10]
89
CallingVPNShort
Number
Char[10]
90
CalledVPNTopGro
upNumber
Char[15]
91
CalledVPNGroup
Number
Char[10]
92
Issue 26 (2014-03-31)
CalledVPNShortN
umber
Char[10]
199
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Can be null
93
CallingNetworkTy
pe
Char[10]
100: PSTN
200: GSM
Can be null
94
CalledNetworkTyp
e
Char[10]
100: PSTN
101: PBX
102: PHS
200: GSM
201: GPRS
202: EDGE
300: CDMA
400: WCDMA
500: TD-SCDMA
600: IP/IMS
601: Wifi
602: WIMAX
Other to be extended
Can be null
95
GroupCallType
Char[10]
Reserved
96
GroupPayFlag
Char[10]
0: Personal payment
1: Group payment
Can be null
97
Reserved
Integer[4]
98
Reserved
Char[10]
99
Reserved
Char[10]
100
Reserved
Char[10]
101
Reserved
Char[10]
Issue 26 (2014-03-31)
200
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
102
ChargeOfItemsSec
ondAccounts
Integer[8]
103
ChargeOfDuration
SecondAccounts
Integer[8]
104
ChargeOfFundSec
ondAccounts
Integer[8]
105
ChargeFromSecon
dPrepaidAccount
Integer[8]
106
SecondPrepaidAcc
ountBalance
Integer[8]
107
ChargeFromSecon
dPostpaidAccount
Integer[8]
108
SecondPostpaidAc
countBalance
Integer[8]
109
Issue 26 (2014-03-31)
SecondAccountID
Char[20]
201
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Value range: characters in [0-9, a-z, A-Z]
110
SecondAccountKe
y
Integer[8]
111
SecondAccountCu
rrencyCode
Integer[4]
112
Reserved
Char[20]
113
SecondAccountTy
pe1
Integer[4]
114
SecondFeeType1
Integer[4]
115
SecondChargeAm
ount1
Integer[8]
116
SecondCurrentAcc
tAmount1
Integer[8]
117
SecondAccountTy
pe2
Integer[4]
Issue 26 (2014-03-31)
202
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is 0.
118
SecondFeeType2
Integer[4]
119
SecondChargeAm
ount2
Integer[8]
120
SecondCurrentAcc
tAmount2
Integer[8]
121
SecondAccountTy
pe3
Integer[4]
122
SecondFeeType3
Integer[4]
123
SecondChargeAm
ount3
Integer[8]
124
SecondCurrentAcc
tAmount3
Integer[8]
125
Issue 26 (2014-03-31)
SecondAccountTy
pe4
Integer[4]
203
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0 means not used.
Not null
The default value is 0.
126
SecondFeeType4
Integer[4]
127
SecondChargeAm
ount4
Integer[8]
128
SecondCurrentAcc
tAmount4
Integer[8]
129
SecondAccountTy
pe5
Integer[4]
130
SecondFeeType5
Integer[4]
131
SecondChargeAm
ount5
Integer[8]
132
SecondCurrentAcc
tAmount5
Integer[8]
Issue 26 (2014-03-31)
204
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
133
SecondBonusValid
ity1
Char[14]
134
SecondBonusValid
ity2
Char[14]
135
SecondBonusValid
ity3
Char[14]
136
SecondBonusValid
ity4
Char[14]
137
SecondBonusValid
ity5
Char[14]
138
Reserved
Integer[4]
139
Reserved
Integer[4]
140
TransitionID
Char[32]
141
PreRentFlag
Integer[4]
142
PreRentNum
Integer[4]
Issue 26 (2014-03-31)
205
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
143
PreRentAmt
Integer[8]
144
PreRentCycleOpen
Char[16]
145
PreRentCycleEnd
Char[16]
146
subscriberkey
Integer[4]
147
ExpiredAirTime
Char[64]
148
OriginCdrFilenam
e
Char[64]
149
CurCDRLineNo
Integer[4]
150
Reserved
Integer[8]
151
Reserved
Integer[8]
152
Reserved
Integer[8]
153
Reserved
Integer[8]
154
SecondSubscriber
Key
Integer[4]
155
SecondProductID
Integer[4]
Reserved
156
FeeType1
integer[4]
Issue 26 (2014-03-31)
206
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
157
FeeType2
integer[4]
158
FeeType3
integer[4]
159
FeeType4
integer[4]
160
FeeType5
integer[4]
161
FeeType6
integer[4]
162
FeeType7
integer[4]
163
FeeType8
integer[4]
Issue 26 (2014-03-31)
207
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Not null
The default value is 0.
164
FeeType9
integer[4]
165
FeeType10
integer[4]
Generation Scenario
A com CDR is generated when a subscriber of the OCS service uses the third-party interface.
For example, a subscriber is charged for downloading an RBT.
For the description of child-parent cards, see section 3.1.2 rec CDR .
Format
Table 3-9 describes each field of com CDR file.
Table 3-9 Format of com CDR
SN.
Field Name
Field Type
Description
SerialNo
Integer[8]
Issue 26 (2014-03-31)
208
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
number is exclusive.
Not null
The default value is 0.
SubSequence
Integer[4]
TimeStamp
Char[14]
ServiceKey
Integer[4]
ChargingPartyNu
mber
Char[64]
MSISDN
The number format is the format of the
mobile phone number.
RequestAction
Integer[4]
0: Deduct fees.
1: Refund fees
Not null
The default value is 0.
7
Issue 26 (2014-03-31)
ChargeType
Char[10]
209
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
sent from external systems.
Some fields are reserved for recording the
original information (such as the RBT
download charging information) sent from
external systems.
It is customized according to the special
requirement.
ServiceType
Integer[4]
1: Voice
2: SMS
3: MMS
4: GPRS
5: Recharge
BearedService
Char[20]
10
SPID
Char[20]
11
CategoryID
Char[20]
12
ContentID
Char[20]
13
ServiceID
Char[20]
14
CalledPartyNumbe
Char[64]
Issue 26 (2014-03-31)
210
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
r
15
Description
the original format.
ChargeAmount
Integer[8]
16
BrandID
Integer[4]
17
SubCOSID
Integer[4]
18
PayType
Char[1]
19
BillCycleID
Char[20]
0: Prepaid
1: Postpaid
ServiceBeginTime
Char[14]
21
ServiceEndTime
Char[14]
22
UsageAmount
Integer[4]
Issue 26 (2014-03-31)
211
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
The default value is 0.
23
ServiceUnit
Integer[4]
24
ChargingTime
Char[14]
25
TransitionID
Char[32]
26
UserState
Char[10]
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
Issue 26 (2014-03-31)
0: non-suspend
1: suspend
212
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
0: no
1: yes
0: no
1: yes
27
SubscriberID
Char[20]
0: no
1: yes
28
Reserved
Char[20]
29
Reserved
Char[20]
30
ResultCode
Integer[4]
31
ChargeOfItemsAc
counts
Integer[8]
32
ChargeOfDuration
Accounts
Integer[8]
33
ChargeOfFundAcc
ounts
Integer[8]
34
ChargeFromPrepai
d
Integer[8]
Issue 26 (2014-03-31)
213
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
The default value is 0.
35
PrepaidBalance
Integer[8]
36
ChargeFromPostpa
id
Integer[8]
37
PostPaidBalance
Integer[8]
38
AccountID
Char[20]
39
AccountKey
Integer[8]
40
CurrencyCode
Integer[4]
41
Original Amount
Integer[4]
42
AccountType1
Integer[4]
43
FeeType1
Integer[4]
44
Issue 26 (2014-03-31)
ChargeAmount1
Integer[8]
214
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
0 means unchanged.
Value range: -263-263-1
Not null
The default value is 0.
45
CurrentAcctAmou
nt1
Integer[8]
46
AccountType2
Integer[4]
47
FeeType2
Integer[4]
48
ChargeAmount2
Integer[8]
49
CurrentAcctAmou
nt2
Integer[8]
50
AccountType3
Integer[4]
51
FeeType3
Integer[4]
52
Issue 26 (2014-03-31)
ChargeAmount3
Integer[8]
215
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
account.
0 means unchanged.
Value range: -263-263-1
Not null
The default value is 0.
53
CurrentAcctAmou
nt3
Integer[8]
54
AccountType4
Integer[4]
55
FeeType4
Integer[4]
56
ChargeAmount4
Integer[8]
57
CurrentAcctAmou
nt4
Integer[8]
58
AccountType5
Integer[4]
59
FeeType5
Integer[4]
Issue 26 (2014-03-31)
216
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
60
ChargeAmount5
Integer[8]
61
CurrentAcctAmou
nt5
Integer[8]
62
AccountType6
Integer[4]
63
FeeType6
Integer[4]
64
ChargeAmount6
Integer[8]
65
CurrentAcctAmou
nt6
Integer[8]
66
AccountType7
Integer[4]
67
FeeType7
Integer[4]
Issue 26 (2014-03-31)
217
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
The default value is 0.
68
ChargeAmount7
Integer[8]
69
CurrentAcctAmou
nt7
Integer[8]
70
AccountType8
Integer[4]
71
FeeType8
Integer[4]
72
ChargeAmount8
Integer[8]
73
CurrentAcctAmou
nt8
Integer[8]
74
AccountType9
Integer[4]
75
FeeType9
Integer[4]
Issue 26 (2014-03-31)
218
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
Not null
The default value is 0.
76
ChargeAmount9
Integer[8]
77
CurrentAcctAmou
nt9
Integer[8]
78
AccountType10
Integer[4]
79
FeeType10
Integer[4]
80
ChargeAmount10
Integer[8]
81
CurrentAcctAmou
nt10
Integer[8]
82
BonusValidity1
Char[14]
83
Issue 26 (2014-03-31)
BonusValidity2
Char[14]
219
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
rewarded resource. The validity period does
not change when fees are deducted from
accounts. In this case, the validity periods of
consumption resources are not recorded.
Format: YYYYMMDDhhmmss
84
BonusValidity3
Char[14]
85
BonusValidity4
Char[14]
86
BonusValidity5
Char[14]
87
BonusValidity6
Char[14]
88
BonusValidity7
Char[14]
89
BonusValidity8
Char[14]
90
Issue 26 (2014-03-31)
BonusValidity9
Char[14]
220
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
Format: YYYYMMDDhhmmss
91
BonusValidity10
Char[14]
92
msg id
Char[20]
93
session id
Char[20]
94
Service Name
Char[32]
95
Consumed
Resources
Integer[4]
96
AddtionalInfo
Char[512]
97
ChargeMode
Integer[4]
0: times
Indicates charging by events.
1: volume
Indicates charging by volume.
2: duration
Indicates charging by duration.
3: reserved
CDRProductID
Char[20]
99
CDRChargeMode
Integer[4]
100
CDRTimes
Integer[4]
Issue 26 (2014-03-31)
221
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
101
CDRDuration
Integer[4]
102
CDRVolume
Integer[4]
103
CDRCDRType
Integer[4]
104
CDRServiceType
Integer[4]
0: wap
1: kjava
2: sms
3: mms
4: Mail
5: LBS
6: StreamMedia
7: IMPS
8: UM
9: WapPush
11: CRBT
12: General
13: MC
14: PIM
15: VMB
16: CMB
17: PaymentGW
18: Storage
CDRBeginTime
Integer[4]
106
CDREndTime
Integer[4]
107
Issue 26 (2014-03-31)
CDRPkgSpid
Char[20]
222
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
108
CDRPkgServiceid
Char[20]
109
CDRPkgProductid
Char[20]
110
CDRSPName
Char[256]
111
CDRServiceName
Char[256]
112
StartTimeOfBillCy
cle
Char[14]
ChargePartyIndica
tor
Char[1]
113
114
SecondChargingPa
rtyNumber
Char[64]
MSISDN
The number format is the format of the
mobile phone number.
SecondChargingPa
rtyPayType
Char[1]
0: Prepaid
1: Postpaid
NOTE
If the value of the field is null, the system records
the payment type of the parent card subscriber.
Issue 26 (2014-03-31)
223
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
116
SecondChargingPa
rtyBillCycleID
Char[20]
117
Reserved
Char[15]
118
Reserved
Char[10]
119
Reserved
Char[10]
120
Reserved
Char[15]
121
Reserved
Char[10]
122
Reserved
Char[10]
123
Reserved
Char[10]
124
Reserved
Char[10]
125
Reserved
Char[10]
126
Reserved
Char[10]
127
Reserved
Integer[4]
128
call ID
Char[32]
129
package
Char[32]
130
APN
Char[22]
131
Reserved
Char[10]
132
ChargeOfItemsSec
ondAccounts
Integer[8]
133
ChargeOfDuration
SecondAccounts
Integer[8]
134
Issue 26 (2014-03-31)
ChargeOfFundSec
Integer[8]
224
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
ondAccounts
Description
fund account of others, such as the parent
card.
Value range: -263-263-1
Not null
The default value is 0.
135
ChargeFromSecon
dPrepaidAccount
Integer[8]
136
SecondPrepaidAcc
ountBalance
Integer[8]
137
ChargeFromSecon
dPostpaidAccount
Integer[8]
138
SecondPostpaidAc
countBalance
Integer[8]
139
SecondAccountID
Char[20]
140
SecondAccountKe
y
Integer[8]
141
SecondAccountCu
rrencyCode
Integer[4]
Issue 26 (2014-03-31)
225
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
The default value is 0.
142
Reserved
Char[20]
143
SecondAccountTy
pe1
Integer[4]
144
SecondFeeType1
Integer[4]
145
SecondChargeAm
ount1
Integer[8]
146
SecondCurrentAcc
tAmount1
Integer[8]
147
SecondAccountTy
pe2
Integer[4]
148
SecondFeeType2
Integer[4]
149
SecondChargeAm
ount2
Integer[8]
Issue 26 (2014-03-31)
226
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
150
SecondCurrentAcc
tAmount2
Integer[8]
151
SecondAccountTy
pe3
Integer[4]
152
SecondFeeType3
Integer[4]
153
SecondChargeAm
ount3
Integer[8]
154
SecondCurrentAcc
tAmount3
Integer[8]
155
SecondAccountTy
pe4
Integer[4]
156
SecondFeeType4
Integer[4]
157
SecondChargeAm
ount4
Integer[8]
Issue 26 (2014-03-31)
227
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
Not null
The default value is 0.
158
SecondCurrentAcc
tAmount4
Integer[8]
159
SecondAccountTy
pe5
Integer[4]
160
SecondFeeType5
Integer[4]
161
SecondChargeAm
ount5
Integer[8]
162
SecondCurrentAcc
tAmount5
Integer[8]
163
SecondBonusValid
ity1
Char[14]
164
SecondBonusValid
ity2
Char[14]
Issue 26 (2014-03-31)
228
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
165
SecondBonusValid
ity3
Char[14]
166
SecondBonusValid
ity4
Char[14]
167
SecondBonusValid
ity5
Char[14]
168
DiameterSessionI
D
Char[128]
Reserved
Char[20]
170
Reserved
Char[20]
171
Reserved
Integer[4]
172
Reserved
Integer[4]
Issue 26 (2014-03-31)
229
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
173
Reserved
Char[25]
174
Reserved
Integer[4]
175
Reserved
Integer[4]
176
subscriberkey
Integer[4]
177
accumulationchan
ge
Char[256]
178
UsageServiceType
Integer[4]
179
ChargePartyIMSI
Char[64]
180
SourceSerialNo
Integer[8]
181
SourceSubSequenc
e
Integer[4]
182
Issue 26 (2014-03-31)
AcctBalChgList
Char[768]
230
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
The value format is as follows:
lAcctBalanceID, iProductKey, iFeeID,
iAmount0, iAmount1, iAcctBalanceType,
MeasureID, billCycleID;
The value contains only numerals. The fields
in each group are separated by commas (,),
and groups are separated by semicolons (;).
Up to 10 groups can be included. The
contents exceeding 10 groups will be
discarded.
183
184
OriginCdrFilenam
e
Char[64]
CurCDRLineNo
Integer[4]
185
Reserved
Integer[8]
186
Reserved
Integer[8]
187
Reserved
Integer[8]
188
Reserved
Integer[8]
189
SecondSubscriber
Key
Integer[4]
190
SecondProductID
Integer[4]
Reserved.
191
accounttype1
Integer[4]
192
BalanceBeforeCha
rge1
Integer[8]
193
BalanceAfterChar
ge1
Integer[8]
194
ChargeFee1
Integer[8]
195
accounttype2
Integer[4]
196
Issue 26 (2014-03-31)
BalanceBeforeCha
Integer[8]
231
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
rge2
Description
before the system deducts the fee from.
The default value is 0.
197
BalanceAfterChar
ge2
Integer[8]
198
ChargeFee2
Integer[8]
199
accounttype3
Integer[4]
200
BalanceBeforeCha
rge3
Integer[8]
201
BalanceAfterChar
ge3
Integer[8]
202
ChargeFee3
Integer[8]
203
accounttype4
Integer[4]
204
BalanceBeforeCha
rge4
Integer[8]
205
BalanceAfterChar
ge4
Integer[8]
206
ChargeFee4
Integer[8]
207
accounttype5
Integer[4]
208
BalanceBeforeCha
rge5
Integer[8]
209
Issue 26 (2014-03-31)
BalanceAfterChar
Integer[8]
232
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
ge5
Description
after the system deducts the fee from.
The default value is 0.
210
ChargeFee5
Integer[8]
211
accounttype6
Integer[4]
212
BalanceBeforeCha
rge6
Integer[8]
213
BalanceAfterChar
ge6
Integer[8]
214
ChargeFee6
Integer[8]
215
accounttype7
Integer[4]
216
BalanceBeforeCha
rge7
Integer[8]
217
BalanceAfterChar
ge7
Integer[8]
218
ChargeFee7
Integer[8]
219
accounttype8
Integer[4]
220
BalanceBeforeCha
rge8
Integer[8]
221
BalanceAfterChar
ge8
Integer[8]
222
Issue 26 (2014-03-31)
ChargeFee8
Integer[8]
233
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
eighth account.
The default value is 0.
223
accounttype9
Integer[4]
224
BalanceBeforeCha
rge9
Integer[8]
225
BalanceAfterChar
ge9
Integer[8]
226
ChargeFee9
Integer[8]
227
accounttype10
Integer[4]
228
BalanceBeforeCha
rge10
Integer[8]
229
BalanceAfterChar
ge10
Integer[8]
230
ChargeFee10
Integer[8]
231
accounttype11
Integer[4]
232
BalanceBeforeCha
rge11
Integer[8]
233
BalanceAfterChar
ge11
Integer[8]
234
ChargeFee11
Integer[8]
235
Issue 26 (2014-03-31)
accounttype12
Integer[4]
234
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
account.
The default value is 0.
236
BalanceBeforeCha
rge12
Integer[8]
237
BalanceAfterChar
ge12
Integer[8]
238
ChargeFee12
Integer[8]
239
accounttype13
Integer[4]
240
BalanceBeforeCha
rge13
Integer[8]
241
BalanceAfterChar
ge13
Integer[8]
242
ChargeFee13
Integer[8]
243
accounttype14
Integer[4]
244
BalanceBeforeCha
rge14
Integer[8]
245
BalanceAfterChar
ge14
Integer[8]
246
ChargeFee14
Integer[8]
247
Issue 26 (2014-03-31)
accounttype15
Integer[4]
235
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
fund account.
The default value is 0.
248
BalanceBeforeCha
rge15
Integer[8]
249
BalanceAfterChar
ge15
Integer[8]
250
ChargeFee15
Integer[8]
251
accounttype16
Integer[4]
252
BalanceBeforeCha
rge16
Integer[8]
253
BalanceAfterChar
ge16
Integer[8]
254
ChargeFee16
Integer[8]
255
accounttype17
Integer[4]
256
BalanceBeforeCha
rge17
Integer[8]
257
BalanceAfterChar
ge17
Integer[8]
258
ChargeFee17
Integer[8]
259
accounttype18
Integer[4]
Issue 26 (2014-03-31)
236
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
260
BalanceBeforeCha
rge18
Integer[8]
261
BalanceAfterChar
ge18
Integer[8]
262
ChargeFee18
Integer[8]
263
accounttype19
Integer[4]
264
BalanceBeforeCha
rge19
Integer[8]
265
BalanceAfterChar
ge19
Integer[8]
266
ChargeFee19
Integer[8]
267
accounttype20
Integer[4]
268
BalanceBeforeCha
rge20
Integer[8]
269
BalanceAfterChar
ge20
Integer[8]
270
ChargeFee20
Integer[8]
Issue 26 (2014-03-31)
237
OCS
Call Detail Record Reference
Generation Scenario
An mgr CDR is generated in the following scenarios:
When a subscriber queries the balance of his/her account successfully.
Format
Table 3-10 describes each field of mgr CDR file.
Table 3-10 Format of mgr CDR
SN.
Field Name
Field Type
Description
SerialNo
Integer[8]
SubSequence
Integer[4]
TimeStamp
Char[16]
ServiceKey
Integer[4]
Reserved
ChargingPartyN
umber
Char[64]
Issue 26 (2014-03-31)
238
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
The number format are as follows:
MSISDN
The number format is the format of the
mobile phone number.
RequestAction
Integer[4]
0: Deduct fees
1: Refund fees
Not null
The default value is 0.
NOTE
The parameter RequestAction is invalid in the
Adjust Account flow.
OperatorID
Char[24]
OperationID
Integer[4]
OperationType
Integer[4]
0: Cancel
1: Enable
4: Add
5: Modify
6: Delete
7: Query
22: Transfer-in
23: Transfer-out
NOTE
When this value is used, the system does not specify
the operation type. This operation type is used in
Issue 26 (2014-03-31)
239
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
special cases such as one-off fee deduction.
OtherPartyNum
ber
Char[64]
11
TransitionFee
Integer[8]
12
TranferAmount
Integer[8]
13
SPID
Char[20]
14
ServiceID
Char[20]
15
ServiceType
Integer[4]
16
Reserved
Integer[4]
17
Reserved
Integer[4]
18
Reserved
Integer[4]
19
AccessNumber
Char[32]
20
Reserved
Integer[4]
21
IsARAdjustAcc
ount
Integer[4]
0: No
1: Yes
Issue 26 (2014-03-31)
240
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
Not null
22
BrandID
Integer[4]
23
SubCOSID
Integer[4]
24
PayType
Char[4]
0: Prepaid
1: Postpaid
Not null
25
BillCycleID
Char[20]
26
ServiceBeginTi
me
Char[16]
27
ServiceEndTim
e
Char[16]
28
ChargeAmount
Integer[8]
29
TotalOperation
Integer[4]
Issue 26 (2014-03-31)
241
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
values of QueryOperation, AddOperation,
DeleteOperation, and ModifyOperation.
The default value is 0.
30
QueryOperation
Integer[4]
31
AddOperation
Integer[4]
32
DeleteOperation
Integer[4]
33
ModifyOperatio
n
Integer[4]
34
ServiceUnit
Integer[4]
35
ChargingTime
Char[16]
36
TransitionID
Char[32]
37
OldUserState
Char[12]
Issue 26 (2014-03-31)
242
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
CCMMMMM.
The first and second digits C indicate the life
cycle state of a subscriber. The first digit C
indicates the state of a prepaid subscriber, and
the second digit C indicates the state of a
postpaid subscriber. The options are as follows:
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
0: no
1: yes
0: no
1: yes
Not null
38
SubscriberID
Char[32]
39
Issue 26 (2014-03-31)
ValidDayAdded
Integer[4]
243
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
validity.
The default value is 0.
40
CurrUserState
Char[10]
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
0: non-suspend
1: suspend
0: no
1: yes
0: no
1: yes
Issue 26 (2014-03-31)
0: no
1: yes
244
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
Not null
41
Reserved
Char[32]
42
Reserved
Char[32]
43
Reserved
Char[32]
44
Reserved
Char[32]
45
ResultCode
Integer[4]
46
ChargeOfItems
Accounts
Integer[8]
47
ChargeOfDurati
onAccounts
Integer[8]
48
ChargeOfFund
Accounts
Integer[8]
49
ChargeFromPre
paid
Integer[8]
50
PrepaidBalance
Integer[8]
51
ChargeFromPos
tpaid
Integer[8]
52
PostPaidBalanc
e
Integer[8]
Issue 26 (2014-03-31)
245
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
53
AccountID
Char[20]
54
CurrencyCode
Integer[4]
55
Reserved
Char[20]
56
AccountType1
Integer[4]
57
FeeType1
Integer[4]
58
ChargeAmount
1
Integer[8]
59
CurrentAcctAm
ount1
Integer[8]
60
AccountType2
Integer[4]
61
FeeType2
Integer[4]
62
ChargeAmount
2
Integer[8]
Issue 26 (2014-03-31)
246
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
63
CurrentAcctAm
ount2
Integer[8]
64
AccountType3
Integer[4]
65
FeeType3
Integer[4]
66
ChargeAmount
3
Integer[8]
67
CurrentAcctAm
ount3
Integer[8]
68
AccountType4
Integer[4]
69
FeeType4
Integer[4]
70
ChargeAmount
4
Integer[8]
71
CurrentAcctAm
ount4
Integer[8]
Issue 26 (2014-03-31)
247
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
72
AccountType5
Integer[4]
73
FeeType5
Integer[4]
74
ChargeAmount
5
Integer[8]
75
CurrentAcctAm
ount5
Integer[8]
76
AccountType6
Integer[4]
77
FeeType6
Integer[4]
78
ChargeAmount
6
Integer[8]
79
CurrentAcctAm
ount6
Integer[8]
80
AccountType7
Integer[4]
Issue 26 (2014-03-31)
248
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
81
FeeType7
Integer[4]
82
ChargeAmount
7
Integer[8]
83
CurrentAcctAm
ount7
Integer[8]
84
AccountType8
Integer[4]
85
FeeType8
Integer[4]
86
ChargeAmount
8
Integer[8]
87
CurrentAcctAm
ount8
Integer[8]
88
AccountType9
Integer[4]
89
FeeType9
Integer[4]
Issue 26 (2014-03-31)
249
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
90
ChargeAmount
9
Integer[8]
91
CurrentAcctAm
ount9
Integer[8]
92
AccountType10
Integer[4]
93
FeeType10
Integer[4]
94
ChargeAmount
10
Integer[8]
95
CurrentAcctAm
ount10
Integer[8]
96
97
PreviousActives
top
Char[14]
NewActivestop
Char[14]
98
99
100
101
Issue 26 (2014-03-31)
PreviousSuspen
dStop
Char[14]
NewSuspendSto
p
Char[14]
PreviousDisable
Stop
Char[14]
NewDisableSto
p
Char[14]
250
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
Format: YYYYMMDDhhmmss
102
StandardEventI
D
Integer[4]
103
EventRatingStar
tTime
Char[14]
104
EventChargedSt
artTime
Char[14]
105
CurChargerSub
scriberObject
Integer[4]
106
ChargedService
Number
Char[64]
107
Reserved
Char[20]
108
Reserved
Char[20]
109
Reserved
Char[20]
110
AddtionalInfo
Char[512]
111
112
StartTimeOfBill
Cycle
Char[14]
AccountKey1
Integer[8]
PreviousAcctEx
pireTime1
Char[14]
114
NewAcctExpire
Time1
Char[14]
Issue 26 (2014-03-31)
251
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
115
AccountKey2
Integer[8]
PreviousAcctEx
pireTime2
Char[14]
117
NewAcctExpire
Time2
Char[14]
118
AccountKey3
Integer[8]
PreviousAcctEx
pireTime3
Char[14]
120
NewAcctExpire
Time3
Char[14]
121
AccountKey4
Integer[8]
PreviousAcctEx
pireTime4
Char[14]
123
NewAcctExpire
Time4
Char[14]
Issue 26 (2014-03-31)
252
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
balance, you need to record this parameter.
124
AccountKey5
Integer[8]
PreviousAcctEx
pireTime5
Char[14]
126
NewAcctExpire
Time5
Char[14]
127
AccountKey6
Integer[8]
PreviousAcctEx
pireTime6
Char[14]
129
NewAcctExpire
Time6
Char[14]
130
AccountKey7
Integer[8]
PreviousAcctEx
pireTime7
Char[14]
132
NewAcctExpire
Time7
Char[14]
Issue 26 (2014-03-31)
253
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
When changing the validity period of the account
balance, you need to record this parameter.
133
AccountKey8
Integer[8]
PreviousAcctEx
pireTime8
Char[14]
135
NewAcctExpire
Time8
Char[14]
136
AccountKey9
Integer[8]
PreviousAcctEx
pireTime9
Char[14]
138
NewAcctExpire
Time9
Char[14]
139
AccountKey10
Integer[8]
PreviousAcctEx
pireTime10
Char[14]
141
Issue 26 (2014-03-31)
NewAcctExpire
Time10
Char[14]
254
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
NOTE
When changing the validity period of the account
balance, you need to record this parameter.
142
Reserved
Char[20]
143
Reserved
Char[20]
144
Reserved
Char[20]
145
Reserved
Integer[8]
146
Reserved
Integer[8]
147
Reserved
Integer[4]
148
Reserved
Integer[4]
149
DiameterSessio
nID
Char[128]
NewProductID
Integer[4]
151
ExpireTimeofN
ewProduct
Char[32]
152
subscriberkey
Integer[4]
153
accountkey
Integer[8]
154
Issue 26 (2014-03-31)
HistoryBillCycl
eFlag
Integer[4]
255
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
0: No
1: Yes
156
157
UsageServiceTy
pe
Integer[4]
OriginCdrFilena
me
Char[64]
CurCDRLineNo
Integer[4]
158
ISQueryAccFre
e
Char[1]
0: no
1: yes
Reserved
Integer[8]
160
Reserved
Integer[8]
161
Reserved
Integer[8]
162
Reserved
Integer[8]
163
ChargeOfItems
SecondAccount
s
Integer[8]
ChargeOfDurati
onSecondAccou
nts
Integer[8]
164
Not null
Indicates total call time charge using reword
resource from others, such as parent card,
VPN.
Not null
165
ChargeOfFundS
econdAccounts
Integer[8]
166
ChargeFromSec
ondAccount
Integer[8]
167
SecondAccount
Balance
Integer[8]
Reserved
168
SecondAccount
ID
Char[20]
Issue 26 (2014-03-31)
256
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
by an external system when the account is
created.
169
SecondAccount
CurrencyCode
Integer[4]
170
SecondAccount
Type1
Integer[4]
Current Amount.
Not null
The default value is 0.
171
SecondFeeType
1
Integer[4]
172
SecondChargeA
mount1
Integer[8]
173
SecondCurrent
AcctAmount1
Integer[8]
Reserved
174
SecondAccount
Type2
Integer[4]
175
SecondFeeType
2
Integer[4]
176
SecondChargeA
mount2
Integer[8]
177
SecondCurrent
AcctAmount2
Integer[8]
Reserved
178
SecondAccount
Type3
Integer[4]
179
Issue 26 (2014-03-31)
SecondFeeType
3
Integer[4]
257
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
The default value is 0.
180
SecondChargeA
mount3
Integer[8]
181
SecondCurrent
AcctAmount3
Integer[8]
Reserved
182
SecondAccount
Type4
Integer[4]
183
SecondFeeType
4
Integer[4]
184
SecondChargeA
mount4
Integer[8]
185
SecondCurrent
AcctAmount4
Integer[8]
Reserved
188
SecondAccount
Type5
Integer[4]
187
SecondFeeType
5
Integer[4]
188
SecondChargeA
mount5
Integer[8]
189
SecondCurrent
AcctAmount5
Integer[8]
Reserved
190
SecondBonusV
alidity1
Char[14]
191
SecondBonusV
alidity2
Char[14]
192
SecondBonusV
alidity3
Char[14]
Issue 26 (2014-03-31)
258
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
rewarded resources is recorded. The valid
period of consumption resources is not
recorded.
193
SecondBonusV
alidity4
Char[14]
194
SecondBonusV
alidity5
Char[14]
195
SecondSubscrib
erKey
Integer[4]
196
SecondAccount
Key
Integer[8]
197
SecondProductI
D
Integer[4]
Reserved
198
SecondChargeF
romPostpaid
Integer[8]
199
SecondChargeF
romPrepaid
Integer[8]
200
SecondChargin
gPartyNumber
Char[32]
201
SecondChargin
gPartyPayType
Char[1]
202
Issue 26 (2014-03-31)
SecondChargin
gPartyBillCycle
ID
Char[20]
259
OCS
Call Detail Record Reference
SN.
Field Name
Field Type
Description
which YYYYMM is the year and month of the
bill cycle and TT is the bill cycle type.
203
ChargePartyIndi
cator
Char[1]
AccessMethod
Integer[4]
0: Other
1: IVR
2: USSD
3: SMS
4: SMAP
5: WebService interface
7: MML
9: HTTP
Operation ID
Table 3-11 The list of operation ID
Operation ID
Description
4050001
4050003
Suspend service
4050009
4050022
4052101
4052112
4052114
Manage FN service
4052133
4052135
4052417
Issue 26 (2014-03-31)
260
OCS
Call Detail Record Reference
Operation ID
Description
4052956
Generation Scenario
In the following scenario will generate the clr CDR.
When the life cycles of subscribers change, the system clears the account balances or
reward recourses of the subscribers. In this case, clr CDRs are generated. For example,
when subscriber A enters the pool state, the system clears all resources of the subscriber's
accounts and records a clr CDR.
The CBP clears expired subaccounts during background scan, and the system generates a
clr CDR.
Format
Table 3-12 describes each field of clr CDR file.
Table 3-12 Format of clr CDR
SN.
Field Name
Field
Type
Description
SerialNo
Integer[8]
SubSequence
Integer[4]
TimeStamp
Char[14]
Issue 26 (2014-03-31)
261
OCS
Call Detail Record Reference
SN.
Field Name
Field
Type
Description
Not null
The default value is null.
ChargingPartyNu
mber
Char[64]
ChargeEvent
Char[16]
SubChargeEvent
Char[16]
Reserved
Char[20]
Reserved
Char[20]
Reserved
Char[20]
10
Reserved
Char[20]
11
BrandID
Integer[4]
12
SubCOSID
Integer[4]
13
PayType
Char[1]
Issue 26 (2014-03-31)
0: Prepaid
1: Postpaid
262
OCS
Call Detail Record Reference
SN.
Field Name
Field
Type
Description
2: Hybrid
Not null
14
BillCycleID
Char[20]
15
TransitionID
Char[32]
16
SubscriberID
Char[20]
17
CurrUserState
Char[10]
0: Idle
1: Active
2: Suspended
3: Disable
4: Pool
0: no
1: yes
Issue 26 (2014-03-31)
0: non-suspend
1: suspend
263
OCS
Call Detail Record Reference
SN.
Field Name
Field
Type
Description
0: no
1: yes
0: no
1: yes
0: no
1: yes
Not null
18
ResultCode
Integer[4]
19
Reserved
Char[20]
20
Reserved
Char[20]
21
Reserved
Char[20]
22
PrepaidBalance
Integer[8]
23
PostPaidBalance
Integer[8]
24
Reserved
Char[20]
25
Reserved
Char[20]
26
AccountType1
Integer[4]
27
CleanedAmount1
Integer[8]
28
AccountType2
Integer[4]
Issue 26 (2014-03-31)
264
OCS
Call Detail Record Reference
SN.
Field Name
Field
Type
Description
29
CleanedAmount2
Integer[8]
30
AccountType3
Integer[4]
31
CleanedAmount3
Integer[8]
32
AccountType4
Integer[4]
33
CleanedAmount4
Integer[8]
34
AccountType5
Integer[4]
35
CleanedAmount5
Integer[8]
36
AccountType6
Integer[4]
37
CleanedAmount6
Integer[8]
38
AccountType7
Integer[4]
39
CleanedAmount7
Integer[8]
Issue 26 (2014-03-31)
265
OCS
Call Detail Record Reference
SN.
Field Name
Field
Type
Description
40
AccountType8
Integer[4]
41
CleanedAmount8
Integer[8]
42
AccountType9
Integer[4]
43
CleanedAmount9
Integer[8]
44
AccountType10
Integer[4]
45
CleanedAmount10
Integer[8]
46
Reserved
Integer[4]
47
Reserved
Integer[4]
48
ExpireTimeOfAcc
ountType1
Char[14]
49
ExpireTimeOfAcc
ountType2
Char[14]
50
ExpireTimeOfAcc
ountType3
Char[14]
51
ExpireTimeOfAcc
ountType4
Char[14]
52
ExpireTimeOfAcc
ountType5
Char[14]
Issue 26 (2014-03-31)
266
OCS
Call Detail Record Reference
SN.
Field Name
Field
Type
Description
53
ExpireTimeOfAcc
ountType6
Char[14]
54
ExpireTimeOfAcc
ountType7
Char[14]
55
ExpireTimeOfAcc
ountType8
Char[14]
56
ExpireTimeOfAcc
ountType9
Char[14]
57
ExpireTimeOfAcc
ountType10
Char[14]
58
subscriberkey
Integer[4]
59
accountkey
Integer[8]
Generation Scenario
The system records this CDR when a subscriber to pay for or forcing to pay for the loan
during recharge or transfer.
Format
Table 3-13 describes each field of return CDR file.
Issue 26 (2014-03-31)
267
OCS
Call Detail Record Reference
Field Name
Field
Type
Description
SerialNo
Integer[8]
TimeStamp
Char[14]
BrandID
Integer[4]
SubCOSID
Integer[4]
MSISDN
Char[64]
TriggerMSISDN
Char[64]
ReturnMode
Integer[4]
ReturnAmount
Integer[8]
1: recharge
2: transfer
AccountLeft
Integer[8]
10
AftAccountLeft
Integer[8]
11
BorrowValuesBf
Integer[8]
12
BorrowValuesAf
Integer[8]
13
ETUGracePeriod
Char[14]
14
GracePeriod
Char[14]
15
ETUFraudState
Char[1]
Issue 26 (2014-03-31)
268
OCS
Call Detail Record Reference
SN.
Field Name
Field
Type
Description
16
AccountType1
Integer[4]
17
ChargeAmount1
Integer[8]
18
CurrentAcctAmou
nt1
Integer[8]
19
AccountType2
Integer[4]
20
ChargeAmount2
Integer[8]
21
CurrentAcctAmou
nt2
Integer[8]
22
AccountType3
Integer[4]
23
ChargeAmount3
Integer[8]
24
CurrentAcctAmou
nt3
Integer[8]
25
AccountType4
Integer[4]
26
ChargeAmount4
Integer[8]
Issue 26 (2014-03-31)
269
OCS
Call Detail Record Reference
SN.
Field Name
Field
Type
Description
Value range: -263-263-1
27
CurrentAcctAmou
nt4
Integer[8]
28
AccountType5
Integer[4]
29
ChargeAmount5
Integer[8]
30
CurrentAcctAmou
nt5
Integer[8]
31
ReturnLoanAmoun
t
Integer[8]
32
LoanGrade
Integer[4]
Generation Scenario
If there is bonus when a subscriber recharging or being charged the month rental, gft CDRs
are generated.
Issue 26 (2014-03-31)
270
OCS
Call Detail Record Reference
Format
Table 3-14 describes each field of gft CDR file.
Table 3-14 Format of gft CDR
No
.
Field name
Field type
Description
SerialNo
Integer[8]
TimeStamp
Char[14]
BrandID
Integer[4]
SubCOSID
Integer[4]
ChargingPartyN
umber
Char[64]
TradeTime
Char[19]
MSISDN
The number format is the format of the mobile
phone number.
ProductID
Char[256]
Issue 26 (2014-03-31)
ServiceType
Char[20]
271
OCS
Call Detail Record Reference
No
.
Field name
Field type
Description
0: bonus of recharging
5: bonus of accumulation
Can be null.
9
10
RebateSchemaI
D
Char[20]
AccountType1
Integer[4]
Current Amount
11
ChargeAmount1
Integer[8]
12
CurrentAcctAm
ount1
Integer[8]
13
AccountType2
Integer[4]
14
ChargeAmount2
Integer[8]
15
CurrentAcctAm
ount2
Integer[8]
16
AccountType3
Integer[4]
17
ChargeAmount3
Integer[8]
18
CurrentAcctAm
ount3
Integer[8]
19
AccountType4
Integer[4]
20
ChargeAmount4
Integer[8]
21
CurrentAcctAm
ount4
Integer[8]
Issue 26 (2014-03-31)
272
OCS
Call Detail Record Reference
No
.
Field name
Field type
Description
22
AccountType5
Integer[4]
23
ChargeAmount5
Integer[8]
24
CurrentAcctAm
ount5
Integer[8]
25
AccountType6
Integer[4]
26
ChargeAmount6
Integer[8]
27
CurrentAcctAm
ount6
Integer[8]
28
AccountType7
Integer[4]
29
ChargeAmount7
Integer[8]
30
CurrentAcctAm
ount7
Integer[8]
31
AccountType8
Integer[4]
32
ChargeAmount8
Integer[8]
33
CurrentAcctAm
ount8
Integer[8]
34
AccountType9
Integer[4]
35
ChargeAmount9
Integer[8]
36
CurrentAcctAm
ount9
Integer[8]
37
AccountType10
Integer[4]
38
ChargeAmount1
0
Integer[8]
39
CurrentAcctAm
ount10
Integer[8]
40
BonusValidity1
Char[14]
Issue 26 (2014-03-31)
273
OCS
Call Detail Record Reference
No
.
Field name
Field type
Description
Can be null.
41
BonusValidity2
Char[14]
42
BonusValidity3
Char[14]
43
BonusValidity4
Char[14]
44
BonusValidity5
Char[14]
45
BonusValidity6
Char[14]
46
BonusValidity7
Char[14]
47
BonusValidity8
Char[14]
48
BonusValidity9
Char[14]
49
BonusValidity1
0
Char[14]
50
GiftProductID1
Char[20]
51
GiftProductID2
Char[20]
52
Issue 26 (2014-03-31)
GiftProductID3
Char[20]
274
OCS
Call Detail Record Reference
No
.
Field name
Field type
Description
Can be null.
53
GiftProductID4
Char[20]
54
GiftProductID5
Char[20]
55
GiftProductID6
Char[20]
56
GiftProductID7
Char[20]
57
GiftProductID8
Char[20]
58
GiftProductID9
Char[20]
59
GiftProductID1
0
Char[20]
Here, ${TELLIN_DIR} refers to the installation directory of the SCP and can be configured
in the .cshrc file. You are not advised to change the installation directory because the change
affects the system running.
Issue 26 (2014-03-31)
275
OCS
Call Detail Record Reference
For description about the CDR storage directories, see 1.2 CDR Storage Directories.
Generation Scenario
In the OCS service,
When subscriber A makes a voice call successfully, the SCP generates a w_rec CDR for
the calling party after the call.
When subscriber B answers a voice call successfully, the SCP generates a w_recCDR for
the called party after the call.
Format
Table 3-15 describes each field of w_rec CDR file.
Table 3-15 Format of w_rec CDR
SN
Field Name
Field Type
Description
ServiceKey
Integer[4]
SubCosID
Integer[4]
CallingPartyNumb
er
Char[32]
Issue 26 (2014-03-31)
276
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
ABC_DE@huawei.com
CalledPartyNumbe
r
Char[32]
Real-Called-Numb
er
Char[32]
Connect-Called-N
umber
Char[32]
Charge-Flow-Type
Integer[4]
Calling-Partys-Cat
egory
Integer[4]
Calling-Vlr-Numb
er
Char[32]
10
CallingCellID
Char[32]
11
Called-Vlr-Numbe
r
Char[32]
12
CalledCellID
Char[32]
13
Issue 26 (2014-03-31)
Original-Called-Pa
Char[32]
277
OCS
Call Detail Record Reference
SN
Field Name
Field Type
rty-Id
14
15
Redirecting-PartyId
Redirection-Reaso
n
Char[32]
Integer[4]
Description
0: not forward
1: forward unconditionally
3: forward on no reply
16
MSC-Address
Char[32]
17
CallBeginTime
Char[14]
18
CallDuration
Integer[4]
19
TerminationReaso
n
Integer[4]
Issue 26 (2014-03-31)
0: success
1: insufficient balance
4: barred call
6: system error
278
OCS
Call Detail Record Reference
SN
20
Field Name
CallReferenceNu
mber
Field Type
Char[128]
Description
99: other
NOTE
If the length of the automaton number is less than
four digits, prefix 0 for the automaton number. If
the length of the automaton number is more than
four digits, obtain the last four digits for the
automaton number.
21
DiameterSessionI
D
Char[128]
Issue 26 (2014-03-31)
279
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
SCP001.huawei.com;1876543210;523
22
NPPrefix
Char[10]
23
CalledHomeNetW
ork
Char[10]
24
FirstActiveFlag
Char[1]
0: No
1: Yes
Generation Scenario
When a subscriber uses the call service as a calling party, called party, or call forwarding party,
if an error occurs during the interaction between the SCP and the CBP, and the system allows
the subscriber to go on using the call service, the SCP generates an Abr CDR.
Format
Table 3-16 describes each field of w_abr CDR file.
Table 3-16 Format of w_abr CDR
SN
Field Name
Field Type
Description
ServiceKey
Integer[4]
Issue 26 (2014-03-31)
280
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
SubCosID
Integer[4]
Calling-Party-Add
ress
Char[20]
Called-Party-Addr
ess
Char[20]
Calling-Party-NP
Char[16]
Called-Party-NP
Char[16]
SSP-Time
Char[14]
Format: YYYYMMDDhhmmss
8
MF-Indicator
Integer[4]
0: not forward
1: forward
Real-Called-Numb
er
Char[20]
10
Connect-Called-N
umber
Char[20]
Charge-Flow-Type
Integer[4]
11
12
Calling-Partys-Cat
egory
Integer[4]
13
Issue 26 (2014-03-31)
Calling-Vlr-Numb
er
Char[10]
281
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
If the number exists in the IDP message,
enter that; otherwise, the value is null.
The field can be null in the called process
and forwarding process.
14
Calling-CellID
Char[36]
15
Called-Vlr-Numbe
r
Char[10]
16
Called-CellID
Char[36]
17
Original-Called-Pa
rty-Id
Char[20]
18
Additional-Calling
-Party-Number
Char[20]
19
Bearer-Capability
Char[10]
20
EventType-BCSM
Integer[4]
21
Redirecting-PartyId
Char[20]
22
Redirection-Infor
mation
Char[36]
23
Redirection-Reaso
n
Integer[4]
0: not forward
1: forward conditionally
3: forward unconditionally
6: forward on no reply
24
UE-IMSI
Char[20]
25
CallReferenceNu
Char[128]
Issue 26 (2014-03-31)
282
OCS
Call Detail Record Reference
SN
Field Name
Field Type
mber
Description
used to uniquely identify a call.
The options are as follows:
NOTE
If the length of the automaton number is less than
four digits, prefix 0 for the automaton number. If
the length of the automaton number is more than
four digits, obtain the last four digits for the
automaton number.
26
MSC-Address
Char[20]
27
Time-Zone
Integer[4]
28
CallBeginTime
Char[14]
29
CallDuration
Integer[4]
30
SuccessACDuratio
n
Integer[4]
31
FailACDuration
Integer[4]
32
VPMNCallFlag
Integer[4]
33
CBEResultCode
Integer[4]
34
DDS-Discount
Integer[4]
35
DiameterSessionI
D
Char[128]
Issue 26 (2014-03-31)
283
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The format is as follows:
<DiameterIdentity>;<high 32 bits>;<low 32
bits>[;<optional value>]
NPPrefix
Char[10]
37
CalledHomeNetW
ork
Char[10]
38
OpposeTenantID
Integer
Reserved.
Generation Scenario
In the OCS service, when subscriber A recharge accounts using ordinary recharge cards, the
SCP generates a w_vou CDR after the successful recharging.
Format
Table 3-17 describes each field of w_vou CDR file.
Issue 26 (2014-03-31)
284
OCS
Call Detail Record Reference
Field Name
Field
Type
Description
MSISDN
Char[16]
SubCosID
Integer[4]
CallingPartyNumb
er
Char[32]
CalledPartyNumbe
r
Char[32]
Calling-Partys-Cat
egory
Integer[4]
Calling-Vlr-Numb
er
Char[32]
CallingCellID
Char[32]
UE-IMSI
Char[32]
MSC-Address
Char[32]
10
GMSC-Address
Char[32]
11
Time-Zone
Integer[4]
12
Charge-Number
Char[32]
13
Issue 26 (2014-03-31)
CardCosID
Integer[4]
285
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
14
Recharge Type
Integer[4]
15
BatchNumber
Char[11]
16
SerialNumber
Char[16]
17
Card Number
Char[20]
18
FaceValue
Integer[4]
19
ValidityPeriod
Integer[4]
20
TradeTime
Char[14]
21
22
Issue 26 (2014-03-31)
OperatedBy
RechargeResult
Char[32]
Integer[4]
286
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
The options are as follows:
23
UniformSerialNo
Char[32]
24
Issue 26 (2014-03-31)
DiameterSessionI
D
Char[128]
287
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
The field includes parts as follows:
<DiameterIdentity>;<high 32 bits>;<low 32
bits>[;<optional value>].
Generation Scenario
In the OCS service, when subscriber A recharge accounts using ordinary recharge cards, the
SCP generates a w_abu CDR after the failing recharging.
Format
Table 3-18 describes each field of w_abu CDR file.
Table 3-18 Format of w_abu CDR
SN
Field Name
Field Type
Description
MSISDN
Char[16]
Issue 26 (2014-03-31)
SubCosID
Integer[4]
288
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
CallingPartyNumb
er
Char[32]
CalledPartyNumbe
r
Char[32]
Calling-Partys-Cat
egory
Integer[4]
Calling-Vlr-Numb
er
Char[32]
CallingCellID
Char[32]
UE-IMSI
Char[32]
MSC-Address
Char[32]
10
GMSC-Address
Char[32]
11
Time-Zone
Integer[4]
12
Charge-Number
Char[32]
13
CardCosID
Integer[4]
14
Recharge Type
Integer[4]
Issue 26 (2014-03-31)
0: first activation
289
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
15
BatchNumber
Char[11]
16
SerialNumber
Char[16]
17
Card Number
Char[20]
18
FaceValue
Integer[4]
19
ValidityPeriod
Integer[4]
20
TradeTime
Char[14]
21
22
OperatedBy
RechargeResult
Char[32]
Integer[4]
Issue 26 (2014-03-31)
290
OCS
Call Detail Record Reference
SN
23
Field Name
UniformSerialNo
Field Type
Char[32]
Description
Issue 26 (2014-03-31)
291
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
24
DiameterSessionI
D
Char[128]
<DiameterIdentity>: same as
Origin-Host;
Generation Scenario
In the OCS service, when a subscriber sends or receives a short message, the SCP generates a
w_smr CDR.
Format
Table 3-19 describes each field of w_smr CDR file.
Table 3-19 Format of w_smr CDR
SN
Field Name
Field Type
Description
ServiceKey
Integer[4]
SubCosID
Integer[4]
SM Center flag
Char[21]
Issue 26 (2014-03-31)
292
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
SM-Id
Char[64]
SM-Length
Integer[4]
MO/MTflag
Char
CallingPartyNumb
er
Char[32]
1: MO process
2: MT process
CalledPartyNumbe
r
Char[32]
status_report_requ
est
Integer[4]
10
SMS-Receive-Tim
e
Char[14]
11
send_result
Integer[4]
12
SP sms Flag
Integer[4]
Issue 26 (2014-03-31)
0: non SP
1: SP
293
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
13
mo_msc_addr
Char[32]
14
mt_msc_addr
Char[32]
15
ThirdPartyNumber
Char[32]
16
TerminationReaso
n
Integer[4]
17
SubDataFlag
Integer[4]
0: normal
Issue 26 (2014-03-31)
294
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
0: GSM
1: PPS
18
ORG_IMSI
Char[20]
19
DEST_IMSI
Char[20]
20
DiameterSessionI
D
Char[128]
NPPrefix
Char[10]
22
CalledHomeNetW
ork
Char[10]
Generation Scenario
In the OCS service, when a subscriber succeeds in sending SMs, but the CBP fails to deduct
fees due to system error, the SCP generates a w_smo CDR. The CBE rates and deducts fees
based on the CDR after the CBE recovers.
Issue 26 (2014-03-31)
295
OCS
Call Detail Record Reference
The fields contained in the w_smo CDR are the same as the fields contained in the DCC
interface between the SCP and CBP. For the fields of which the corresponding information
cannot be obtained, the values are null.
Format
Table 3-20 describes each field of w_smo CDR file.
Table 3-20 Format of w_smo CDR
SN
Field Name
Field Type
Description
SmsType
Char[1]
MessageType
Char[1]
2: a confirmation message
SMSCAddress
Char[21]
SMID
UTF8String
SMLength
Integer[4]
MoMSCAddr
UTF8String
MtMSCAddr
UTF8String
SourceAddr
Char[32]
DestAddr
Char[32]
Issue 26 (2014-03-31)
296
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
Country code + MSISDN
The number format is the format of the
mobile phone number.
10
FeeAddr
Char[32]
11
FeeFlag
Integer[4]
12
FeeType
Integer[4]
13
FeeItdMsgNum
Integer[4]
14
FeeSingle
Integer[4]
15
FeeFixed
Integer[4]
Issue 26 (2014-03-31)
297
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
If the number of SMs exceeds the limited
number, the charge rates of the excess SMs
are counted based on the value of the
FeeSingle field. The field FeeFixed is used
when SMs are charged by months.
16
MessagePID
Integer[4]
17
StatusReportRequ
est
Integer[4]
18
OriginalNetType
Integer[4]
19
SMSReceiveTime
Time
0: GSM
1: CDMA
2: TDMA
3: SMPP
20
CallingService
OctetString
21
CalledService
OctetString
CallingServcie[0]: SM signature
CallingServcie[2]: notification of
power-on
Issue 26 (2014-03-31)
298
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The options are as follows:
CallingServcie[0]: SM transfer
22
OriginalMsgID
OctetString
23
SMDSendResult
Integer[4]
24
MsgID
OctetString
25
GWID
OctetString
26
MsgSeq
OctetString
27
SPID
OctetString
28
ServiceCode
OctetString
29
SourceGWID
OctetString
30
PriorityFlag
Integer[4]
31
ChargingRate
Integer[4]
Issue 26 (2014-03-31)
299
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
intra-network SMs, the value is null.
32
ChargingType
Integer[4]
3: To charge by months.
CDRType
Integer[4]
1: an MO CDR
2: an MT CDR
3: monthly SM control
Discount
Integer[4]
35
GiftResult
Integer[4]
36
Subscription-Id-D
ata
Char[32]
37
DiameterSessionI
D
Char[128]
Issue 26 (2014-03-31)
300
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
in the Origin-Host AVP.
NPPrefix
Char[10]
39
CalledHomeNetW
ork
Char[10]
40
OpposeTenantID
Integer
Reserved
Generation Scenario
In the OCS service, when a subscriber transfer balance, the SCP generates a w_trans CDR.
Whether transferring balance succeeds or not, the system generates a w_trans CDR for an
operation.
Format
Table 3-21 describes each field of w_trans CDR file.
Issue 26 (2014-03-31)
301
OCS
Call Detail Record Reference
Field Name
Field Type
Description
StreamNo
Char[32]
MSISDN
Char[32]
IsConfirm
Integer[4]
OperationType
Integer[4]
0: default, do operation
OperationTime
Char[14]
TransferType
Integer[4]
TransInMSISDN
Char[32]
Issue 26 (2014-03-31)
302
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
mobile phone number.
Money
Integer[4]
TransOutMSISDN
Char[32]
NOTE
When the value of TransferType is 99, the value
of this field is Reseller ID.
10
AccessMethod
Integer[4]
11
VisitAreaNumber
Char[10]
0: IVR
1: USSD
2: SMS
3: reserved
12
Content
Char[32]
13
Result Code
Integer[4]
Issue 26 (2014-03-31)
0: Operation succeeds.
303
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
status.
Issue 26 (2014-03-31)
304
OCS
Call Detail Record Reference
SN
Issue 26 (2014-03-31)
Field Name
Field Type
Description
305
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
subscriber times out (the response
message CCA{Initial} of the transfer-in
subscriber times out). The rollback of
the transfer-out subscriber times out.
Issue 26 (2014-03-31)
306
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
The default value is -1.
14
15
16
17
18
19
Issue 26 (2014-03-31)
OriPreSum
OriCurSum
OriPreValidate
OriCurValidate
TerPreSum
TerCurSum
Integer[4]
Integer[4]
Char[8]
Char[8]
Integer[8]
Integer[8]
307
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
20
TerPreValidate
Char[8]
21
TerCurValidate
Char[8]
Unit: day
Generation Scenario
In the CBS service, when multiple operations or service processes are triggered, such as the
calling and called processes, or query operations, the SCP generates a w_kpi CDR.
Format
Table 3-22 describes each field of w_kpi CDR file.
Table 3-22 Format of w_kpi CDR
SN
Field Name
Field
Type
Description
OperateType
Integer[4]
Issue 26 (2014-03-31)
308
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
The options are as follows:
Issue 26 (2014-03-31)
1: MO call
2: MT call
3: SM MO call (authentication)
7: IVR recharge
8: IVR query
15: SM query
16: SM recharge
17: SM transfer
51: AOC
309
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
USSD
Issue 26 (2014-03-31)
310
OCS
Call Detail Record Reference
SN
Field Name
OperateResult
Field
Type
Integer[4]
Description
Issue 26 (2014-03-31)
0: Success
1: Insufficient balance
4: Barred call
6: System error
311
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
deduction which results in service logic
interruption.
Issue 26 (2014-03-31)
99: Others
312
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
exist.
NOTE
The options 46, 47
and 48 of the
OperateResult field takes effect only when
OperateType is set to 190.
OperateTime
Char[6]
CallingParty
Char[32]
CalledParty
Char[32]
Issue 26 (2014-03-31)
313
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
another subscriber, the value of this parameter
is the number of the recharged subscriber.
Generation Scenario
In the OCS service, when a postpaid subscriber recharges accounts, the SCP generates a
w_postop CDR after the successful recharging.
Format
Table 3-23 describes each field of w_postop CDR file.
Table 3-23 Format of w_postop CDR
SN
Field Name
Field
Type
Description
MSISDN
Char[20]
AccountNumber
Char[20]
Facevalue
Integer[4]
ValidityPeriod
Integer[4]
Issue 26 (2014-03-31)
314
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
BatchNo
Char[12]
SerialNo
Char[16]
CardSpID
Integer[4]
CardCosID
Integer[4]
CardState
Char[1]
10
Errorflag
Char[1]
0: No card information
1: Card is valid
3: Card is locked
0: Success to recharge
1: Fail to recharge
11
TradeTime
DateAndTi
me
12
ValueAdded
Integer[4]
13
RRMPoint
Integer[4]
14
PRMSM
Integer[4]
15
PRMMinute
Integer[4]
16
ExtraVideoMinute
Integer[4]
17
ExtraFreeMMS
Integer[4]
18
ExtraFreeVolume
Integer[4]
19
ExtraFreeMinute2
Integer[4]
20
ExtraFreeMinute3
Integer[4]
21
ExtraFreeSM2
Integer[4]
22
ExtraFreeSM3
Integer[4]
Issue 26 (2014-03-31)
315
OCS
Call Detail Record Reference
SN
Field Name
Field
Type
Description
23
ExtraSMMoney
Integer[4]
24
ExtraMMSMoney
Integer[4]
25
ExtraGPRSMoney
Integer[4]
26
RealAddBalance
Integer[4]
27
ValidityAdded
Integer[4]
28
Recharge Type
Char[1]
1: recharge by IVR
2: recharge by USSD
4: recharge by SMS
Generation Scenario
In the OCS service, a w_aoc CDR is generated when the subscriber finished a charge call, the
system prompts the call cost, call time and remain balance to subscriber through USSD.
Format
Table 3-24 describes each field of w_aoc CDR file.
Table 3-24 The format of w_aoc CDR
SN
Field Name
Field Type
Description
DateTime
Char[14]
Issue 26 (2014-03-31)
316
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
function.
MSISDN
Char[20]
OperateResult
Char[8]
OperateType
Char[1]
0: Success
1: Other failed
200: USSNNoAnswer
201: USSNSystemFailure
202: USSNDataMissing
203:
USSNUnexpertedDataValue
204: USSNAbsentSubscriber
205: USSNIllegalSubscriber
206: USSNIllegalEquipment
207: USSNUnknownAlphabet
208: USSNUSSDBusy
209: USSNFacilityNotSurported
0: USSD
Generation Scenario
A loan CDR is generated in the following scenarios:
A loan CDR is generated when a subscriber makes a USSD call to successfully apply for
a loan.
A loan CDR is generated when a subscriber calls IVR management flow to successfully
apply for a loan.
A loan CDR is generated when a subscriber sends message to successfully apply for a
loan.
Issue 26 (2014-03-31)
317
OCS
Call Detail Record Reference
Format
Table 3-25 describes each field of w_loan CDR file.
Table 3-25 The format of w_loan CDR
SN
Field Name
Field Type
Description
StreamNo
Char[32]
MSISDN
Char[32]
IsConfirm
Integer[4]
OperationType
Integer[4]
0: Do operation
OperationTime
Char[14]
5: Modify data
7: Query data
LoanType
Integer[4]
AccessMethod
VisitAreaNumber
Integer[4]
Char[10]
0: IVR
1: USSD
2: SMS
3: Reserved
Issue 26 (2014-03-31)
318
OCS
Call Detail Record Reference
SN
Field Name
Field Type
Description
failed.
Content
Char[32]
10
Result Code
Integer[4]
0: Operation succeeded
11
LoanAmount
Integer[4]
12
Poundage
Integer[4]
For description about the CDR storage directories, see 1.2 CDR Storage Directories.
Issue 26 (2014-03-31)
319
OCS
Call Detail Record Reference
Generation Scenario
In the OCS service, when the subscriber changes the main product, the BMP generates a
package CDR.
Format
Table 3-26 describes each field of package CDR file.
Table 3-26 Format of package CDR
SN
Field Name
Field
Type
Description
MSISDN
Char[20]
ServiceClass
Integer[4]
OldServiceClass
Integer[4]
NewServiceClass
Integer[4]
OperType
Integer[4]
OperTime
Char[14]
1: GUI
2: WebService
3: Inter-process
Issue 26 (2014-03-31)
320
OCS
Call Detail Record Reference
Generation Scenario
The system automatically changes the main product of a subscriber when a specific bonus
account expires. At the same time, the BMP generates the pack_revert CDR.
Format
Table 3-27 describes each field of pack_revert CDR file.
Table 3-27 Format of pack_revert CDR
SN
Field Name
Field
Type
Description
MSISDN
Char[20]
OrgSubCosID
Integer[4]
Prmmoney
Integer[4]
Generation Scenario
In the OCS service, when the product subscription relation is changed, the BMP generates a
manproduct CDR.
Format
Table 3-28 describes each field of manproduct CDR file.
Issue 26 (2014-03-31)
321
OCS
Call Detail Record Reference
Field Name
Field
Type
Description
SubscriberNo
Char[32]
MSISDN
The number format is the format of the
mobile phone number.
OperateType
Integer[4]
3: subscribe product
ProductID
Char[20]
SubCosID
Integer[4]
AccessMode
Integer[4]
OperateTime
Reserved.
Reserved.
Reserved.
10
Reserved.
11
Reserved.
Issue 26 (2014-03-31)
Char[14]
1: GUI
2: WebService
3: IVR
4: SMS
5: USSD
6: WorkOrder
322
OCS
Call Detail Record Reference
Description
The system supports the function for exporting last failed work orders by product and
submitting the failed work orders to the CARES for caparison and rework. A scheduled task is
configured in the BMP to export records in the retrial completed and failed status periodically
(for example, daily or once several days) from the DONE table.
Files exported by the scheduled task are in the same format as CDRs, and are stored in the
${HOME}/export/output path.
Generation Scenario
Files are exported by the system periodically.
List Format
4 Work Orders Exported by a Scheduled Task describes each field of the task control list.
Table 4-1 Format of the task control
SN
Field Name
Description
Serial Number
Previous Execution
Time
Issue 26 (2014-03-31)
Format: YYYYMMDDHHMMSS
Format: YYYYMMDDHHMMSS
323
OCS
Call Detail Record Reference
SN
Field Name
Description
Status
Subscriber Number
Product ID
Issue 26 (2014-03-31)
324
OCS
Call Detail Record Reference
5 CDR Instances
CDR Instances
CDR Details
Issue 26 (2014-03-31)
325
OCS
Call Detail Record Reference
5 CDR Instances
0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|
0|0|0|0|0|0|0|0|0|0
Value
Field Name
Description
10
SerialNo
SubSequence
20080605
140606
TimeStamp
ServiceKey
92876543
2
CallingPartyN
umber
92765432
1
CalledPartyNu
mber
CallingPartyI
MSI
CalledPartyIM
SI
DialedNumber
10
92765432
1
OriginalCalled
Party
11
ServiceFlow
12
00
CallForwardIn
dicator
13
92993909
CallingRoamIn
fo
14
1050
CallingCellID
15
92967502
0
CalledRoamInf
o
16
1010
CalledCellID
17
20080605
140623
TimeStampOf
SSP
18
TimeZoneOfS
SP
19
BearerCapabili
ty
Issue 26 (2014-03-31)
326
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
20
Reserved
21
20080605
140829
ChargingTime
22
WaitDuration
23
420
CallDuration
24
TerminationRe
ason
25
3146
CallReference
Number
26
IMEI
27
420
ChargeDuratio
n
28
00928765
432
AccessPrefix
29
RoutingPrefix
30
RedirectingPar
tyID
31
108
BrandID
32
10062
SubCOSID
33
7654321
ChargingParty
Number
34
ChargePartyIn
dicator
35
PayType
36
20080502
BillCycleID
37
ChargingType
38
CallType
39
RoamState
40
ResultCode
Issue 26 (2014-03-31)
327
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
41
FPHPrefix
42
92
CallingHomeC
ountryCode
43
11
CallingHomeA
reaNumber
44
CallingHomeN
etworkCode
45
92
CallingRoamC
ountryCode
46
11
CallingRoamA
reaNumber
47
CallingRoamN
etworkCode
48
92
CalledHomeC
ountryCode
49
10
CalledHomeAr
eaNumber
50
CalledHomeN
etworkCode
51
92
CalledRoamCo
untryCode
52
11
CalledRoamAr
eaNumber
53
CalledRoamNe
tworkCode
54
10062
ProductID
55
10000000
00000000
0000
ServiceType
56
HotLineIndicat
or
57
HomeZoneID
58
NPFlag
59
NPPrefix
Issue 26 (2014-03-31)
328
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
60
CallingGroup
No
61
CalledGroupN
o
62
1000000
UserState
63
66
SubscriberID
64
OpposeNetwor
kType
65
Reserved
66
ChargeOfItems
Accounts
67
ChargeOfDura
tionAccounts
68
70
ChargeOfFund
Accounts
69
70
ChargeFromPr
epaid
70
9930
PrepaidBalanc
e
71
ChargeFromPo
stpaid
72
PostPaidBalan
ce
73
71010100
0
AccountID
74
21474836
47
AccountKey
75
CurrencyCode
76
Reserved
77
2000
AccountType1
78
68
FeeType1
79
70
ChargeAmount
1
80
9930
CurrentAcctA
Issue 26 (2014-03-31)
329
OCS
Call Detail Record Reference
SN
5 CDR Instances
Value
Field Name
Description
mount1
account is 9930.
81
AccountType2
82
FeeType2
83
ChargeAmount
2
84
CurrentAcctA
mount2
85
AccountType3
86
FeeType3
87
ChargeAmount
3
88
CurrentAcctA
mount3
89
AccountType4
90
FeeType4
91
ChargeAmount
4
92
CurrentAcctA
mount4
93
AccountType5
94
FeeType5
95
ChargeAmount
5
96
CurrentAcctA
mount5
97
AccountType6
98
FeeType6
99
ChargeAmount
6
100
CurrentAcctA
mount6
101
AccountType7
102
FeeType7
103
ChargeAmount
7
104
CurrentAcctA
Issue 26 (2014-03-31)
330
OCS
Call Detail Record Reference
SN
5 CDR Instances
Value
Field Name
Description
mount7
account is 0.
105
AccountType8
106
FeeType8
107
ChargeAmount
8
108
CurrentAcctA
mount8
109
AccountType9
110
FeeType9
111
ChargeAmount
9
112
CurrentAcctA
mount9
113
AccountType1
0
114
FeeType10
115
ChargeAmount
10
116
CurrentAcctA
mount10
117
BonusValidity
1
118
BonusValidity
2
119
BonusValidity
3
120
BonusValidity
4
121
BonusValidity
5
122
BonusValidity
6
123
BonusValidity
7
124
BonusValidity
8
125
BonusValidity
9
Issue 26 (2014-03-31)
331
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
126
BonusValidity
10
127
CallingVPNTo
pGroupNumbe
r
128
CallingVPNGr
oupNumber
129
CallingVPNSh
ortNumber
130
CalledVPNTo
pGroupNumbe
r
131
CalledVPNGro
upNumber
132
CalledVPNSho
rtNumber
133
CallingNetwor
kType
134
CalledNetwork
Type
135
GroupCallTyp
e
136
GroupPayFlag
137-1
41
Reversed
142
AddtionalInfo
143
StartTimeOfBi
llCycle
144
SecondChargin
gPartyNumber
145
SecondChargin
gPartyPayType
146
SecondChargin
gPartyBillCycl
eID
147
ChargeOfItems
SecondAccoun
ts
Issue 26 (2014-03-31)
332
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
148
ChargeOfDura
tionSecondAcc
ounts
149
ChargeOfFund
SecondAccoun
ts
150
12453
ChargeFromSe
condPrepaidAc
count
151
SecondPrepaid
AccountBalanc
e
Reserved
152
12456
ChargeFromSe
condPostpaidA
ccount
153
SecondPostpai
dAccountBala
nce
154
SecondAccoun
tID
155
21474836
23
SecondAccoun
tKey
156
SecondAccoun
tCurrencyCode
157
Reserved
158
SecondAccoun
tType1
159
SecondFeeTyp
e1
160
SecondCharge
Amount1
161
SecondCurrent
AcctAmount1
162
SecondAccoun
tType2
163
SecondFeeTyp
e2
164
SecondCharge
Amount2
Issue 26 (2014-03-31)
333
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
165
SecondCurrent
AcctAmount2
166
SecondAccoun
tType3
167
SecondFeeTyp
e3
168
SecondCharge
Amount3
169
SecondCurrent
AcctAmount3
170
SecondAccoun
tType4
171
SecondFeeTyp
e4
172
SecondCharge
Amount4
173
SecondCurrent
AcctAmount4
174
SecondAccoun
tType5
175
SecondFeeTyp
e5
176
SecondCharge
Amount5
177
SecondCurrent
AcctAmount5
178
SecondBonus
Validity1
179
SecondBonus
Validity2
180
SecondBonus
Validity3
181
SecondBonus
Validity4
182
SecondBonus
Validity5
183
CallingCluster
Number
184
CalledCluster
Issue 26 (2014-03-31)
334
OCS
Call Detail Record Reference
SN
5 CDR Instances
Value
Field Name
Description
Number
OriginalCallin
gParty
21234567
8
OppositeParty
Number
189
SuperBuddyCa
llType
190
SponsorID
191
1000
Sponsor
Discount
192
DiameterSessi
onID
193
StartcountryGr
oup
194
EndcountryGr
oup
195-2
03
Reserved
204
100
DiscountOfLas
tEffProduct
205
subscriberkey
206
accumulationc
hange
207
1100
UsageServiceT
ype
208
SourceSerialN
o
209
SourceSubSeq
uence
210
AcctBalChgLi
st
211
SubscriberTyp
e
212
OriginCdrFilen
ame
185
186-1
87
Reserved
188
Issue 26 (2014-03-31)
335
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
213
CurCDRLineN
o
214
DDSDiscount
Off
215-2
18
Reserved
219
SecondSubscri
berKey
220
SecondProduct
ID
Reserved
221-2
23
Reserved
224
familyid
225
accounttype1
226
BalanceBefore
Charge1
227
BalanceAfterC
harge1
228
ChargeFee1
229
accounttype2
230
BalanceBefore
Charge2
231
BalanceAfterC
harge2
232
ChargeFee2
233
accounttype3
234
BalanceBefore
Charge3
235
BalanceAfterC
harge3
236
ChargeFee3
237
accounttype4
Issue 26 (2014-03-31)
336
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
238
BalanceBefore
Charge4
239
BalanceAfterC
harge4
240
ChargeFee4
241
accounttype5
242
BalanceBefore
Charge5
243
BalanceAfterC
harge5
244
ChargeFee5
245
accounttype6
246
BalanceBefore
Charge6
247
BalanceAfterC
harge6
248
ChargeFee6
249
accounttype7
250
BalanceBefore
Charge7
251
BalanceAfterC
harge7
252
ChargeFee7
253
accounttype8
254
BalanceBefore
Charge8
255
BalanceAfterC
harge8
256
ChargeFee8
257
accounttype9
Issue 26 (2014-03-31)
337
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
258
BalanceBefore
Charge9
259
BalanceAfterC
harge9
260
ChargeFee9
261
accounttype10
262
BalanceBefore
Charge10
263
BalanceAfterC
harge10
264
ChargeFee10
265
accounttype11
266
BalanceBefore
Charge11
267
BalanceAfterC
harge11
268
ChargeFee11
269
accounttype12
270
BalanceBefore
Charge12
271
BalanceAfterC
harge12
272
ChargeFee12
273
accounttype13
274
BalanceBefore
Charge13
275
BalanceAfterC
harge13
276
ChargeFee13
277
accounttype14
Issue 26 (2014-03-31)
338
OCS
Call Detail Record Reference
SN
5 CDR Instances
Value
Field Name
Description
account.
278
BalanceBefore
Charge14
279
BalanceAfterC
harge14
280
ChargeFee14
281
accounttype15
282
BalanceBefore
Charge15
283
BalanceAfterC
harge15
284
ChargeFee15
285
accounttype16
286
BalanceBefore
Charge16
287
BalanceAfterC
harge16
288
ChargeFee16
289
accounttype17
290
BalanceBefore
Charge17
291
BalanceAfterC
harge17
292
ChargeFee17
293
accounttype18
294
BalanceBefore
Charge18
295
BalanceAfterC
harge18
296
ChargeFee18
Issue 26 (2014-03-31)
339
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
297
accounttype19
298
BalanceBefore
Charge19
299
BalanceAfterC
harge19
300
ChargeFee19
301
accounttype20
302
BalanceBefore
Charge20
303
BalanceAfterC
harge20
304
ChargeFee20
CDR Details
Value
Field Name
Description
91
ServiceKey
Issue 26 (2014-03-31)
340
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
SubCosID
00927112
34567
Calling-PartyAddress
00927654
321
Called-Party-A
ddress
Calling-PartyNP
Called-Party-N
P
150025
SSP-Time
MF-Indicator
00927654
321
Real-Called-N
umber
10
00927654
321
Connect-Calle
d-Number
11
Charge-FlowType
12
Calling-PartysCategory
10
13
Issue 26 (2014-03-31)
00675756
Calling-Vlr-N
umber
341
OCS
Call Detail Record Reference
SN
5 CDR Instances
Value
Field Name
Description
If the number exists in the IDP message, enter that;
otherwise, the value is null.
14
Calling-CellID
15
00921876
5019
Called-Vlr-Nu
mber
16
Called-CellID
17
Original-Calle
d-Party-Id
18
Additional-Cal
ling-Party-Nu
mber
19
Bearer-Capabil
ity
20
17
EventType-BC
SM
21
Redirecting-Pa
rty-Id
22
Redirection-In
formation
23
Redirection-Re
ason
24
46050756
01360
UE-IMSI
25
16776758
464
CallReference
Number
26
00921390
0777
MSC-Address
27
32
Time-Zone
28
20070821
150031
CallBeginTim
e
CallDuration
29
Issue 26 (2014-03-31)
SuccesssACD
uration
342
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
31
FailACDuratio
n
32
-1
VPMNCallFla
g
33
CBEResultCo
de
34
100
DDSDiscount
35
DiameterSessi
onID
36
01
NPPrefix
37
02
CalledHomeN
etWork
38
00
OpposeTenant
ID
Reserved.
CDR Details
Value
Field Name
Description
8765432
MSISDN
64
ServiceClass
Issue 26 (2014-03-31)
343
OCS
Call Detail Record Reference
5 CDR Instances
SN
Value
Field Name
Description
18
OldServiceClass
64
NewServiceClass
10
OperType
Issue 26 (2014-03-31)
20101122101225
OperTime
344