Click or drag to resize
TapiAppCallDisconnected Event
Occurs when a call has been disconnected.

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

Value

Type: Traysoft.AddTapiTapiEventHandler
Remarks
This event occurs when a call has been disconnected, either by AddTapi.NET, telephony hardware or the remote party. This event is fired when remote party hangs up the phone. It might take 10-20 seconds for the telephony hardware to detect that the remote party hung up. In addition, this event is also fired when outgoing call cannot be completed because there is no dailtone, a busy signal was detected or if the called party did not answer within the time interval set in NoAnswerTimeout property. After CallDisconnected event occurs, another outgoing call can be placed on the same line.
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 CallDisconnected event.
TapiApp.Initialize("MyApp");
TapiApp.CallDisconnected += OnCallDisconnected;
...

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