-
- Downloads
res_http_websocket: Create a websocket client
Added a websocket server client in Asterisk. Asterisk has a websocket server, but not a client. The ability to have Asterisk be able to connect to a websocket server can potentially be useful for future work (for instance this could allow ARI to connect back to some external system, although more work would be needed in order to incorporate that). Also a couple of things to note - proxy connection support has not been implemented and there is limited http response code handling (basically, it is connect or not). Also added an initial new URI handling mechanism to core. Internet type URI's are parsed into a data structure that contains pointers to the various parts of the URI. (closes issue ASTERISK-23742) Reported by: Kevin Harwell Review: https://reviewboard.asterisk.org/r/3541/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- include/asterisk/http.h 59 additions, 0 deletionsinclude/asterisk/http.h
- include/asterisk/http_websocket.h 89 additions, 1 deletioninclude/asterisk/http_websocket.h
- include/asterisk/uri.h 181 additions, 0 deletionsinclude/asterisk/uri.h
- main/http.c 107 additions, 0 deletionsmain/http.c
- main/uri.c 321 additions, 0 deletionsmain/uri.c
- res/res_http_websocket.c 410 additions, 17 deletionsres/res_http_websocket.c
- res/res_http_websocket.exports.in 1 addition, 17 deletionsres/res_http_websocket.exports.in
- tests/test_uri.c 154 additions, 0 deletionstests/test_uri.c
- tests/test_websocket_client.c 165 additions, 0 deletionstests/test_websocket_client.c
Loading
Please register or sign in to comment