【1】FreeSWITCH版本更新

从2014年10月底开始,FreeSWITCH代码库改为由stash管理,该管理工具能更好地与jira集成。

如果你以前已经clone了代码,请做如下更新:

git remote set-url origin https://freeswitch.org/stash/scm/fs/freeswitch.git

否则,直接用以下地址进行克隆:

git clone https://freeswitch.org/stash/scm/fs/freeswitch.git

若仅克隆某个版本,命令如下:

git clone -b v1.4.14 https://freeswitch.org/stash/scm/fs/freeswitch.git

【2】Linux环境编译安装FreeSWITCH

Linux环境编译按FreeSWITCH共有三种方式:

不论哪种方式,首先都需要安装编译依赖库。所以,在安装FreeSWITCH之前,先把依赖包安装完成。

安装依赖包命令:

yum install -y autoconf automake libtool gcc-c++ ncurses-devel make zlib-devel libjpeg-devel libevent openssl-devel e2fsprogs-devel curl-devel pcre-devel speex-devel sqlite-devel libedit-devel

第一种方式:从Git仓库安装

(1)获取最新版

git clone https://freeswitch.org/stash/scm/fs/freeswitch.git

(2)获取版本V1.4.14

git clone -b v1.4.14 https://freeswitch.org/stash/scm/fs/freeswitch.git

(3)在FreeSWITCH源代码目录中执行命令

[1]./bootstrap.sh

执行完后。若想要添加或删除模块儿的话,可以修改/usr/src/freeswitch/modules.conf,在每行前面添加#来注释掉不需要的模块。

[2]./configure

[3]make install

第二种方式:解压缩源码包安装

(1)使用wget获取源代码安装包

wget http://files.freeswitch.org/freeswitch-1.4.14.tar.gz

(2)解压缩

tar -zxvf freeswitch-1.4.14.tar.gz

(3)执行命令

[1]cd freeswitch-1.4.14

[2]./configure

[3]make install

备注:与第一步相比,它不需要执行bootstrap.sh。

因为源代码在打成tar包前已经执行过了,因而不需要automake和autoconf工具),便可以直接配置安装。

第三种方式:最快安装

(1)执行命令

wget http://files.freeswitch.org/Makefile && make install

【3】下载语音包

安装默认的系统语音铃声包

make -j cd-sounds-install

make -j cd-moh-install

【4】创建快捷启动

ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/

ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/

Good Good Study, Day Day Up.

顺序 选择 循环 总结

												

最新文章

  1. spider RPC插件化体系
  2. Android应用中实现系统“分享”接口
  3. java final 关键字
  4. ASP.NET MVC 学习笔记(一)
  5. zabbix使用tokudb引擎替换innodb引擎
  6. iOS8中如何将状态栏的字体颜色改为白色
  7. DOS攻击之详解--转载
  8. Excel中输入√背景显示蓝色,输入×背景显示红色
  9. javascript XMLHttpRequest对象全面剖析
  10. LINQ查询操作符 LINQ学习第二篇[转]
  11. Http Post与Get等
  12. Ext JS 6开发实例(一)
  13. 虚拟机VMware显示“内部错误”的解决方法
  14. MTK 修改默认屏幕亮度
  15. 架构师如何借鉴他人经验快速成长? | 2018GIAC上海站日程上线!
  16. C++ STL--queue 的使用方法
  17. js倒计时,页面刷新时,不会从头计时
  18. yolo详解
  19. Warning: Attempt to present A on B whose view is not in the window hierarchy!
  20. Python 10min系列之面试题解析丨Python实现tail -f功能

热门文章

  1. 更改vsftpd默认的21端口
  2. C++ development cross platforms
  3. 【spring boot】【mybatis】spring boot中mybatis打印sql语句
  4. git -- 忽略某个文件
  5. Spring: aop自动标注时出现 “0 formal unbound in pointcut"
  6. TCP/IP网络编程
  7. Makefile之嵌套执行make
  8. 最长公共字串算法, 文本比较算法, longest common subsequence(LCS) algorithm
  9. cocos2d-x ios游戏开发初认识(六) 渲染的优化
  10. Windows无法删除文件 提示找不到该项目怎么办