CallControlAPIDivertAsync(ActiveConnection, Destination, CallControlAPIDivertReason) Method

Diverts call to the specified destination

Definition

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

Parameters

ac  ActiveConnection
ActiveConnection to raplace
to  Destination
replace with route to this destination
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