[Home]

Summary:ASTERISK-20207: Asterisk should clear out any .lock files in the voice mail directory on startup.
Reporter:Steven Wheeler (swheeler)Labels:
Date Opened:2012-08-09 09:58:24Date Closed:2019-10-07 15:45:05
Priority:MinorRegression?
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:1.8.14.1 13.18.4 Frequency of
Occurrence
Related
Issues:
is a clone ofASTERISK-28567 Problem with ASTERISK-20207: Asterisk should clear out any .lock files in the voice mail directory on startup.
is related toASTERISK-28453 Voicemail: Failed to Lock Path: File Exists
Environment:Attachments:
Description:We recently experienced a segfault while a user was accessing their voice mail messages.  This resulted in Asterisk leaving behind a .lock file in the user's voice mail directories.  This prevented them from accessing their voice mail or receiving new voice mails until we noticed it.  Can Asterisk automatically delete these lock files when it starts up?
Comments:By: Friendly Automation (friendly-automation) 2019-04-12 10:01:33.519-0500

Change 11246 merged by Friendly Automation:
app_voicemail: Cleanup stale lock files on module load

[https://gerrit.asterisk.org/c/asterisk/+/11246|https://gerrit.asterisk.org/c/asterisk/+/11246]

By: Friendly Automation (friendly-automation) 2019-04-12 10:02:31.394-0500

Change 11248 merged by Friendly Automation:
app_voicemail: Cleanup stale lock files on module load

[https://gerrit.asterisk.org/c/asterisk/+/11248|https://gerrit.asterisk.org/c/asterisk/+/11248]

By: Friendly Automation (friendly-automation) 2019-04-12 11:11:53.579-0500

Change 11247 merged by George Joseph:
app_voicemail: Cleanup stale lock files on module load

[https://gerrit.asterisk.org/c/asterisk/+/11247|https://gerrit.asterisk.org/c/asterisk/+/11247]

By: Sean Bright (seanbright) 2019-10-07 14:44:19.690-0500

Note that this change is being reverted. There are many ways to configure Asterisk's voicemail directory (on an NFS drive, shared between two or more Asterisk instances, etc.) and automatically deleting {{.lock}} files can potentially break installations and will not necessarily be the correct thing to do in all cases.

Ideally Asterisk should not crash, but if it does it will continue to be the responsibility of the system administrator to clean up stale lock files.