ICode9

精准搜索请尝试: 精确搜索
首页 > 数据库> 文章详细

Debian10.8安装最新版FreeSwitch1.10.6,并安装mod_hiredis

2021-06-30 16:59:02  阅读:638  来源: 互联网

标签:get Debian10.8 apt freeswitch org deb 最新版 安装 debian


通过前面几个FreeSwitch的安装说明,我们总结了如下经验:

1.FreeSwitch最好安装在Debian操作系统,因为有很多模块是基于Debian操作系统安装

2.官方以及在Google和Baidu搜索了很多文章,也是推荐在Debian下安装FreeSwitch

1.下载Debian

https://www.debian.org/CD/http-ftp/

下载最新的Debian 10

2.安装Debian 10省略

使用Virtual Box一直下一步安装即可。如果需要查看freeswitch占用端口,

请先安装apt-get install net-tools

3.更改apt源

deb http://ftp.cn.debian.org/debian buster main
deb http://ftp.cn.debian.org/debian buster-updates main
deb http://ftp.cn.debian.org/debian-security/ buster/updates main
deb http://ftp.cn.debian.org/debian buster-backports main

参考这篇文章:

https://www.cnblogs.com/wswind/p/13182133.html

4.安装FreeSwitch


apt-get update && apt-get install -yq gnupg2 wget lsb-release
wget -O - https://files.freeswitch.org/repo/deb/debian-release/fsstretch-archive-keyring.asc | apt-key add -
 
echo "deb http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list
echo "deb-src http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list
 
apt-get update
  
# Install dependencies required for the build
apt-get build-dep freeswitch
  
# then let's get the source. Use the -b flag to get a specific branch
cd /usr/src/
git clone https://github.com/signalwire/freeswitch.git -bv1.10 freeswitch
cd freeswitch
  
# Because we're in a branch that will go through many rebases, it's
# better to set this one, or you'll get CONFLICTS when pulling (update).
git config pull.rebase true
  
# ... and do the build
./bootstrap.sh -j
./configure
make
make install

5.安装mod_hiredis模块

进入usr/src/freeswitch/src/mod/applications/mod_hireds目录

make

make install

即可

然后修改autoload_configs/modules.conf.xml by uncommenting the line:

<load module="mod_hiredis"/>
配置autoload_configs/hiredis.conf.xml文件如下

Configuration example:

<configuration name="hiredis.conf" description="mod_hiredis">
  <profiles>
    <profile name="default">
      <connections>
        <connection name="primary">
          <param name="hostname" value="172.18.101.101"/>
          <param name="password" value="redis"/>        
          <param name="port" value="6379"/>
          <param name="timeout_ms" value="500"/>
        </connection>
        <connection name="secondary">
          <param name="hostname" value="localhost"/>
          <param name="password" value="redis"/>        
          <param name="port" value="6380"/>
          <param name="timeout_ms" value="500"/>
        </connection>
      </connections>
      <params>
        <param name="ignore-connect-fail" value="true"/>
      </params>
    </profile>
  </profiles>
</configuration>
Connection parameters:

6.安装后如何启动

进入/usr/local/freeswitch/bin

目录,运行./freeswitch启动

配置文件在/usr/local/freeswitch/conf目录下

标签:get,Debian10.8,apt,freeswitch,org,deb,最新版,安装,debian
来源: https://blog.csdn.net/penker_zhao/article/details/118364501

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有