From f6b14519ada6fcb738e770a50776d6a1c47dc47f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 18 Jan 2023 22:09:47 -0700 Subject: [PATCH] Create source-sounds.sh --- ubuntu/resources/switch/source-sounds.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ubuntu/resources/switch/source-sounds.sh diff --git a/ubuntu/resources/switch/source-sounds.sh b/ubuntu/resources/switch/source-sounds.sh new file mode 100644 index 0000000..1917b6c --- /dev/null +++ b/ubuntu/resources/switch/source-sounds.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes +. ../config.sh +. ../environment.sh + +# change the working directory +cd /usr/src/freeswitch + +# compile and install the sounds +make sounds-install moh-install +make hd-sounds-install hd-moh-install +make cd-sounds-install cd-moh-install + +#move the music into music/default directory +mkdir -p /usr/share/freeswitch/sounds/music/default +mv /usr/share/freeswitch/sounds/music/*000 /usr/share/freeswitch/sounds/music/default