diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 881f33f35..53d6b5e75 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6176,14 +6176,6 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc else if (vms->curmsg == vms->lastmsg) res = wait_file2(chan, vms, "vm-last"); /* "last" */ - snprintf(filename, sizeof(filename), "%s.txt", vms->fn); - RETRIEVE(vms->curdir, vms->curmsg, vmu->mailbox, vmu->context); - msg_cfg = ast_config_load(filename, config_flags); - if (!msg_cfg) { - ast_log(LOG_WARNING, "No message attribute file?!! (%s)\n", filename); - return 0; - } - /* POLISH syntax */ if (!strncasecmp(chan->language, "pl", 2)) { if (vms->curmsg && (vms->curmsg != vms->lastmsg)) { @@ -6231,11 +6223,6 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc if (!res) { res = ast_say_number(chan, vms->curmsg + 1, AST_DIGIT_ANY, chan->language, NULL); } - if (vms->curmsg && (vms->curmsg != vms->lastmsg)) { - if (!res) { - res = ast_say_number(chan, vms->curmsg + 1, AST_DIGIT_ANY, chan->language, NULL); - } - } } } |