diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-24 06:24:46 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-24 06:24:46 +0000 |
commit | b0d83789106a52ff1b75b6b14c2d16711ac10d77 (patch) | |
tree | 61862754b1a4a8ccce61c0fb81e8c48e5ee82d37 /apps/app_voicemail.c | |
parent | eac58d0fb3ea9fa5b6c379fb244b073c97a588f0 (diff) |
Merged revisions 89540 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r89540 | tilghman | 2007-11-24 00:19:23 -0600 (Sat, 24 Nov 2007) | 9 lines
Currently, zero-length voicemail messages cause a hangup in VoicemailMain.
This change fixes the problem, with a multi-faceted approach. First, we
do our best to avoid these messages from being created in the first place,
and second, if that fails, we detect when the voicemail message is
zero-length and avoid exiting at that point.
Reported by: dtyoo
Patch by: gkloepfer,tilghman
(Closes issue #11083)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 1ae60edda..3b1b25b60 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4851,7 +4851,10 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc if (!res) { make_file(vms->fn, sizeof(vms->fn), vms->curdir, vms->curmsg); vms->heard[vms->curmsg] = 1; - res = wait_file(chan, vms, vms->fn); + if ((res = wait_file(chan, vms, vms->fn)) < 0) { + ast_log(LOG_WARNING, "Playback of message %s failed\n", vms->fn); + res = 0; + } } DISPOSE(vms->curdir, vms->curmsg); return res; |