Merge "app_voicemail: VoiceMailPlayMsg did not play database stored messages"

changes/54/4654/3
zuul 8 years ago committed by Gerrit Code Review
commit 9498ad8361

@ -11204,7 +11204,6 @@ static int play_message_by_id_helper(struct ast_channel *chan,
/* Found the msg, so play it back */ /* 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);
make_file(vms->fn, sizeof(vms->fn), vms->curdir, vms->curmsg);
#ifdef IMAP_STORAGE #ifdef IMAP_STORAGE
/*IMAP storage stores any prepended message from a forward /*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); wait_file(chan, vms, vms->introfn);
} }
#endif #endif
RETRIEVE(vms->curdir,vms->curmsg,vmu->mailbox, vmu->context);
if ((wait_file(chan, vms, vms->fn)) < 0) { if ((wait_file(chan, vms, vms->fn)) < 0) {
ast_log(AST_LOG_WARNING, "Playback of message %s failed\n", vms->fn); ast_log(AST_LOG_WARNING, "Playback of message %s failed\n", vms->fn);
} else { } else {
@ -11225,7 +11226,7 @@ static int play_message_by_id_helper(struct ast_channel *chan,
ast_mutex_unlock(&vms->lock); ast_mutex_unlock(&vms->lock);
#endif #endif
} }
DISPOSE(vms->curdir, vms->curmsg);
return 0; return 0;
} }

Loading…
Cancel
Save