Set tls setting to default in reload_config.
[asterisk/asterisk.git] / channels / chan_sip.c
index e5cfdd0..d4e2fa1 100644 (file)
@@ -21006,6 +21006,7 @@ static int reload_config(enum channelreloadreason reason)
        memset(&sip_tls_desc.sin, 0, sizeof(sip_tls_desc.sin));
 
        sip_tcp_desc.sin.sin_family = AF_INET;
+       default_tls_cfg.enabled = FALSE;
 
        sip_tcp_desc.sin.sin_port = htons(STANDARD_SIP_PORT);
        sip_tls_desc.sin.sin_port = htons(STANDARD_TLS_PORT);