projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
792beb4
)
The variable msgnum was being overwritten if IMAP storage was enabled.
author
Mark Michelson
<mmichelson@digium.com>
Tue, 26 Jun 2007 22:45:16 +0000
(22:45 +0000)
committer
Mark Michelson
<mmichelson@digium.com>
Tue, 26 Jun 2007 22:45:16 +0000
(22:45 +0000)
Put necessary #ifndef's around the line which would overwrite.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71952
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_voicemail.c
patch
|
blob
|
history
diff --git
a/apps/app_voicemail.c
b/apps/app_voicemail.c
index
665bd4e
..
fd03a8e
100644
(file)
--- a/
apps/app_voicemail.c
+++ b/
apps/app_voicemail.c
@@
-3232,7
+3232,9
@@
static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
ast_destroy_realtime("voicemail_data", "id", tmpid, NULL);
}
} else {
+#ifndef IMAP_STORAGE
msgnum = last_message_index(vmu, dir) + 1;
+#endif
make_file(fn, sizeof(fn), dir, msgnum);
/* assign a variable with the name of the voicemail file */