CallControlAPIDivertAsync(ActiveConnection, String, Boolean, CallControlAPIDivertReason) Method
divert to number with voicemail flag. This is for backward compatibility.
Namespace: TCX.PBXAPIAssembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
public static Task<CallControlResult> DivertAsync(
this ActiveConnection ac,
string destination,
bool vmailFlag = false,
CallControlAPIDivertReason forwardingType = CallControlAPIDivertReason.ForwardAll
)
- 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
TaskCallControlResultIn 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).