-
- Downloads
Add channel events for res_stasis apps
This change adds a framework in res_stasis for handling events from channel topics. JSON event generation and validation code is created from event documentation in rest-api/api-docs/events.json to assist in JSON event generation, ensure consistency, and ensure that accurate documentation is available for ALL events that are received by res_stasis applications. The userevent application has been refactored along with the code that handles userevent channel blob events to pass the headers as key/value pairs in the JSON blob. As a side-effect, app_userevent now handles duplicate keys by overwriting the previous value. Review: https://reviewboard.asterisk.org/r/2428/ (closes issue ASTERISK-21180) Patch-By:Kinsey Moore <kmoore@digium.com> git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- CHANGES 6 additions, 0 deletionsCHANGES
- apps/app_userevent.c 35 additions, 19 deletionsapps/app_userevent.c
- include/asterisk/stasis_channels.h 28 additions, 0 deletionsinclude/asterisk/stasis_channels.h
- main/manager_channels.c 49 additions, 51 deletionsmain/manager_channels.c
- main/stasis_channels.c 31 additions, 0 deletionsmain/stasis_channels.c
- res/res_stasis.c 345 additions, 92 deletionsres/res_stasis.c
- res/res_stasis_http_events.c 519 additions, 0 deletionsres/res_stasis_http_events.c
- res/res_stasis_websocket.c 4 additions, 42 deletionsres/res_stasis_websocket.c
- res/stasis_http/resource_endpoints.h 1 addition, 1 deletionres/stasis_http/resource_endpoints.h
- res/stasis_http/resource_events.h 226 additions, 28 deletionsres/stasis_http/resource_events.h
- res/stasis_http/resource_recordings.h 2 additions, 2 deletionsres/stasis_http/resource_recordings.h
- res/stasis_http/resource_sounds.h 1 addition, 1 deletionres/stasis_http/resource_sounds.h
- rest-api-templates/asterisk_processor.py 52 additions, 1 deletionrest-api-templates/asterisk_processor.py
- rest-api-templates/event_function_decl.mustache 10 additions, 0 deletionsrest-api-templates/event_function_decl.mustache
- rest-api-templates/res_stasis_http_resource.c.mustache 86 additions, 0 deletionsrest-api-templates/res_stasis_http_resource.c.mustache
- rest-api-templates/stasis_http_resource.h.mustache 35 additions, 3 deletionsrest-api-templates/stasis_http_resource.h.mustache
- rest-api-templates/swagger_model.py 4 additions, 0 deletionsrest-api-templates/swagger_model.py
- rest-api/api-docs/events.json 142 additions, 35 deletionsrest-api/api-docs/events.json
Loading
Please register or sign in to comment