From: Mark Michelson Date: Thu, 14 Feb 2008 21:03:02 +0000 (+0000) Subject: Fix build for non-IMAP builds X-Git-Tag: 1.4.19~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d470a0525ff3c6d764dbe21a2ce87a99bc6dac3;p=thirdparty%2Fasterisk.git Fix build for non-IMAP builds git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103690 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 3d78ef4078..dd9fb4d7e3 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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); } }