Load the sample program into the Visual Studio 2010.
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:
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);
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:
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.
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
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:
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).