From: Automerge script Date: Thu, 3 Aug 2006 06:03:31 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.11-netsec~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03a63f510a55831268b3a0084c5f592d7fe45e97;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@38784 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 36ca228bf5..cbb7d67e7f 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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");