]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ARI: Add ability to raise arbitrary User Events
authorScott Griepentrog <sgriepentrog@digium.com>
Thu, 22 May 2014 16:08:55 +0000 (16:08 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Thu, 22 May 2014 16:08:55 +0000 (16:08 +0000)
commit3c34202363b733eafbc881a4e24495f552c38281
treee8bc3a7f82835b1f686187823ce0ba69920cb417
parent8c6805e3c91eedc904b99ad416431917b332beab
ARI: Add ability to raise arbitrary User Events

User events can now be generated from ARI.  Events can be signalled with
arbitrary json variables, and include one or more of channel, bridge, or
endpoint snapshots.  An application must be specified which will receive
the event message (other applications can subscribe to it).  The message
will also be delivered via AMI provided a channel is attached.  Dialplan
generated user event messages are still transmitted via the channel, and
will only be received by a stasis application they are attached to or if
the channel is subscribed to.

This change also introduces the multi object blob mechanism used to send
multiple snapshot types in a single message.  The dialplan app UserEvent
was also changed to use multi object blob, and a new stasis message type
created to handle them.

ASTERISK-22697 #close
Review: https://reviewboard.asterisk.org/r/3494/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@414405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
17 files changed:
CHANGES
apps/app_userevent.c
include/asterisk/stasis.h
include/asterisk/stasis_app.h
include/asterisk/stasis_channels.h
main/manager_channels.c
main/stasis.c
main/stasis_channels.c
main/stasis_endpoints.c
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/resource_events.c
res/ari/resource_events.h
res/res_ari_events.c
res/res_stasis.c
res/stasis/app.c
rest-api/api-docs/events.json