From 420f1af2a478b51275d0958cf1b5f539d8c35170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <rafael.carre@savoirfairelinux.com> Date: Thu, 28 Jul 2011 13:19:00 -0400 Subject: [PATCH] * #6408 : store/restore authenticationUsername from config file --- sflphone-common/src/account.h | 1 + sflphone-common/src/sip/sipaccount.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sflphone-common/src/account.h b/sflphone-common/src/account.h index 56b7669eb6..9483efe7f2 100644 --- a/sflphone-common/src/account.h +++ b/sflphone-common/src/account.h @@ -139,6 +139,7 @@ const std::string aliasKey ("alias"); const std::string typeKey ("type"); const std::string idKey ("id"); const std::string usernameKey ("username"); +const std::string authenticationUsernameKey ("authenticationUsername"); const std::string passwordKey ("password"); const std::string hostnameKey ("hostname"); const std::string accountEnableKey ("enable"); diff --git a/sflphone-common/src/sip/sipaccount.cpp b/sflphone-common/src/sip/sipaccount.cpp index 184ecc7ad2..14bae3324d 100644 --- a/sflphone-common/src/sip/sipaccount.cpp +++ b/sflphone-common/src/sip/sipaccount.cpp @@ -165,6 +165,7 @@ void SIPAccount::serialize (Conf::YamlEmitter *emitter) Conf::ScalarNode id (Account::_accountID); Conf::ScalarNode username (Account::_username); + Conf::ScalarNode authenticationUsername (_authenticationUsername); Conf::ScalarNode password (Account::_password); Conf::ScalarNode alias (Account::_alias); Conf::ScalarNode hostname (Account::_hostname); @@ -223,6 +224,7 @@ void SIPAccount::serialize (Conf::YamlEmitter *emitter) accountmap.setKeyValue (typeKey, &type); accountmap.setKeyValue (idKey, &id); accountmap.setKeyValue (usernameKey, &username); + accountmap.setKeyValue (authenticationUsernameKey, &authenticationUsername); accountmap.setKeyValue (passwordKey, &password); accountmap.setKeyValue (hostnameKey, &hostname); accountmap.setKeyValue (accountEnableKey, &enable); @@ -294,6 +296,7 @@ void SIPAccount::unserialize (Conf::MappingNode *map) map->getValue(typeKey, &_type); map->getValue(idKey, &_accountID); map->getValue(usernameKey, &_username); + map->getValue(authenticationUsernameKey, &_authenticationUsername); map->getValue(passwordKey, &_password); map->getValue(hostnameKey, &_hostname); map->getValue(accountEnableKey, &_enabled); -- GitLab