[asterisk-dev] [Code Review] 3061: External MWI core support with AMI using it.

rmudgett reviewboard at asterisk.org
Thu Dec 19 21:40:46 CST 2013



> On Dec. 19, 2013, 11:49 p.m., Mark Michelson wrote:
> > A few general mentions:
> > 
> > 1) I think "External" should be dropped from all of the MWI action names.
> > 2) I don't see any use for the CLI commands. The whole purpose of external MWI is that it's being used externally, not by someone with CLI access.
> > 3) I think regex-related functionality isn't needed. Since Josh has already pointed out that he doesn't like the change made to astdb, and it's not a huge thing for people to be able to just delete individual mailboxes, I think regex support is just scope-creep at this point. If people end up demanding regex or some other batch support, then we can address that then.

1) External removed from the MWI action names.
2) CLI commands conditionaled out on MWI_DEBUG_CLI being defined.  They were useful for debugging the core external MWI module.  They can be very useful for manually fixing the MWI persistent cache.
3) The regex support is already there and is not difficult to support.  The inconsistency in the astdb wizzard regex support is only for the '^' anchor regex feature.  Not a big loss to regex functionality.


> On Dec. 19, 2013, 11:49 p.m., Mark Michelson wrote:
> > /trunk/res/res_mwi_external.c, lines 370-371
> > <https://reviewboard.asterisk.org/r/3061/diff/2/?file=49870#file49870line370>
> >
> >     I think this and all other mentions of urgent messages should be removed. There is no way currently for urgent messages to be noted when using external MWI, and so this is inaccurate.

The urgent mentions are from copying the API typedef doxygen comments.  Those comments describe what the instantiated API call needs to do.


- rmudgett


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3061/#review10467
-----------------------------------------------------------


On Dec. 19, 2013, 6:49 p.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3061/
> -----------------------------------------------------------
> 
> (Updated Dec. 19, 2013, 6:49 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> This patch can be broken into three main components:
> 
> 1) The core resource support for external MWI providers are in the following files:
> apps/app_voicemail.c,
> include/asterisk/res_mwi_external.h,
> configs/sorcery.conf.sample,
> res/res_mwi_external.c, and
> res/res_mwi_external.exports.in.
> 
> * The core external MWI resource provides for MWI message counts persistence using sorcery.  With sorcery, the user is able to configure which sorcery wizzard backend to use if the default astdb is not desired.
> 
> * The core external MWI resoruce provides some CLI commands to manually manage the MWI counts if needed.
> The new CLI commands are:
> "mwi external delete all",
> "mwi external delete like <regex>",
> "mwi external delete mailbox <mailbox>",
> "mwi external list all",
> "mwi external list like <regex>",
> "mwi external show mailbox <mailbox>", and
> "mwi external update mailbox <mailbox> [<new> [<old>]]".
> 
> 2) The AMI component of external MWI is in:
> res/res_mwi_external_ami.c
> 
> * The external MWI AMI interface provides a thin wrapper around the core external MWI resource.
> The resource adds the following AMI actions:
> MWIExternalGet,
> MWIExternalDelete, and
> MWIExternalUpdate.
> 
> 3) A consistency fix to sorcery astdb regex record retrieval is in:
> res/res_sorcery_astdb.c
> 
> * The AstDB wizzard is inconsistent with the other sorcery wizzards with its regex record selection.  Any pattern that uses the '^' regex character to anchor the pattern to the beginning of the key *must* be a simple prefix.  Any wildcard matching used with the '^' anchor will fail.  As a result, a regex of "^.*@context$" will not return anything even if there are mailboxes in "context".
> 
> 
> Diffs
> -----
> 
>   /trunk/res/res_sorcery_astdb.c 404386 
>   /trunk/res/res_mwi_external_ami.c PRE-CREATION 
>   /trunk/res/res_mwi_external.exports.in PRE-CREATION 
>   /trunk/res/res_mwi_external.c PRE-CREATION 
>   /trunk/include/asterisk/res_mwi_external.h PRE-CREATION 
>   /trunk/configs/sorcery.conf.sample 404386 
>   /trunk/apps/app_voicemail.c 404386 
> 
> Diff: https://reviewboard.asterisk.org/r/3061/diff/
> 
> 
> Testing
> -------
> 
> Used the CLI "database show" along with the new CLI commands and AMI actions to test adding/updating, getting, and deleting external MWI counts.
> 
> 
> Thanks,
> 
> rmudgett
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131220/12711b83/attachment-0001.html>


More information about the asterisk-dev mailing list