[svn-commits] mmichelson: branch 1.4 r141267 - /branches/1.4/apps/app_voicemail.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Sep 5 11:35:54 CDT 2008
Author: mmichelson
Date: Fri Sep 5 11:35:54 2008
New Revision: 141267
URL: http://svn.digium.com/view/asterisk?view=rev&rev=141267
Log:
Since greetings are not stored in IMAP, we should
not be DISPOSE'ing of them the same way we do with
other messages.
(closes issue #13414)
Reported by: mthomasslo
Patches:
13414v2.patch uploaded by putnopvut (license 60)
Tested by: mthomasslo
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=141267&r1=141266&r2=141267
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Fri Sep 5 11:35:54 2008
@@ -2704,8 +2704,16 @@
if (msgnum > -1) {
snprintf(msgnums, sizeof(msgnums), "%d", msgnum);
make_file(fn, sizeof(fn), dir, msgnum);
- } else
+ } else {
+#ifndef IMAP_STORAGE
ast_copy_string(fn, dir, sizeof(fn));
+#else
+ /*IMAP stores greetings locally so it should not
+ * try to dispose of them
+ */
+ return 0;
+#endif
+ }
ast_filedelete(fn, NULL);
snprintf(full_fn, sizeof(full_fn), "%s.txt", fn);
unlink(full_fn);
More information about the svn-commits
mailing list