CallControlAPIDivertAsync(ActiveConnection, String, Boolean, CallControlAPIDivertReason) Method

divert to number with voicemail flag. This is for backward compatibility.

Definition

Namespace: TCX.PBXAPI
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
public static Task<CallControlResult> DivertAsync(
	this ActiveConnection ac,
	string destination,
	bool vmailFlag = false,
	CallControlAPIDivertReason forwardingType = CallControlAPIDivertReason.ForwardAll
)

Parameters

ac  ActiveConnection
active connection which should be replaced with specified number
destination  String
number to call
vmailFlag  Boolean  (Optional)
leave voicemail
forwardingType  CallControlAPIDivertReason  (Optional)
diversion reason

Return Value

TaskCallControlResult

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ActiveConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also