[Asterisk-code-review] ARI: Add the ability to subscribe to all events (asterisk[13])

Matt Jordan asteriskteam at digium.com
Tue Sep 8 20:13:36 CDT 2015


Matt Jordan has uploaded a new patch set (#2).

Change subject: ARI: Add the ability to subscribe to all events
......................................................................

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
---
M CHANGES
M include/asterisk/stasis_app.h
M res/ari/resource_events.c
M res/ari/resource_events.h
M res/res_ari_events.c
M res/res_stasis.c
M res/stasis/app.c
M res/stasis/app.h
M res/stasis/messaging.c
M rest-api/api-docs/events.json
10 files changed, 374 insertions(+), 153 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/93/1193/2
-- 
To view, visit https://gerrit.asterisk.org/1193
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I4a943b4db24442cf28bc64b24bfd541249790ad6
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Matt Jordan <mjordan at digium.com>



More information about the asterisk-code-review mailing list