Skip to content

EnriqueAlmanza/kamailio-rtpengine

Repository files navigation

Table of Contents

Kamailio and RTPengine implementation installed in Docker containers.

The script will install the prerequisites software

  • Run the install-prereq.sh script
chmod +x install-prereq.sh
./install-prereq.sh
  • Modify the "/config_kamailio/kamailio-address_bkp.cfg" with your host IP (containers run with network_mode: "host") and rename it to "kamailio-address.cfg"
  • Modify the "/rtpengine/rtpengine_bkp.conf" with your host IP (same as Kamailio) and rename the file to "rtpengine.conf"
  • Once Docker and docker-compose are installed create the Kamailio and RTPengine services with docker-compose (alternatively use the "master_install.sh" script, see steps below)
 docker-compose -f docker-compose.yaml build

Once the containers are created use the following script to start fresh the containers (if needed)

#!/bin/bash
docker rm -f rtpengine
docker run --network host --privileged --mount source=project_v2_rtpengine,target=/etc/rtpengine --name rtpengine -itd project_v2_rtpengine
docker rm -f kamailio
docker run --network host --privileged --mount source=project_v2_kamailio,target=/etc/kamailio --name kamailio -itd project_v2_kamailio

Kamailio runs with a self-signed certificate, exchange if needed with new certificates as:

certificate: "/home/certificate/kamailio_cert.pem"
private_key: "/home/certificate/privkey.pem"
ca_list: "/etc/pki/CA/catlist.pem"

Copy the files and reload the container:

docker cp kamailio_cert.pem kamailio:/home/certificate/kamailio_cert.pem
docker cp privkey.pem kamailio:/home/certificate/privkey.pem
docker cp catlist.pem kamailio:/etc/pki/CA/catlist.pem
docker exec -it kamailio /etc/init.d/kamailio restart

The script will run Kamailio and RTPengine in the PC where the script is running. It will start the Docker containers using the network of the host machine. The script generates the "kamailio-address.cfg" and "rtpengine.conf" files

Official Kamailio Kamailio

Official RTPengine RTPengine

About

Kamailio and RTPengine orchestrated with Docker compose

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published