Centos7源代码安装freeswitch和启动freeswitch

转载原博客:http://blog.csdn.net/u012121105/article/details/74238595

centos7下安装freeswitch版本:1.6。

1.下载源代码: 
进入目录 cd /usr/local/src

克隆原代码 
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch

2.开始编译 
进入freeswitch目录 cd/ freeswitch 
运行 ./bootstrap.sh 
如果会出现类似autoconf not found错误提示,是因为没有下载第三方依赖库。

freeswitch依赖的第三方库有:gcc-c++ ,wget alsa-lib-devel, autoconf ,automake ,bison ,broadvoice-devel ,bzip2 ,curl-devel, db-devel ,e2fsprogs-devel, flite-devel ,g722_1-devel, gdbm-devel, gnutls-devel ,ilbc2-devel ,ldns-devel ,libcodec2-devel ,libcurl-devel ,libedit-devel ,libidn-devel ,libjpeg-devel, libmemcached-devel, libogg-devel ,libsilk-devel,libsndfile-devel ,libtiff-devel ,libtheora-devel, libtool, libvorbis-devel ,libxml2-devel ,lua-devel ,lzo-devel ,mongo-c-driver-devel, ncurses-devel, net-snmp-devel ,openssl-devel ,opus-devel ,pcre-devel ,perl perl-ExtUtils-Embed pkgconfig portaudio-devel ,postgresql-devel, python26-devel ,python-devel ,soundtouch-devel,speex-devel, sqlite-devel ,unbound-devel, unixODBC-devel ,libuuid-devel ,which yasm zlib-devel。

3.安装依赖库: 
(1)可以一个个安装,如下: 
1. yum install autoconf 
2. yum install automake 
3. yum install libtool 
…… 
(2)也可以全部一起安装: 
yum install -y git gcc-c++ wget alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel db-devel e2fsprogs-devel flite-devel g722_1-devel gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-devel libsndfile-devel libtiff-devel libtheora-devel libtool libvorbis-devel libxml2-devel lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python26-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel libuuid-devel which yasm zlib-devel

4.再一次编译 
运行 ./bootstrap.sh 
接着运行 ./configure

如果出现以下界面,就是默认配置成功. 
这里写图片描述

5.运行 make 命令 
如果出现以下界面,则编译成功。

这里写图片描述

6.安装 
运行make install命令 
如果出现以下界面,则安装成功。

这里写图片描述

7.启动freeswitch

进入cd /usr/local/freeswitch/bin/目录,然后运行 ./freeswitch命令。

如果出现以下界面,则运行成功。

这里写图片描述

8.配置freeswitch在任何一个路径都可以运行

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

9.如果运行freeswitch出现以下错误,是因为端口被占用了。 
[root@localhost ~]# freeswitch 
Cannot lock pid file /usr/local/freeswitch/run/freeswitch.pid.

解决办法:可以重启Linux或者关闭占用端口的进程。

10.如果freeswitch启动成功,但是linphone注册不上。

解决办法:systemctl stop firewalld.service (关闭防火墙)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值