我刚刚安装了新的Ubuntu 16.10服务器发行版,并开始安装Kamailio。修复一些db create errors(MEDIUMTEXT不支持MySQL 5.7中的默认值)后,我尝试启动该服务。来自journalctl报告了以下错误:
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 292, column 30: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <acc> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 293, column 37: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <acc> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 295, column 73: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <acc> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 296, column 45: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <usrloc> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 310, column 75: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <usrloc> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 311, column 32: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <usrloc> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 312, column 35: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <auth_db> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 318, column 76: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <auth_db> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 319, column 41: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <auth_db> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 320, column 50: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <auth_db> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 321, column 43: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <auth_db> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 322, column 36: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <rtpproxy> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 363, column 77: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <nathelper> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 366, column 45: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <nathelper> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 367, column 43: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <nathelper> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 368, column 41: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <nathelper> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 369, column 64: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <nathelper|registrar> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 372, column 65: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <usrloc> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 373, column 34: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <tls> found
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 379, column 50: Can't set module parameter
kamailio[5177]: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command is_method (params 1)
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 418, column 24: unknown command, missing loadmodule?
kamailio[5177]: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command t_check_trans (params 0)
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 420, column 21: unknown command, missing loadmodule?
kamailio[5177]: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command t_relay (params 0)
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 421, column 12: unknown command, missing loadmodule?
kamailio[5177]: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command t_check_trans (params 0)
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 425, column 16: unknown command, missing loadmodule?
kamailio[5177]: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command remove_hf (params 1)
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 432, column 19: unknown command, missing loadmodule?
kamailio[5177]: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command is_method (params 1)
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 433, column 34: unknown command, missing loadmodule?
kamailio[5177]: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command record_route (params 0)
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 434, column 16: unknown command, missing loadmodule?
kamailio[5177]: ERROR: <core> [cfg.y:3228]: yyparse(): cfg. parser: failed to find command is_method (params 1)
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 437, column 24: unknown command, missing loadmodule?
kamailio[5177]: ERROR: <core> [pvapi.c:828]: pv_parse_spec2(): error searching pvar "rU"
kamailio[5177]: ERROR: <core> [pvapi.c:1031]: pv_parse_spec2(): wrong char [U/85] in [$rU] at [2 (0)]
kamailio[5177]: : <core> [cfg.y:3365]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 453, column 6-8: Can't get from cache: $rU
kamailio[5177]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
polkitd(authority=local)[1602]: Unregistered Authentication Agent for unix-process:5167:439835 (system bus name :1.32, object path /org/freedesktop/PolicyKit1/AuthenticationAgent,
感谢任何帮助。
答案 0 :(得分:1)
它总是以这种方式发生......我会搜索并搜索答案,最后放弃并发布问题,然后找到答案。
在这种情况下,答案是修改kamailio.cfg文件中的mpath =变量以指向正确的位置。
答案 1 :(得分:0)
您正在为尚未加载到configure和/或未编译的模块设置参数。
示例:
kamailio[5177]: : <core> [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 292, column 30: Can't set module parameter
kamailio[5177]: ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <acc> found
您的配置中是否有一行如下所示?如果这样做,那就是您没有编译模块。
loadmodule "acc"
如果是从源代码安装的,请查看文档中提到的修改modules.lst文件,并且在“全部制作”之前需要包含打算使用的模块。
如果是从apt安装的。执行“ apt-cache搜索kamailio”以查看软件包列表。然后安装缺少的软件包。
示例(此软件包包含acc模块):
apt install kamailio-berkeley-modules
您可以使用Ubuntu软件包搜索(https://packages.ubuntu.com/)查找哪些软件包也包含您缺少的模块。