accept

open fun accept(call: Call, onSuccess: suspend (Call) -> Unit? = null, onError: suspend (Exception) -> Unit? = null)

Accept an incoming call.

Parameters

call

the call to accept.

onSuccess

invoked when the Call.join has finished.

onError

invoked when operation failed.