[OpenSIPS-Devel] [OpenSIPS/opensips] d19bc1: usrloc: Fix some incorrect startup checks

Liviu Chircu noreply at github.com
Wed Sep 25 12:27:15 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d19bc1b135d684fc2977a5674db052cfef83015c
      https://github.com/OpenSIPS/opensips/commit/d19bc1b135d684fc2977a5674db052cfef83015c
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-09-25 (Wed, 25 Sep 2019)

  Changed paths:
    M modules/usrloc/ul_mod.c

  Log Message:
  -----------
  usrloc: Fix some incorrect startup checks

On some misconfigured scripts (e.g. DB usrloc + db_url modparam, but
without any SQL DB module loaded), the module would report some strange
errors, instead of the more intuitive:

WARNING:core:solve_module_dependencies: module usrloc depends on an
 sqldb module due to modparam working_mode_preset, but none was loaded!
ERROR:core:main: failed to solve module dependencies

Thanks to Vlad Pătrașcu for the catch!

(cherry picked from commit 0b55ca32e74ec5d9b488de3226ba7ffe1d387764)





More information about the Devel mailing list