[asterisk-bugs] [JIRA] (ASTERISK-28151) app_voicemail: MWI fails with mailboxes=##@device instead of mailboxes=##@default

Alexei Gradinari (JIRA) noreply at issues.asterisk.org
Thu Nov 29 15:38:47 CST 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245614#comment-245614 ] 

Alexei Gradinari commented on ASTERISK-28151:
---------------------------------------------

I just read a comment of origin patch which removed subscription to stasis...
"Since polling is only required when changes are being made to
mailboxes outside of app_voicemail and since the number of mailboxes
that don't have any subscribers is likely to be very low, all
mailboxes are now polled instead of just the ones with subscribers."

Where did the assumption come from that "the number of mailboxes that don't have any subscribers is likely to be very low"?
Imagine there are two asterisk servers running at the same time as master/backup or
as load balancing for thousands of SIP endpoints.
The IMAP storage is used for voicemail.
If master/backup the all endpoints have MWI subscription only on master server.
So only master server should poll IMAP mailboxes.
If load balancing the half of the endpoints have MWI subscription on the first server the others on the second server.

Without subscription to stasis both servers will poll all IMAP mailboxes.

I think the best way is to be able to switch on/off of the subscription to stasis using global option of voicemail.conf.
And this option should be ON (old behavior) for asterisk version 13 or it breaks compatibility. And it should be documented in CHANGES.


> app_voicemail: MWI fails with mailboxes=##@device instead of mailboxes=##@default
> ---------------------------------------------------------------------------------
>
>                 Key: ASTERISK-28151
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28151
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail
>    Affects Versions: GIT
>         Environment: FreePBX 14 + Asterisk Master Branch
>            Reporter: Ronald Raikes
>            Assignee: Andrew Nagy
>            Severity: Blocker
>              Labels: pjsip
>
> This report filed here at the direction of Andrew Nagy.
> Component: Voicemail MWI when using Asterisk Master Branch
> '##' = extension number
> MWI operates properly when PJSIP endpoint is configured with: mailboxes=##@default
> SIP NOTIFY:
> Messages-Waiting: yes
> Voice-Message: 1/0 (0/0)
> MWI fails when PJSIP endpoint is configured with: mailboxes=##@device
> SIP NOTIFY:
> Messages-Waiting: no
> Voice-Message: 0/0 (0/0)
> This problem does not occur with Asterisk 16.0.0.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list