基于官网文档,debian10+freeswich(v1.10分支)编译创建
https://freeswitch.org/confluence/display/FREESWITCH/Debian+10+Buster
Building From Source Compiling Release Branch (production)
别拉取镜像v1.10,用起来很不方便,之后会再重新上传
# 拉取镜像
docker pull cong99/freeswitch:v1.10
# 启动容器
docker run -p 5060:5060 --name freeswitch -itd cong99/freeswitch:v1.10
# 进入容器
docker exec -it freeswitch bash
# freeswitch源码位置
cd /usr/src/freeswitch
# freeswitch安装位置
cd /usr/local/freeswitch
# 启动freeswitch
/usr/local/freeswitch/bin/freeswitch
# 注意:
# * 编译完了之后先修改vars.xml里面的bind_server_ip、external_rtp_ip、external_sip_ip;
# 可以删除sip_profiles文件夹下跟ipv6相关的配置,ua会少一些
# dialplan/default.xml里面的只要是密码是1234的会有延迟10s,最好也改一下
# 没做bin软连接、没做服务自启动,要做的话可以基于镜像再创建自己的镜像;仓促打包镜像,上述的这些都没有做好,后面有空再优化一下
# rtp端口也没有映射,那么通话是不通的
FROM debian
RUN 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 \
&& apt-get build-dep freeswitch -y \
&& cd /usr/src/ \
&& git clone https://github.com/signalwire/freeswitch.git -b v1.10 freeswitch \
&& cd freeswitch \
&& git config pull.rebase true \
&& ./bootstrap.sh -j \
&& ./configure \
&& make \
&& make install
Content type
Image
Digest
Size
1.2 GB
Last updated
over 5 years ago
docker pull cong99/freeswitch:v1.10