chkconfig iptables off
chkconfig ip6tables off
service iptables stop
service ip6tables stop
vi /etc/selinux/config
Find the line that says SELINUX=enforcing and change it to SELINUX=disabled.
reboot
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
yum install mysql-devel install bison bison-devel flex flex-devel
cd /usr/src
tar xvf kamailio-3.1.4.tar.gz
cd kamailio-3.1.4
make prefix=/ include_modules="db_mysql" all
make prefix=/ include_modules="db_mysql" all install
1、vi /etc/kamailio/kamctlrc
Uncomment SIP_DOMAIN=domain.com and set it to your server's domain (in my case, it is kamailio.local)
Uncomment DBENGINE=MYSQL
Enter in your MySQL root password when prompted, and answer 'y' to both of the questions you are asked.
Now we need to configure Kamailio to use MySQL authentication. We do this by uncommenting some lines in the /etc/kamailio/kamailio.cfg.
/sbin/kamdbctl create
kamctl start
mysql -u root -p
use openser
SET PASSWORD FOR 'openser'@'localhost' = PASSWORD( '***********' )
kamctl add 1000 12345
kamctl add 1001 12345
chkconfig ip6tables off
service iptables stop
service ip6tables stop
vi /etc/selinux/config
Find the line that says SELINUX=enforcing and change it to SELINUX=disabled.
reboot
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
yum install mysql-devel install bison bison-devel flex flex-devel
cd /usr/src
tar xvf kamailio-3.1.4.tar.gz
cd kamailio-3.1.4
make prefix=/ include_modules="db_mysql" all
make prefix=/ include_modules="db_mysql" all install
1、vi /etc/kamailio/kamctlrc
Uncomment SIP_DOMAIN=domain.com and set it to your server's domain (in my case, it is kamailio.local)
Uncomment DBENGINE=MYSQL
Enter in your MySQL root password when prompted, and answer 'y' to both of the questions you are asked.
Now we need to configure Kamailio to use MySQL authentication. We do this by uncommenting some lines in the /etc/kamailio/kamailio.cfg.
/sbin/kamdbctl create
kamctl start
mysql -u root -p
use openser
SET PASSWORD FOR 'openser'@'localhost' = PASSWORD( '***********' )
kamctl add 1000 12345
kamctl add 1001 12345
使用上面的命令添加两个用户 1000和1001 密码都是1234
接下来就可以注册分机互打了