Direct install of the sounds and music

This commit is contained in:
FusionPBX
2026-04-08 10:13:38 -06:00
committed by GitHub
parent cf10439e57
commit 733a33f231

View File

@@ -1,20 +1,41 @@
#!/bin/sh #!/bin/sh
#move to script directory so all relative paths work # Move to script directory so all relative paths work
cd "$(dirname "$0")" cd "$(dirname "$0")"
#includes # Includes
. ../config.sh . ../config.sh
. ../environment.sh . ../environment.sh
# change the working directory # Change the working directory
cd /usr/src/freeswitch-$switch_version cd /usr/share/freeswitch/sounds
# compile and install the sounds # Array of sample rates
make sounds-install moh-install sample_rates="48000 32000 16000 8000"
make hd-sounds-install hd-moh-install
make cd-sounds-install cd-moh-install
#move the music into music/default directory # Loop through each sample rate
mkdir -p /usr/share/freeswitch/sounds/music/default for sample_rate in $sample_rates; do
mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/music/default # Download the file
wget "https://files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-${sample_rate}-1.0.53.tar.gz"
# Extract the file
tar xvzf "freeswitch-sounds-en-us-callie-${sample_rate}-1.0.53.tar.gz"
done
# Change to directory to the music directory
cd /usr/share/freeswitch/sounds/music
# Loop through each sample rate
for sample_rate in $sample_rates; do
# Download the file
wget "https://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-${sample_rate}-1.0.52.tar.gz"
# Extract the file
tar xvzf "freeswitch-sounds-music-${sample_rate}-1.0.52.tar.gz"
done
# Move the music to the default directory
mv music default
# Remove the tar.gz files
rm /usr/share/freeswitch/sounds/music/*.tar.gz