summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2017-02-14 17:18:08 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-02-14 17:18:08 -0600
commit9498ad8361d54c2ccc07b9139d3ddd5c7a92a066 (patch)
tree4d275575ab84e82cd16c0620366691225c57d2d2 /apps
parent4c79dff77544dd785f01fd895d03d9d353d9ed2f (diff)
parent2b245b12d920e319bdb8112c00c76cc54b0485a4 (diff)
Merge "app_voicemail: VoiceMailPlayMsg did not play database stored messages"
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 3016f65ba..ef1c52606 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -11204,7 +11204,6 @@ static int play_message_by_id_helper(struct ast_channel *chan,
/* Found the msg, so play it back */
make_file(vms->fn, sizeof(vms->fn), vms->curdir, vms->curmsg);
- make_file(vms->fn, sizeof(vms->fn), vms->curdir, vms->curmsg);
#ifdef IMAP_STORAGE
/*IMAP storage stores any prepended message from a forward
@@ -11214,6 +11213,8 @@ static int play_message_by_id_helper(struct ast_channel *chan,
wait_file(chan, vms, vms->introfn);
}
#endif
+ RETRIEVE(vms->curdir,vms->curmsg,vmu->mailbox, vmu->context);
+
if ((wait_file(chan, vms, vms->fn)) < 0) {
ast_log(AST_LOG_WARNING, "Playback of message %s failed\n", vms->fn);
} else {
@@ -11225,7 +11226,7 @@ static int play_message_by_id_helper(struct ast_channel *chan,
ast_mutex_unlock(&vms->lock);
#endif
}
-
+ DISPOSE(vms->curdir, vms->curmsg);
return 0;
}