Menu

#534 dns_cache :: can't set blacklist_timeout parameter

1.8.x
closed-fixed
modules (454)
5
2012-06-11
2012-06-11
Anonymous
No

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)

Discussion

  • Bogdan-Andrei Iancu

    Please post the cfg line where you set the blacklist_timeout parameter.

     
  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> bogdan_iancu
     
  • Robert Smith

    Robert Smith - 2012-06-11

    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

     
  • Bogdan-Andrei Iancu

    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

     
  • Robert Smith

    Robert Smith - 2012-06-11

    Yep that worked, thanks!

     
  • Bogdan-Andrei Iancu

    • labels: --> modules
    • status: open --> closed-fixed
     
  • Bogdan-Andrei Iancu

    OK, I updated the example in the docs to avoid future confusions.

    Bogdan

     

Log in to post a comment.