Click here to Skip to main content
15,867,835 members
Articles / Programming Languages / C#

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

Rate me:
Please Sign up or sign in to vote.
4.85/5 (108 votes)
31 Jan 2007CPOL3 min read 894.4K   86.6K   431   97
Four examples to create your Conferencing System in .NET using H.323 and TAPI 3

Image 1

Introduction

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

Where:

  • 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.

H323

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

Conclusion

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.

License

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


Written By
Systems Engineer SocketCoder.Com
Jordan Jordan
Fadi Abdelqader
WebSite: http://www.SocketCoder.com
Facebook Group: http://www.facebook.com/groups/socketcoder/
Facebook Page: http://www.facebook.com/socketcoders/

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: http://www.socketcoder.com/feed/

http://www.socketcoder.com

Comments and Discussions

 
AnswerRe: NullReferenceException in Peer to Peer full duplex voice chat. Pin
florisprinsloo31-May-17 22:19
florisprinsloo31-May-17 22:19 
QuestionHow to GetCallInformation and Transfer call In addtapi.net with asp.net c# ? Pin
Jignesh Patel 42827-Nov-16 0:16
Jignesh Patel 42827-Nov-16 0:16 
QuestionIs there VCS example? Pin
roni_mn24-Oct-16 23:11
roni_mn24-Oct-16 23:11 
Questionhow to save captured image and video from webcam using c# Pin
roddam harini3-Sep-15 23:22
roddam harini3-Sep-15 23:22 
Questionhow it possible that your project wotk? Pin
knuzich12-Jul-15 22:35
knuzich12-Jul-15 22:35 
QuestionErrors when built Pin
Member 1136014827-Jan-15 1:56
Member 1136014827-Jan-15 1:56 
GeneralMy vote of 4 Pin
Mic6-Aug-13 14:27
Mic6-Aug-13 14:27 
GeneralMy vote of 3 Pin
tambadesachin21-May-13 1:16
tambadesachin21-May-13 1:16 
QuestionWhat is the easiest way to test the H323 VOIP sample povided Pin
Member 977473320-Feb-13 17:19
Member 977473320-Feb-13 17:19 
QuestionIVR Voice Navigation Pin
Niko6825-Sep-12 2:23
Niko6825-Sep-12 2:23 
QuestionSending text,image,voice from c# apps to Java Pin
AINJALIL8830-Aug-12 3:05
AINJALIL8830-Aug-12 3:05 
GeneralExcellent Pin
albhadly25-Aug-12 2:24
albhadly25-Aug-12 2:24 
QuestionOlder DLL's and the VS 2010 on 64bit... Pin
yetanotheruser928-Jun-12 0:00
yetanotheruser928-Jun-12 0:00 
AnswerRe: Older DLL's and the VS 2010 on 64bit... Pin
Banjoo15-Jul-12 0:48
Banjoo15-Jul-12 0:48 
AnswerRe: Older DLL's and the VS 2010 on 64bit... Pin
Artebin29-May-14 10:12
Artebin29-May-14 10:12 
GeneralMy vote of 5 Pin
manjukgowda11-Apr-12 2:20
manjukgowda11-Apr-12 2:20 
Bugabout video conferencing Pin
rakeshnagarshyam23-Mar-12 8:35
rakeshnagarshyam23-Mar-12 8:35 
Questionh323 323 Voice example Pin
flor_jim11-Mar-12 13:57
flor_jim11-Mar-12 13:57 
QuestionIf it support Wince or Win Mobile? Pin
mahaofan@gmail.com9-Feb-12 21:32
mahaofan@gmail.com9-Feb-12 21:32 
QuestionThanks!! Pin
IronWolf193-Feb-12 19:50
IronWolf193-Feb-12 19:50 
QuestionSEHException was unhandled External component has thrown an exception. Framework 2 to 4 Pin
Auntpol27-Nov-11 6:21
Auntpol27-Nov-11 6:21 
GeneralNo connection could be made because the target machine activity refused it Pin
Member 408286014-May-11 17:15
Member 408286014-May-11 17:15 
GeneralRe: No connection could be made because the target machine activity refused it Pin
Member 1139748423-Jan-15 19:44
Member 1139748423-Jan-15 19:44 
GeneralMy vote of 5 Pin
Rahul Ramesh Patil31-Mar-11 18:27
Rahul Ramesh Patil31-Mar-11 18:27 
QuestionHow to use? Pin
Member 44231544-Jan-11 18:56
Member 44231544-Jan-11 18:56 

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

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