declineIncomingCall

open fun declineIncomingCall(statusCode: Int)


open fun declineIncomingCall(statusCode: Int, reason: String)

Declines the incoming call with statusCode. When reason isn't empty, the response carries it in an RFC 3326 Reason header (SIP;cause=<code>;text="<reason>"), so the server can tell why the call was declined. The status line keeps its standard phrase.