在执行opensipsdbctl create报下列错误
root@opensips.clvn.com.cn:~# opensipsdbctl create
ERROR: database engine not specified, please setup one in the config script
解决方法:
1.查看配置文件
root@opensips.clvn.com.cn:~# cd /usr/local/opensips/etc/
root@opensips.clvn.com.cn:/usr/local/opensips/etc# cat opensips/opensipsctlrc | grep DBENGINE
DBENGINE=MYSQL
发现里面指定了数据库为MYSQL
2.进入下列目录执行命令
root@opensips.clvn.com.cn:~# cd /usr/local/opensips/sbin/
root@opensips.clvn.com.cn:/usr/local/opensips/sbin# ./opensipsdbctl create
MySQL password for root:
INFO: test server charset
INFO: creating database opensips ...
INFO: Core OpenSIPS tables succesfully created.
Install presence related tables? (y/n): y
INFO: creating presence tables into opensips ...
INFO: Presence tables succesfully created.
Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist b2b registrant call_center? (y/n): y
INFO: creating extra tables into opensips ...
INFO: Extra tables succesfully created.
问题解决!