Commit ff985c09 authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent e8f5964f
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
* Author: Ronan Abhamon * Author: Ronan Abhamon
*/ */
#include "../../app/paths/Paths.hpp"
#include "../../utils/Utils.hpp" #include "../../utils/Utils.hpp"
#include "../core/CoreManager.hpp" #include "../core/CoreManager.hpp"
...@@ -168,7 +169,13 @@ bool AccountSettingsModel::addOrUpdateProxyConfig ( ...@@ -168,7 +169,13 @@ bool AccountSettingsModel::addOrUpdateProxyConfig (
} }
shared_ptr<linphone::ProxyConfig> AccountSettingsModel::createProxyConfig () { 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 ( void AccountSettingsModel::addAuthInfo (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment