Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 147997) +++ apps/app_voicemail.c (working copy) @@ -6493,8 +6493,10 @@ /* 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 @@ 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)