]> 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:29:11 +0000 (11:29 -0600)
commit54b41fcfd200c4d84d2b7264e553c2883e2ec105
tree44c8f959d729a3e038bb7d18243947c6db3d1846
parent530e89655e9821f66c05a659e10e24dcbbfb0562
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