Index installed sounds and implement ARI sounds queries
This adds support for stasis/sounds and stasis/sounds/{ID} queries via the Asterisk RESTful Interface (ARI, formerly Stasis-HTTP). The following changes have been made to accomplish this: * A modular indexer was created for local media. * A new function to get an ast_format associated with a file extension was added. * Modifications were made to the built-in HTTP server so that URI decoding could be deferred to the URI handler when necessary. * The Stasis-HTTP sounds JSON documentation was modified to handle cases where multiple languages are installed in different formats. * Register and Unregister events for formats were added to the system topic. (closes issue ASTERISK-21584) (closes issue ASTERISK-21585) Review: https://reviewboard.asterisk.org/r/2507/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- include/asterisk/_private.h 3 additions, 0 deletionsinclude/asterisk/_private.h
- include/asterisk/file.h 11 additions, 0 deletionsinclude/asterisk/file.h
- include/asterisk/format.h 18 additions, 0 deletionsinclude/asterisk/format.h
- include/asterisk/http.h 2 additions, 0 deletionsinclude/asterisk/http.h
- include/asterisk/media_index.h 108 additions, 0 deletionsinclude/asterisk/media_index.h
- include/asterisk/sounds_index.h 55 additions, 0 deletionsinclude/asterisk/sounds_index.h
- main/asterisk.c 5 additions, 0 deletionsmain/asterisk.c
- main/file.c 70 additions, 0 deletionsmain/file.c
- main/http.c 3 additions, 1 deletionmain/http.c
- main/media_index.c 592 additions, 0 deletionsmain/media_index.c
- main/sounds_index.c 334 additions, 0 deletionsmain/sounds_index.c
- res/res_stasis_http.c 3 additions, 1 deletionres/res_stasis_http.c
- res/stasis_http/resource_sounds.c 183 additions, 2 deletionsres/stasis_http/resource_sounds.c
- rest-api/api-docs/sounds.json 15 additions, 5 deletionsrest-api/api-docs/sounds.json
Loading
Please register or sign in to comment