Update fusionpbx-maintenance.sh

This commit is contained in:
FusionPBX
2018-08-09 19:33:35 -06:00
committed by GitHub
parent 2d3fe58bc8
commit 2d5bbd0437

View File

@@ -55,6 +55,7 @@ else
#find /usr/local/freeswitch/storage/voicemail/* -name 'msg_*.mp3' -mtime +90 -exec rm {} \;
fi
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_voicemail_messages WHERE to_timestamp(created_epoch) < NOW() - INTERVAL '90 days'"
#delete call detail records older 90 days
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_xml_cdr WHERE start_stamp < NOW() - INTERVAL '90 days'"