switch安装linux教程,freeSwitch安装步骤 for CentOS

1. 下载:

下载地址:http://files.freeswitch.org/

或者直接用git安装。可能会失败

git clone -b v1.2.stable git://git.freeswitch.org/freeswitch.git

2. 安装依赖环境:

yum install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-devel pkgconfig

yum install unixODBC-devel openssl-devel gnutls-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2 which

yum install sqlite-devel.x86_64

3. 开始安装,依次执行以下命令:

./configure

若是有问题,系统会自动列出来。

make && make install && make hd-sounds-install && make hd-moh-install && make samples

我碰到的问题:

问题1:configure: error: Library requirements (sqlite3 >= 3.6.20) not met

办法:

yum install sqlite-devel.x86_64

问题2:configure: error: Library requirements (libpcre >= 7.8) not met

办法:

yum install pcre*

问题3:configure: error: Library requirements (speex >= 1.2rc1 speexdsp >= 1.2rc1) not met

办法:yum install speex*

问题4:configure: error: You need to either install libldns-dev or disable mod_enum in modules.conf

办法:

按提示没有找到libldns-dev 包,因此我选择disable mod_enum,作法以下:

[root@localhost freeswitch]#vi modules.conf

#applications/mod_enumpython

这里若是确实不想屏蔽上述内容,能够经过以下方法安装支持库:c++

yum install ldns*git

问题5:提示libedit-dev找不到。办法:

yum install libedit*sql

问题6:若是在make的时候提示:Neither yasm nor nasm have been foundapp

yasm解压命令:tar -zxvf ****.tar.gz (我下载的是yasm-1.3.0.tar.gz)

yasm编译安装:① ./configure, ② make, ③make installui

4. 创建软链接,以方便使用。

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

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

5. freeswitch默认只支持声音,添加视频。修改conf/var.xml:

为:

6. 经常使用命令:

freeswitch -nc后台运行

fs_cli进入客户端;/exit退出客户端

freeswitch -stop中止freeswitch。url

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在Linux安装FreeSWITCH,你可以按照以下步骤进行操作: 1. 首先,使用以下命令下载并安装FreeSWITCH软件包:yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release [1。 2. 接下来,使用以下命令创建一个符号链接,这将使您能够在任何位置访问FreeSWITCH:ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin [2。 3. 现在,使用以下命令克隆FreeSWITCH的源代码库:git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch [3。 通过按照上述步骤进行操作,您将能够在Linux上成功安装FreeSWITCH。请注意,这只是一个简单的概述,具体的安装步骤可能会因您的操作系统版本和其他因素而有所不同。建议您查阅官方文档或社区论坛以获取更详细的安装说明和指导。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [linuxfreeswitch安装详细教程](https://blog.csdn.net/mokeily99/article/details/122579292)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [AI电销机器人系统源码部署三:freeswitch安装Linux](https://blog.csdn.net/m0_52165567/article/details/129811666)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值