]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ARI: Add the ability to subscribe to all events 93/1193/4
authorMatt Jordan <mjordan@digium.com>
Fri, 4 Sep 2015 17:25:07 +0000 (12:25 -0500)
committerMatt Jordan <mjordan@digium.com>
Tue, 22 Sep 2015 18:27:14 +0000 (13:27 -0500)
commit4c9f613309d66ae6a8e5454cd53276459bcd2674
tree2934381535e27f1ca732865d3805a78af7dc06d0
parentec514ad64dbc0014525008977c8c74c2856c9d3a
ARI: Add the ability to subscribe to all events

This patch adds the ability to subscribe to all events. There are two possible
ways to accomplish this:
(1) On initial WebSocket connection. This patch adds a new query parameter,
    'subscribeAll'. If present and True, Asterisk will subscribe the
    applications to all ARI events.
(2) Via the applications resource. When subscribing in this manner, an ARI
    client should merely specify a blank resource name, i.e., 'channels:'
    instead of 'channels:12354'. This will subscribe the application to all
    resources of the 'channels' type.

ASTERISK-24870 #close

Change-Id: I4a943b4db24442cf28bc64b24bfd541249790ad6
CHANGES
include/asterisk/stasis_app.h
res/ari/resource_events.c
res/ari/resource_events.h
res/res_ari_events.c
res/res_stasis.c
res/stasis/app.c
res/stasis/app.h
res/stasis/messaging.c
rest-api/api-docs/events.json