Skip to main content

Asterisk for Docker

GitHub sites

RTP ports and Docker

Way 1

Docker cannot deal with a wide range of UDP ports being forwarded. One way to get around this is to run the container on a machine that is not using 10000-20000 UDP and start the container with --network=host. The downside is that a container stated in this way cannot communicate on any of the docker networks.

Way 2

編輯 rtp.conf 將預設的 RTP Port 號範圍做修改。

有些 trunk providers 可能可以支援這個埠號範圍

rpt.conf

[general]
rtpstart = 10000
rtpend   = 10099