projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8976d39
)
If messages is deleted, don't send it (bug #2957)
author
Mark Spencer
<markster@digium.com>
Tue, 30 Nov 2004 21:46:29 +0000
(21:46 +0000)
committer
Mark Spencer
<markster@digium.com>
Tue, 30 Nov 2004 21:46:29 +0000
(21:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4360
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_voicemail.c
patch
|
blob
|
history
diff --git
a/apps/app_voicemail.c
b/apps/app_voicemail.c
index
61702c2
..
496ca70
100755
(executable)
--- 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)