diff options
author | Martin Tomec <tomec.martin@gmail.com> | 2015-09-04 12:33:47 +0200 |
---|---|---|
committer | Martin Tomec <tomec.martin@gmail.com> | 2015-09-04 12:46:14 +0200 |
commit | be31747db8312c2dc5d8a8339cbc7e7547cfd715 (patch) | |
tree | cbbdc2afe56a9a90c6313fd2b724025a919e3f06 /res/res_pjsip_transport_websocket.c | |
parent | c15d8cc0ed110ace9e85cce0857524358139c075 (diff) |
res/pjsip: Mark WSS transport as secure
Pjsip is refusing to use unsecure transport with "sips" in url.
WSS should be considered as secure transport.
ASTERISK-24602 #comment Partially fixed by setting WSS as secure
Change-Id: Iddac406c6deba6240c41a603b8859dfefe1a5353
Diffstat (limited to 'res/res_pjsip_transport_websocket.c')
-rw-r--r-- | res/res_pjsip_transport_websocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_transport_websocket.c b/res/res_pjsip_transport_websocket.c index e48b630e7..3157a940f 100644 --- a/res/res_pjsip_transport_websocket.c +++ b/res/res_pjsip_transport_websocket.c @@ -419,7 +419,7 @@ static int load_module(void) CHECK_PJSIP_MODULE_LOADED(); pjsip_transport_register_type(PJSIP_TRANSPORT_RELIABLE, "WS", 5060, &transport_type_ws); - pjsip_transport_register_type(PJSIP_TRANSPORT_RELIABLE, "WSS", 5060, &transport_type_wss); + pjsip_transport_register_type(PJSIP_TRANSPORT_RELIABLE | PJSIP_TRANSPORT_SECURE, "WSS", 5060, &transport_type_wss); if (ast_sip_register_service(&websocket_module) != PJ_SUCCESS) { return AST_MODULE_LOAD_DECLINE; |