Sign inSign up

adito/freepbx

By adito

Updated over 8 years ago

FreePBX 14 Docker-Image in development

Image
5

3.6K

adito/freepbx repository overview

This image is currently in development!

How to use:

docker run --name freepbx -d -p 5060:5060/udp -p 8080:80 adito/freepbx

Publish dynamic ports manually

You need to publish a range of UDP Ports for RTP. By default this range is set to 10000-20000.

Docker got huge problems with publishing multiple thousand ports. Docker will create one iptables rule per port instead of one rule with a range of ports.

iptables -L | grep sip

After starting the container use the iptables command to get the container ip. Now create the following rules with the ip from the command before (replace 172.17.0.2).

iptables -A DOCKER -t nat -p udp -m udp --dport 10000:20000 -j DNAT --to-destination 172.17.0.2:10000-20000
iptables -A DOCKER -d 172.17.0.2/32 ! -i docker0 -o docker0 -p udp -m udp --dport 10000:20000 -j ACCEPT
iptables -A POSTROUTING -t nat -s 172.17.0.2/32 -d 172.17.0.2/32 -p udp -m udp --dport 10000:20000 -j MASQUERADE

ToDo

  • creating a concept to save for persistent configuration
  • use supervisord

Tag summary

Content type

Image

Digest

Size

585 MB

Last updated

over 8 years ago

docker pull adito/freepbx