Merged revisions 259664 via svnmerge from
authorJeff Peeler <jpeeler@digium.com>
Wed, 28 Apr 2010 17:18:43 +0000 (17:18 +0000)
committerJeff Peeler <jpeeler@digium.com>
Wed, 28 Apr 2010 17:18:43 +0000 (17:18 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r259664 | jpeeler | 2010-04-28 12:13:29 -0500 (Wed, 28 Apr 2010) | 4 lines

  Do not play goodbye prompt after timeout of message review.

  ABE-2124
........

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

apps/app_voicemail.c

index bed193d..fe6ec71 100644 (file)
@@ -12991,10 +12991,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;
 }