[asterisk-commits] tilghman: branch 1.4 r103556 - /branches/1.4/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 12 18:26:57 CST 2008
Author: tilghman
Date: Tue Feb 12 18:26:57 2008
New Revision: 103556
URL: http://svn.digium.com/view/asterisk?view=rev&rev=103556
Log:
Refuse to load app_voicemail if res_adsi is not loaded (which is a symbol dependency)
(closes issue #11760)
Reported by: non-poster
Patches:
20080114__bug11760.diff.txt uploaded by Corydon76 (license 14)
Tested by: Corydon76, non-poster, jamesgolovich
Modified:
branches/1.4/apps/app_voicemail.c
Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=103556&r1=103555&r2=103556
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Tue Feb 12 18:26:57 2008
@@ -7903,6 +7903,13 @@
static int load_module(void)
{
int res;
+ char *adsi_loaded = ast_module_helper("", "res_adsi.so", 0, 0, 0, 0);
+ free(adsi_loaded);
+ if (!adsi_loaded) {
+ ast_log(LOG_ERROR, "app_voicemail.so depends upon res_adsi.so");
+ return AST_MODULE_LOAD_DECLINE;
+ }
+
my_umask = umask(0);
umask(my_umask);
res = ast_register_application(app, vm_exec, synopsis_vm, descrip_vm);
More information about the asterisk-commits
mailing list