尝试了多种方案,包括ubuntu下的编译安装等,由于依赖原因都没有很好的解决。最终选定官方推荐的直接安装编译的安装包。
构建过程如下:
由于我是在阿里云ECS中构建的上述服务,首先安装docker


apt install docker.io
docker pull debian
docker run -idt --name=freeswitch debian /bin/bash

添加新的source资源:

apt-get update && apt-get install -y 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

更新源并安装:
默认情况下freeswitch的配置文件在/etc/freeswitch目录,资源文件在/usr/share/freeswitch目录。


apt-get update && apt-get install -y freeswitch-meta-all

启动


freeswitch

Tags: freeswitch, voip

Related Posts:

Leave a Comment