diff --git a/sflphone-common/src/managerimpl.cpp b/sflphone-common/src/managerimpl.cpp index 3e93b7642cea610f6016b3ad06534aaf44772ce9..68bb517dadbdb0b05687c5fd832d0404ae397e40 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); }