Introduction
A .tsp file is, in the explorer’s extension list, a telephony service
provider (TSP) for the Windows Telephony API (TAPI). Microsoft’s documents describe
the provider through the functions it implements, which TAPI calls; the documents
consulted do not name the .tsp extension, and do not say what kind of
file a provider is. The explorer reads a file dropped here as a
PE file, with the structure described on the
.EXE page.
A file dropped on any page opens in the explorer, with its structure, resources and code.
What is particular: the TSPI exports
The Telephony Service Provider Interface (TSPI) is a set of functions whose names
begin with TSPI_, declared in tspi.h. Microsoft’s life-cycle
page describes a session: TAPI negotiates the version of the interface, starts the
session, carries out operations and eventually shuts the session down, and a provider
can support many sessions between being loaded and being freed. Examples:
| Function | What Microsoft says |
|---|---|
TSPI_providerInit | Initializes the service provider and gives it parameters required for subsequent operations. Called after the interface version is known, and before any other TSPI_line or TSPI_phone function except TSPI_lineNegotiateTSPIVersion; strictly paired with TSPI_providerShutdown. Prototype: LONG TSPIAPI TSPI_providerInit(DWORD dwTSPIVersion, DWORD dwPermanentProviderID, DWORD dwLineDeviceIDBase, DWORD dwPhoneDeviceIDBase, DWORD_PTR dwNumLines, DWORD_PTR dwNumPhones, ASYNC_COMPLETION lpfnCompletionProc, LPDWORD lpdwTSPIOptions). |
TSPI_lineOpen | Opens the line device with the given device identifier and returns the provider’s handle for it; the provider keeps the TAPI handle for its calls to the LINEEVENT callback. Prototype: LONG TSPIAPI TSPI_lineOpen(DWORD dwDeviceID, HTAPILINE htLine, LPHDRVLINE lphdLine, DWORD dwTSPIVersion, LINEEVENT lpfnEventProc). |
TSPI_providerInstall, TSPI_providerConfig, TSPI_providerRemove | Act on the provider itself rather than on a device, and affect configuration that survives across sessions; installation must happen before any other TSPI function. |
The pages consulted do not say that these functions are exported by name from a file, or how a provider is found and loaded. Any exports of a file dropped here can be read in its export directory.
Not described
Unknown
- Extension and container: no Microsoft page consulted names the .tsp extension or says that a provider is a DLL, or how its TSPI functions are exported.
Known, not yet covered
- Reference: the full list of TSPI functions, which are required and which optional, and the structures they use.
Links
Software
Reference
- Life Cycle of a Telephony Service Provider – sessions, installation and removal
- TSPI_providerInit – initialises the provider
- TSPI_lineOpen – opens a line device
- PE Format – Microsoft’s specification of PE32 and PE32+