cancel
open override fun cancel(call: Call, onSuccess: suspend (Call) -> Unit?, onError: suspend (Exception) -> Unit?)
Cancel an outgoing call if any. Same as rejectCall but can be overridden for different behavior on Outgoing calls.
Parameters
call
the Call to cancel.
onSuccess
optionally get notified if the operation was success.
onError
optionally get notified if the operation failed.