CallControlAPIReplaceWithAsync(ActiveConnection, RegistrarRecord, DN, CallControlAPIDivertReason) Method

BlindTransfer to the specific device. Ignores all forwarding rules and tries to deliver call to specific device.

Definition

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

Parameters

ac  ActiveConnection
The connection which should be replaces by connection with device
device  RegistrarRecord
The exact device which should answer to replace ac
onBehalf  DN  (Optional)
route on behalf of the DN instead of owner of the connection
divertreason  CallControlAPIDivertReason  (Optional)
No None if routing should inherit divertion path

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