summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 161cd4d58..8a1d20fb8 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -5051,9 +5051,12 @@ static int vm_execmain(struct ast_channel *chan, void *data)
snprintf(vms.fn, sizeof(vms.fn), "vm-%s", mbox(box));
if (!cmd) {
cmd = ast_play_and_wait(chan, "vm-message");
- cmd = say_and_wait(chan, vms.curmsg + 1, chan->language);
- cmd = ast_play_and_wait(chan, "vm-savedto");
- cmd = vm_play_folder_name(chan, vms.fn);
+ if (!cmd)
+ cmd = say_and_wait(chan, vms.curmsg + 1, chan->language);
+ if (!cmd)
+ cmd = ast_play_and_wait(chan, "vm-savedto");
+ if (!cmd)
+ cmd = vm_play_folder_name(chan, vms.fn);
} else {
cmd = ast_play_and_wait(chan, "vm-mailboxfull");
}