Commit 5bfc2386 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Removed unused stuff & updated readme/release_notes files

parent d1c6ac6b
......@@ -33,7 +33,6 @@ namespace Linphone.Controls
{
InitializeComponent();
this.DataContext = this;
Text = "miaou@sip.linphone.org";
}
private void backspace_Hold_1(object sender, System.Windows.Input.GestureEventArgs e)
......
......@@ -74,12 +74,12 @@
Margin="0,30,0,0"
Content="{Binding Path=LocalizedResources.LockScreenSettings, Source={StaticResource LocalizedStrings}}" />
<Button
<!--<Button
Grid.Row="5"
Click="Simulate_Click_1"
x:Name="Simulate"
Margin="0,30,0,0"
Content="Simulate incoming call" />
Content="Simulate incoming call" />-->
</Grid>
</ScrollViewer>
</Grid>
......
......@@ -81,58 +81,58 @@ namespace Linphone.Views
}
#region Simulate Incoming Call, to remove
private void Simulate_Click_1(object sender, RoutedEventArgs e)
{
try
{
// Create an HTTPWebRequest that posts the raw notification to the Microsoft Push Notification Service.
HttpWebRequest sendNotificationRequest = (HttpWebRequest)WebRequest.Create(((App)App.Current).PushChannelUri);
sendNotificationRequest.Method = "POST";
string rawMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<IncomingCall>" +
"<Name>" + "Belledonne Comm." + "</Name>" +
"<Number>" + "+33952636505" + "</Number>" +
"</IncomingCall>";
byte[] notificationMessage = Encoding.UTF8.GetBytes(rawMessage);
sendNotificationRequest.ContentLength = notificationMessage.Length;
sendNotificationRequest.ContentType = "text/xml";
sendNotificationRequest.Headers["X-NotificationClass"] = "4";
// 4 is the type of VoIP PNs
sendNotificationRequest.BeginGetRequestStream((IAsyncResult arRequest) =>
{
try
{
using (Stream requestStream = sendNotificationRequest.EndGetRequestStream(arRequest))
{
requestStream.Write(notificationMessage, 0, notificationMessage.Length);
}
sendNotificationRequest.BeginGetResponse((IAsyncResult arResponse) =>
{
try
{
HttpWebResponse response = (HttpWebResponse)sendNotificationRequest.EndGetResponse(arResponse);
string notificationStatus = response.Headers["X-NotificationStatus"];
string subscriptionStatus = response.Headers["X-SubscriptionStatus"];
string deviceConnectionStatus = response.Headers["X-DeviceConnectionStatus"];
}
catch (Exception)
{
}
}, null);
}
catch (Exception)
{
}
}, null);
}
catch (Exception)
{
}
}
//private void Simulate_Click_1(object sender, RoutedEventArgs e)
//{
// try
// {
// // Create an HTTPWebRequest that posts the raw notification to the Microsoft Push Notification Service.
// HttpWebRequest sendNotificationRequest = (HttpWebRequest)WebRequest.Create(((App)App.Current).PushChannelUri);
// sendNotificationRequest.Method = "POST";
// string rawMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
// "<IncomingCall>" +
// "<Name>" + "Belledonne Comm." + "</Name>" +
// "<Number>" + "+33952636505" + "</Number>" +
// "</IncomingCall>";
// byte[] notificationMessage = Encoding.UTF8.GetBytes(rawMessage);
// sendNotificationRequest.ContentLength = notificationMessage.Length;
// sendNotificationRequest.ContentType = "text/xml";
// sendNotificationRequest.Headers["X-NotificationClass"] = "4";
// // 4 is the type of VoIP PNs
// sendNotificationRequest.BeginGetRequestStream((IAsyncResult arRequest) =>
// {
// try
// {
// using (Stream requestStream = sendNotificationRequest.EndGetRequestStream(arRequest))
// {
// requestStream.Write(notificationMessage, 0, notificationMessage.Length);
// }
// sendNotificationRequest.BeginGetResponse((IAsyncResult arResponse) =>
// {
// try
// {
// HttpWebResponse response = (HttpWebResponse)sendNotificationRequest.EndGetResponse(arResponse);
// string notificationStatus = response.Headers["X-NotificationStatus"];
// string subscriptionStatus = response.Headers["X-SubscriptionStatus"];
// string deviceConnectionStatus = response.Headers["X-DeviceConnectionStatus"];
// }
// catch (Exception)
// {
// }
// }, null);
// }
// catch (Exception)
// {
// }
// }, null);
// }
// catch (Exception)
// {
// }
//}
#endregion
}
}
\ No newline at end of file
......@@ -14,4 +14,8 @@ If you have a FileNotFoundException is mscorlib during debug phase,
open DEBUG->Exceptions and uncheck Common Language Runtime Exceptions->System.IO.FileNotFoundException
YOU CAN'T PASS A NULL STRING FROM C# TO C++/CX (it has to be empty) AND YOU CAN'T RECEIVE A NULL STRING FROM C++/CX (It will always be an empty string).
See http://stackoverflow.com/questions/12980915/exception-when-trying-to-read-null-string-in-c-sharp-winrt-component-from-winjs
\ No newline at end of file
See http://stackoverflow.com/questions/12980915/exception-when-trying-to-read-null-string-in-c-sharp-winrt-component-from-winjs
The logs are stored in a file in the application isolated storage. To retrieve it, you need to install this tool on your computer : http://wptools.codeplex.com/
If the application crashes during a call, you may loose the sound in linphone for a while. A device rebbot fix this issue.
\ No newline at end of file
......@@ -15,6 +15,15 @@ If not, right click on Linphone project and choose the menu "Set as StartUp proj
See README.txt file for an explanation about how the project is working.
03-29-2013:
* Outgoing calls are working
* Incoming calls are working when the app is in foreground
* Can go to background when a call is running without killing the app
* History is displaying all calls logs correctly until reboot (no persistence yet)
* Call can be paused/resumed (from other side only for now, crash if trying to do from wp)
* Speaker and mute are working
* Can register sip account from settings
03-01-2013:
* Improved stubs to mimic liblinphone behavior (registration states, call states, global states) amd fake call logs
* Can simulate incoming/outcoing calls
......
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