diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-21 15:45:54 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-21 15:45:54 +0000 |
commit | 97ce3dbf31ec080fbaa0374e8096213c360c2c21 (patch) | |
tree | 97ecb9560b65a8c76958e9dbdc45315625750146 /apps | |
parent | 6ba5e74e4b40db25812f0f8fc1814aff3059e874 (diff) |
Suffix is not needed for a match
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@225103 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 2c57e522e..ff577180e 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -8889,29 +8889,19 @@ static int unload_module(void) static int load_module(void) { int res; - char *adsi_loaded = ast_module_helper("", "res_adsi.so", 0, 0, 0, 0); - char *smdi_loaded = ast_module_helper("", "res_smdi.so", 0, 0, 0, 0); + char *adsi_loaded = ast_module_helper("", "res_adsi", 0, 0, 0, 0); + char *smdi_loaded = ast_module_helper("", "res_smdi", 0, 0, 0, 0); free(adsi_loaded); free(smdi_loaded); if (!adsi_loaded) { - /* If embedded, res_adsi may be known as "res_adsi" not "res_adsi.so" */ - adsi_loaded = ast_module_helper("", "res_adsi", 0, 0, 0, 0); - ast_free(adsi_loaded); - if (!adsi_loaded) { - ast_log(LOG_ERROR, "app_voicemail.so depends upon res_adsi.so\n"); - return AST_MODULE_LOAD_DECLINE; - } + ast_log(LOG_ERROR, "app_voicemail.so depends upon res_adsi.so\n"); + return AST_MODULE_LOAD_DECLINE; } if (!smdi_loaded) { - /* If embedded, res_smdi may be known as "res_smdi" not "res_smdi.so" */ - smdi_loaded = ast_module_helper("", "res_smdi", 0, 0, 0, 0); - ast_free(smdi_loaded); - if (!smdi_loaded) { - ast_log(LOG_ERROR, "app_voicemail.so depends upon res_smdi.so\n"); - return AST_MODULE_LOAD_DECLINE; - } + ast_log(LOG_ERROR, "app_voicemail.so depends upon res_smdi.so\n"); + return AST_MODULE_LOAD_DECLINE; } my_umask = umask(0); |