From fe7739f72c5f6fdfefed4181691741bd593e5dda Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
Date: Tue, 17 Apr 2012 11:37:09 -0400
Subject: [PATCH] #9623: Allow all account to change tls listener port (not
 only IP2IP)

---
 daemon/src/sip/sipaccount.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/daemon/src/sip/sipaccount.cpp b/daemon/src/sip/sipaccount.cpp
index 156e4d6952..796f25c44b 100644
--- a/daemon/src/sip/sipaccount.cpp
+++ b/daemon/src/sip/sipaccount.cpp
@@ -428,10 +428,7 @@ void SIPAccount::setAccountDetails(std::map<std::string, std::string> details)
     srtpKeyExchange_ = details[CONFIG_SRTP_KEY_EXCHANGE];
 
     // TLS settings
-    // The TLS listener is unique and globally defined through IP2IP_PROFILE
-    if (isIP2IP())
-        tlsListenerPort_ = atoi(details[CONFIG_TLS_LISTENER_PORT].c_str());
-
+    tlsListenerPort_ = atoi(details[CONFIG_TLS_LISTENER_PORT].c_str());
     tlsEnable_ = details[CONFIG_TLS_ENABLE];
     tlsCaListFile_ = details[CONFIG_TLS_CA_LIST_FILE];
     tlsCertificateFile_ = details[CONFIG_TLS_CERTIFICATE_FILE];
-- 
GitLab