]> 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:56 +0000 (11:28 -0600)
commit4e514419d9f0eeb1bdbba41a65865cefcd9e8815
tree9e188f6eac02ed6e6e99b4f10942969d12c50680
parentdf9aeea4c89bde47e448dcd58c28b217dbeb26ae
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