Generally, when I deploy Kamailio, I use git. Many reasons for this (including being able to quickly apply a patch or fix), but that’s a discussion for another time.

If you’ve installed from git and need to add a new module (that hasn’t already been built/installed), the process is very straight forward (and simple).

Step 1: Install Dependencies

Some modules require libraries to be installed. For example, the jansson module wants the jansson library to be installed.

As an example, in Debian you would run something like the following to install the dependencies for jansson:

apt install libjansson-dev libjansson4

Step 2: Make the Module

Moving to your git folder (for example, /usr/local/src/kamailio/), you make the module by running:

make modules modules=modules/MODULENAME

For example:

cd /usr/local/src/kamailio
make modules modules=modules/jansson

Step 3: Install the module

Within the same git directory, run the following:

make install modules modules=modules/MODULENAME

For example:

make install modules modules=modules/jansson

Configure and Use

Now you just need to update your Kamailio config to load and configure the module as normal.

Thank you for flying Kamailio