Click here to Skip to main content
Licence CPOL
First Posted 6 Jan 2007
Views 406,469
Downloads 27,376
Bookmarked 344 times

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

By | 31 Jan 2007 | Article
Four examples to create your Conferencing System in .NET using H.323 and TAPI 3

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 Abdelqader

Systems Engineer
SocketCoder.Com
Jordan Jordan

Member

Fadi Abdelqader
My Site: www.SocketCoder.com
My Blog: www.socketcoder.blogspot.com
 
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:
-(SocketCoder) Silverlight Web Conferencing Project
-(SocketCoder) RTP Multicasting VOIP Library
-(SocketCoder) Remote Desktop Controlling System
 
Last SocketCoder RSS: http://www.socketcoder.com/ArticlesRSS.aspx

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 5 Pinmembermanjukgowda2:20 11 Apr '12  
Bugabout video conferencing Pinmemberrakeshnagarshyam8:35 23 Mar '12  
Questionh323 323 Voice example Pinmemberflor_jim13:57 11 Mar '12  
QuestionIf it support Wince or Win Mobile? Pinmembermahaofan@gmail.com21:32 9 Feb '12  
QuestionThanks!! [modified] PinmemberIronWolf1919:50 3 Feb '12  
QuestionSEHException was unhandled External component has thrown an exception. Framework 2 to 4 [modified] PinmemberAuntpol6:21 27 Nov '11  
GeneralNo connection could be made because the target machine activity refused it PinmemberMember 408286017:15 14 May '11  
GeneralMy vote of 5 PinmemberRahul Ramesh Patil18:27 31 Mar '11  
QuestionHow to use? PinmemberMember 442315418:56 4 Jan '11  
NewsA New Client/Server Windows Based Voice Chat Sample PinmemberFadi Abdelqader2:10 21 Nov '10  
NewsPlease Use this Sample for P2P Video Chat instead of the P2P sample in this article PinmemberFadi Abdelqader10:07 14 Nov '10  
QuestionLicensing topic: Sample for P2P Video Chat instead of the P2P sample in this article PinmemberGuido Langer0:14 5 Jan '11  
GeneralMy vote of 1 Pinmemberdoctorwho60110:27 26 Aug '10  
GeneralRe: My vote of 1 PinmemberFadi Abdelqader10:08 14 Nov '10  
Questionvoice conference b/w more then 2 users Pinmemberwaqas3163:17 9 Jul '10  
GeneralMy vote of 5 Pinmembersulemankhan1:33 9 Jul '10  
Questionproblem with peer to peer full Duplex application Pinmembersagar.kandikatla23:54 17 May '10  
GeneralMCU programming Pinmembershabonaa10:10 19 Sep '09  
GeneralError on H323 PinmemberThayhor20:01 21 May '09  
GeneralRe: Error on H323 PinmemberFrancisco Moreno Sanz5:29 28 Jul '10  
GeneralRe: Error on H323 Pinmemberporcelli21:33 23 Sep '11  
GeneralDoes Not working Pinmemberbiplab2:12 11 May '09  
I am trying to run the application "Peer-to-Peer Video Voice Chat" in my network but i get the error saying that No connection could be made because the target machine activity refused it.
 
I if you have any solution then please revert back to me thanks.Its Very Urgent.
GeneralRe: Does Not working Pinmemberabhilash.P.20:46 24 Feb '11  
GeneralSalam 3lykom Pinmembermaltub1:16 4 Mar '09  
GeneralAudio Delay Pinmemberketansnadar22:01 20 Jan '09  

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.

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