aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-07 16:22:11 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-07 16:22:11 +0000
commited3e70108553cff850dc1b77bec87a34dd36b936 (patch)
tree40b02ade92c392b3f7c101af9a7b91837976ef63 /apps/app_voicemail.c
parent7b05c6e3fea9e98e2396a12ea3bfa94e3f82d7b7 (diff)
Warn the user when a temporary greeting exists
(Closes issue #11409) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@106635 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 79e8bf2ea..cdbdfcb71 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -6125,7 +6125,11 @@ static int vm_options(struct ast_channel *chan, struct ast_vm_user *vmu, struct
cmd = 't';
break;
default:
- cmd = ast_play_and_wait(chan,"vm-options");
+ snprintf(prefile, sizeof(prefile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, vms->username);
+ if (ast_fileexists(prefile, NULL, NULL))
+ cmd = ast_play_and_wait(chan, "vm-tmpexists");
+ if (!cmd)
+ cmd = ast_play_and_wait(chan, "vm-options");
if (!cmd)
cmd = ast_waitfordigit(chan,6000);
if (!cmd)