Ozeki VoIP SDK - Product Guide
Developers Guide
How to configure an autodialer in C# using the Ozeki VoIP SIP softphone source code
![]() |
Download: | Autodialer.zip |
This configuration guide helps you setup and use an autodialer in C# using the Ozeki VoIP SIP softphone source code. Please find the configuration steps below and learn further development options and licensing information for the SDK.
Configuration steps
- Download the Ozeki C# Autodialer sample program.
- Extract the Ozeki C# Autodialer sample program into a directory (e.g. c:\Autodialer).
- Open the Autodialer.sln file in the extracted directory (e.g. c:\Autodialer \Autodialer.sln).
- Right click on MainForm.cs file and select View Code option (Figure 1).
- localIPAddress:
This is the local IP address of the computer. If there are more network cards, then you need to enter the IP address of that network card here, with which you connect to the PBX or to the VoIP service provider.
- minPort:
This is the minimum port that can be used.
- maxPort:
This is the maximum port that can be used.
- localSIPPort:
This is the port reserved for SIP. SIP messages will be listened to via this port.
- wavPath:
This is the path for the audio file that will be played during the calls.
- registrationRequired
The registration to the PBX is required. Please note that if you do not register in the PBX, you will only be able to make calls but you will not be able to receive calls.
- displayName
This name will be displayed for the the called party during the calls.
- userName
This is the username will be used during calls.
- registerName
This is the name used for registration.
- registerPassword
This password is needed for registration and for authentication during calls.
- domainServerHost
This is the IP address or domain name of the PBX.
- domainServerPort
This is the port number of the PBX. - After configuration, click on Build button in Visual Studio or click F5 on your keypad.

Figure 1 - View code option
Search for MainForm_Load method. You can find the configuration of the autodialer within this method.
/// <summary>
/// Occurs when the user loads the form.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void MainForm_Load(object sender, EventArgs e)
{
#region DataBinding
// See later
#endregion
#region Configuration
autodialer = new Autodialer(GetLocalIP().ToString(), 5060, 5080, 5060, @"..\..\Resources\autodialer-example.wav");
autodialer.ProcessingCompleted += autodialer_ProcessingCompleted;
autodialer.PhoneLineStateChanged += autodialer_PhoneLineStateChanged;
var sipAccount = new SIPAccount(true, "oz890", "oz890", "oz890", "oz890", "192.168.91.212", 5060);
autodialer.CreateAndRegisterPhoneLine(sipAccount);
#endregion
#region Copyright
// Implementation…
#endregion
}
Parameters for the autodialer:
public Autodialer(string localIPAddress,
int minPort,
int maxPort,
int localSIPPort,
string wavPath)
Parameters:
The SIP account includes information with which you can register in
the PBX or the VoIP service provider successfully.
Parameters for SIP account:
public SIPAccount(
bool registrationRequired,
string displayName,
string userName,
string registerName,
string registerPassword,
string domainServerHost,
int domainServerPort)
Parameters:
After making the build and running the sample program you can see the following interface
(Figure 2).
In the first column of the list (Phone number) you can enlist the telephone numbers
to be called. By clicking on the Start button, the autodialer starts to call
the listed phone numbers. You can check the progress (Progress) and the exact
status of calls (Call state) on the interface.
In Answer column you can check the DTMF signals if the called party press
a key to answer.

Figure 2 - Interface
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 or the number of phone lines that can be registered.
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. On the
Registration tab you can provide the serial number and click on the Activate button.
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 3).

Figure 3 - License Manager
As the next step, enter your serial number you have received from Ozeki at Serial number edit box (Figure 4).

Figure 4 - 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 5).

Figure 5 - Activation successful
For more information please contact us at info@voip-sip-sdk.com!
INTERMEDIATE
VoIP technology walkthrough
Softphone development
Webphone development
Mobile development
Voice recording
GETTING AROUND
Sitemap
Search the manual
API documentation
FAQ
Appendix


