浏览代码

Create source-sounds.sh

FusionPBX 2 年之前
父节点
当前提交
f6b14519ad
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      ubuntu/resources/switch/source-sounds.sh

+ 20 - 0
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