How to build your own C# Autodialer
me start with a short background story. One day, one of my oldest friends (who
is a professional business man) came to me (the developer) for advice. He had a
specific idea to boost his business: he wanted to install an Autodialer
software. He asked for my expert opinion about how this could be done. That
time I had a lot of work so I didn't have the time to come up with something
brand new and write him a program. But I really wanted to help him, so in my
freetime I was searching for a convenient solution. I've found it. We've done
it. The business is on the wing ever since. My friend gave his approval to
publish his story and the method he chose. I've thought this could be useful
for many people and for many company.
key to build an Autodialer, and also to the great success, was a software
development kit. It has a sample program to have a look at its facilities.
Here's how you configurate it, after downloading, extracting, and opening it:
click on MainForm.cs file and select
View Code option (Figure 1).
Search for MainForm_Load
method. You can find the configuration of the autodialer within this method.
/// Occurs when the user loads the form.
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
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 calls.
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.
configuration, click on Build button
in Visual Studio or click F5 on your
you see, that building an Autodialer isn't necessarily a hard thing. You only
have to find the appropriate help. Here you can find the sample program for