aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-01 11:03:09 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-01 11:03:09 +0000
commit76c2a95e9a62b4f6d8ed88af37c28e92b92dc2a1 (patch)
treeea475a21bff6400a36574ce07403ad13bba66a36 /apps
parentef9e1e9d832c380c8a615a8bf3ef1a31430262ce (diff)
Minor voicemail fixup (related to 4800, but not the fix yet)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6249 f38db490-d61c-443f-a65b-d21fe96a405b
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");
}