Commit 5e2d89c4 authored by Sylvain Berfini's avatar Sylvain Berfini

Fix issue 1713: output log level not set in background

parent eaefa491
......@@ -62,6 +62,7 @@ namespace Linphone.Agents
{
// Initiate incoming call processing by creating the Linphone Core
LpConfig config = OopServer.LinphoneCoreFactory.CreateLpConfig(ApplicationData.Current.LocalFolder.Path + "\\linphonerc", "Assets/linphonerc-factory");
OopServer.LinphoneCoreFactory.SetLogLevel((OutputTraceLevel) config.GetInt("app", "LogLevel", 255)); //255 is None
OopServer.LinphoneCoreFactory.CreateLinphoneCore(null, config);
OopServer.LinphoneCore.SetRootCA("Assets/rootca.pem");
OopServer.LinphoneCore.SetChatDatabasePath(ApplicationData.Current.LocalFolder.Path + "\\chat.db");
......
......@@ -44,6 +44,7 @@ namespace Linphone.Agents
{
var server = BackgroundManager.Instance.OopServer;
LpConfig config = server.LinphoneCoreFactory.CreateLpConfig(ApplicationData.Current.LocalFolder.Path + "\\linphonerc", "Assets/linphonerc-factory");
server.LinphoneCoreFactory.SetLogLevel((OutputTraceLevel)config.GetInt("app", "LogLevel", 255)); //255 is None
server.LinphoneCoreFactory.CreateLinphoneCore(this, config);
server.LinphoneCore.SetRootCA("Assets/rootca.pem");
server.LinphoneCore.SetChatDatabasePath(ApplicationData.Current.LocalFolder.Path + "\\chat.db");
......
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