]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: Fix phantom voicemail bug on rerecord
authorNaveen Albert <asterisk@phreaknet.org>
Sun, 24 Oct 2021 12:31:37 +0000 (12:31 +0000)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 8 Nov 2021 17:28:36 +0000 (11:28 -0600)
commit656880a4b193d7081e9643d75c18d1f86524bd26
treea62dd817aba9df7623d110be05e10ded4705fd12
parentcf422d35a5508819bd9e0c9654490301a59dadc4
app_voicemail: Fix phantom voicemail bug on rerecord

If users are able to press # for options while leaving
a message and then press 3 to rerecord the message, if
the caller hangs up during the rerecord prompt but before
Asterisk starts recording a message, then an "empty"
voicemail gets processed whereby an email gets sent out
notifying the user of a 0:00 duration message. The file
doesn't actually exist, so playback will fail since there
was no message to begin with.

This adds a check after the streaming of the rerecord
announcement to see if the caller has hung up. If so,
we bail out early so that we can clean up properly.

ASTERISK-29391 #close

Change-Id: Id965d72759a2fd3b39afb76fec08aaebebe75c31
apps/app_voicemail.c