Skip to content
Snippets Groups Projects
Commit 420f1af2 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

* #6408 : store/restore authenticationUsername from config file

parent 8d5f2fce
Branches
Tags
No related merge requests found
......@@ -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");
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment