diff --git a/src/Core/Asterisk/Configs/HttpConf.php b/src/Core/Asterisk/Configs/HttpConf.php index 0ea5b71a..ea07fe8f 100644 --- a/src/Core/Asterisk/Configs/HttpConf.php +++ b/src/Core/Asterisk/Configs/HttpConf.php @@ -64,7 +64,7 @@ protected function generateConfigProtected(): void $data = Util::generateSslCert(); $s_data = implode("\n", $data); } - $conf .= "tlsenable=yes\n" . + $conf .= "tlsenable=$enabled\n" . "tlsbindaddr=0.0.0.0:{$this->generalSettings[PbxSettings::AJAM_PORT_TLS]}\n" . "tlscertfile=$keys_dir/ajam.pem\n" . "tlsprivatekey=$keys_dir/ajam.pem\n";