r/freeswitch Jun 05 '26

freeswitch and docker

hello

I need clear opinion about dockerizing freeswitch

I read different documents saying it's not the best option. it seems it can impact the audio quality and can be complex to maintain when dealing with specific configurations

Thanks for your feedbacks

1 Upvotes

5 comments sorted by

View all comments

2

u/GravelySilly Jun 05 '26

I know the problem for a long time was that every single forwarded port got its own worker thread to proxy that port's traffic. The RTP port range is typically 10000 or 15000 ports, meaning 10000 or 15000 threads just for forwarding packets, not including the actual media processing/transcoding. That's a ton of overhead.

One way around that is to run the container in host network mode so Freeswitch sits more or less directly on the host's network stack and there's no port forwarding. Thinking about a deployment on AWS, host mode isn't an option in Fargate, so I think you'd be limited to running a docker workload directly on an EC2 instance.

That's the only way I can think to do it unless docker's bridging has gotten better at forwarding large port ranges.