AddTapi.NET Developer's Manual
TapiApp Class
NamespacesTraysoft.AddTapiTapiApp
Performs AddTapi.NET initialization/shutdown and manages telephony lines.
Declaration Syntax
C#Visual BasicVisual C++
public static class TapiApp
Public NotInheritable Class TapiApp
public ref class TapiApp abstract sealed
Members
All MembersMethodsPropertiesEvents



IconMemberDescription
CallConnected
Occurs when a call has been established and the connection is made.

CallDisconnected
Occurs when a call has been disconnected.

CallInfo
Occurs when the call information about a call has changed.

CallState
Occurs when the state of a call has changed.

DeviceSpecific
Notifies the application about device specific events occurring on a line, address, or call.

DeviceSpecificFeature
Notifies the application about device specific events occurring on a line, address, or call.

DigitDetected
Notifies the application about DTMF digit detected on a line.

IncomingCall
Occurs when a new incoming call is received.

Initialize(String)
Initializes AddTapi.NET.

LineAdded
Occurs when a new line device is added to the system.

LineClosed
Occurs when a line is forcibly closed by Windows because of hardware error or configuration changes.

LineRemoved
Occurs when existing line device is removed.

Lines
Gets a list of telephony line devices available on the computer.

OutgoingCall
Occurs when a new outgoing call is detected.

SerialNumber
Sets a serial number in a licensed version of AddTapi.NET.

Shutdown()()()
Shutdowns AddTapi.NET.

TapiError
Occurs when Telephony API (TAPI) error is received while performing an asynchronous operation.

UseSynchronizationContext
Indicates whether AddTapi.NET should use SynchronizationContext when firing events.

Voices
Gets a list of text-to-speech voices available on the computer.

Remarks
TapiApp is a static class. Methods Initialize(String) and Shutdown()()() are used to initialize and shutdown AddTapi.NET. Lines collection holds a list of telephony line devices installed on the computer. Voices is a list of text-to-speech voices available for text synthesis.
Examples
The following code shows how to initialzie and shutdown AddTapi.NET.

C#

            TapiApp.Initialize("MyApp");
            Console.WriteLine("{0} telephony lines", TapiApp.Lines.Count);
            TapiApp.Shutdown();
            

VB.NET

            TapiApp.Initialize("MyApp")
            Console.WriteLine("{0} telephony lines", TapiApp.Lines.Count)
            TapiApp.Shutdown()
            
Inheritance Hierarchy
Object
TapiApp

Assembly: Traysoft.AddTapi (Module: Traysoft.AddTapi)