diff --git a/sflphone-common/src/global.h b/sflphone-common/src/global.h
index ed021d21494978d950fdebbb972e6232d4422365..249bcffb7d362182fd94ccac6edc8d35ad744bd3 100644
--- a/sflphone-common/src/global.h
+++ b/sflphone-common/src/global.h
@@ -43,8 +43,6 @@
 #include <vector>
 #include "logger.h"
 
-#define SFLPHONED_VERSION "0.9.14"		/** Version number */
-
 #define HOMEDIR					(getenv ("HOME"))				/** Home directory */
 #define XDG_DATA_HOME			(getenv ("XDG_DATA_HOME"))
 #define XDG_CONFIG_HOME			(getenv ("XDG_CONFIG_HOME"))
diff --git a/sflphone-common/src/sip/sipvoiplink.cpp b/sflphone-common/src/sip/sipvoiplink.cpp
index 7d41dd3d755acb951456b4350f1b6bcf70704c05..09f5205e0ccc642043cf96a9add096de1fb1ec4c 100644
--- a/sflphone-common/src/sip/sipvoiplink.cpp
+++ b/sflphone-common/src/sip/sipvoiplink.cpp
@@ -32,6 +32,10 @@
  *  as that of the covered work.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "sipvoiplink.h"
 
 #include "manager.h"
@@ -1389,7 +1393,7 @@ SIPVoIPLink::getCurrentCodecName(const CallID& id)
 std::string SIPVoIPLink::getUseragentName (const AccountID& id)
 {
     /*
-    useragent << PROGNAME << "/" << SFLPHONED_VERSION;
+    useragent << PROGNAME << "/" << PACKAGE_VERSION;
     return useragent.str();
     */
 
@@ -1400,7 +1404,7 @@ std::string SIPVoIPLink::getUseragentName (const AccountID& id)
     useragent << account->getUseragent();
 
     if (useragent.str() == "sflphone" || useragent.str() == "")
-        useragent << "/" << SFLPHONED_VERSION;
+        useragent << "/" << PACKAGE_VERSION;
 
     return useragent.str ();
 }