diff --git a/sflphone-common/src/account.h b/sflphone-common/src/account.h index 56b7669eb69a7955adbe1e148e004e0e56e9539d..9483efe7f25f38f77b725b2df502aec91bdf6d4f 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 184ecc7ad2fef47e9364b96dcb561113005ec4e4..14bae3324d2a5864ddd7f94df60503fba2bc44a0 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);