From 06a52b1c590b61e5cd2413e444b200ff308d35cc Mon Sep 17 00:00:00 2001 From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> Date: Wed, 11 Nov 2009 13:49:59 -0500 Subject: [PATCH] [#2403] Use the IP profile SIP port as global SIP port --- sflphone-common/src/managerimpl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sflphone-common/src/managerimpl.cpp b/sflphone-common/src/managerimpl.cpp index 3e93b7642c..68bb517dad 100644 --- a/sflphone-common/src/managerimpl.cpp +++ b/sflphone-common/src/managerimpl.cpp @@ -3233,10 +3233,9 @@ void ManagerImpl::setSipPort (int port) int ManagerImpl::getSipPort (void) { - int port; - - // port = getConfigInt (IP2IP , CONFIG_SIP_PORT) - return getConfigInt (PREFERENCES , CONFIG_SIP_PORT); + // return getConfigInt (PREFERENCES , CONFIG_SIP_PORT); + /* The 'global' SIP port is set throug the IP profile */ + return getConfigInt (IP2IP_PROFILE, LOCAL_PORT); } -- GitLab