FreePBX

Tips#

# 一个基于 debian 的 freepbx 容器
# https://github.com/tiredofit/docker-freepbx
# Docker Compose https://github.com/tiredofit/docker-freepbx/blob/15/examples/docker-compose.yml
# https://github.com/tiredofit/docker-freepbx/issues/85
docker run --rm -it \
-v $PWD/certs:/certs \
-v $PWD/data:/data \
-v $PWD/log:/var/log \
-v $PWD/www:/var/www/html \
-v $PWD/db:/var/lib/mysql \
-v $PWD/custom:/assets/custom \
-p 80:80 -p 5060:5060 -p 5160:5160 -p 18000-18100:18000-18100/udp \
-p 4445:4445 \
-e RTP_START=18000 -e RTP_FINISH=18100 -e DB_EMBEDDED=TRUE \
--name freepbx tiredofit/freepbx
# Docker 启动 UCP 安装失败 - 因为 icu 安装失败
docker exec -it freepbx bash
apt update
# icu libicu-devel
apt-get install pkg-config pkgconf
pkg-config --modversion icu-i18n
curl -O http://ftp.br.debian.org/debian/pool/main/i/icu/libicu52_52.1-8+deb8u7_amd64.deb
apt install ./libicu52_52*