[Home]

Summary:ASTERISK-29060: app_voicemail: No error/warning is provided if mailcmd does not exist
Reporter:Michael Newton (miken32)Labels:
Date Opened:2020-09-01 09:47:42Date Closed:
Priority:TrivialRegression?No
Status:Open/NewComponents:Applications/app_voicemail
Versions:16.12.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description:If the `mailcmd` parameter refers to a command or script that does not exist, all voicemail messages are silently dropped.

[At the time|https://github.com/asterisk/asterisk/blob/16.12/apps/app_voicemail.c#L14020] the value is assigned, it should also check for its existence and executability. If either check fails, an error should be generated and Asterisk should fall back to its default behaviour.
Comments:By: Asterisk Team (asteriskteam) 2020-09-01 09:47:44.110-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

By: Sean Bright (seanbright) 2020-09-01 11:13:39.353-0500

Can you clarify what you mean by "all voicemail messages are silently dropped?"

I don't see anything that checks the result of executing mailcmd so I don't see how it failing would lose any data.

By: Michael Newton (miken32) 2020-09-01 13:33:46.149-0500

Sorry, I didn't mean the voicemail recordings aren't saved, I'm just talking about the email. There's no fallback for a missing script, so the email is never sent. No errors show up in the log.