asterisk/apps
Naveen Albert 4e514419d9 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
2021-11-08 11:28:56 -06:00
..
confbridge app_confbridge: New option to prevent answer supervision 2021-06-08 15:42:54 -05:00
Makefile app_voicemail.c: Build all three variants for app_voicemail at the same time 2019-06-28 07:32:03 -06:00
app_adsiprog.c Fixes for GCC 9 2019-05-10 10:22:55 -06:00
app_agent_pool.c config_options: Handle ACO arrays correctly in generated XML docs. 2021-09-02 15:17:31 -05:00
app_alarmreceiver.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
app_amd.c app_amd: Fixed timeout issue 2019-11-19 10:07:44 -05:00
app_attended_transfer.c documentation: Fix non-matching module support levels. 2021-03-16 10:26:16 -05:00
app_audiosocket.c feat: AudioSocket channel, application, and ARI support. 2020-01-14 09:36:44 -06:00
app_authenticate.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_blind_transfer.c documentation: Fix non-matching module support levels. 2021-03-16 10:26:16 -05:00
app_bridgeaddchan.c app_bridgeaddchan.c: Make BridgeAdd be more like Bridge 2020-01-05 21:32:01 -06:00
app_bridgewait.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
app_cdr.c various files - fix some alerts raised by lgtm code analysis 2019-11-18 08:30:45 -06:00
app_celgenuserevent.c loader: Convert reload_classes to built-in modules. 2018-03-14 05:20:12 -04:00
app_chanisavail.c app_chanisavail.c: Simplify dialplan using ChanIsAvail. 2020-01-06 19:11:58 -06:00
app_channelredirect.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
app_chanspy.c app_chanspy: Spyee information missing in ChanSpyStop AMI Event 2020-12-17 14:03:38 -06:00
app_confbridge.c app_confbridge: New ConfKick() application 2021-06-08 18:16:18 -05:00
app_controlplayback.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_db.c module: Remove deprecated modules and update support levels. 2018-07-18 18:15:53 +00:00
app_dial.c app_dial: Expanded A option to add caller announcement 2021-06-23 13:28:32 -05:00
app_dictate.c various files - fix some alerts raised by lgtm code analysis 2019-11-18 08:30:45 -06:00
app_directed_pickup.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
app_directory.c Compiler fixes for GCC with -Og 2020-11-03 17:08:07 -06:00
app_disa.c asterisk: Audit locking of channel when manipulating flags. 2017-05-16 14:25:23 +00:00
app_dtmfstore.c app_dtmfstore: New application to store digits 2021-08-02 14:28:52 -05:00
app_dumpchan.c asterisk: Audit locking of channel when manipulating flags. 2017-05-16 14:25:23 +00:00
app_echo.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_exec.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
app_externalivr.c app_externalivr.c: Fix mixed leading whitespace in source code. 2021-09-21 11:48:49 -05:00
app_festival.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_flash.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_followme.c various files - fix some alerts raised by lgtm code analysis 2019-11-18 08:30:45 -06:00
app_forkcdr.c loader: Convert reload_classes to built-in modules. 2018-03-14 05:20:12 -04:00
app_getcpeid.c app_getcpeid: Add build-time dependency. 2020-04-20 11:03:46 -05:00
app_ivrdemo.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_jack.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_macro.c policy: Deprecate modules and add versions to others. 2021-08-11 08:14:51 -05:00
app_meetme.c policy: Deprecate modules and add versions to others. 2021-08-11 08:14:51 -05:00
app_mf.c app_mf: Add channel agnostic MF sender 2021-09-15 10:07:04 -05:00
app_milliwatt.c app_milliwatt: Timing fix 2021-08-19 11:18:30 -05:00
app_minivm.c various files - fix some alerts raised by lgtm code analysis 2019-11-18 08:30:45 -06:00
app_mixmonitor.c app_mixmonitor: Add AMI events MixMonitorStart, -Stop and -Mute. 2021-02-23 11:40:56 -06:00
app_morsecode.c app_morsecode: Add American Morse code 2021-08-19 10:31:04 -05:00
app_mp3.c app_mp3: Force output to 16 bits in mpg123 2021-09-15 12:13:48 -05:00
app_originate.c app_originate: Add ability to set codecs 2021-08-19 09:08:58 -05:00
app_osplookup.c policy: Deprecate modules and add versions to others. 2021-08-11 08:14:51 -05:00
app_page.c app_page.c: Don't fail to Page if beep sound file is missing 2021-02-26 09:36:25 -06:00
app_playback.c apps/app_playback.c: Add 'mix' option to app_playback 2021-10-21 10:47:02 -05:00
app_playtones.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
app_privacy.c app_privacy: remove unused header asterisk/image.h 2017-08-02 17:08:48 -04:00
app_queue.c app_queue: Add LoginTime field for member in a queue. 2021-10-25 10:31:20 -05:00
app_read.c app_read: Fix null pointer crash 2021-09-30 11:47:32 -05:00
app_readexten.c various files - fix some alerts raised by lgtm code analysis 2019-11-18 08:30:45 -06:00
app_record.c app_record: Do not hang up if beep audio is missing 2020-01-09 05:33:06 -06:00
app_reload.c app_reload: New Reload application 2021-07-15 10:01:55 -05:00
app_saycounted.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_sayunixtime.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_senddtmf.c app_senddtmf: Add receive mode to AMI Action PlayDTMF 2019-11-18 18:09:13 -05:00
app_sendtext.c app_sendtext: Allow content types other than text/plain 2018-06-04 13:20:34 -06:00
app_skel.c astobj2: Remove legacy ao2_container_alloc routine. 2018-11-21 09:56:16 -05:00
app_sms.c Fix GCC 8 build issues. 2018-05-11 09:48:58 -04:00
app_softhangup.c app_softhangup.c: Reduce unnecessary warning to verbose message. 2020-01-05 21:09:03 -06:00
app_speech_utils.c xml: Embed module information into core XML documentation. 2021-03-16 10:30:43 -05:00
app_stack.c app_stack: Include current location if branch fails 2021-09-13 07:56:15 -05:00
app_stasis.c Remove redundant module checks and references. 2018-01-24 13:37:29 -05:00
app_statsd.c Add missing OPTIONAL_API and ARI dependences. 2018-01-22 12:16:58 -05:00
app_stream_echo.c app_stream_echo: Fix state of added streams. 2020-06-19 09:15:44 -05:00
app_system.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_talkdetect.c documentation: Fix non-matching module support levels. 2021-03-16 10:26:16 -05:00
app_test.c Fix GCC 8 build issues. 2018-05-11 09:48:58 -04:00
app_transfer.c chan_pjsip, app_transfer: Add TRANSFERSTATUSPROTOCOL variable 2021-01-27 11:42:42 -06:00
app_userevent.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_verbose.c logger: Add custom logging capabilities 2021-09-21 12:10:21 -05:00
app_voicemail.c app_voicemail: Fix phantom voicemail bug on rerecord 2021-11-08 11:28:56 -06:00
app_voicemail.exports.in Remove some symbol exports that got missed in the removal of global symbols. 2012-06-15 15:33:41 +00:00
app_voicemail_imap.c app_voicemail.c: Build all three variants for app_voicemail at the same time 2019-06-28 07:32:03 -06:00
app_voicemail_imap.exports.in app_voicemail.c: Build all three variants for app_voicemail at the same time 2019-06-28 07:32:03 -06:00
app_voicemail_odbc.c app_voicemail.c: Build all three variants for app_voicemail at the same time 2019-06-28 07:32:03 -06:00
app_voicemail_odbc.exports.in app_voicemail.c: Build all three variants for app_voicemail at the same time 2019-06-28 07:32:03 -06:00
app_waitforcond.c docs: Remove embedded macro in WaitForCond XML documentation. 2021-08-02 12:31:11 -05:00
app_waitforring.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_waitforsilence.c app_waitforsilence: Cleanup & don't treat missing frames as 'noise' 2017-09-06 16:16:19 -05:00
app_waituntil.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
app_while.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
app_zapateller.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
enter.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
leave.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00