[Home]

Summary:ASTERISK-27703: AMI Action VoicemailUsersList returns 0 MessageCount
Reporter:Sébastien Duthil (sduthil)Labels:
Date Opened:2018-02-27 12:28:31.000-0600Date Closed:2018-03-08 15:28:09.000-0600
Priority:MinorRegression?Yes
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:15.2.0 15.2.1 Frequency of
Occurrence
Constant
Related
Issues:
causesASTERISK-27456 app_voicemail: Add new object for VoicemailUserEntry
Environment:Debian Stretch, Asterisk 15.2.0Attachments:
Description:Given I use voicemail filesystem storage (no IMAP or ODBC)
Given I have a voicemail 1401 in a context that is not "default" (e.g. "internal")
Given this voicemail has unread and unread messages
When I send an AMI Action VoicemailUsersList
Then I receive a response with:
{noformat}
Event: VoicemailUserEntry        
VMContext: internal              
VoiceMailbox: 1401                
...
NewMessageCount: 0
OldMessageCount: 0
{noformat}

Expected: I receive a response with:

{noformat}NewMessageCount: 5
OldMessageCount: 1
{noformat}

Additional info:

* Reverting to {{count_messages}} in the commit [30db6bb1a0|https://gerrit.asterisk.org/#/c/7441/1/apps/app_voicemail.c] (ASTERISK-27456) fixes the issue.
* stracing the asterisk process shows that Asterisk looks for the voicemail in the "default" voicemail directory, instead of the "internal" voicemail directory:

{noformat}
[pid 23894] open("/var/spool/asterisk/voicemail/default/1401/INBOX", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
{noformat}

* Copying the files from {{/var/spool/asterisk/voicemail/internal}} to {{/var/spool/asterisk/voicemail/default}} changes the received MessageCounts.
Comments:By: Asterisk Team (asteriskteam) 2018-02-27 12:28:31.654-0600

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.

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].

By: Friendly Automation (friendly-automation) 2018-03-08 15:28:10.359-0600

Change 8442 merged by Kevin Harwell:
voicemail: Fixed wrong voicemail message count

[https://gerrit.asterisk.org/8442|https://gerrit.asterisk.org/8442]

By: Friendly Automation (friendly-automation) 2018-03-08 15:28:19.113-0600

Change 8463 merged by Kevin Harwell:
voicemail: Fixed wrong voicemail message count

[https://gerrit.asterisk.org/8463|https://gerrit.asterisk.org/8463]

By: Friendly Automation (friendly-automation) 2018-03-08 15:28:25.674-0600

Change 8464 merged by Kevin Harwell:
voicemail: Fixed wrong voicemail message count

[https://gerrit.asterisk.org/8464|https://gerrit.asterisk.org/8464]

By: Friendly Automation (friendly-automation) 2018-03-08 15:28:36.043-0600

Change 8462 merged by Kevin Harwell:
voicemail: Fixed wrong voicemail message count

[https://gerrit.asterisk.org/8462|https://gerrit.asterisk.org/8462]

By: Friendly Automation (friendly-automation) 2018-03-08 15:28:44.993-0600

Change 8448 merged by Kevin Harwell:
voicemail: Fixed wrong voicemail message count

[https://gerrit.asterisk.org/8448|https://gerrit.asterisk.org/8448]