]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ARI: Add mailboxes resource for controlling and polling external MWI
authorJonathan Rose <jrose@digium.com>
Tue, 14 Jan 2014 23:26:40 +0000 (23:26 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 14 Jan 2014 23:26:40 +0000 (23:26 +0000)
commit1859c07f4f0152bb9a9acfd2abcadad119e23dc7
treeb8a3dc1f83bbf6218e8b7329578b4c362dea380d
parentf7e34f5c3131f3068d73580bf1085eedf6748b95
ARI: Add mailboxes resource for controlling and polling external MWI

Adds the following AMI commands:
PUT mailboxes/mailboxName
    modifies mailbox state and implicitly creates new mailboxes
GET mailboxes/mailboxName
    retrieves a JSON representation of a single mailbox if it exists
GET mailboxes
    retrieves a JSON array of all mailboxes
DELETE mailbox/mailboxName
    deletes a mailbox
Note that res_mwi_external must be loaded for these functions to
actually do anything.

Review: https://reviewboard.asterisk.org/r/3117/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@405553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/stasis_app_mailbox.h [new file with mode: 0644]
res/ari.make
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/resource_mailboxes.c [new file with mode: 0644]
res/ari/resource_mailboxes.h [new file with mode: 0644]
res/res_ari_mailboxes.c [new file with mode: 0644]
res/res_stasis_mailbox.c [new file with mode: 0644]
res/res_stasis_mailbox.exports.in [new file with mode: 0644]
rest-api/api-docs/mailboxes.json [new file with mode: 0644]
rest-api/resources.json