diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-10 16:25:31 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-10 16:25:31 +0000 |
commit | 86095d637a6beb5c9cb965a06d1067e60e28ee52 (patch) | |
tree | 5070458137c970f09655e64a95a142889dcd6851 /apps/app_voicemail.c | |
parent | b48cbb3a1ebee0c062c355a226662980130d506b (diff) |
User not notified of temporary greeting, if ODBC storage is in use.
(closes issue #13659)
Reported by: moliveras
Patches:
20081009__bug13659.diff.txt uploaded by Corydon76 (license 14)
Tested by: moliveras
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@148257 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 362043513..f6401b2b5 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6493,8 +6493,10 @@ static int vm_intro(struct ast_channel *chan, struct ast_vm_user *vmu, struct vm /* Notify the user that the temp greeting is set and give them the option to remove it */ snprintf(prefile, sizeof(prefile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, vms->username); if (ast_test_flag(vmu, VM_TEMPGREETWARN)) { + RETRIEVE(prefile, -1, vmu); if (ast_fileexists(prefile, NULL, NULL) > 0) ast_play_and_wait(chan, "vm-tempgreetactive"); + DISPOSE(prefile, -1); } /* Play voicemail intro - syntax is different for different languages */ @@ -6754,8 +6756,10 @@ static int vm_options(struct ast_channel *chan, struct ast_vm_user *vmu, struct default: cmd = 0; snprintf(prefile, sizeof(prefile), "%s%s/%s/temp", VM_SPOOL_DIR, vmu->context, vms->username); + RETRIEVE(prefile, -1, vmu); if (ast_fileexists(prefile, NULL, NULL)) cmd = ast_play_and_wait(chan, "vm-tmpexists"); + DISPOSE(prefile, -1); if (!cmd) cmd = ast_play_and_wait(chan, "vm-options"); if (!cmd) |