Click here to Skip to main content
       

Mobile

 
SuggestionWindows Phone 7: how to create VoIP apps in WP7 PinmemberWill19843-Oct-12 3:28 
Hello,
 
I wished to create VoIP apps for my Windows Phone 7 and I used a sample program provided by Ozeki VoIP SIP SDK. On client side I used Visual Studio 2010 for my project. They provided me codes for every step which was very helpful for me. For example: how to set the user interface layout for my project. Based on the codes it was an easy task to build my app. For example: The event handler for the Stop Call button is shown in this code:
 
1.	private void btnStopCall_Click(object sender, RoutedEventArgs e)  
2.	{  
3.	    if (callProcess)  
4.	    {  
5.	        txtboxInfo.Text = "Call stop, ready to call.";  
6.	        connection.InvokeOnConnection("CallStop");  
7.	        ReleaseStreams();  
8.	        btnCall.IsEnabled = true;  
9.	    }  
10.	} 
 
The server side codes for server class definition, handling client connection and disconnection, changing the client’s call state into InCall, invoking the client side OnPlayRemoteStream method, notifying the remote client about the end of the call were provided as well. For example:
 
1.	public void CallStop(IClient invokerClient)  
2.	{  
3.	    if (Clients.ContainsKey(invokerClient))  
4.	    {  
5.	        MyClient invoker = Clients[invokerClient];  
6.	        invoker.RemoteParty.OnCallStop();  
7.	    }  
8.	}  
 
If you are interested in this topic you can find the other codes for the project here http://voip-sip-sdk.com/p_511-windows-phone-platform-voip.html.
 
Good developing! Wink | ;)
 
Will
GeneralRe: Windows Phone 7: how to create VoIP apps in WP7 PinmvpRichard MacCutchan3-Oct-12 4:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 24 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid