CallControlAPIRouteToAsync(ActiveConnection, Destination, Int32, CallControlAPIDivertReason) Method

Simplified vertion which receives DestinationStruct and Timeout

Definition

Namespace: TCX.PBXAPI
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
public static Task<CallControlResult> RouteToAsync(
	this ActiveConnection ac,
	Destination target,
	int timeout_seconds = 180,
	CallControlAPIDivertReason divert_reason = CallControlAPIDivertReason.None
)

Parameters

ac  ActiveConnection
target  Destination
timeout_seconds  Int32  (Optional)
divert_reason  CallControlAPIDivertReason  (Optional)
divertion reason if route to needs to continue diversion path of the "parent" or None if diversion should be reset

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