CentOS 6系统FreeSwitch和RTMP服务 安装及演示(一)

一FreeSwitch 安装

安装依赖

Yum installlibtool-ltdl-devel.x86_64

Yum install uuid-devel.x86_64

Yum install zlib-devel.x86_64

Yum installlibjpeg-turbo-devel.x86_64

Yum installncurses-devel.x86_64

Yum installpcre2-devel.x86_64

Yum install ldns-devel.x86_64

Yum install speexdsp-devel.x86_64

Yum install sqlite-devel.x86_64

Yum install perl-devel.x86_64

Yum install gdbm-devel.x86_64

Yum install bison-devel.x86_64

Yum install libsndfile-devel.x86_64

Yum install lua.x86_64

 

安装opus

cd ..
git clone https://freeswitch.org/stash/scm/sd/opus.git
cd opus

./autogen.sh

./configure--prefix=/usr
make
make install
cp /usr/local/lib/pkgconfig/opus.pc /usr/lib64/pkgconfig

 

加载mod_av

执行load mod_av加载av模块。

解决You must install libavformat-dev to build mod_av. Stop.问题

l  下载libav。

http://libav.org/download/

l  下载及编译安装x264,安装到/usr下

./configure--enable-static --disable-shared --prefix=/usr

将x264.pc 拷贝到/usr/lib64/pkgconfig目录下,将libx264.so拷贝到/usr/lib64下

l  编译libav,可以安装到usr下,无需配置PKG_CONFIG_PATH路径:

./configure --prefix=/usr/local --enable-shared --enable-libx264--enable-gpl --extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib64

l  ldconfig 刷新系统库信息

l  配置PKG_CONFIG_PATH变量。配置libav生成的pc文件路径。142上是/usr/local/lib/pkgconfig下

安装vetor

执行debian8-install.sh

在系统CentOS下将debian8-install.sh文件中的apt-get改为yum install。

shdebian8-install.sh

 

修改vertor配置文件

修改 usr/local/freeswitch/conf/autoload_configs/verto.conf.xml

      <vhosts>

        <vhostdomain="localhost">

          <param name="alias"value="seven.local freeswitch.org"/>

          <param name="root"value="/root/freeswitch/freeswitch/html5/verto/verto_communicator/dist"/>

          <param name="index"value="index.html"/>

        </vhost>

       </vhosts>

 

Root为访问地址

启动freeswitch

./freeswitch

loadmod_av

猜你喜欢

转载自blog.csdn.net/wh8_2011/article/details/81032148
今日推荐