Click here to Skip to main content
6,293,171 members and growing! (11,840 online)
Email Password   helpLost your password?
General Programming » Internet / Network » General     Advanced License: The Code Project Open License (CPOL)

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

By Fadi M. Abdel-qader

Four examples to create your Conferencing System in .NET using H.323 and TAPI 3
C#, Windows, .NET, Visual Studio, Dev
Posted:6 Jan 2007
Updated:31 Jan 2007
Views:139,627
Bookmarked:209 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
46 votes for this article.
Popularity: 7.72 Rating: 4.64 out of 5
1 vote, 2.2%
1

2
2 votes, 4.3%
3
6 votes, 13.0%
4
37 votes, 80.4%
5

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.

See this website for more articles and examples. Feel free to post your comments or questions.

License

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

About the Author

Fadi M. Abdel-qader


Member
Fadi Abdelqader
www.SocketCoder.com

Working as Systems Engineer & Developer In The ABEGS Organization in Riyadh/Saudi Arabia

Researches:
I published researches to develop a set of advanced systems such as Remote Monitoring System, Remote Controlling System, Voice Communication and Voice Conferencing Systems , Remote Classroom and Distance Learning Systems, Check www.SocketCoder.Com for more details.
Occupation: Systems Engineer
Company: SocketCoder.Com
Location: Jordan Jordan

Other popular Internet / Network articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 55 (Total in Forum: 55) (Refresh)FirstPrevNext
GeneralError on H323 PinmemberThayhor21:01 21 May '09  
GeneralDoes Not working Pinmemberbiplab3:12 11 May '09  
GeneralSalam 3lykom Pinmembermaltub2:16 4 Mar '09  
GeneralAudio Delay Pinmemberketansnadar23:01 20 Jan '09  
Generalvoice/video conferencing Pinmemberfred4life5:39 3 Dec '08  
GeneralGetting Runtime Error Pinmemberraajaak2:07 3 Nov '08  
GeneralRTP DirectShow Filter PinmemberhINTModuleState4:02 21 Aug '08  
GeneralMulti user video conferensing PinmemberhINTModuleState5:04 15 Aug '08  
GeneralPInovke DLL error! PinmemberMember 21073867:46 20 Jun '08  
AnswerRe: PInovke DLL error! PinmemberFadi M. Abdel-qader2:48 21 Jul '08  
QuestionERROR:NO connection could be made the remote client actively refused it (IPAddress:PORT_NO) [modified] PinmemberRoshan862:18 26 Apr '08  
Generalopenh323.ocx in vista dosnot install in registart how can i install it? Pinmemberyoach16:30 8 Mar '08  
AnswerRe: openh323.ocx in vista dosnot install in registart how can i install it? PinmemberFadi M. Abdel-qader2:52 21 Jul '08  
GeneralTAPI AUDIO CONFERENCING Pinmemberonlineedu1231:51 27 Nov '07  
GeneralHOW to use ITCallHub in TAPI3Lib Pinmembereng.zainab5:09 19 Nov '07  
Generalpacket size Pinmemberwimpos2:45 7 Sep '07  
QuestionPort to Pocket PC Pinmembermaxpa1n5:49 24 Aug '07  
QuestionAre these examples complete? Pinmemberquanterer18:11 23 Aug '07  
GeneralRTCP API and web application Pinmembertempsh23:13 22 Aug '07  
GeneralProblem for connecting remote computer PinmemberSaranga810:11 22 Aug '07  
GeneralThrowing Exception RemoteHost Forcibily close the connection PinmemberMohammed Raheem2:18 16 Aug '07  
QuestionCould you fix this problem "NO connection could be made the remote client actively refused it." ???? [modified] PinmemberArun Yodyana0:45 16 Jul '07  
QuestionPleas Eng.Fadi Help ME Pinmemberabdalrahmnan13:01 29 Jun '07  
Questionfull duplex has problem Pinmemberamr foda0:56 23 Jun '07  
AnswerRe: full duplex has problem Pinmembersmile_benny12:51 25 Jun '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 31 Jan 2007
Editor: Deeksha Shenoy
Copyright 2007 by Fadi M. Abdel-qader
Everything else Copyright © CodeProject, 1999-2009
Web13 | Advertise on the Code Project