deflect_sync


Description:

[ Version ( since = "1.12" ) ]
public bool deflect_sync (string number, Cancellable? cancellable = null) throws Error

Synchronously requests to deflect the incoming call.

This call will be considered terminated once the deflection is performed.

The calling thread is blocked until an incoming call is ready. See deflect for the asynchronous version of this method.

Parameters:

this

A Call.

number

new number where the call will be deflected.

cancellable

A Cancellable or null.

Returns:

true if the operation succeeded, false if error is set.