65.9K
CodeProject is changing. Read more.
Home

VideoIPPhone

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.29/5 (7 votes)

Mar 3, 2005

CPOL
viewsIcon

75312

downloadIcon

8011

VOIP using Microsoft TAPI

Introduction

I use Microsoft TAPI 3.0 to make video and voice communicating applications. This project was edited using Visual Studio .NET. Microsoft Platform SDK is needed to compile.

VOIP simple test map:

  • Direct PC to PC case: two PCs, VideoIPPHONE
  • PC to PC through Gatekeeper(H.323) case: Gatekeeper(H.323), two PC, VideoIPPHONE
  • PC to PSTN case: Gateway(H.323), Gatekeeper(H.323), one PC, VideoIPPHONE, telephone

Background

You can get the Microsoft TAPI 3.0 information from here.

You can make VOIP that uses SIP or H.323 Protocol.

SIP protocol opensource site is Vovida.

H.323 protocol opensource site is openh323.

Using the Code

Try connection to acceptor.

CMsTapiOutgoing    outgoing.StartMsTapi(4, wszIpAddress); 
// 4 is option for LAN .

Answer from sender:

CMsTapiIncoming    incoming.AnswerTheCall();

Session halt:

CMsTapiIncoming    incoming.EndMsTapi();
CMsTapiOutgoing    outgoing.EndMsTapi();

Points of Interest

Microsoft TAPI 3.0 has a bug.
When the application communicates to PSTN terminal through the CISCO H.323 gateway, the application or PSTN terminal sends sound one way only.
It is because during communication through RTP port is divided.

CISCO H.323 Gateway

  • RTP: 5000
  • RTCP: 5001

Microsoft TAPI

  • RTP: 5002
  • RTCP: 5001