This article is a detailed guide about Ozeki Visual C++ softphone example program.
After reading through this page you
will be fully familiar with all the essential terms concerning Visual C++ softphone development
and what you will need for creating your own solution using Ozeki VoIP SIP SDK.
Visual C++.Net is a high level programming language that can be used for creating professional
VoIP solutions that use the extraordinary background support of Ozeki VoIP SIP SDK.
The example program that is introduced in this article shows all the basic concepts about
connecting the C++.Net client application and the C# SDK solutions.
The following program was made in Visual Studio 2010. You will need to have that
IDE for having the program work properly.
The softphone is initialized by calling the static CreateSoftPhone method of the
SoftPhoneFactory class (Code 1). The softphone needs to be subscribed for the incoming call event too. The
event handler method is defined later in the class.
The connection will need a SIP account to be defined. The new command is used for creating instances of C# classes.
The telephone function also requires a phone line that is initialized with the SIP account and
a specified transport type, in this case it is UDP. The phone line also needs to
subscribe for the state change event and it needs to be registered to a SIP PBX.
The phone call uses some MediaHandler objects that need to be initialized. These
are basically the audio devices (microphone and speaker), the MediaConnector that
connects the proper devices together and the audio sender and receiver object that are responsible for the
audio data sending and receiving during the call (Code 2).
Setting the incoming call can be made like in the following method shown in
Code 3. The main point in this code is that you should not forget to
wire up the call for the possible events that can occur. This will be done by calling the
This article introduced you the basic knowledge about the Visual C++ softphone example program and showed how Ozeki
VoIP SIP SDK can help you to fulfill your wishes about this topic. If you have
read through this page carefully, you already have all the knowledge you need to start on your own solution.
As you are now familiar with all the terms concerning this topic, now it is
time to take a step further and explore what other extraordinary solution Ozeki VoIP SIP SDK can provide to you.