BetterVoice / freeswitch-container

This project can be used to deploy a FreeSWITCH server inside a Docker container. The container currently uses the latest stable release version 1.6.x. An effort was made to build many modules so the container can be generic enough to serve many purposes.
https://www.bettervoice.com
238 stars 128 forks source link

How can I add my custom module? #8

Open umair-khokhar opened 6 years ago

umair-khokhar commented 6 years ago

Hi there,

Is it possible for me to include my custom module in this container? Where should I put the module code files?

lylepratt commented 6 years ago

There's no "built-in" way to do this with any tooling already in this repo, however you could probably do it yourself. You would need to modify the appropriate config files as well as this script: https://github.com/BetterVoice/freeswitch-container/blob/master/build/install-deps.sh

What module are you wanting to add?

thomasquintana commented 6 years ago

You can just create a container with freeswitch-container as your starting point. Everything should be located in /var/lib/freeswitch if I recall correctly. The directory structure should be the usual FS directory structure.

umair-khokhar commented 6 years ago

@lylepratt apologies for late response. Thank you for the answer. I am developing a custom module that will help me put some info on the freeswitch console.

@thomasquintana this means I can put my custom module code in /var/lib/freeswitch and it will get compiled?

thomasquintana commented 6 years ago

Ahh... I see what you're trying to do. I believe the source which you can use to compile your module is in /usr/src/freeswitch. Then, recompile and sudo make install should do it.

umair-khokhar commented 6 years ago

@thomasquintana I tried doing it by mounting /usr/src/freeswitch to a local directory and the local directory remained empty. Any ideas?