declineIncomingCall

open fun declineIncomingCall(context: Context, accountID: String, callID: Int)

Decline an incoming call. If the call does not exist or has been terminated, a disconnected state will be sent to onCallState

Parameters

context

application context

accountID

account ID

callID

call ID to hang up


open fun declineIncomingCall(context: Context, accountID: String, callID: Int, statusCode: Int)

Decline an incoming call. If the call does not exist or has been terminated, a disconnected state will be sent to onCallState

Parameters

context

application context

accountID

account ID

callID

call ID to hang up

statusCode

the status code to be used for decline action. See pjsip_status_code