Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script


Note

Applies only to VoipNow 3.0.0! Starting with VoipNow 3.5, older recordings are deleted automatically.

For users with VoipNow 3.0.0, the only way to delete older recordings from multiple extensions is to manually remove them from the VoipNow web interface.

The process must be repeated for each extension, which makes the whole thing very time-consuming.

Because of disk space limits set per user, call recording will not exceed those limits.

To set a disk space limit, you need to go to Unified Communications >> Roles and Permissions >> Maximum disk space for call recording.

Step-by-step guide

Info

This guide applies strictly to files stored on disk. In the case of files stored in S3, the script won't work.

Assuming you are using a CentOS 6.x., please follow the steps below:

  1. Download the script.

    Code Block
    wget -O delete_records.pl https://raw.githubusercontent.com/4psa/voipnowtoolbox/master/delete_records.pl


  2. Install the needed Perl libraries:

    Code Block
    yum install perl-DBD-mysql perl-File-Copy-Recursive perl-File-Remove perl-DateTime perl-Archive-Tar perl-DBD-mysql


  3. Edit the delete_records.pl script and adjust the following variables :

    Code Block
    $disabled = 0 
    $older = 1
    $archive_files = 1
    When $disabled = 0, the script will delete the records. When $disabled = 1, it will only do a backup.
    When $older = 1, the script will remove recordings older than this value (calculated in months) will be removed.
    When $archive_files = 1, the scrip will perform a backup (both MySQL and files) in the /backup directory.
     
  4. Run the script. 

    Code Block
    perl delete_records.pl


  5. As a result, recordings will get deleted from the database as well as from the disk.

    Warning

    If you are not sure of what you are doing, it's recommended that you set archieve_files to 1, so that you have a backup in case something goes wrong.


Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("call","recordings","disk","space") and space = currentSpace()


Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.