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