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

Sébastien Duthil (JIRA) noreply at issues.asterisk.org
Tue Feb 27 12:31:12 CST 2018


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

Sébastien Duthil updated ASTERISK-27703:
----------------------------------------

    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.

  was:
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:

Event: VoicemailUserEntry         
VMContext: internal               
VoiceMailbox: 1401                
...
NewMessageCount: 0                
OldMessageCount: 0                

Expected: I receive a response with:

NewMessageCount: 5
OldMessageCount: 1

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:

{{[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)}}

* Copying the files from /var/spool/asterisk/voicemail/internal to /var/spool/asterisk/voicemail/default changes the received MessageCounts.


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