Review Board 1.7.16


ARI: Add subscription support

Review Request #2862 - Created Sept. 17, 2013 and submitted

David Lee
/team/dlee/ASTERISK-22451-ari-subscribe
ASTERISK-22451
Reviewers
asterisk-dev
Asterisk
This patch adds an /applications API to ARI, allowing explicit management of
Stasis applications.

 * GET /applications - list current applications
 * GET /applications/{applicationName} - get details of a specific application
 * POST /applications/{applicationName}/subscription - explicitly subscribe to
   a channel, bridge or endpoint
 * DELETE /applications/{applicationName}/subscription - explicitly unsubscribe
   from a channel, bridge or endpoint

Subscriptions work by a reference counting mechanism: if you subscript to an
event source X number of times, you must unsubscribe X number of times to stop
receiveing events for that event source.
Testsuite tests (https://reviewboard.asterisk.org/r/2863/)

I hit a roadblock testing the endpoint subscription code, so that was tested
manually using wscat and Swagger-UI.
Total:
18
Open:
0
Resolved:
18
Dropped:
0
Status:
From:
Description From Last Updated Status
Review request changed
Updated (Oct. 4, 2013, 11:20 a.m.)
  • changed from pending to submitted
Committed in revision 400531

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.