Fixes to allow deployment on FreeBSD 14 (#415)

* Changing default domain name to hostname, setting default PostgreSQL version to 15

* Adding support for PostgreSQL 14 and 15

* Correcting user and group options for freeswitch runtime

* Copying missing resources/fail2ban/freeswitch-dos.conf from debian dir, adding missing copy of sip-auth-challenge-ip.conf and sip-auth-challenge.conf, setting default setting for allowipv6 directive

* Remove freeswitch database and user

Reason for this change is if FreeSWITCH uses the PostgreSQL then its a good idea for it to use its own instance. This is to prevent blocking FreeSWITCH from accessing the database if there is a long running Query on the FusionPBX database

* Changing default domain name to hostname, setting default PostgreSQL version to 15

* Adding support for PostgreSQL 14 and 15

* Correcting user and group options for freeswitch runtime

* Copying missing resources/fail2ban/freeswitch-dos.conf from debian dir, adding missing copy of sip-auth-challenge-ip.conf and sip-auth-challenge.conf, setting default setting for allowipv6 directive

---------
Co-authored-by: Charlie Root <root@sjcacs-test.gadallah.net>
This commit is contained in:
Larry Gadallah
2024-01-03 13:06:57 -08:00
committed by GitHub
parent 9601ff7db8
commit 39beae7c13
5 changed files with 49 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ cd "$(dirname "$0")"
. ../config.sh
#install dependencies
pkg install --yes tiff ghostscript9-base memcached sox
pkg install --yes tiff ghostscript10-10.02.1 memcached sox
#set the current working directory
cwd=$(pwd)
@@ -35,8 +35,8 @@ cd $cwd
echo 'memcached_enable="YES"' >> /etc/rc.conf
echo 'freeswitch_enable="YES"' >> /etc/rc.conf
echo 'freeswitch_flags="-nonat"' >> /etc/rc.conf
echo 'freeswitch_user="www"' >> /etc/rc.conf
echo 'freeswitch_group="www"' >> /etc/rc.conf
echo 'freeswitch_username="www"' >> /etc/rc.conf
echo 'freeswitch_groupname="www"' >> /etc/rc.conf
#start the service
service memcached start