High performance VoIP SDK for .Net developers

VoIP SIP SDK

How to configure a Windows Form C# SIP Softphone with Ozeki VoIP SIP SDK source code

Ozeki C# VoIP SDK - Configure c-sharp Windows Forms Softphone
Download: Windows_Forms_Softphone.zip (14.9 MB)

On this page you can find a guide on how to configure a Windows Form C# SIP Softphone with Ozeki VoIP SIP SDK source code. Follow the steps below for efficient configuration.

Configuration steps

  1. Download and extract the sample program.

  2. Load the sample program into the Visual Studio 2010.

  3. For the proper operation of the program a minimal configuration is required:
    In the telephone initialization section of the PhoneMain.cs file you need to replace the local IP address of the PC on which the system runs with "your local IP Address”. Below you can find this step in details.

    This is the telephone initialization section of the PhoneMain.cs file:
  4.         private void InitializeSoftPhone()
            {
                softPhone = SoftPhoneFactory.CreateSoftPhone("your local IP Address", 5700, 5750, 5700);
        softPhone.ChangeNATSettings(NATTraversalMethodType.NONE, "", "", "");
    
                softPhone.IncomingCall += new EventHandler<VoIPEventArgs<IPhoneCall>>(softPhone_IncomingCall);
                phoneLine = softPhone.CreatePhoneLine(new SIPAccount(true, "oz891", "oz891", "oz891", "oz891", "192.168.91.212", 5060));
                phoneLine.PhoneLineInformation += new EventHandler<VoIPEventArgs<PhoneLineInformation>>(phoneLine_PhoneLineInformation);
    
                softPhone.RegisterPhoneLine(phoneLine);
            }

    In this section search for the following line:

    softPhone = SoftPhoneFactory.CreateSoftPhone("your local IP Address", 5700, 5750, 5780);ssss 

    In this line replace the local IP address of the PC on which the system runs with "your local IP Address”.

    Also set that the NAT should be between the softphone and the SIP server. This setting depends on the environment (depends on the construction of the network). If this setting is specified incorrectly, audio data from the remote end will not be received during the phone call.

    As a next step you also need to provide the user data of your selected SIP PBX as the SIP account object values. Then you need to provide the user data of your selected SIP PBX as the SIP account object values similarly to the following line:

    phoneLine = softPhone.CreatePhoneLine(new SIPAccount(true, "oz891", "oz891", "oz891", "oz891", "192.168.91.212", 5060));
  5. Finally, you only need to make a build and run the program.

    Which Ozeki SDK license you need

    The licensing of Ozeki VoIP SIP SDK is based on the numbers of simultaneous calls that can be made. In this way, you can choose from various licenses according to your needs. If you need only a few simultaneous calls, you can select a lower capacity SDK license. While if you need large numbers of calls at the same time, you can choose a high capacity SDK license.

    For further information about pricing and licensing of Ozeki VoIP SIP SDK please check the following webpage: Pricing and licensing information.

    When you purchase a license you can easily activate your demo application by entering the serial number you received from Ozeki after purchase. You can enter the serial number by opening the Ozeki VoIP SDK License Manager. In Registration tab you can provide the serial number and click on Activate.

    When you decide to purchase Ozeki VoIP SIP SDK license you can select and order the suitable license at Ozeki VoIP SIP SDK licenses page right now.

    How to activate your Ozeki SIP SDK license?

    After you purchased an Ozeki VoIP SIP SDK license you need to activate it with the serial number. Without activation, you can only use the SDK in trial mode. You will receive your serial number from Ozeki right after purchase. The following steps demonstrate how you can activate the trial version with your serial number:

    First, you need to download the trial version of Ozeki VoIP SIP SDK. For activating the trial version open the Ozeki VoIP SIP SDK License Manager (Figure 1).


    Figure 1 - License Manager

    As the next step, enter your serial number you have received from Ozeki at Serial number edit box (Figure 2).


    Figure 2 - Enter your serial number

    Finally, you just need to click on Activation button to make your license activated. If you enter a valid serial number and the activation is successful you will receive a notification about this fact (Figure 3).


    Figure 3 - Activation successful

    Now check the source code for creating a Windows Form C# SIP Softphone with Ozeki VoIP SIP SDK!

    For more information about pricing and licensing check the Pricing and licensing information webpage.