Always play beep
authorMark Spencer <markster@digium.com>
Sun, 11 May 2003 18:37:41 +0000 (18:37 +0000)
committerMark Spencer <markster@digium.com>
Sun, 11 May 2003 18:37:41 +0000 (18:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@994 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail2.c

index 3e45375..53b7940 100755 (executable)
@@ -769,7 +769,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
                        free_user(vmu);
                        return 0;
                }
-               if (!res && (silent < 2)) {
+               if (res >= 0) {
                        /* Unless we're *really* silent, try to send the beep */
                        res = ast_streamfile(chan, "beep", chan->language);
                        if (!res)