mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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/branches/1.4@89540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4611,7 +4611,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;
|
||||
|
Reference in New Issue
Block a user