opensips debugging of errors and the corresponding solutions summary

Start when you run opensipsctl  ERROR: File /var/run/opensips.pid PID does not exist - OpenSIPS Start failed The error.

General opensips errors we need to look at the cause of the error from the / var / log / syslog inside.

Sure enough, there in syslog

Jun 11 10:25:08 szty-Inspiron-3847 /usr/local/sbin/opensips[3062]: ERROR:uri:db_checks_fixup1: configuration error - no database URL is configured!
Jun 11 10:25:08 szty-Inspiron-3847 /usr/local/sbin/opensips[3062]: ERROR:core:fix_actions: fixing failed (code=-6) at /usr/local//etc/opensips/opensips.cfg:372

 Then modify the configuration opensips.cfg

#### URI module
loadmodule "uri.so"
modparam("uri", "use_uri_table", 0)
modparam("uri", "db_url","mysql://opensips:[email protected]/opensips")


Guess you like

Origin blog.csdn.net/dxh040431104/article/details/46454573