CUCM connection options
CDR intake, retention and export
Receive call detail records of the CUCM over SFTP, keep them for a limited time and export old data.
In EasyUC: EasyUC Cisco → Administration → CUCM & Provisioning → CUCM Connections → Actions → CDR
Purpose
The CUCM writes a call detail record (CDR) for every call and transfers the files regularly to a billing server. For this, EasyUC provides a separate SFTP destination per CUCM connection. The call reports under Reporting are built from the received files.
On saving, EasyUC creates the FTP user cdr- plus connection ID with its own directory and sets the password you entered. The background job cdr:import reads the received files (default: every eight minutes), transfers the calls to the CDR database and then deletes the file.
Retention is limited. Every night, the job cdr:csv writes all calls that are older than the configured number of days to a CSV file and removes them from the database (default: 02:00). If the export is switched on, EasyUC transfers this file to your server over SFTP and then deletes it locally.
Prerequisites
- License with the
cucmmodule and theprovisioningfeature. Withoutprovisioning, the entry is missing from the Actions menu. - EasyUC account with the
ROLE_APP_ADMINrole. Only administrators see the Administration menu. - The CUCM connection has been created and enabled. For a disabled connection, Actions shows only Enable Connection.
- In the CUCM, EasyUC is entered as a billing server for CDR delivery, with the user
cdr-<connection ID>and the password assigned here. The dialog shows the user name and, as the destination,sftp://plus the address of the EasyUC appliance. - In the CUCM, writing of CDRs is switched on (service parameter CDR Enabled Flag).
- For the export: an SFTP server with user and password that EasyUC can reach.
- The background jobs
cdr:import,cdr:csvandcdr:old:dataare active under Administration → System & Operations → Background Jobs.
Step by step
Step by step: clearing the CDR database immediately
Fields and options
| Field / action | Meaning and use |
|---|---|
| Enable | Switches CDR reception on for this connection. Default: off. When the feature is switched off, import and cleanup skip the connection. |
| Number of Digits to make anonymous | Selection from 0 to 15. Default: 4. |
| FTP User (inbound) | Fixed: cdr- plus connection ID. Cannot be changed. |
| FTP Password / Ftp Retype Password (inbound) | Password of the inbound user. Both fields must match. They open empty. If they stay empty, an existing user keeps its password. Assign a password during the initial setup; otherwise the user receives a random password that you do not know. |
| How many days to keep the data | Retention period in days. 1 to 730, default 365. |
| Clear NOW CDR Database? | One-time switch. On saving, the cleanup starts immediately and covers all calls regardless of age. Afterwards the switch is off again. |
| Export Deleted Data to a sFTP Server? | On: The CSV files of the cleanup are transferred over SFTP and then deleted locally. Default: off. |
| Ftp Ip | Address of the SFTP server for the export. Required when the export is switched on. |
| FTP User / FTP Password / Ftp Retype Password (export) | Credentials for the export server. Required when the export is switched on. The passwords must match. |
Check the result and narrow down errors
- Success: In the Manage CUCM Connections list, the CDR column shows the status and the Logs link. The CDR Logs dialog shows received files that have not yet been read under Pending Files, with size and time, the files that have been read under Processed Files and the CSV files of the cleanup under Old CDR Data.
- Pending Files stays empty: The CUCM delivers nothing. In the CUCM, check the billing server, user name and password, and whether EasyUC can be reached.
- Files remain under Pending Files: Under Background Jobs, check whether
cdr:importis running and look in its log. - Message “This value should not be blank.” in the export area: When the export is switched on, address, user and password are required.
- Saving fails because of the password: Password and repetition do not match.
- The CSV files do not arrive on the export server: The SFTP login failed. The files then remain locally under Old CDR Data.
- Reports are empty: Possible causes are missing files, an import that has not yet run, the time filter of the report or the retention period.