1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# 安装依赖包
yum install -y libshout-devel lame-devel libmpg123-devel
# 进入fs源码目录
cd /usr/local/src/freeswitch-1.8.1/
# 去掉 modules.conf 文件中`#formats/mod_shout` 的#号
sed -i 's%#formats/mod_shout%formats/mod_shout%' modules.conf
# 重新配置 编译安装环境
./configure
#安装模块
make mod_shout-install
# 切换到FreeSwitch目录
cd /usr/local/freeswitch
# 可选 修改默认密码为12345
# sed -i 's$<X-PRE-PROCESS cmd="set" data="default_password=1234"/>$<X-PRE-PROCESS cmd="set" data="default_password=12345"/>$' conf/vars.xml
# 设置启动加载 mod_shout
sed -i 's$<!--<load module="mod_shout"/>-->$<load module="mod_shout"/>$' conf/autoload_configs/modules.conf.xml
# 后台启动FreeSwitch
freeswitch -nc
|