[asterisk-commits] bbryant: branch 1.4 r285194 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 7 12:45:47 CDT 2010


Author: bbryant
Date: Tue Sep  7 12:45:41 2010
New Revision: 285194

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=285194
Log:
Fixes voicemail.conf issues where mailboxes with passwords that don't precede a comma would throw unnecessary error messages.

(closes issue #15726)
Reported by: 298
Patches: 
      M15726.diff uploaded by junky (license 177)
Tested by: junky

Review: [full review board URL with trailing slash]

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=285194&r1=285193&r2=285194
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Tue Sep  7 12:45:41 2010
@@ -915,11 +915,12 @@
 				}
 				value = strstr(tmp,",");
 				if (!value) {
-					ast_log(LOG_WARNING, "variable has bad format.\n");
-					break;
+					new = alloca(strlen(newpassword)+1);
+					sprintf(new, "%s", newpassword);
+				} else {
+					new = alloca((strlen(value)+strlen(newpassword)+1));
+					sprintf(new,"%s%s", newpassword, value);
 				}
-				new = alloca((strlen(value)+strlen(newpassword)+1));
-				sprintf(new,"%s%s", newpassword, value);
 				if (!(cat = ast_category_get(cfg, category))) {
 					ast_log(LOG_WARNING, "Failed to get category structure.\n");
 					break;




More information about the asterisk-commits mailing list