Commit cf80c65b authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Small fixes

parent 5f24fa53
......@@ -21,6 +21,8 @@ namespace Linphone.Agents
Debug.WriteLine("[LinphoneForegroundLifeTimeAgent] The UI has entered the foreground.");
Globals.Instance.StartServer(RegistrationHelper.OutOfProcServerClassNames);
//Force the callController to be initialized now to avoid creating it at the last moment (workaroud outgoing call crash after app started)
Globals.Instance.CallController.ToString();
}
/// <summary>
......
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.18033
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Linphone.Core.OutOfProcess {
internal sealed class RegistrationHelper {
internal static string[] OutOfProcServerClassNames = new string[] {
"Linphone.Core.OutOfProcess.Server"};
}
}
......@@ -107,9 +107,9 @@ CallController::CallController() :
defaultContactImageUri(nullptr),
linphoneImageUri(nullptr),
ringtoneUri(nullptr),
callerNumber(nullptr)
callerNumber(nullptr),
callCoordinator(VoipCallCoordinator::GetDefault())
{
this->callCoordinator = VoipCallCoordinator::GetDefault();
// URIs required for interactions with the VoipCallCoordinator
String^ installFolder = String::Concat(Windows::ApplicationModel::Package::Current->InstalledLocation->Path, "\\");
......
......@@ -787,7 +787,7 @@ void call_state_changed(::LinphoneCore *lc, ::LinphoneCall *call, ::LinphoneCall
Windows::Phone::Networking::Voip::VoipPhoneCall^ platformCall = callController->OnIncomingCallReceived(lCall, lCall->GetRemoteContact(), lCall->GetRemoteAddress()->AsStringUriOnly(), nullptr);
lCall->CallContext = platformCall;
}
else if (state == Linphone::Core::LinphoneCallState::OutgoingInit) {
else if (state == Linphone::Core::LinphoneCallState::OutgoingProgress) {
Windows::Phone::Networking::Voip::VoipPhoneCall^ platformCall = callController->NewOutgoingCall(lCall->GetRemoteContact(), lCall->GetRemoteAddress()->AsStringUriOnly());
lCall->CallContext = platformCall;
}
......
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