hangUpCall

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

Hangs up an active 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 hangUpCall(context: Context, accountID: String, callID: Int, statusCode: Int)

Hangs up an active 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 hangup action. See pjsip_status_code