TapiAppCallDisconnected Event |
Occurs when a call has been disconnected.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax public static event TapiEventHandler CallDisconnected
Public Shared Event CallDisconnected As TapiEventHandler
public:
static event TapiEventHandler^ CallDisconnected {
void add (TapiEventHandler^ value);
void remove (TapiEventHandler^ value);
}
Value
Type:
Traysoft.AddTapiTapiEventHandlerRemarks
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 |
---|
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)
{
Console.WriteLine("Call disconnected on line {0}", args.Line.Name);
}
TapiApp.Initialize("MyApp")
AddHandler TapiApp.CallDisconnected, AddressOf OnCallDisconnected
...
Private Sub OnCallDisconnected(ByVal sender As Object, ByVal args As TapiEventArgs)
Console.WriteLine("Call disconnected on line {0}", args.Line.Name)
End Sub
No code example is currently available or this language may not be supported.
See Also