Share via

TAPI, How it connects to modem and phone line

Ed Bitzer 6 Reputation points
2021-11-21T18:18:31.027+00:00

My question is about TAPI and how it connects through my modem to my telephone line but fear I am in the wrong place – if so please push me in the right direction.

Very old guy retired guy that still writes an occasional visual basic utility or modifies old utilities written years ago. Was brought up with Com ports and wrote an early dialer utility by providing the necessary variables to the SerialPort Control finishing with sending the ATCT string. A search here for “TAPI” had one hit this year about using and the response was to use an API. I just modified my old visual basic coded dialer using the COM port with the Lib “TAPI32.dll’s function tapiRequestMakeCall. This took a single line to send the phone number and works fine. But I do not understand how TAPI connects via what ports. Any help here?

Ed

Windows development | Windows API - Win32

2 answers

Sort by: Most helpful
  1. Junjie Zhu - MSFT 21,746 Reputation points
    2021-11-22T05:37:46.537+00:00

    Hello,
    Welcome to Microsoft Q&A!

    How TAPI works and connects to the device is explained in the documentation of Microsoft Telephony Programming Model. The process and schematic diagram are shown below.

    • An application loads the TAPI DLL into its process space and uses TAPI to communicate needs.
    • TAPI establishes an RPC link communications with the TAPI Server.
    • In addition, TAPI 3.x creates an MSP object and communicates with it using a defined set of commands, the Media Service Provider Interface (MSPI).
    • When an application calls a TAPI operation, the TAPI dynamic-link library validates and marshals the parameters, then forwards the information to TAPISRV.
    • TAPISRV tracks communications resources available to the local machine and interfaces with the Telephony Service Providers (TSPs) using the Telephony Service Provider Interface (TSPI).
    • Communications between a TSP and an MSP take place using a virtual connection that passes through the TAPI DLL and TAPISRV.
    • The TSP/MSP pair supplies information on device state and capabilities and implements the specific commands required for a desired response.

    tapicomp.png

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  2. Ed Bitzer 6 Reputation points
    2021-11-22T19:12:13.487+00:00

    Sorry I am slow in responding. My fundamentals are weak and I spent several hours this morning reading to better understand the very thorough response by JunjieZhu.

    The fundamentals may never be achieved at this age but I believe clarification on the link between the Telephone Service Provider (TSP) and Device would help. May I assume the Device in the schematic diagram is my modem, a USB 56K External Dial Up Fax Data Modem and the line connecting to the TSP is the port? If so can I identify that process name and port? I am comfortable with Device Manager and several SysInternals utilities that monitor ports.

    Ed


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.