pjsip / hep: Provide correct local address for Websockets.
authorJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2017 13:14:23 +0000 (13:14 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 14 Nov 2017 16:53:07 +0000 (11:53 -0500)
commit29e0add14f8db9ea28a7fbb32c2efec8c9738196
tree461927c17793f96b09ef923f1f362881f079f987
parenta6d2926e5dc1c8216ee207c1f11460587a6abe93
pjsip / hep: Provide correct local address for Websockets.

Previously for PJSIP the local address of WebSocket connections
was set to the remote address. For logging purposes this is
not particularly useful.

The WebSocket API has been extended to allow the local
address to be queried and this is used in PJSIP to set the
local address to the correct value.

The PJSIP HEP support has also been tweaked so that reliable
transports always use the local address on the transport
and do not try to (wrongly) guess. As they are connection
based it is impossible for the source to be anything else.

ASTERISK-26758
ASTERISK-27363

Change-Id: Icd305fd038ad755e2682ab2786e381f6bf29e8ca
include/asterisk/http_websocket.h
res/res_hep_pjsip.c
res/res_http_websocket.c
res/res_pjsip_transport_websocket.c