Re: ARI Mailbox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Thu, Feb 20, 2014 at 10:59 AM, Ben Merrills <b.merrills@xxxxxxxxxxxxxxxx> wrote:

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.


The mailbox counts must be provided by ARI to Asterisk because the various
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’.


I'm not sure what you mean by "voicemail account".  The mailbox identifier could be whatever you want.
 

 

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?


Asterisk just caches the MWI counts it receives.  It does not originate them.  Even
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
mailboxes=memory

Richard

_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux