From 12eae91fa66d4c00009b227d6e8f54ff962d4829 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Fri, 3 Oct 2014 13:50:05 +0200 Subject: [PATCH] Only play empty-dir if starting. --- apps/app_voicemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 6c5e162..057fb1b 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -7839,8 +7839,8 @@ static int vm_execmain(struct ast_channel *chan, void *data) adsi_status(chan, &vms); break; default: /* Nothing */ - ast_log(LOG_NOTICE, "+++++ default action, play instructions\n"); - if (!vms.oldmessages && !vms.newmessages) { + ast_log(LOG_NOTICE, "+++++ default action, play instructions, starting=%d\n", vms.starting); + if (vms.starting && !vms.oldmessages && !vms.newmessages) { if(!strcasecmp(chan->language, "ro")) { ast_play_and_wait(chan, "vm-dir-empty"); } else {