CallControlAPIReplaceWithAsync(ActiveConnection, DestinationStruct, DN, CallControlAPIDivertReason) Method

BlindTransfer to specific destination. It is most flexible version which allows to choose any type of destination. Allows to bypass routing rules.

Definition

Namespace: TCX.PBXAPI
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
public static Task<CallControlResult> ReplaceWithAsync(
	this ActiveConnection ac,
	DestinationStruct destination,
	DN onBehalf = null,
	CallControlAPIDivertReason divertreason = CallControlAPIDivertReason.None
)

Parameters

ac  ActiveConnection
the active connection which should be replaced with the connection made with destination
destination  DestinationStruct
The DestinationStruct which may specify exact or routable destination
onBehalf  DN  (Optional)
Route to the destination should be performed on behalf of the specified DN
divertreason  CallControlAPIDivertReason  (Optional)
not the None if tranfer should inherit diversion path from the parent

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