]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
canceled voicemail emails corrupt wav (bug 2957)
authorRussell Bryant <russell@russellbryant.com>
Fri, 3 Dec 2004 01:59:08 +0000 (01:59 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 3 Dec 2004 01:59:08 +0000 (01:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4382 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index d3dcaa0eecdb433cf3db5946ff88ee308c49bbf9..c5c06ca690f26383347233d0130e0964aef116e5 100755 (executable)
@@ -1523,7 +1523,8 @@ 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->callerid);
+                               if (ast_fileexists(fn, NULL, NULL))     
+                                       notify_new_message(chan, vmu, msgnum, duration, fmt, chan->callerid);
                        } else {
                                res = ast_streamfile(chan, "vm-mailboxfull", chan->language);
                                if (!res)