1.8 branch R9062
Jun 11 16:50:36 [19224] ERROR:core:set_mod_param_regex: parameter <blacklist_timeout> not found in module <dns_cache>
Jun 11 16:50:36 [19224] CRITICAL:core:yyerror: parse error in config file /usr/local/opensips/etc/opensips/opensips.cfg, line 95, column 19-20: Parameter <blacklist_timeout> not found in module <dns_cache> - can't set
Jun 11 16:50:36 [19224] ERROR:core:main: bad config file (1 errors)
Please post the cfg line where you set the blacklist_timeout parameter.
modparam("dns_cache", "cachedb_url","local://");
modparam("dns_cache", "blacklist_timeout","7200"); # 2 hours
And from the logs:
Jun 11 18:54:24 [575] DBG:core:set_mod_param_regex: found <db_url> in module load_balancer [/usr/local/opensips//lib64/opensips/modules/]
Jun 11 18:54:24 [575] DBG:core:set_mod_param_regex: dns_cache matches module dns_cache
Jun 11 18:54:24 [575] DBG:core:set_mod_param_regex: found <cachedb_url> in module dns_cache [/usr/local/opensips//lib64/opensips/modules/]
Jun 11 18:54:24 [575] DBG:core:set_mod_param_regex: dns_cache matches module dns_cache
Jun 11 18:54:24 [575] ERROR:core:set_mod_param_regex: parameter <blacklist_timeout> not found in module <dns_cache>
Jun 11 18:54:24 [575] CRITICAL:core:yyerror: parse error in config file /usr/local/opensips/etc/opensips/opensips.cfg, line 95, column 19-20: Parameter <blacklist_timeout> not found in module <dns_cache> - can't set
It seems to be an error in docs - the blacklist_timeout param is an integer, not a string, so try :
modparam("dns_cache", "blacklist_timeout", 7200); # 2 hours
Regards,
Bogdan
Yep that worked, thanks!
OK, I updated the example in the docs to avoid future confusions.
Bogdan