[asterisk-bugs] [JIRA] (ASTERISK-27703) AMI Action VoicemailUsersList returns 0 MessageCount
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Thu Mar 8 15:28:13 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-27703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242498#comment-242498 ]
Friendly Automation commented on ASTERISK-27703:
------------------------------------------------
Change 8442 merged by Kevin Harwell:
voicemail: Fixed wrong voicemail message count
[https://gerrit.asterisk.org/8442|https://gerrit.asterisk.org/8442]
> AMI Action VoicemailUsersList returns 0 MessageCount
> ----------------------------------------------------
>
> Key: ASTERISK-27703
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27703
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_voicemail
> Affects Versions: 15.2.0, 15.2.1
> Environment: Debian Stretch, Asterisk 15.2.0
> Reporter: Sébastien Duthil
> Assignee: sungtae kim
> Severity: Minor
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list