0345 004 4040 support@telappliant.com

Welcome to the Customer Help Centre

For information relating to the use of products and services provided by Telappliant

    Sorry, we didn't find any relevant articles for you.

    Send us your queries using the form below and we will get back to you with a solution.


    Call Recording Retention Check

    To check how long call recordings are being retained for...


    1. SSH into the relevant server.

    2. Enter the following command:


    crontab -l


    This will display all jobs that run on a recurring basis. If a Telappliant customer has call recordings, you will likely be presented with these jobs:


    0 */2 * * * /usr/bin/python3 /home/scripts/ftpmovertools/recordingsftp.py > /dev/null 2>&1
    0 23 * * * sh /home/scripts/ftpmovertools/cleandisk.sh


    recordingsftp.py is the script which moves recordings from the default asterisk "monitor" folder and places them in a newly created "monitor2" folder. We do this so that PBXWare does not remove the recordings too early with it's own retention config.


    cleandisk.sh is the script that looks for recordings older than the specified time range. This is the script we are going to focus on.


    3. Vim into cleandisk.sh by entering the following command:


    vim /home/scripts/ftpmovertools/cleandisk.sh


    You will then be presented with something similar to the below:


    #! /bin/bash
    find /opt/pbxware/pw/var/spool/asterisk/monitor2/ -type f -mtime +30 -exec rm {} \;


    This command is looking for files in the "monitor2" folder that are older than 30 days. If files do exist in the "monitor2" folder that are older than 30 days, they will be removed.

    Was this article helpful?

    Still can't find what you are looking for?

    Our award-winning customer care team is here for you.

    Contact Support

    Powered by