[asterisk-bugs] [JIRA] (ASTERISK-27703) AMI Action VoicemailUsersList returns 0 MessageCount

Chris Savinovich (JIRA) noreply at issues.asterisk.org
Thu Apr 19 13:32:55 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Savinovich updated ASTERISK-27703:
----------------------------------------

    Target Release Version/s: 15.4.0

> 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
>      Target Release: 13.20.0, 15.3.0, 13.21.0, 15.4.0
>
>
> 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