Click or drag to resize
TapiAppDeviceSpecificFeature Event
Notifies the application about device specific events occurring on a line, address, or call.

Namespace: Traysoft.AddTapi
Assembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax
public static event TapiDeviceSpecificEventHandler DeviceSpecificFeature

Value

Type: Traysoft.AddTapiTapiDeviceSpecificEventHandler
Remarks

DeviceSpecificFeature event is used by a telephony service provider to notify the application about device specific events. The application must negotiate device specific extension version using NegotiateDeviceSpecificExtensionVersion(UInt32, UInt32) before opening the line to receive DeviceSpecificFeature events. The meaning of the event and its parameters are device specific. Please refer to the TAPI documentation for the telephony hardware to find out about device specific functionality supported by the telephony service provider.

Note Note
In Windows Forms and WPF applications AddTapi.NET executes the handler of this event on the main thread of the application (the thread that called Initialize(String)). It is safe to access Windows Forms or WPF controls from the event handler without using Invoke mechanism.
Examples
The following code shows how to handle DeviceSpecificFeature event.
TapiApp.Initialize("MyApp");
TapiApp.DeviceSpecificFeature += OnDeviceSpecificFeature;
...

void OnDeviceSpecificFeature(object sender, TapiDeviceSpecificEventArgs args)
{
    Console.WriteLine("Device specific feature event on line {0}", args.Line.Name);
    Console.WriteLine("Param1={0}, Param2={1}, Param3={2}", args.Param1, args.Param2, args.Param3);
}
See Also