diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-07 19:47:42 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-07 19:47:42 +0000 |
commit | 6474f7277a48b116984f7cdf575a50e43b9fb9d9 (patch) | |
tree | adf60c0a03357ec805cb93afe2cd5b0fe3f35804 /apps | |
parent | 6c16710df7be6cfffe764bd4dd10ace30b84afe3 (diff) |
Submitting a fix for Issue 8016. Added a check to make sure that greetings get stored properly.
(Issue 8016, reported by edhorton, patched by alamantia with modification by me. Thanks to Jason Parker
for the advice on this).
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68198 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 4e24114c3..23c3bd253 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -8067,8 +8067,11 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Saving message as is\n"); ast_stream_and_wait(chan, "vm-msgsaved", chan->language, ""); - STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms); - DISPOSE(recordfile, -1); + if (!outsidecaller) + { + STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms); + DISPOSE(recordfile, -1); + } cmd = 't'; return res; } |