diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-27 18:36:56 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-27 18:36:56 +0000 |
commit | 6d58ad631bc9d7a8f495a04bd46a27649167967c (patch) | |
tree | e73b21ce00cce539b4818368078af4c42932bea0 | |
parent | c7ff07774d716c394bb65973a494edf6ce553f18 (diff) |
Fix another problem in voicemail with missing symbols.
Issue 10074, patch by kryptolus, extended to include #if 0'd blocks (just in case)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72182 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_voicemail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index dc23120c8..2c0ce53a8 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -8126,7 +8126,7 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re /* User has hung up, no options to give */ if (!outsidecaller) { /* user was recording a greeting and they hung up, so let's delete the recording. */ - vm_delete(tempfile); + ast_filedelete(tempfile, NULL); } return cmd; } @@ -8141,14 +8141,14 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Message too short\n"); cmd = ast_play_and_wait(chan, "vm-tooshort"); - cmd = vm_delete(tempfile); + cmd = ast_filedelete(tempfile, NULL); break; } else if (vmu->review && (cmd == 2 && *duration < (maxsilence + 3))) { /* Message is all silence */ if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Nothing recorded\n"); - cmd = vm_delete(tempfile); + cmd = ast_filedelete(tempfile, NULL); cmd = ast_play_and_wait(chan, "vm-nothingrecorded"); if (!cmd) cmd = ast_play_and_wait(chan, "vm-speakup"); @@ -8177,7 +8177,7 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re case '*': /* Cancel recording, delete message, offer to take another message*/ cmd = ast_play_and_wait(chan, "vm-deleted"); - cmd = vm_delete(tempfile); + cmd = ast_filedelete(tempfile, NULL); if (outsidecaller) { res = vm_exec(chan, NULL); return res; |