how to dubug kamailio

Debugging Kamailio, an open-source SIP server, involves several steps and techniques to identify and resolve issues effectively. Here’s a detailed guide to help you debug Kamailio: 1. Enable Debug Logging First, increase the verbosity of the logs. Modify the Kamailio configuration file (kamailio.cfg) to set the debug level. Add or modify the following lines: Higher […]

Read more

how to set up rabbit mq in docker swarm

Setting up RabbitMQ in Docker Swarm for involves orchestrating RabbitMQ services across multiple nodes, ensuring high availability, and configuring security and monitoring features. Below are step-by-step instructions to set up RabbitMQ in Docker Swarm for production: Prerequisites: Steps to Set Up RabbitMQ in Docker Swarm: Remember, these are general guidelines, and you should adapt them […]

Read more

RBAC for express js

Role-Based Access Control (RBAC) is a common approach for implementing access control in web applications. In an Express.js application, you can implement RBAC by creating middleware functions that check the user’s role and grant or deny access to certain resources based on their role. Here is an example implementation of RBAC middleware in Express.js: In […]

Read more

Common MySQL configuration files and usage

Ubuntu 18.04 comes with mysql 5.7 along with official repositories Mysql installed with packages mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 By default you’ll find MySQL’s configuration files in /etc/mysql location of mysqld.cnf in ubuntu 18.04 is /etc/mysql/mysql.conf.d/ To change default MySQL port from 3306 to another: go to mysqld.cnf file and edit port section.save and close the […]

Read more