freeswitch
A slim Freeswitch 1.10.11 image based on drachtio-freeswitch-mrf
1.9K
A slim Freeswitch 1.10.11 image based on the docker-drachtio-freeswitch-mrf image.
To run with default options:
docker run -d --rm \
--name freeswitch-instance \
--net=host \
-v ./conf:/usr/local/freeswitch/conf \
-v ./log:/usr/local/freeswitch/log \
-v ./recordings:/usr/local/freeswitch/recordings \
-v ./sounds:/usr/local/freeswitch/sounds \
servicebots/freeswitch freeswitch
or:
./start
To jump in to a running container with a freeswitch console:
docker exec -ti freeswitch-instance fs_cli
or:
./fs_cli
To stop the container, execute:
docker stop -t 0 freeswitch
or:
./stop
To remove all data from mount volumes use:
./start --prune
or:
./stop --prune
Note: you can also jump into the container with
bashinstead offs_clito get to a shell prompt in the container.
This is a very minimal image, with support only for dialplan and event socket (no scripting languages such as lua or javascript are compiled in), no sounds, and a minimal set of modules (see below for the modules.conf.xml showing which modules are being loaded). As mentioned, it is primarily designed for use with the drachtio-fsrmf framework.
The container exposes the following volumes, which allow you to provide the canned freeswitch sound files from your host machine:
This container supports the ability to configure the various ports Freeswitch claims, in order to easily run multiple Freeswitch containers on the same host
An example of starting a container with advanced options:
docker run -d --rm \
--name freeswitch-instance \
--net=host \
-v ./conf:/usr/local/freeswitch/conf \
-v ./log:/usr/local/freeswitch/log \
-v ./recordings:/usr/local/freeswitch/recordings \
-v ./sounds:/usr/local/freeswitch/sounds \
servicebots/freeswitch freeswitch --sip-port 5038 --tls-port 5039 --rtp-range-start 20000 --rtp-range-end 21000
Before any changes, run:
./init_modules.sh
init_modules.sh will clone default FreeSWITCH and third party modules.
All changes are inside the build/changes directory. To refresh patches to apply in image build stage, use:
python3 build/scripts/generate_patches.py
To test generated patches, run:
python3 build/scripts/apply_patches.py
The following default modules were disabled (and uncompiled):
The following default modules were enabled (and compiled):
Please refer to features enabled/disabled directly from the official FreeSWITCH documentation.
To enable/disable modules, change autoload_configs/modules.conf.xml from your mount volume for /usr/local/freeswitch/conf. Default configuration is:
<configuration name="modules.conf" description="Modules">
<modules>
...
<!-- 3rd Party Applications -->
<load module="mod_audio_stream"/>
...
</modules>
</configuration>
Content type
Image
Digest
sha256:c1ab58748…
Size
1.5 GB
Last updated
over 1 year ago
docker pull servicebots/freeswitch:edge