aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-30 21:46:29 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-30 21:46:29 +0000
commit0e57bff160dd9037ec3161118189da260b2ef962 (patch)
tree4671be50068a09b43b7d8573b9eca1b353ca5c5a /apps/app_voicemail.c
parentc17d546cfdf870c302fef68f35bc6a0aa1035132 (diff)
If messages is deleted, don't send it (bug #2957)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4360 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-xapps/app_voicemail.c8
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)