[svn-commits] lmadsen: branch 1.8 r319367 - /branches/1.8/apps/app_voicemail.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue May 17 07:53:55 CDT 2011


Author: lmadsen
Date: Tue May 17 07:53:50 2011
New Revision: 319367

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=319367
Log:
Don't create [general] voicemail context when using users.conf

Prior to this patch, app_voicemail would create a [general] context when parsing users.conf.

(closes issue #18891)
Reported by: pdugas
Patches: 
      app_voicemail-ignore-general.patch uploaded by pdugas (license 1222)
      app_voicemail-ignore-general-style-guidelines.patch uploaded by seanbright (license 71)
Tested by: pdugas

Modified:
    branches/1.8/apps/app_voicemail.c

Modified: branches/1.8/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_voicemail.c?view=diff&rev=319367&r1=319366&r2=319367
==============================================================================
--- branches/1.8/apps/app_voicemail.c (original)
+++ branches/1.8/apps/app_voicemail.c Tue May 17 07:53:50 2011
@@ -12140,6 +12140,9 @@
 
 		if (ucfg) {	
 			for (cat = ast_category_browse(ucfg, NULL); cat ; cat = ast_category_browse(ucfg, cat)) {
+				if (!strcasecmp(cat, "general")) {
+					continue;
+				}
 				if (!ast_true(ast_config_option(ucfg, cat, "hasvoicemail")))
 					continue;
 				if ((current = find_or_create(userscontext, cat))) {




More information about the svn-commits mailing list