rejectIncoming

open fun rejectIncoming(@NonNull call: CallEvent, @NonNull responseCode: String, @NonNull phrase: String, @Nullable warning: String): Boolean

Reject (hang-up) an incoming call.

The observer will be notified about the call state change.

After calling this method, the call should be closed.

Return

true if the call was rejected or false if the call is already established or terminated.

Parameters

call

The call to reject.

responseCode

SIP Response code.

phrase

SIP phrase to use after the response code.

warning

A warning message to be included in SIP response. Can be null or empty.

See also