WINRT SIP SOLUTION

The test SIP client solution is located in the StarterWindows8UI directory named WinRT.SIP.sln.  This solution is made up of several projects, as follows:

Project

Notes

Backend-w8

Communications—contains all of the Doubango code plus C++ wrappers to abstract the Doubango API.

WinRT.SIP.Tasks

Currently unused.

WinRT.SIP.UI

The main client application.

WinRT.SIP.UILogic

Business logic, including models & SIP session management. Contains the Configuration.cs file where parameters must be placed for connecting to the SIP server.

WinRTSock.Test

Client application to test WinRTSock functionality.

WinRTSockRuntimeComponents.Test

Business logic for WinRTSock.Test project.

WinRTSockStore

A library replacement for Winsock that uses WinRT for socket communications. The WinRTSock library implements much of the functionality found in Winsock 2.0. The Winsock API is not used for any communications within the WinRTSock library.

WINRT SIP CLIENT CONFIGURATION

The WinRT.SIP.UILogic project contains the Configuration.cs file where the SIP parameters must be defined. Here is a code snippet with sample parameters for SIP2SIP for real-time communications:

        public static String DEFAULT_IDENTITY_DISPLAY_NAME = "John Doe";

        public static String DEFAULT_IDENTITY_IMPI = "johndoe@sip2sip.info";

        public static String DEFAULT_IDENTITY_IMPU = "sip:johndoe@sip2sip.info";

        public static String DEFAULT_IDENTITY_PASSWORD = "password";

        public static String DEFAULT_IDENTITY_PRIVACY = "none";

        public static String DEFAULT_NETWORK_PCSCF_HOST = "proxy.sipthor.net";

        public static int DEFAULT_NETWORK_PCSCF_PORT = 5060;

        public static String DEFAULT_NETWORK_REALM = "sip2sip.info";

        public static String DEFAULT_NETWORK_TRANSPORT = "UDP";

You can register for a SIP2SIP account here: https://mdns.sipthor.net/register_sip_account.phtml

DOUBANGO SERVER INITIALIZATION

On application startup the DoubangoServer (DoubangoServer.cs file in the WinRT.SIP.UILogic project) is used to register and configure the backend Doubango SIP server using the settings above.

After the server has been initialized successfully, the client application can now send/receive calls and text messages.

For an example of how to make a call, see MakeCallAsync implementation in the CallRespository.cs file in the WinRT.SIP.UILogic project.  For an example on how to send and receive text messages see the DialerPageViewModel.cs file in the WinRT.SIP.UILogic project.

USING THE SIP CLIENT APPLICATION

To use the SIP client, set the WinRT.SIP.UI as the startup project and run the application.  You’ll see the following UI:

 

To make calls, dial one of the following and press the “Call” button:

  •          To test outgoing audio sessions, call 3333, you should hear some music playing
  •          To test your microphone, call 4444, you should hear your echo back
  •          To access your voicemail or mailbox settings dial 1233
  •          The SIP phone number you want to call.

To send text messages:

  •          Dial the SIP phone number you want to send to and enter the message in the “Outgoing Text” textbox then press the “Text” button.

NOTE: All numbers are formatted into the following SIP address sip:{0}@sip2sip.info where {0} is replaced with the number dialed.

Last edited Jan 21, 2015 at 6:30 PM by ccarsella, version 4