summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2007-06-27 18:37:44 +0000
committerJason Parker <jparker@digium.com>2007-06-27 18:37:44 +0000
commit37ebf4da5484e025a82bd0f1b99d88e992511472 (patch)
tree3ade9ae62bcc2a6ef8175ceaa27a0f13e8c7a29e /apps/app_voicemail.c
parent7feaaaaf040096ee1d9616d8ee256dba50d062b2 (diff)
Merged revisions 72182 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r72182 | qwell | 2007-06-27 13:36:56 -0500 (Wed, 27 Jun 2007) | 4 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@72183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index c90f5e262..7a2744d52 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -8658,7 +8658,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;
}
@@ -8673,14 +8673,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");
@@ -8709,7 +8709,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;