Commit 714b8a56 authored by Sylvain Berfini's avatar Sylvain Berfini

Go to call when restarting the app from launcher while a call is in background

parent e1b466f7
using Linphone.Controls;
using Linphone.Core;
using Linphone.Model;
using Linphone.Resources;
using Microsoft.Phone.Controls;
......@@ -81,6 +82,14 @@ namespace Linphone
String sipAddressToCall = NavigationContext.QueryString["sip"];
addressBox.Text = sipAddressToCall;
// Navigate to the current call (if existing) when using the app launcher to restart the app while call is in background
if (LinphoneManager.Instance.LinphoneCore.GetCallsNb() > 0)
LinphoneCall call = LinphoneManager.Instance.LinphoneCore.GetCurrentCall();
String uri = call.GetRemoteAddress().AsStringUriOnly();
NavigationService.Navigate(new Uri("/Views/InCall.xaml?sip=" + uri, UriKind.RelativeOrAbsolute));
private void call_Click_1(object sender, EventArgs e)
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