centos5.4上安装kamailio-3.1.4笔记 测试通过

74 篇文章 1 订阅
34 篇文章 0 订阅
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


使用上面的命令添加两个用户 1000和1001 密码都是1234

接下来就可以注册分机互打了




















  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值