diff options
author | Mark Spencer <markster@digium.com> | 2004-11-30 21:46:29 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-11-30 21:46:29 +0000 |
commit | 3d4abcf751209ac66a328b22a3002cac1768d8aa (patch) | |
tree | 4671be50068a09b43b7d8573b9eca1b353ca5c5a /apps | |
parent | 8976d390510fe35a15aa198fa5e1bc59313ee656 (diff) |
If messages is deleted, don't send it (bug #2957)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 61702c2ae..496ca7017 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2175,9 +2175,11 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int free_user(recip); } } - notify_new_message(chan, vmu, msgnum, duration, fmt, chan->cid.cid_num, chan->cid.cid_name); - STORE(dir, msgnum); - DISPOSE(dir, msgnum); + if (ast_fileexists(fn, NULL, NULL)) { + notify_new_message(chan, vmu, msgnum, duration, fmt, chan->cid.cid_num, chan->cid.cid_name); + STORE(dir, msgnum); + DISPOSE(dir, msgnum); + } } else { res = ast_streamfile(chan, "vm-mailboxfull", chan->language); if (!res) |