环境
OSX: 10.12.2 (16C68)
Docker: Version 17.03.1-ce-mac12 (17661)
freeswitch container: https://hub.docker.com/r/bettervoice/freeswitch-container/
网络
Docker container IP: 172.17.0.2
Docker host IP: 192.168.1.121
Docker设置
docker run -d \
--name freeswitch \
-p 5060:5060/tcp \
-p 5060:5060/udp \
-p 5066:5066/tcp \
-p 5080:5080/tcp \
-p 5080:5080/udp \
-p 8021:8021/tcp \
-p 7443:7443/tcp \
-p 60535-60635:60535-60635/udp \
-v /my/docker/freeswitch/conf:/usr/local/freeswitch/conf:rw \
-v /my/docker/freeswitch/default_freeswitch:/etc/default/freeswitch \
bettervoice/freeswitch-container:1.6.16
仅更改以下设置:
vars.xml
<X-PRE-PROCESS cmd="set" data="external_sip_ip=192.168.1.121"/>
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=192.168.1.121"/>
sip_profiles / internal.xml:
<param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
<param name="ext-sip-ip" value="$${external_sip_ip}"/>
sip_profiles / external.xml:
<param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
<param name="ext-sip-ip" value="$${external_sip_ip}"/>
switch.conf.xml
<param name="rtp-start-port" value="60535"/>
<param name="rtp-end-port" value="60635"/>
default_freeswitch
# /etc/default/freeswitch
DAEMON_OPTS="-rp"
当我拨打X-Lite A(1000)时 - &gt; X-Lite B(1001),它使用私有地址172.17.0.2作为rtp地址。实际上我希望这两个X-Lite使用192.168.1.121作为rtp。
有人能给我一些帮助吗?