]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix build for non-IMAP builds
authorMark Michelson <mmichelson@digium.com>
Thu, 14 Feb 2008 21:03:02 +0000 (21:03 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 14 Feb 2008 21:03:02 +0000 (21:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103690 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 3d78ef407866a651ae2e79f05e2a45e07d2d93a2..dd9fb4d7e3f0a518ce8eb86d9947077013bf2d35 100644 (file)
@@ -3172,7 +3172,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);
                                        }
                                }