diff --git a/sflphone-common/src/sip/sipaccount.cpp b/sflphone-common/src/sip/sipaccount.cpp
index 14bae3324d2a5864ddd7f94df60503fba2bc44a0..6d53363b4c08e1c781f1809ff84d8bc07aedc0bc 100644
--- a/sflphone-common/src/sip/sipaccount.cpp
+++ b/sflphone-common/src/sip/sipaccount.cpp
@@ -507,6 +507,7 @@ std::map<std::string, std::string> SIPAccount::getAccountDetails() const
     a[CONFIG_ACCOUNT_RESOLVE_ONCE] = isResolveOnce() ? "true" : "false";
     a[REALM] = _realm;
     a[USERAGENT] = getUseragent();
+    a[AUTHENTICATION_USERNAME] = _authenticationUsername;
 
     a[CONFIG_ACCOUNT_REGISTRATION_EXPIRE] = getRegistrationExpire();
     a[LOCAL_INTERFACE] = getLocalInterface();
diff --git a/sflphone-common/src/sip/sipaccount.h b/sflphone-common/src/sip/sipaccount.h
index 3e4557498f8ee428e85e241c34f6d0528a035c6c..97897d18b6f435ddf1f5fa56aaae2e736574be09 100644
--- a/sflphone-common/src/sip/sipaccount.h
+++ b/sflphone-common/src/sip/sipaccount.h
@@ -236,13 +236,6 @@ class SIPAccount : public Account
             return _cred;
         }
 
-        const std::string& getAuthenticationUsername (void) const {
-            return _authenticationUsername;
-        }
-        void setAuthenticationUsername (const std::string& username) {
-            _authenticationUsername = username;
-        }
-
         bool isResolveOnce (void) const {
             return _resolveOnce;
         }