aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-10 08:24:34 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-10 08:24:34 +0000
commit3f2377db5ddc6aa9f6e3ff12f598dda394822110 (patch)
treea50feee3adecd0b7ad87b034676fbab6958e53c5 /res
parent5b9518eb9536238010642cb3e1459fd7accaa044 (diff)
Make sure that res_smdi loads regardless of configuration, since chan_dahdi depends on res_smdi
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@245909 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_smdi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/res/res_smdi.c b/res/res_smdi.c
index 55179d78d..447eefaa6 100644
--- a/res/res_smdi.c
+++ b/res/res_smdi.c
@@ -1361,9 +1361,11 @@ static int load_module(void)
unload_module();
return res;
} else if (res == 1) {
- unload_module();
ast_log(LOG_WARNING, "No SMDI interfaces are available to listen on, not starting SMDI listener.\n");
- return AST_MODULE_LOAD_DECLINE;
+ /*! \note Since chan_dahdi depends on this module, we need to load the module in inactive state
+ instead of AST_MODULE_LOAD_DECLINE. This is fixed in later releases of Asterisk.
+ */
+ return AST_MODULE_LOAD_SUCCESS;
}
return 0;