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


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

Decline an incoming call, telling the server why. 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

reason

short English text sent in an RFC 3326 Reason header (SIP;cause=<statusCode>;text="<reason>"); null or empty for none