summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2017-02-14 16:28:53 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-02-14 16:28:53 -0600
commit730bc7e972fb526438616ccb96ae516c3751fe9a (patch)
tree63fbbb3ae2981f3e7ac4249cf5ab9a1378cf18c2 /apps
parent500b02cb82059e52dd235d56ee31c13404d2a434 (diff)
parent9d34df9a5e5632f03ad53cbc4c6eb58c597cbba1 (diff)
Merge "app_voicemail: VoiceMailPlayMsg did not play database stored messages" into 13
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 5e4df8ea4..ff494d64c 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -11127,7 +11127,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
@@ -11137,6 +11136,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 {
@@ -11148,7 +11149,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;
}