Open Omid-Mohajerani opened 2 years ago
sudo apt update sudo apt install build-essential apt-get install vim git-core make autoconf pkg-config psmisc apt-get install gcc g++ flex bison apt-get install default-mysql-server default-libmysqlclient-dev libssl-dev apt-get install sipsak ngrep sngrep sipgrep
mkdir -p /usr/local/src/kamailio-5.6 cd /usr/local/src/kamailio-5.6
git clone --depth 1 --no-single-branch https://github.com/kamailio/kamailio kamailio cd kamailio git checkout -b 5.6 origin/5.6
make include_modules="db_mysql tls" cfg make all make install
vim /usr/local/etc/kamailio/kamctlrc
SIP_DOMAIN=__your_kamailio_server_ip__ DBENGINE=MYSQL DBRWPW="kamailiorw"
NOTE : you can use character set latin1 if asked during database creation.
Once you are done updating kamctlrc file, run the script to create the database used by Kamailio: /usr/local/sbin/kamdbctl create
Whenever wanting to start kamailio with default config file (/usr/local/etc/kamailio/kamailio.cfg): kamailio
To stop kamailio: killall kamailio
Test if kamailio is running: ps auxw | grep kamailio
sudo apt update sudo apt install build-essential apt-get install vim git-core make autoconf pkg-config psmisc apt-get install gcc g++ flex bison apt-get install default-mysql-server default-libmysqlclient-dev libssl-dev apt-get install sipsak ngrep sngrep sipgrep
mkdir -p /usr/local/src/kamailio-5.6 cd /usr/local/src/kamailio-5.6
git clone --depth 1 --no-single-branch https://github.com/kamailio/kamailio kamailio cd kamailio git checkout -b 5.6 origin/5.6
make include_modules="db_mysql tls" cfg make all make install
vim /usr/local/etc/kamailio/kamctlrc
Locate SIP_DOMAIN , DBENGINE and DBRWPW variables, uncomment and set it to MYSQL :
SIP_DOMAIN=__your_kamailio_server_ip__ DBENGINE=MYSQL DBRWPW="kamailiorw"
NOTE : you can use character set latin1 if asked during database creation.
Once you are done updating kamctlrc file, run the script to create the database used by Kamailio: /usr/local/sbin/kamdbctl create
Whenever wanting to start kamailio with default config file (/usr/local/etc/kamailio/kamailio.cfg): kamailio
To stop kamailio: killall kamailio
Test if kamailio is running: ps auxw | grep kamailio