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
This commit is contained in:
Mark Michelson 2007-06-26 22:45:16 +00:00
parent 792beb4686
commit 27654c6a76
1 changed files with 2 additions and 0 deletions

View File

@ -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 */