From: Olle Johansson Date: Wed, 10 Feb 2010 08:24:34 +0000 (+0000) Subject: Make sure that res_smdi loads regardless of configuration, since chan_dahdi depends... X-Git-Tag: 1.4.30-rc3~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b279512253297214ea195e19f3a771edb3c1c7f6;p=thirdparty%2Fasterisk.git Make sure that res_smdi loads regardless of configuration, since chan_dahdi depends on res_smdi git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@245909 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_smdi.c b/res/res_smdi.c index 55179d78dc..447eefaa61 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;