Merged revisions 103690 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 14 Feb 2008 21:04:37 +0000 (21:04 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 14 Feb 2008 21:04:37 +0000 (21:04 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103690 | mmichelson | 2008-02-14 15:03:02 -0600 (Thu, 14 Feb 2008) | 3 lines

Fix build for non-IMAP builds

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103691 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 87c339a..f0eef84 100644 (file)
@@ -3402,7 +3402,11 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
                                        }
                                        /* Notification and disposal needs to happen after the copy, though. */
                                        if (ast_fileexists(fn, NULL, NULL)) {
+#ifdef IMAP_STORAGE
                                                notify_new_message(chan, vmu, vms, msgnum, duration, fmt, S_OR(chan->cid.cid_num, NULL), S_OR(chan->cid.cid_name, NULL));
+#else
+                                               notify_new_message(chan, vmu, NULL, msgnum, duration, fmt, S_OR(chan->cid.cid_num, NULL), S_OR(chan->cid.cid_name, NULL));
+#endif
                                                DISPOSE(dir, msgnum);
                                        }
                                }