]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do not play goodbye prompt after timeout of message review.
authorJeff Peeler <jpeeler@digium.com>
Wed, 28 Apr 2010 17:13:29 +0000 (17:13 +0000)
committerJeff Peeler <jpeeler@digium.com>
Wed, 28 Apr 2010 17:13:29 +0000 (17:13 +0000)
ABE-2124

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@259664 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index cfd0d6528e66127daf46760d5af760d2d5a27100..c8bf5b4dcbd2dd6dd8195c94018c90ba0cbb775e 100644 (file)
@@ -9538,10 +9538,10 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
                        }
                }
        }
-       if (outsidecaller)
-               ast_play_and_wait(chan, "vm-goodbye");
        if (cmd == 't')
                cmd = 0;
+       else if (outsidecaller) /* won't play if time out occurs */
+               ast_play_and_wait(chan, "vm-goodbye");
        return cmd;
 }