Overview
Since Version 5.3, the functionality of the Data Retention facility has been improved. The Data Retention includes four separated parameters and works in two steps. At first, the CDRs can be archived, next they will be removed completely from filesystem.
Setup
You can find and configure in the "System Parameters" option in the “System Management” menu of your Flysip Softswitch. Each parameter can be changed from one day to two years.
Example based on the screenshot above:
By having Archive All CDRs = 6 months, Archive Zero CDRs = 3 months, Purge All CDRs = 2 years, Purge Zero CDRs = 1 year settings:
- All CDRs, younger than three months, will remain untouched in the database,
- All CDRs with zero duration older than three months but younger than six months, will be removed from database and will be archived,
- All CDRs with non-zero duration older than three months but younger than six months, will remain untouched in the database,
- All CDRs with non-zero duration older than six months but younger than 2 years, will be removed from database and will be archived, archives would be kept on the filesystem for 2 years starting from call's setup time.
- All CDRs with zero duration older than 1 year, will be removed from database, if archives exist - they would be permanently removed from server filesystem
- All CDRs with non-zero duration older than 2 years, will be removed from database, if archives exist - they would be permanently removed from server filesystem
Note:
- The extra care should be taken when selecting purge option. Purge removes the archive files permanently from server file system and restoration will not be possible.
- It should also be noted that archive and purge parameters are independent from each other. Selecting shorter amount of time for the Purge parameter, means ignoring the Archive parameter. In such a case, the CDRs will be removed directly from database. It might be useful when there is no space for keeping the archive files or no need to archive CDRs. This can be opted for the zero CDRs, for instance.
Terminology:
- Archive: putting the data from database into an archive file.
- Purge: permanently removing/deleting an archive file from file system.