Click here to Skip to main content
13,293,950 members (54,984 online)
Click here to Skip to main content
Add your own
alternative version


72 bookmarked
Posted 2 Mar 2005


, 12 Mar 2005
Rate this:
Please Sign up or sign in to vote.
VOIP using Microsoft TAPI


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


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


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


About the Author

Park NoYoon
Software Developer interpay
Korea (Republic of) Korea (Republic of)
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMy vote of 3 Pin
Mic6-Aug-13 15:27
memberMic6-Aug-13 15:27 
Generalvoip sip Pin
dan rogy19-Sep-10 10:42
memberdan rogy19-Sep-10 10:42 
GeneralHi Pin
gsandeep1006-Nov-09 3:26
membergsandeep1006-Nov-09 3:26 
GeneralHelp Pin
micro2412-Apr-09 21:27
membermicro2412-Apr-09 21:27 
QuestionI have a question about your program.^^ Pin
junsungahn16-Jan-09 2:13
memberjunsungahn16-Jan-09 2:13 
GeneralHelp. Pin
Pratiksha Saxena2-Nov-08 20:49
memberPratiksha Saxena2-Nov-08 20:49 
GeneralRe: Help. Pin
Park NoYoon3-Nov-08 19:22
memberPark NoYoon3-Nov-08 19:22 
GeneralRe: Help. Pin
Pratiksha Saxena3-Nov-08 19:51
memberPratiksha Saxena3-Nov-08 19:51 
i have windows XP.
I tried running exe but its not working.
Please help...

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 13 Mar 2005
Article Copyright 2005 by Park NoYoon
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid