Debian 8部署安装freeswitch

Song2177 次浏览0个评论2018年07月05日

一、更新Debian升级工具

使用前需要更新apt-get

sudo apt-get update

二、先安装相关工具及依赖包

apt-get install autoconf automake devscripts g++ gawk gettext git-core libcurl4-openssl-dev libdb-dev libedit-dev libgdbm-dev 'libjpeg-dev|libjpeg62-turbo-dev' libldns-dev libncurses5-dev libopus-dev libopus-ocaml libpcre3-dev libperl-dev libpq-dev libsndfile-dev libspeex-dev libspeexdsp-dev libsqlite3-dev libssl-dev libtiff5-dev 'libtool-bin|libtool' make python-dev pkg-config yasm lua5.1

三、下载freeswitch源码

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

四、构建,其中参数-j为开启多线程构建

./bootstrap.sh -j

五、配置文件

./configure --enable-core-pgsql-support

六、编译及安装

make && make install

七、安装声音文件

make cd-sounds-install cd-moh-install

八、创建快捷启动方式

至此,FreeSWITCH就已经安装完了。在UNIX类操作系统上,其默认的安装位置是/usr/local/freeswitch(下文所述的路径全部相对于该路径)。两个常用的命令是bin/freeswitchbin/fs_cli(我们下面会讲到它们的用法),为了便于使用,建议将这两个命令做符号链接放到你的搜索路径中,如:

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

接下来freeswitch就应该可以启动了。通过在终端中执行freeswitch命令(如果你已做符号链接的话,否则要执行/usr/local/freeswitch/bin/freeswitch)可以将FreeSWITCH启动到前台。启动过程中会有许多log输出,第一次启动时会有一些错误和警告,可以不必理会

提交评论

请登录后评论

用户评论

  • Song Song 2018-09-06 02:32:44
    安装方法与[在ubuntu16.04部署配置安装freeswitch以及常见问题解决](https://wsonh.com/article/22.html)相似,如果异常直接参考这篇文章即可!
    0 赞 0 条评论 回复
    评论
    查看更多评论!

更多相关好文

    当前暂无更多相关好文推荐...