res_http_websocket: Create a websocket client
authorKevin Harwell <kharwell@digium.com>
Thu, 5 Jun 2014 17:22:35 +0000 (17:22 +0000)
committerKevin Harwell <kharwell@digium.com>
Thu, 5 Jun 2014 17:22:35 +0000 (17:22 +0000)
commite763d704700674342c8957f82bddeab3e15dfa08
tree14ffdb60c71b6e5976783d97778ba485c4954e6b
parentfd45b822470264d50d80d419e65655ea01842da7
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
include/asterisk/http.h
include/asterisk/http_websocket.h
include/asterisk/uri.h [new file with mode: 0644]
main/http.c
main/uri.c [new file with mode: 0644]
res/res_http_websocket.c
res/res_http_websocket.exports.in
tests/test_uri.c [new file with mode: 0644]
tests/test_websocket_client.c [new file with mode: 0644]