From ade951482dc935c99a0c7b320b9b6d6a64389453 Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandresavard@alexandresavard-desktop.(none)>
Date: Mon, 30 Nov 2009 17:11:28 -0500
Subject: [PATCH] [#2486] Do not store IP address in config as this address may
 change

---
 sflphone-common/src/sip/sipaccount.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sflphone-common/src/sip/sipaccount.cpp b/sflphone-common/src/sip/sipaccount.cpp
index fe36571c98..ac9428f0ca 100644
--- a/sflphone-common/src/sip/sipaccount.cpp
+++ b/sflphone-common/src/sip/sipaccount.cpp
@@ -335,7 +335,12 @@ void SIPAccount::loadConfig()
 
     setLocalPort (atoi (localPort.c_str()));
 
-    setLocalAddress (Manager::instance().getConfigString (_accountID, LOCAL_ADDRESS));
+    // Do not store or use IP address in config as this address may change
+    // Use loadSIPLocalIP for now instead in register/unregister (UDP,STUN,TLS), newOutGoingCall, mod_on_rx_request
+    // TODO: if we realy have to bind to a specific interface, store interfaces by name instead
+    setLocalAddress (std::string("0.0.0.0"));
+    // setLocalAddress (Manager::instance().getConfigString (_accountID, LOCAL_ADDRESS));
+
 
     // Published parameters
     setPublishedSameasLocal (Manager::instance().getConfigString (_accountID, PUBLISHED_SAMEAS_LOCAL) == TRUE_STR ? true : false);
-- 
GitLab