在centos系统下编译安装
安装编译环境
1
sudo yum install gcc gcc-c++ flex bison make openssl openssl-devel libxml2 libxml2-devel zlib-devel ncurses* e2fsprogs-devel uuid-devel libuuid-devel readline6 readline-devel curl-devel
安装mysql
1
2
3wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm
rpm -ivh mysql57-community-release-el7-8.noarch.rpm
yum -y install mysql-server下载kamailio源码
1
2wget http://www.kamailio.org/pub/kamailio/latest/src/kamailio-5.2.0_src.tar.gz
tar xvf kamailio-5.2.0_src.tar.gz编译
1
2
3
4cd kamailio-5.2.0
make FLAVOUR=kamailio cfg
make all
sudo make install配置 && 运行
需要为kamailio配置mysql数据库,…..1
2kamctl add user1 123456 //添加用户
kamailio start //启动