Home > Store

Windows Telephony Programming: A Developer's Guide to TAPI

Register your product to gain access to bonus material or receive a coupon.

Windows Telephony Programming: A Developer's Guide to TAPI

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 1998
  • Dimensions: 7-1/4" x 9-1/4"
  • Pages: 320
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-63450-3
  • ISBN-13: 978-0-201-63450-1

Windows Telephony Programming: A Developer's Guide to TAPI offers C++ programmers a clear and concise tutorial to Windows Telephony that significantly reduces TAPI's steep learning curve. TAPI is an API that has standardized the interface between computers and telephony hardware. Included with Windows 9x and Windows NT, TAPI is a major element of the Windows communications backbone. Despite its growing importance, TAPI may still be very daunting and difficult to master.

The author makes TAPI more accessible by revealing its underlying architecture and rationale and by relating its functions and features to specific tasks developers seek to accomplish in their applications such as making, answering, and monitoring calls, handling modem data, and building an answering machine.

In addition to carefully developed, intuitive explanations, Windows Telephony Programming features numerous real-world examples of how actual TAPI programs are built, and a comprehensive C++ class library that takes much of the "grunt" work out of TAPI programming. The author also discusses building a telephony service provider and includes a complete working example.

Completely up-to-date, this book covers TAPI versions 1.x to 2.0, and offers a glimpse into the future of telephony with a preview of the new TAPI 3.0 incorporated into Windows NT 5.0. To exploit the power of TAPI 3.0 when it becomes available, it is imperative that you understand TAPI 1.x
and 2.0 first. This book provides the clear methodology to gain that understanding.



0201634503B04062001

Downloads

Source Code

Click below for Source Code related to this title:
Source Code

Extras

Web Resources

Click below for Web Resources related to this title:
DevelopMentor

Sample Content

Table of Contents

(Each chapter concludes with "Summary".)

Preface.

This Book.

Who This Book Is For.

Simplifying TAPI.

Who I Am?

Need More?

The Source.

Acknowledgments.



Prologue.

The Story of Windows Telephony.

The Telephony Connection.

Telephony Drivers.

Existing Telephony Standards.

Windows Telephony.

Evangelizing TAPI.



1. Windows Telephony Overview.

The Telephone Network.

Windows Open Services Architecture.

Call Control Focus.

Media Access via Existing APIs.

Network Independence.

Connection-model Independence.

Platform Independence.

Line Sharing.



2. Assisted Telephony.

Assisted Telephony Functions.

Assisted Telephony Example.

Compiling for TAPI.

Assisted Telephony from Visual Basic.

Phone Numbers.



3. Making a Call.

The Sample.

Initialization.

Discovering Line Capabilities.

Using Dialing Options.

Opening the Line.

Making the Call.

Monitoring Call Progress.

Ending a Call.

Closing the Line.

Shutdown.



4. The Telephony Framework.

Initialization and Shutdown.

Capabilities Discovery.

Telephony Objects.

Event Routing.

Miscellany.

Using the TFX.



5. Answering a Call.

Valid Lines Opening.

Privileges and Media Modes.

Application Priority.

Incoming Call Detection.

Call Answering.

Automated Voice Calls.

Speaker Phones.



6. Call Management.

Assisted Telephony Request Recipients.

Unhandled Media Modes.

Data Calls.

Call Monitoring.



7. Telephony Service Providers.

Overview.

The Sample.

Initialization and Shutdown.

Capabilities Negotiation.

Lines.

Calls.

Asynchronous Functions.

Spontaneous Events.

User Interface Functions.

Status.

Installation.

Debugging.



8. The Future of Windows Telephony.

Features of TAPI 3.0.

Object Model.

Initialization and Shutdown.

TAPI 3.0 Collections.

Capabilities Discovery.

Terminals.

Events.

Making a Call.



Appendix A. Telephony Device Classes.


Appendix B. TFX Reference.

CtAddressCaps.

CtAppSink.

CtCall.

CtCallInfo.

CtCallList.

CtCallSink.

CtCallStatus.

CtCountryList.

CtDeviceID.

CtLine.

CtLineDevCaps.

CtLineSink.

CtPhone.

CtPhoneCaps.

CtPhoneSink.

CtProviderList.

CtReplyTarget.

CtTranslateCaps.

CtTranslateOutput.

CtVariableData.

TFX Helper Functions.

CtWave.

CtWaveSink.

Using the TFX. 0201634503T04062001

Preface

This Book

This book has been a part of my life for the last four years. It started as an outline when I was working at Intel. Herman D'Hooge had produced the first version of the TAPI (Telephony API) specification, and Paul Drews was leading its implementation. I was working in a group building telephony boards and telephony applications. I remember it was quite a challenge debugging early TAPI applications that were using alpha versions of TAPI 0.9 through first-try TSPs running in VxDs acting as a multi-tasking OS below single-tasking Windows 3.1 communicating with another OS running on a preproduction DSP mounted on a prototype telephony board. If you think the Telephony API hard to program now, you don't know what you missed.

Which brings me to the purpose of this book. The Telephony API is a fundamental piece of the communications architecture of the modern versions of Windows, that is, Windows 9x, Windows NT 41, and even Windows CE. However, it's fairly large and somewhat daunting to the uninitiated. Still, there is an underlying architecture and a philosophy that, once understood, makes TAPI, if not especially easy, at least approachable. As one of the world's first TAPI programmers, I feel I have a TAPI story to tell that will help ease you into the world of Windows Telephony. This book tells that story.

Who This Book Is For

This book is for any C or C++ developer interested in building telephony applications under Windows. This may include human-assisted applications such as call control, call monitoring, and predictive dialing or human-free applications such as audiotex, voicemail, and automatic call directing. The range of telephony applications includes really anything you can do when you hook a telephone or telephone line to a computer. This book is also useful for the TAPI Service Provider developer, as an example of both how typical TAPI applications are written as well as how to write an actual TSP.

Simplifying TAPI

This book will be especially useful to the C++ and Microsoft Foundation Classes programmer. In the course of developing TAPI applications, I found myself doing the same things over and over. So, like any C++ programmer, I built a class library. And then I threw it away. I built another one, and I threw that one away, too. Finally, I built the Telephony Framework (TFX). The TFX provides a set of C++ classes that, while leveraging the object model built into TAPI, removes much of the grunt work of developing TAPI applications. Since I was using the TFX to build MFC applications, it has been designed to work well in MFC applications. In addition, many of the samples in this book use the TFX in MFC applications to demonstrate how TAPI is used.

That's not to say that this book is useful only to MFC programmers. In fact, only half of the chapters of this book mention MFC. Those that do always describe and show how the underlying TAPI functions work before they show the TFX equivalent. If you never want to use the TFX or MFC or even C++, I believe this book still provides a good starting place for any TAPI developer.

The TFX itself is really just a repository for a set of classes that I find useful when developing telephony applications in C++. I present them so that the sample applications, and therefore the concepts, are a little cleaner. If you want to use the TFX to build telephony applications, feel free. If you'd rather just use it as a set of code to copy and paste from or as an illustration of the concepts of TAPI, that's OK, too.

Who I Am

Whenever I pick up a technical book of any kind, I always wonder what makes the author qualified to write the book. I assume you do the same, so I wanted to tell you a little bit about myself. I've done telephony work of one kind or another for about nine years as of the time of this writing. I started at Spanlink Communications building small- to medium-sized multicaller voicemail, audiotex, and host access systems. Those 386 systems, at their peak, handled about 50 simultaneous calls at a rate of 1,200 calls/day. After about three years at Spanlink, I moved to Intel to help with their telephony efforts. Although the telephony boards I helped to build never saw the light of day, they did spawn the current crop of video conferencing boards that Intel still makes. While at Intel, I developed a bunch of TAPI applications, provided many bug reports, submitted a telephony-related patent, and wrote the original outline of this book . . . which I then filed in a drawer.

I left my software engineering job at Intel to become an instructor at DevelopMentor. There, I began hanging out with the cream of the crop of the Windows community. These were the guys who spoke at the conferences, wrote the magazine articles, and authored the books that I knew and loved. What can I say? I was inspired. A couple of e-mails later and this book was born.

TAPI has evolved since I first put fingers to keyboard composing that original outline. It's moved from 16-bit TAPI 1.3 running under Windows 3.x, to half 16-bit/half 32-bit TAPI 1.4 running under Windows 95, to full 32-bit TAPI 2.0 running under Windows NT 4.0, to the latest COM-based TAPI 3.0 slated to run under Windows NT 5.0. While I have drawn the line at covering any 16-bit versions of TAPI, I've tried to cover the basics of writing both TAPI applications as well as TAPI Service Providers for all 32-bit versions. The last chapter provides an advance preview of TAPI 3.0.

Need More?

This book is not an encyclopedia of TAPI. Instead, I have emphasized its architecture and philosophy with the idea that anything else you need to learn will fit more easily into your newfound understanding. I can recommend several additional resources. First, I recommend the online documentation. The overviews of both TAPI and the TSPI included with the platform SDK are excellent. They were an immensely helpful resource in my understanding some of the more obscure parts of TAPI, as well as helping to track the changes from one version to another.

I also recommend several resources on the Internet. Two public newsgroups, microsoft.public.win32.programming.tapi and microsoft.public.win95.commtelephony, have many excellent people answering questions. If your local USENET provider doesn't have these newsgroups, Microsoft maintains a public news server at msnews.microsoft.com.

Microsoft maintains a World Wide Web ("Web") site dedicated to the communications infrastructure of Windows that includes the latest news on TAPI. That address is http://www.microsoft.com/communications. It also maintains an FTP site with some tools and samples at ftp://ftp.microsoft.com/developr/TAPI.

If you'd like answers to some questions about TAPI that I didn't cover enough in the book and you suspect that they have been asked before, I recommend the two TAPI Frequently Asked Questions pages that I'm aware of:

http://ourworld.compuserve.com/homepages/schenck/tapifaq.txt
http://ourworld.compuserve.com/homepages/bruce_pennypacker/ tapifaq.htm
Both are well-maintained by long-time TAPI developers Bruce Pennypacker and Grant Schenck. If you post a question on one of the newsgroups, it's likely that one of these two guys will be providing the answer.

If you'd like more information from me, the Web site for this book is maintained at http://www.sellsbrothers.com/telprog and will include any updates that I need to make after the book is published. Finally, if you'd like to comment to me about this book, you may send me e-mail at csells@sellsbrothers.com.

The Source

The source code for all of the samples provided with the book as well as the entire TFX is provided on the Web site http://www.sellsbrothers.com/telprog. I thought long and hard about providing the source as a set of appendices for this book and ultimately decided against it. Printed source is sometimes useful for understanding specific implementation details. As these details come up, I tried very hard to put the significant source into the text of the chapters themselves. On the other hand, having the full source printed at the end of the book performs no real service except to puff up the size (and potentially the perceived coverage) of the book. As my favorite books are of the thin, focused variety, I found this unnecessary bloating unappealing to me. Plus, I may save a few trees in the bargain.

Acknowledgments

This book is the concentrated effort of many individuals. First, I want to thank my wife, Melissa. She tolerates me and my work. What could be more helpful to a telephony nerd than that? And I'd like to thank my kids, John and Tom, for bringing me back to reality when I needed it most. You guys give meaning and perspective to everything I do.

I'd like to thank my publishing team at Addison-Wesley. Because I'm such a sloth of an author, this has included several people who have come and gone during the life of this project, as well as others who have stuck it out the whole time, including Mike Hendrickson, Ben Ryan, J. Carter Shanklin, Alan Feuer, and Rachel Beavers.

I'd also like to thank the folks who invented, implemented, evangelized, and supported this technology, including Herman D'Hooge, Raman Srinivasan, Paul Drews, Guy Blair, Toby Nixon, Dan Knudson, Charles Fitzgerald, and Mitch Goldberg.

As they're the guys in the trenches battling it out over my clumsy prose, the reviewers need a great deal of thanks. They are Jon Flanders, Tim Ewald, Raman Srinivasan, Alan Moffet, Bruce Pennypacker, Grant Schenck, R. Keith Cox, and Erik Gilbert. I'd really like to thank Tim specifically. He had no telephony background before reading this book, but he has such great insight into the flow of any story that his feedback was indescribably valuable.

I'd like to thank Brett Shockley, Todd Parentau, and Skip Singer for the job at Spanlink Communications, where I got my start in telephony. I'd like to thank Matt Katzer for hiring me at Intel, where I was allowed to play with TAPI before nearly anyone else. Finally, I'd like to thank Mike Abercrombie and Don Box for hiring me at DevelopMentor. DevelopMentor has really given me the skills to tell this story. Don specifically showed me what the term "expert" means and why no one can ever truly be one (with the possible exception of Don himself).

These people have made the book as good as it is. Of course, all mistakes and omissions are mine.



0201634503P04062001

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020