Add VoicemailRefresh AMI Action
authorKinsey Moore <kmoore@digium.com>
Thu, 27 Sep 2012 17:02:13 +0000 (17:02 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 27 Sep 2012 17:02:13 +0000 (17:02 +0000)
commit5bde2dbc34abee5c149de9534acd2cc3a5b39697
treee16f256552c8f50bf395ae337d28b93f444ae3bc
parent9e9f3b760991afbb82cef39959b6c9df3ec76efe
Add VoicemailRefresh AMI Action

Currently, if there are modifications to mailboxes that Asterisk is
not aware of, the user needs to add "pollmailboxes" to their mailbox
configuration, which repeatedly polls the subscribed mailboxes for
changes. This results in a lot of extra work for the CPU. This patch
introduces the AMI command VoicemailRefresh which permits external
applications to trigger the refresh themselves. The refresh can apply
to a specified mailbox only, an entire context, or all configured
mailboxes. Even a refresh performed on every mailbox would not consume
as much CPU as the pollmailboxes option, given that pollmailboxes runs
continuously and this only runs on demand.

(closes issue ASTERISK-17206)
(closes issue ASTERISK-19908)
Reported-by: Jeff Hutchins
Reported-by: Tilghman Lesher
Patch-by: Tilghman Lesher

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
apps/app_voicemail.c