diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-11 07:18:16 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-11 07:18:16 +0000 |
commit | bd13cf86226f87f9770bbb749017d46a44fb633e (patch) | |
tree | 5cffd9a4760872f006844d3c19aee633bc014421 | |
parent | 56a93496136ee0eedddda08094cb38b0ccc83684 (diff) |
fix temp greetings with ODBC storage (issue #6078)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7976 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 9c047548f..4fde2c580 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4764,13 +4764,14 @@ static int vm_tempgreeting(struct ast_channel *chan, struct ast_vm_user *vmu, st while((cmd >= 0) && (cmd != 't')) { if (cmd) retries = 0; + RETRIEVE(prefile, -1); if (ast_fileexists(prefile, NULL, NULL) > 0) { switch (cmd) { case '1': cmd = play_record_review(chan,"vm-rec-temp",prefile, maxgreet, fmtc, 0, vmu, &duration, NULL, record_gain); break; case '2': - ast_filedelete(prefile, NULL); + DELETE(prefile, -1, prefile); ast_play_and_wait(chan,"vm-tempremoved"); cmd = 't'; break; @@ -4794,6 +4795,7 @@ static int vm_tempgreeting(struct ast_channel *chan, struct ast_vm_user *vmu, st play_record_review(chan,"vm-rec-temp",prefile, maxgreet, fmtc, 0, vmu, &duration, NULL, record_gain); cmd = 't'; } + DISPOSE(prefile, -1); } if (cmd == 't') cmd = 0; |