Update fusionpbx-maintenance (#407)
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.
This commit is contained in:
parent
64f3eabf17
commit
80321dcf2d
|
|
@ -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 '*.wav' -mtime +$days_keep_call_recordings -exec rm {} \;
|
||||||
find /usr/local/freeswitch/recordings/*/archive/* -name '*.mp3' -mtime +$days_keep_call_recordings -exec rm {} \;
|
find /usr/local/freeswitch/recordings/*/archive/* -name '*.mp3' -mtime +$days_keep_call_recordings -exec rm {} \;
|
||||||
fi
|
fi
|
||||||
psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_call_recordings WHERE call_recording_date < NOW() - INTERVAL '90 days'"
|
#Call recordings table uses a view. The data is from v_xml_cdr table. Changed in FusionPBX 5.0.7 and higher. The following line is useful to older versions.
|
||||||
|
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_call_recordings WHERE call_recording_date < NOW() - INTERVAL '90 days'"
|
||||||
else
|
else
|
||||||
echo "not purging Recordings."
|
echo "not purging Recordings."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue