diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 36ca228bf..cbb7d67e7 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"); |