From 4ea24360b74c617ed47b981e33d3ca6139ebae3d Mon Sep 17 00:00:00 2001 From: fusionate Date: Tue, 18 Apr 2023 15:37:41 -0600 Subject: [PATCH] Update fusionpbx-maintenance Comment out command that purges the v_call_recordings table, as was turned into a view in FusionPBX 5.0.7+. So, call recording data should now be managed only in the v_xml_cdr table instead. --- debian/resources/backup/fusionpbx-maintenance | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/resources/backup/fusionpbx-maintenance b/debian/resources/backup/fusionpbx-maintenance index 75bed09..9a4e98c 100755 --- a/debian/resources/backup/fusionpbx-maintenance +++ b/debian/resources/backup/fusionpbx-maintenance @@ -77,7 +77,8 @@ if [ .$purge_call_recordings = .true ]; then find /usr/local/freeswitch/recordings/*/archive/* -name '*.wav' -mtime +$days_keep_call_recordings -exec rm {} \; find /usr/local/freeswitch/recordings/*/archive/* -name '*.mp3' -mtime +$days_keep_call_recordings -exec rm {} \; fi - psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_call_recordings WHERE call_recording_date < NOW() - INTERVAL '90 days'" + #table v_call_recordings became a view instead (called view_call_recordings) in FusionPBX 5.0.7+, so the following line is no longer necessary + #psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_call_recordings WHERE call_recording_date < NOW() - INTERVAL '90 days'" else echo "not purging Recordings." fi