Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Freeswitch with docker

I am trying to get freeswitch working with docker. My goal is to pull a freeswitch image and turn it into a container and have it up and running quickly. My end goal is to have custom image to easily deploy a freeswitch setup without much effort. Ideas?

like image 965
enigma Avatar asked Oct 17 '25 14:10

enigma


2 Answers

There's already an docker image with freeswitch pre-installed, all you need to do is run this command on terminal(if running FS in a container is really all you need):

CID=$(sudo docker run --name freeswitch -p 5060:5060/tcp -p 5060:5060/udp -p 5080:5080/tcp -p 5080:5080/udp -p 8021:8021/tcp -p 7443:7443/tcp -p 60535-65535:60535-65535/udp -v /home/ubuntu/freeswitch/conf:/usr/local/freeswitch/conf bettervoice/freeswitch-container:1.6.6)

To connect to your container use:
sudo docker exec -it freeswitch /bin/bash

The first command already open and forwards all the container's ports used by FS to your machine.
You can edit the dockerfile and create your own variation of the image if you like.

Source: https://github.com/BetterVoice/freeswitch-container

like image 177
ArthurG Avatar answered Oct 19 '25 03:10

ArthurG


Here is example of Dockerfile with default freeswitch configs to start from:

FROM alpine:latest
RUN apk --update --no-cache add freeswitch \ 
  freeswitch-sample-config \ 
  freeswitch-sounds-en-us-callie-8000
CMD ["freeswitch"]
like image 40
Prostokvashkin Avatar answered Oct 19 '25 05:10

Prostokvashkin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!