Click or drag to resize
TapiAppCallConnected Event
Occurs when a call has been established and the connection is made.

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

Value

Type: Traysoft.AddTapiTapiEventHandler
Remarks
This event occurs when connection to a remote party has been established. For incoming calls, this event is fired after the call has been answered. For outgoing calls, this event is fired after the call has been answered if the line supports predictive dialing (also called hardware answer detection). Most voice modems do not support predictive dialing and report that the call is connected immediately after the number has been dialed, before called party picks up the phone. In such case this event is fired before outgoing call is actually answered.
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 CallConnected event.
TapiApp.Initialize("MyApp");
TapiApp.CallConnected += OnCallConnected;
...

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