CDR Data file naming and structure

Last Updated : Dec 07, 2022 |
Prolog information
Session Manager generates and stores CDR data files in the /CDR_User directory on the server using the CDR feature. Whenever the CDR adjunct logs into the server, the CDR adjunct gets direct access to this directory.
Note:
The full path of the directory is /data/home/CDR_User/. The CDR adjunct login is limited to accessing the files contained in this directory.
The CDR files stored in the special directory are those that the server has completed and closed. These files are ready for the CDR adjunct to collect, process, and subsequently delete from the server. CDR_User group members are assigned the rights to read and subsequently delete the CDR data files.
The file naming convention for the following CDR data file formats are:
  1. Standard Flat File (default) format — tssssss-ssss-YYMMDD-hh_mm
  2. Enhanced Flat File format — tssssss-ssss-YYMMDD-hh_mm
  3. Enhanced XML File format — tssssss-ssss-YYMMDD-hh_mm_n.xml
  4. IPv6 Standard Flat File — tssssss-ssss-YYMMDD-hh_mm
  5. IPv6 Enhanced Flat File — tssssss-ssss-YYMMDD-hh_mm
Where:
The file name is more than 25 characters for the XML format.
For other formats, the file name is fixed at 25 alphanumeric characters, including dashes (-) and underscores (_).
t is populated with the character S in the first Session Manager release.
ssssss-ssss is an alphanumeric string of six characters, followed by a dash (-) and an alphanumeric string of four characters, for a total of 11 characters. This hexadecimal string uniquely identifies the Session Manager server using its IPv4 IP address.
YY is a two-digit number representing the year when the file was created.
MM is a two-digit number representing the month when the file was created.
DD is a two-digit number representing the day of the month when the file was created.
hh is a two-digit number representing the hour of the day when the file was created (24 hour clock server time).
mm is a two-digit number representing the number of minutes after the hour when the file was created.
_n is a number that increments by 1 if more than one file with the same timestamp is created.
.xml portion indicates that the file contains XML.
Example
For a CDR file created on January 29, 2009, at 3:24 PM from a Session Manager at IP address 142.9.147.59, the data file is named as follows:
S008e09-933b-090129-15_24
For three XML files created with the same timestamp as mentioned above, the files are named as follows:
  • S008e09-933b-090129-15_24_1.xml
  • S008e09-933b-090129-15_24_2.xml
  • S008e09-933b-090129-15_24_3.xml
Note:
  • CDR data files naming convention used by Session Manager is compatible with the CDR data files naming convention used by Communication Manager. Communication Manager must support the CM Survivable CDR functionality to ensure file name compatibility.
  • CDR XML format conforms to W3 XML standard. According to the standard, whitespace between elements is optional. Hence, CDR file of XML standard displays all fields for a call in one line. Removing the extra whitespace characters from the XML CDR files reduces performance issues with disk occupancy.