[asterisk-commits] mmichelson: branch 10 r373737 - in /branches/10: ./ apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 25 16:12:44 CDT 2012
Author: mmichelson
Date: Tue Sep 25 16:12:40 2012
New Revision: 373737
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=373737
Log:
Fix error where improper IMAP greetings would be deleted.
(closes issue ASTERISK-20435)
Reported by: fhackenberger
Patches:
asterisk-20435-imap-del-greeting.diff uploaded by Michael L. Young (License #5026)
(with suggested modification made by me)
........
Merged revisions 373735 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/apps/app_voicemail.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/apps/app_voicemail.c?view=diff&rev=373737&r1=373736&r2=373737
==============================================================================
--- branches/10/apps/app_voicemail.c (original)
+++ branches/10/apps/app_voicemail.c Tue Sep 25 16:12:40 2012
@@ -1809,6 +1809,11 @@
return;
}
+ if (msgnum < 0) {
+ imap_delete_old_greeting(file, vms);
+ return;
+ }
+
/* find real message number based on msgnum */
/* this may be an index into vms->msgArray based on the msgnum. */
messageNum = vms->msgArray[msgnum];
More information about the asterisk-commits
mailing list