]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure that res_smdi loads regardless of configuration, since chan_dahdi depends...
authorOlle Johansson <oej@edvina.net>
Wed, 10 Feb 2010 08:24:34 +0000 (08:24 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 10 Feb 2010 08:24:34 +0000 (08:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@245909 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_smdi.c

index 55179d78dc4219d058d70f311f0a8852c0a1fda0..447eefaa61167f1b8630da754840e6bfc81a94e7 100644 (file)
@@ -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;