Hi All,
Quick question, and I don’t want to sound obtuse in asking this, but why do the mailbox ARI’s have mailbox count etc? This seems totally out of sorts with the rest of ARI. From everything else I’ve seen it’s down to the ARI application to maintain its own state information and ensure its correctly accounted for as and when the ARI application starts.
channel technologies (SIP NOTIFY) must send the counts in their respective
messages.
Otherwise I can see issues where state information exists in both, could get out of sync and has the potential to be a mess. Why are we persisting in using voicemail account to activate/deactivate MWI? It just seems very ‘specific’.
Picking up from some comments I’ve seen in older threads, I don’t see why it’s an issue for Asterisk to report incorrect MWI state if the ARI application responsible for it isn’t active.
If voicemail isn’t running (in ARI) then sending any MWI indicator (true) would be wrong, as they’d be unable to obtain the voicemail! It should simply be once the ARI voicemail application is running again, the states are correctly set and asterisk can notify devices.
If an ARI terminates, or asterisk restarts, it should be the responsibility of the ARI application to set the state information. This is as true for voicemail, as it would be for queues or conferences, where applicable.
Really, I don’t see why there is a “mailbox” ARI at all, would it not make more sense to have control over the MWI states directly and set them when an ARI application starts?
phones act this way when they receive MWI notification messages. Does the phone's
MWI indication stop after awhile if it doesn't get another update from the server? The
cache is intended to reduce message traffic between Asterisk and the ARI application.
The ARI application controls what is in the cache maintained by Asterisk. The ARI
application can get, update, and delete the mailbox counts.
If you don't care for Asterisk having a persistent cache of MWI counts you can even
change it in the sorcery.conf file to use a memory only sorcery wizard. Just set the
mailboxes assignment to change the sorcery wizard used.
; The following object mapping is the default mapping of external MWI mailbox
; objects to give persistence to the message counts.
;
[res_mwi_external]
;mailboxes=astdb,mwi_external
_______________________________________________ asterisk-app-dev mailing list asterisk-app-dev@xxxxxxxxxxxxxxxx http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev