Click here to Skip to main content
Click here to Skip to main content

Examples to create your Conferencing System in .NET, C# VOIP & Video Conferencing Systems using H.323 and TAPI 3

, 31 Jan 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
Four examples to create your Conferencing System in .NET using H.323 and TAPI 3


I noticed that there are many members who want to know how to create an Audio/Video Conferencing System using .NET. We know that there isn't any managed class that supports audio or video streaming in .NET, so I decided to write some applications that can help in writing your conferencing application. From time to time, you will find new examples and tutorials on VoIP, Video Conferencing and Network Programming on my site and also in our Forums that specialize in Network Programming and VoIP.

Introduction to H.323

H.323 is an umbrella recommendation from the ITU-T, that defines the protocols to provide audio-visual communication sessions on any packet network. It is currently implemented by various Internet real-time applications such as NetMeeting and Ekiga (the latter uses the OpenH323 implementation). It is a part of the H.32x series of protocols which also addresses communications over ISDN, PSTN or SS7. H.323 is commonly used in VoIP, Internet Telephony, or IP Telephony and IP-based videoconferencing. For more information about H.323, see Internet Telephony with H.323 on MSDN.

Introduction to TAPI 3 Telephony

TAPI version 3 is a COM-based API that merges classic and IP telephony. Possible applications range from simple voice calls over the Public Switched Telephone Network (PSTN) to multicast multimedia IP conferencing with quality of service (QOS).

There are four major components to TAPI 3:

  1. COM API
  2. TAPI Server
  3. Telephony Service Providers (TSPs)
  4. Media Stream Providers (MSPs)

The API is implemented as a suite of Component Object Model (COM) objects. Moving TAPI to the object-oriented COM model allows developers to write TAPI-enabled applications in many languages, such as .NET, Java, or C++. Use of COM enables component upgrades of TAPI features.

The COM-based telephony API, TAPI 3.x, is available starting with Microsoft Windows X. TAPI 3.x provides greatly enhanced development tools for the modern world of communication programming, where a "call" may be a video stream on an IP-based network, and there is no phone set involved in the session.

Sample image

Generally speaking, application writers will find that TAPI 3.x provides better support to implement flexible communications controls. For more information, see Telephony Integration and Conferencing on MSDN.

Introduction to RTP

RTP - Real Time Transport Protocol is an Internet protocol for transmitting real-time data such as audio and video. RTP itself does not guarantee real-time delivery of data, but it does provide mechanisms for sending and receiving applications to support streaming data. Typically, RTP runs on top of the UDP protocol, although the specification is general enough to support other transport protocols that know how Windows supports Real Time Communication. See this RTCP API article.

RTP Header

RTP Header


  • V indicates the version of RTP used
  • P indicates the padding, a byte not used in the bottom packet to reach the parity packet dimension
  • X is the presence of the header extension
  • CC field is the number of CSRC identifiers following the fixed header. CSRC field are used, for example, in conference case
  • M is a marker bit
  • PT is the payload type

My Projects

Example 1: Voice Conferencing Using OPEN H.323 Library

In this example, I used the Openh323 ocx to create H.323 Voice Chat - it's very easy to use.


Example 2: Voice Conferencing Using TAPI3.DLL

In this example, I used TAPI3 to create audio conferencing, For more information, see Rendezvous Code Examples on MSDN.

TAPI 3 Voice Conference

Example 3 and 4: Peer-to-Peer Video Voice Chat

In this example, I used the Wave Library to capture and send voice through the network and I used the Stream classes to transfer captured video images from a camera.

Peer-Peer Conerence System

In this other example, I used the avicap32.dll API to capture the camera image. You can also use this example to capture from any other capturing device such as a TV Tuner and then you can send it through the network.

Sample image


In this article, I have just posted some examples that will help you to start creating your conferencing system. I will explain the technical code description in other articles.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Fadi Abdelqader
Systems Engineer SocketCoder.Com
Jordan Jordan
Fadi Abdelqader
Facebook Group:
Facebook Page:
Last Published Book:
-Professional Network, Distributed Systems & TCP/IP Programming In .NET Framework 1.1 & 2.0 (2006 Release)
Last Published eBook:
- The SocketCoder e-Reference For Network, Distributed Systems And TCP/IP Programming In .NET, Arabic (SocketCoder.Com 2010)
Last Projects:
- Silverlight Based Projects For Web Video Conferencing (WCS,WMS,WCS Plus..)
-(SocketCoder) RTP Multicasting VOIP Library
-(SocketCoder) Remote Controlling Systems
Last SocketCoder RSS:

Comments and Discussions

QuestionErrors when built PinmemberMember 1136014827-Jan-15 2:56 
GeneralMy vote of 4 PinmemberMic6-Aug-13 15:27 
GeneralMy vote of 3 Pinmembertambadesachin21-May-13 2:16 
QuestionWhat is the easiest way to test the H323 VOIP sample povided PinmemberMember 977473320-Feb-13 18:19 
QuestionIVR Voice Navigation PinmemberNiko6825-Sep-12 3:23 
QuestionSending text,image,voice from c# apps to Java PinmemberAINJALIL8830-Aug-12 4:05 
GeneralExcellent Pinmemberalbhadly25-Aug-12 3:24 
QuestionOlder DLL's and the VS 2010 on 64bit... Pinmemberyetanotheruser928-Jun-12 1:00 
AnswerRe: Older DLL's and the VS 2010 on 64bit... PinmemberBanjoo15-Jul-12 1:48 
AnswerRe: Older DLL's and the VS 2010 on 64bit... PinmemberArtebin29-May-14 11:12 
GeneralMy vote of 5 Pinmembermanjukgowda11-Apr-12 3:20 
Bugabout video conferencing Pinmemberrakeshnagarshyam23-Mar-12 9:35 
Questionh323 323 Voice example Pinmemberflor_jim11-Mar-12 14:57 
QuestionIf it support Wince or Win Mobile? Pinmembermahaofan@gmail.com9-Feb-12 22:32 
QuestionThanks!! [modified] PinmemberIronWolf193-Feb-12 20:50 
QuestionSEHException was unhandled External component has thrown an exception. Framework 2 to 4 [modified] PinmemberAuntpol27-Nov-11 7:21 
GeneralNo connection could be made because the target machine activity refused it PinmemberMember 408286014-May-11 18:15 
GeneralRe: No connection could be made because the target machine activity refused it PinmemberMember 1139748423-Jan-15 20:44 
GeneralMy vote of 5 PinmemberRahul Ramesh Patil31-Mar-11 19:27 
QuestionHow to use? PinmemberMember 44231544-Jan-11 19:56 
NewsA New Client/Server Windows Based Voice Chat Sample PinmemberFadi Abdelqader21-Nov-10 3:10 
NewsPlease Use this Sample for P2P Video Chat instead of the P2P sample in this article PinmemberFadi Abdelqader14-Nov-10 11:07 
QuestionLicensing topic: Sample for P2P Video Chat instead of the P2P sample in this article PinmemberGuido Langer5-Jan-11 1:14 
GeneralMy vote of 1 Pinmemberdoctorwho60126-Aug-10 11:27 
GeneralRe: My vote of 1 PinmemberFadi Abdelqader14-Nov-10 11:08 
Questionvoice conference b/w more then 2 users Pinmemberwaqas3169-Jul-10 4:17 
GeneralMy vote of 5 Pinmembersulemankhan9-Jul-10 2:33 
Questionproblem with peer to peer full Duplex application Pinmembersagar.kandikatla18-May-10 0:54 
GeneralMCU programming Pinmembershabonaa19-Sep-09 11:10 
GeneralError on H323 PinmemberThayhor21-May-09 21:01 
GeneralRe: Error on H323 PinmemberFrancisco Moreno Sanz28-Jul-10 6:29 
I'm having the same error.
Any suggestion?
GeneralRe: Error on H323 Pinmemberporcelli23-Sep-11 22:33 
GeneralDoes Not working Pinmemberbiplab11-May-09 3:12 
GeneralRe: Does Not working Pinmemberabhilash.P.24-Feb-11 21:46 
GeneralSalam 3lykom Pinmembermaltub4-Mar-09 2:16 
GeneralAudio Delay Pinmemberketansnadar20-Jan-09 23:01 
Generalvoice/video conferencing Pinmemberfred4life3-Dec-08 5:39 
GeneralRe: voice/video conferencing Pinmemberarvindjaat25-Feb-12 1:42 
GeneralGetting Runtime Error Pinmemberraajaak3-Nov-08 2:07 
GeneralRTP DirectShow Filter PinmemberhINTModuleState21-Aug-08 4:02 
GeneralPInovke DLL error! PinmemberMember 210738620-Jun-08 7:46 
AnswerRe: PInovke DLL error! PinmemberFadi M. Abdel-qader21-Jul-08 2:48 
QuestionERROR:NO connection could be made the remote client actively refused it (IPAddress:PORT_NO) [modified] PinmemberRoshan8626-Apr-08 2:18 
Questionopenh323.ocx in vista dosnot install in registart how can i install it? Pinmemberyoach18-Mar-08 6:30 
AnswerRe: openh323.ocx in vista dosnot install in registart how can i install it? PinmemberFadi M. Abdel-qader21-Jul-08 2:52 
GeneralTAPI AUDIO CONFERENCING Pinmemberonlineedu12327-Nov-07 1:51 
QuestionHOW to use ITCallHub in TAPI3Lib Pinmembereng.zainab19-Nov-07 5:09 
Generalpacket size Pinmemberwimpos7-Sep-07 2:45 
QuestionPort to Pocket PC Pinmembermaxpa1n24-Aug-07 5:49 
QuestionAre these examples complete? Pinmemberquanterer23-Aug-07 18:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150327.1 | Last Updated 31 Jan 2007
Article Copyright 2007 by Fadi Abdelqader
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid