freeswitch

praekeltfoundation/freeswitch Docker Image

praekeltfoundation查看中文加速指南
自动构建

用于在Docker容器中运行FreeSWITCH的基础镜像,基于debian:jessie,包含核心vanilla组件及文本到语音、音频播放等模块,适合作为电话软交换功能的Docker部署起点。

5 次收藏下载次数: 0状态:自动构建维护者:praekeltfoundation仓库类型:镜像最近更新:
下载命令
点击查看

docker-freeswitch

Dockerfile for running FreeSWITCH in a Docker container.

  • Base image: debian:jessie
  • Exposed ports: None
  • Volumes: None

Usage

You should generally run the container with host networking. Something like:

docker run -d --net host --name freeswitch praekeltfoundation/freeswitch

If you want to use FreeSWITCH's CLI, you can use Docker's exec command to connect to the running container:

docker exec -it freeswitch fs_cli

Packages

This is NOT a complete FreeSWITCH installation - the Docker image only contains the "meta-vanilla" packages as well as a couple of extra modules. FreeSWITCH is a very large software project with many submodules. We install only the features that we need. Still, this may be a useful starting point for anybody looking to run FreeSWITCH under Docker.

We install the following FreeSWITCH packages:

  • freeswitch-meta-vanilla
  • freeswitch-mod-flite (for text-to-speech)
  • freeswitch-mod-shout (for playing audio from files)

Networking

It is not recommended that you use Docker's bridge networking mode for FreeSWITCH as some of the protocols (namely, SIP) make use of a very large number of ports and it is not feasible to forward all of these ports to the host. Instead, *** using Docker's host networking mode or, in Docker 1.9+, the virtual overlay networking mode.

Configuration

For the most part we use the default "vanilla" configuration that FreeSWITCH installs in /usr/share/freeswitch/conf/vanilla. However, we do override some of the configuration options. The changes are as follows:

  • autoload_configs/console.conf.xml:
    • Disable console colorizing as this seems to break some logging systems.
  • autoload_configs/modules.conf.xml:
    • Disable mod_logfile as the container logs are consumed from stdout/stderr, not a file.
    • Enable mod_h26x for H.263/4 CODEC support.
    • Enable mod_flite.
    • Enable mod_shout.
  • directory/default/example.com.xml:
    • This file is renamed to prevent FreeSWITCH from setting up an example (and non-functional) SIP gateway.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 freeswitch 镜像标签

docker pull docker.xuanyuan.run/praekeltfoundation/freeswitch:<标签>

DockerHub 原生拉取命令

docker pull praekeltfoundation/freeswitch:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告