Stasis-HTTP: Flesh out bridge-related capabilities
authorKinsey Moore <kmoore@digium.com>
Mon, 10 Jun 2013 13:07:11 +0000 (13:07 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 10 Jun 2013 13:07:11 +0000 (13:07 +0000)
commita5bbc790e7ee1417bc03f5c529a73f2604a58cdb
tree4ae804770c499e8068bc04c4b896d9a8c0447715
parent0cec7dcdcd4ce053bfb27849e5bd90b181151182
Stasis-HTTP: Flesh out bridge-related capabilities

This adds support for Stasis applications to receive bridge-related
messages when the application shows interest in a given bridge.

To supplement this work and test it, this also adds support for the
following bridge-related Stasis-HTTP functionality:
* GET stasis/bridges
* GET stasis/bridges/{bridgeId}
* POST stasis/bridges
* DELETE stasis/bridges/{bridgeId}
* POST stasis/bridges/{bridgeId}/addChannel
* POST stasis/bridges/{bridgeId}/removeChannel

Review: https://reviewboard.asterisk.org/r/2572/
(closes issue ASTERISK-21711)
(closes issue ASTERISK-21621)
(closes issue ASTERISK-21622)
(closes issue ASTERISK-21623)
(closes issue ASTERISK-21624)
(closes issue ASTERISK-21625)
(closes issue ASTERISK-21626)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
16 files changed:
include/asterisk/stasis_app.h
include/asterisk/stasis_bridging.h
main/stasis_bridging.c
res/res_stasis.c
res/res_stasis_bridge_add.c [new file with mode: 0644]
res/res_stasis_bridge_add.exports.in [new file with mode: 0644]
res/res_stasis_json_events.c
res/res_stasis_json_events.exports.in
res/stasis/app.c
res/stasis/app.h
res/stasis/control.c
res/stasis_http/resource_bridges.c
res/stasis_http/resource_bridges.h
res/stasis_json/resource_events.h
rest-api/api-docs/bridges.json
rest-api/api-docs/events.json