-
- Downloads
Stasis application WebSocket support
This is the API that binds the Stasis dialplan application to external Stasis applications. It also adds the beginnings of WebSocket application support. This module registers a dialplan function named Stasis, which is used to put a channel into the named Stasis app. As a channel enters and leaves the Stasis diaplan application, the Stasis app receives a 'stasis-start' and 'stasis-end' events. Stasis apps register themselves using the stasis_app_register and stasis_app_unregister functions. Messages are sent to an application using stasis_app_send. Finally, Stasis apps control channels through the use of the stasis_app_control object, and the family of stasis_app_control_* functions. Other changes along for the ride are: * An ast_frame_dtor function that's RAII_VAR safe * Some common JSON encoders for name/number, timeval, and context/extension/priority Review: https://reviewboard.asterisk.org/r/2361/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- apps/Makefile 1 addition, 0 deletionsapps/Makefile
- apps/app_stasis.c 555 additions, 0 deletionsapps/app_stasis.c
- apps/app_stasis.exports.in 6 additions, 0 deletionsapps/app_stasis.exports.in
- apps/stasis_json.c 77 additions, 0 deletionsapps/stasis_json.c
- include/asterisk/app_stasis.h 138 additions, 0 deletionsinclude/asterisk/app_stasis.h
- include/asterisk/frame.h 40 additions, 34 deletionsinclude/asterisk/frame.h
- include/asterisk/json.h 44 additions, 0 deletionsinclude/asterisk/json.h
- include/asterisk/localtime.h 5 additions, 0 deletionsinclude/asterisk/localtime.h
- main/frame.c 7 additions, 0 deletionsmain/frame.c
- main/json.c 34 additions, 0 deletionsmain/json.c
- res/res_stasis_websocket.c 326 additions, 0 deletionsres/res_stasis_websocket.c
- tests/test_abstract_jb.c 7 additions, 18 deletionstests/test_abstract_jb.c
- tests/test_app_stasis.c 194 additions, 0 deletionstests/test_app_stasis.c
- tests/test_json.c 102 additions, 0 deletionstests/test_json.c
Loading
Please register or sign in to comment