chan_sip: Allow websockets to be disabled.

This patch adds a new setting "websockets_enabled" to sip.conf.
Setting this to false allows chan_sip to be used without causing
conflicts with res_pjsip_transport_websocket.

ASTERISK-24106 #close
Reported by: Andrew Nagy

Change-Id: I04fe8c4f2d57b2d7375e0e25826c91a72e93bea7
This commit is contained in:
Corey Farrell
2015-11-02 21:24:58 -05:00
parent f80a0ae49b
commit 40574a2ea3
4 changed files with 30 additions and 2 deletions

View File

@@ -774,6 +774,7 @@ struct sip_settings {
int tcp_enabled;
int default_max_forwards; /*!< Default max forwards (SIP Anti-loop) */
int websocket_write_timeout; /*!< Socket write timeout for websocket transports, in ms */
int websocket_enabled; /*!< Are websockets enabled? */
};
struct ast_websocket;