]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: Enable WebSocket support by default. 31/1831/1
authorJoshua Colp <jcolp@digium.com>
Thu, 17 Dec 2015 14:10:43 +0000 (10:10 -0400)
committerJoshua Colp <jcolp@digium.com>
Thu, 17 Dec 2015 14:10:43 +0000 (10:10 -0400)
Per the documentation the WebSocket support in chan_sip is
supposed to be enabled by default but is not. This change
corrects that.

Change-Id: Icb02bbcad47b11a795c14ce20a9bf29649a54423

channels/chan_sip.c

index 5c808cc224cc5e3d289301a7ecf9119949b5f181..500aeb7854a28a68ec4d2699ca075ca9813a9f6a 100644 (file)
@@ -31464,6 +31464,7 @@ static int reload_config(enum channelreloadreason reason)
        sip_cfg.peer_rtupdate = TRUE;
        global_dynamic_exclude_static = 0;      /* Exclude static peers */
        sip_cfg.tcp_enabled = FALSE;
+       sip_cfg.websocket_enabled = TRUE;
 
        /* Session-Timers */
        global_st_mode = SESSION_TIMER_MODE_ACCEPT;