feat(AccountSettingsModel): addOrUpdateProxyConfig load nom xml config file before create config

This commit is contained in:
Ronan Abhamon 2017-07-19 15:47:09 +02:00
parent e8f5964fc3
commit ff985c090c

View file

@ -20,6 +20,7 @@
* Author: Ronan Abhamon
*/
#include "../../app/paths/Paths.hpp"
#include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp"
@ -168,7 +169,13 @@ bool AccountSettingsModel::addOrUpdateProxyConfig (
}
shared_ptr<linphone::ProxyConfig> AccountSettingsModel::createProxyConfig () {
return CoreManager::getInstance()->getCore()->createProxyConfig();
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
core->getConfig()->loadFromXmlFile(
Paths::getAssistantConfigDirPath() + "create-linphone-sip-account.rc"
);
return core->createProxyConfig();
}
void AccountSettingsModel::addAuthInfo (