]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Thu, 3 Aug 2006 06:03:31 +0000 (06:03 +0000)
committerAutomerge script <automerge@asterisk.org>
Thu, 3 Aug 2006 06:03:31 +0000 (06:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@38784 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 36ca228bf5550b489e165bb78c039876f4642818..cbb7d67e7f7a084a64f7f0820e251c8e796a36f6 100644 (file)
@@ -4380,7 +4380,7 @@ static int vm_intro_nl(struct ast_channel *chan,struct vm_state *vms)
                if (vms->newmessages) {
                        res = say_and_wait(chan, vms->newmessages, chan->language);
                        if (!res) {
-                               if (vms->oldmessages == 1)
+                               if (vms->newmessages == 1)
                                        res = ast_play_and_wait(chan, "vm-INBOXs");
                                else
                                        res = ast_play_and_wait(chan, "vm-INBOX");