How to configure Ozeki C# VoIP SDK source for creating voice conference room
This configuration guide helps you setup and use the C# VoIP SDK source for
creating voice conference room. Please find the
configuration steps below and learn further development options and licensing
information for the SDK.
Follow the configuration steps...
- Download and extract the Ozeki Voice Conference Room example.
- Load the sample program into Visual Studio 2010.
- To operate the program properly you need to make some configuration in the
telephone initialization section of the PhoneForm.vb file:
private void InitializeSoftPhone()
{
try
{
softPhone = SoftPhoneFactory.CreateSoftPhone("192.168.91.42", 5700, 5750, 5700);
softPhone.ChangeNATSettings(NATTraversalMethodType.NONE, "", "", "");
softPhone.IncomingCall += new EventHandler<VoIPEventArgs<IPhoneCall>>(softPhone_IncomingCall);
phoneLine = softPhone.CreatePhoneLine(new SIPAccount(true, "oz871", "oz871", "oz871", "oz871", "192.168.91.212", 5060));
phoneLine.PhoneLineInformation += new EventHandler<VoIPEventArgs<PhoneLineInformation>>(phoneLine_PhoneLineInformation);
softPhone.RegisterPhoneLine(phoneLine);
mixer = new AudioMixer();
mixer.FrameMixingCompleted += new EventHandler<OzSystem.GenericEventArgs<byte[]>>(mixer_FrameMixingCompleted);
}
catch (Exception ex)
{
MessageBox.Show(String.Format("You didn't give your local IP adress, so the program won't run properly.\n {0}", ex.Message), string.Empty, MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
In the telephone initialization section of the PhoneForm.vb file search for the following line:
softPhone = SoftPhoneFactory.CreateSoftPhone("your local IP Address", 5700, 5750, 5780, Nothing)
Replace the local IP address of the PC on which the system runs instead of „your local IP Address”.
Also check if there is a NAT sbetween 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. This will determine which of the users
wishes to register in the given SIP PBX. Search for the following line:
phoneLine = softPhone.CreatePhoneLine(new SIPAccount(True, "oz891", "oz891", "oz891", "oz891", "192.168.91.212", 5060))
'True' is the registrationRequired parameter. This parameter is a
true value that allows to receive calls (not just initiate calls)
if the registration is successful. Registration with 'False' value only
allows to initiate calls (not allows to receive calls).
In the example, the „oz891” represents the SipAccount displayname, username,
registername and registerpassword. The next two parameters
are the IP or domain address of the SIP PBX and its port number.
- Finally, you only need to 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 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 the 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
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.
For more information please contact us at info@voip-sip-sdk.com!
|