opensips启动时报下列错误
[root@OpenSIPS opensips]# opensipsctl start
INFO: Starting OpenSIPS :
ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed
查看日志文件发现有下列错误
May 14 16:08:43 OpenSIPS /sbin/opensips[48245]: ERROR:uri:db_checks_fixup1: configuration error - no database URL is configured!
解决方法:
[root@OpenSIPS opensips]# vim opensips.cfg
#### URI module
loadmodule "uri.so"
modparam("uri", "use_uri_table", 0)
modparam("uri", "db_url",
"mysql://opensips:opensipsrw@192.168.0.28/opensips")
重新启动
[root@OpenSIPS opensips]# opensipsctl start
INFO: Starting OpenSIPS :
INFO: started (pid: 48281)
问题解决