Minor voicemail fixup (related to 4800, but not the fix yet)
authorMark Spencer <markster@digium.com>
Mon, 1 Aug 2005 11:03:09 +0000 (11:03 +0000)
committerMark Spencer <markster@digium.com>
Mon, 1 Aug 2005 11:03:09 +0000 (11:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6249 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 161cd4d..8a1d20f 100755 (executable)
@@ -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");
                                }