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.
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).
Figure 1 - View code option
Search for MainForm_Load method. You can find the configuration
of the autodialer within this method.
/// Occurs when the user loads the form.
/// <param name="sender"></param>
/// <param name="e"></param>
void MainForm_Load(object sender, EventArgs e)
// See later
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);
Parameters for the autodialer:
public Autodialer(string 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.
This is the minimum port that can be used.
This is the maximum port that can be used.
This is the port reserved for SIP. SIP messages will be listened to via this port.
This is the path for the audio file that will be played during the calls.
The SIP account includes information with which you can register in
the PBX or the VoIP service provider successfully.
Parameters for SIP account:
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
This name will be displayed for the the called party during the calls.
This is the username will be used during calls.
This is the name used for registration.
This password is needed for registration and for authentication during calls.
This is the IP address or domain name of the PBX.
This is the port number of the PBX.
After configuration, click on Build button in Visual Studio or
click F5 on your keypad.
After making the build and running the sample program you can see the following interface
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
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
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 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).