Add a cron job for call detail records.

This commit is contained in:
FusionPBX 2023-09-20 11:23:49 -06:00 committed by GitHub
parent eb17e2b443
commit 182cde2031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

View File

@ -110,6 +110,9 @@ cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/syst
/bin/systemctl start event_guard
/bin/systemctl daemon-reload
#add xml cdr import to crontab
cat <(crontab -l) <(echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab -
#welcome message
echo ""
echo ""

View File

@ -105,6 +105,21 @@ cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade.php
#restart freeswitch
/usr/sbin/service freeswitch restart
#install the email_queue service
cp /var/www/fusionpbx/app/email_queue/resources/service/debian.service /etc/systemd/system/email_queue.service
systemctl enable email_queue
systemctl start email_queue
systemctl daemon-reload
#install the event_guard service
cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/systemd/system/event_guard.service
/bin/systemctl enable event_guard
/bin/systemctl start event_guard
/bin/systemctl daemon-reload
#add xml cdr import to crontab
cat <(crontab -l) <(echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab -
#welcome message
echo ""
echo ""

View File

@ -109,6 +109,9 @@ cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/syst
/bin/systemctl start event_guard
/bin/systemctl daemon-reload
#add xml cdr import to crontab
cat <(crontab -l) <(echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab -
#welcome message
echo ""
echo ""