summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2007-06-26 22:45:16 +0000
committerMark Michelson <mmichelson@digium.com>2007-06-26 22:45:16 +0000
commit27654c6a763681b9830bf799e6534b5f8e4db2e8 (patch)
tree55c756d8707353e71b7691bb08586493e7906805 /apps/app_voicemail.c
parent792beb468626815d56bb8e016022738766443ad7 (diff)
The variable msgnum was being overwritten if IMAP storage was enabled.
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
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 665bd4eb3..fd03a8ec0 100644
--- 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 */