freeswitch 1.6.17如何安装
发表于:2026-11-04 作者:千家信息网编辑
千家信息网最后更新 2026年11月04日,小编给大家分享一下freeswitch 1.6.17如何安装,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!先下载必要的依赖文件wget http://downloads.xiph.o
千家信息网最后更新 2026年11月04日freeswitch 1.6.17如何安装
小编给大家分享一下freeswitch 1.6.17如何安装,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!
先下载必要的依赖文件
wget http://downloads.xiph.org/releases/opus/opus-1.1.4.tar.gzwget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gzwget http://files.freeswitch.org/freeswitch-releases/freeswitch-1.6.17.tar.xzmkdir cd_soundscd cd_soundswget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-8000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-16000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-32000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-48000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-8000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-16000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-32000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-48000-1.0.50.tar.gz
下载Zoiper,作为测试Freeswitch,好用且免费!
https://www.zoiper.com/en/voip-softphone/download/zoiper3?cid=home-dlb
下载的文件如何放置? --目录文件结构树,然后执行安装脚本
chunli@ubuntu:~$ tree install_freeswitch_2017.05.01-21-23/install_freeswitch_2017.05.01-21-23/├── cd_sounds│ ├── freeswitch-sounds-en-us-callie-16000-1.0.50.tar.gz│ ├── freeswitch-sounds-en-us-callie-32000-1.0.50.tar.gz│ ├── freeswitch-sounds-en-us-callie-48000-1.0.50.tar.gz│ ├── freeswitch-sounds-en-us-callie-8000-1.0.50.tar.gz│ ├── freeswitch-sounds-music-16000-1.0.50.tar.gz│ ├── freeswitch-sounds-music-32000-1.0.50.tar.gz│ ├── freeswitch-sounds-music-48000-1.0.50.tar.gz│ └── freeswitch-sounds-music-8000-1.0.50.tar.gz├── freeswitch-1.6.17.tar.xz├── install_on_CentOS_6.5.sh├── install_on_ubuntu14.04.sh├── opus-1.1.4.tar.gz└── yasm-1.3.0.tar.gz1 directory, 13 fileschunli@ubuntu:~$
CentOS 6.5 X86 基于Basic Server,root用户执行以下脚本:
chunli@CentOS->14_freeswitch_install$ cat install_on_CentOS_6.5.sh #!/bin/bash#CentOS 6.5 x86 Basic serverif [ 0 -ne `id -u` ]then echo "You are not root user!" echo "Don't use sudo!" echo "should use 'su - '" exitfiWorkDir=`pwd`yum install -y gccyum install -y gcc-c++yum install -y zlib-develyum install -y libjpeg-turbo-develyum install -y sqlite-develyum install -y libcurl-develyum install -y pcre-develyum install -y speex-develyum install -y libedit-develyum install -y openssl-develyum install -y libsndfile-develyum install -y lua-develrm -rf ${WorkDir}/yasm-1.3.0rm -rf ${WorkDir}/opus-1.1.4rm -rf ${WorkDir}/freeswitch-1.6.17cd ${WorkDir}tar xf yasm-1.3.0.tar.gztar xf opus-1.1.4.tar.gztar xf freeswitch-1.6.17.tar.xzcp ${WorkDir}/cd_sounds/* ${WorkDir}/freeswitch-1.6.17/yasm --versionif [ $? -ne 0 ]then cd ${WorkDir}/yasm-1.3.0 ./configure && make -j 4 && make installfi#这个可能会有点烦cd ${WorkDir}/opus-1.1.4./configure && make -j 4 && make installcp /usr/local/lib/libopus.* /usr/lib/cp -r /root/opus/include/opus/opus* /usr/include/mv /usr/local/lib/pkgconfig/opus.pc /usr/lib/pkgconfig/ldconfig -vexport LD_LIBRARY_PATH=/lib:/usr/lib/:/usr/local/libcd ${WorkDir}/freeswitch-1.6.17make distcleansed -i 's@applications/mod_enum@#applications/mod_enum@g' modules.conf./configure --prefix=${HOME}/freeswitch && make -j 4 && make install && make cd-sounds-install && make cd-moh-install rm -rf ${WorkDir}/freeswitch-1.6.17rm -rf ${WorkDir}/yasm-1.3.0rm -rf ${WorkDir}/opus-1.1.4#[1] start freeswitchiptables -F${HOME}/freeswitch/bin/freeswitch#[2] shutdown freeswitch#${HOME}/freeswitch/bin/freeswitch -stop#${HOME}/freeswitch/bin/fs_cli -x "shutdown"#[3] SIP设备连接freeswitch#windows,android 可以安装X-Lite,Zoiper来连接freeswitch服务器#测试拨打以下号码#号码 说明#------------- --------#9664 保持音乐#9196 echo,回音测试#9195 echo,回音测试,延迟5秒#9197 噪音生成#9198 铃音生成示例#9180 铃音测试,生成的回铃音#9181 铃音测试,产生英式铃音#9183 先应答,然后发送英式铃音#9184 先应答,然后发送音乐铃音#5000 示例IVR#4000 听取语音信箱#[4] 多个SIP设备互相语音测试chunli@CentOS->14_freeswitch_install$执行完毕,如下图,
这时可以拿起windows/Android的Zoiper软件,
添加SIP类型用户1000,密码1234,拨打5000听语音了.
Ubuntu14.04 x64, 带有root权限的普通用户执行以下脚本:
chunli@ubuntu:~/install_freeswitch_2017.05.01-21-23$ cat install_on_ubuntu14.04.sh #install freeswitch for ubuntu 14.04WorkDir=`pwd`sudo apt-get updatesudo apt-get install -y vimsudo apt-get install -y g++sudo apt-get install -y zlib1g-devsudo apt-get install -y libjpeg-devsudo apt-get install -y libsqlite3-devsudo apt-get install -y libcurl4-gnutls-devsudo apt-get install -y libpcre3-devsudo apt-get install -y libspeexdsp-devsudo apt-get install -y libedit-devsudo apt-get install -y libssl-devsudo apt-get install -y libopus-devsudo apt-get install -y liblua5.2-devsudo apt-get install -y libldns-devsudo apt-get install -y libsndfile1-dev sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0 /usr/lib/x86_64-linux-gnu/liblua.sosudo mv /usr/include/lua5.2/lua* /usr/include/sudo mv /usr/include/opus/opus* /usr/include/sudo mv /usr/lib/x86_64-linux-gnu/libsndfile* /usr/lib/sudo ldconfig -vcd ${WorkDir}tar xf yasm-1.3.0.tar.gzcd ${WorkDir}/yasm-1.3.0/./configure && make && sudo make installcd ${WorkDir}tar xf freeswitch-1.6.17.tar.xzcp cd_sounds/freeswitch-sounds-* freeswitch-1.6.17/sudo rm -rf ${HOME}/freeswitchcd ${WorkDir}/freeswitch-1.6.17/./configure --prefix=${HOME}/freeswitch && make -j 4 && make install && make cd-sounds-install && make cd-moh-install rm -rf ${WorkDir}/freeswitch-1.6.17rm -rf ${WorkDir}/yasm-1.3.0#[1] start freeswitchsudo iptables -F${HOME}/freeswitch/bin/freeswitchsleep 2#[2] shutdown freeswitch#${HOME}/freeswitch/bin/freeswitch -stop#${HOME}/freeswitch/bin/fs_cli -x "shutdown"#[3] SIP设备连接freeswitch#windows,android 可以安装X-Lite,Zoiper来连接freeswitch服务器#测试拨打以下号码#号码 说明#------------- --------#9664 保持音乐#9196 echo,回音测试#9195 echo,回音测试,延迟5秒#9197 噪音生成#9198 铃音生成示例#9180 铃音测试,生成的回铃音#9181 铃音测试,产生英式铃音#9183 先应答,然后发送英式铃音#9184 先应答,然后发送音乐铃音#5000 示例IVR#4000 听取语音信箱#[4] 多个SIP设备互相语音测试chunli@ubuntu:~/install_freeswitch_2017.05.01-21-23$执行完毕,如下图,
这时可以拿起windows/Android的Zoiper软件,
添加SIP类型用户1000,密码1234,拨打5000听语音了.
关于Zoiper最小可用的设置!
看完了这篇文章,相信你对"freeswitch 1.6.17如何安装"有了一定的了解,如果想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!
铃音
测试
语音
生成
号码
回音
用户
示例
设备
音乐
文件
脚本
信箱
噪音
多个
密码
服务器
篇文章
类型
语音信箱
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
广州为想互联网科技有限公司
互联网科技工作委员会主任
美国互联网保险保险科技
美国互联网科技巨头监管
中资互联网科技
致骋互联网科技
科技创新互联网企业
互联网金融和金融科技
互联网金融中的现代科技
厦门比较好的科技互联网公司
本届互联网博览会上的黑科技
互联网金融科技名词解释
烟台灵鸽互联网科技有限公司
互联网营销推广黑科技
工业互联网科技成果转化
神州科技互联网有限公司
互联网科技手机排行榜
银川新华互联网科技学校是国营吗
互联网科技对化妆品行业
互联网高科技绘画
互联网新科技
互联网品科技
奇酷互联网科技公司
互联网科技革命
深圳齐家互联网科技
青岛科技大学互联网大赛研究生
中国互联网公司排名锤子科技
互联网数据科技专业
互联网金融科技元年
2021世界互联网领先科技成果发布