diff --git a/modules/drouting/drouting.c b/modules/drouting/drouting.c index 55920a6e92..5985114b77 100644 --- a/modules/drouting/drouting.c +++ b/modules/drouting/drouting.c @@ -552,7 +552,6 @@ static module_dependency_t *get_deps_probing_interval(param_export_t *param) static dep_export_t deps = { { /* OpenSIPS module dependencies */ { MOD_TYPE_SQLDB, NULL, DEP_ABORT }, - { MOD_TYPE_DEFAULT, "qrouting", DEP_SILENT }, { MOD_TYPE_NULL, NULL, 0 }, }, { /* modparam dependencies */ diff --git a/modules/qrouting/qrouting.c b/modules/qrouting/qrouting.c index d7085fc22c..a5f2d74a12 100644 --- a/modules/qrouting/qrouting.c +++ b/modules/qrouting/qrouting.c @@ -93,13 +93,26 @@ static mi_export_t mi_cmds[] = { {EMPTY_MI_EXPORT} }; +static dep_export_t deps = { + { /* OpenSIPS module dependencies */ + { MOD_TYPE_SQLDB, NULL, DEP_ABORT }, + { MOD_TYPE_DEFAULT, "drouting", DEP_ABORT }, + { MOD_TYPE_DEFAULT, "tm", DEP_ABORT }, + { MOD_TYPE_DEFAULT, "dialog", DEP_ABORT }, + { MOD_TYPE_NULL, NULL, 0 }, + }, + { /* modparam dependencies */ + { NULL, NULL }, + }, +}; + struct module_exports exports = { "qrouting", MOD_TYPE_DEFAULT,/* class of this module */ MODULE_VERSION, DEFAULT_DLFLAGS, /* dlopen flags */ 0, /* load function */ - 0, /* OpenSIPS module dependencies */ + &deps, /* OpenSIPS module dependencies */ cmds, /* Exported functions */ 0, /* Exported async functions */ params, /* Exported parameters */