Click or drag to resize
TapiAppOutgoingCall Event
Occurs when a new outgoing call is detected.

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

Value

Type: Traysoft.AddTapiTapiEventHandler
Remarks
This event occurs when a new outgoing call is detected on the open line. Please note that voice modems cannot detect outgoing calls dialed from the attached phone.
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 OutgoingCall event.
TapiApp.Initialize("MyApp");
TapiApp.OutgoingCall += OnOutgoingCall;
...

void OnOutgoingCall(object sender, TapiEventArgs args)
{
    // Display a message to the user
    Console.WriteLine("Outgoing call to {0} on line {1}", args.Call.CalledID, args.Line.Name);
}
See Also