Skip to main content

📖 SIP Status Codes & Call Disconnect Reference

This document provides a reference of SIP response codes, standardized SDK disconnect causes, and best practices for handling call disconnection in the Pitel VoIP Android SDK.


🔍 Overview​

When a call session terminates, the SDK triggers the onCallDisconnected callback in PitelCallListener (or observeCallState):

override fun onCallDisconnected(statusCode: Int, reason: String?, cause: String?) {
Log.d("VoIP", "Call ended: code=$statusCode, reason=$reason, cause=$cause")
}
  • statusCode (Int): Raw SIP response code returned by PBX (e.g. 200, 486, 404).
  • reason (String?): Reason text received from PBX (e.g. "Busy Here", "Not Found").
  • cause (String?): Standardized SDK cause identifier normalized across Android & iOS.

📊 Complete SIP Status Codes Table​

SIP CodeSDK CauseMeaning / ContextNormal vs Error
200NORMAL_CLEARINGCall ended normally after conversation.Normal
487ORIGINATOR_CANCELEither caller or callee canceled/hung up before answer.Normal
486 / 600USER_BUSYCallee is currently busy on another call or rejected.Error / Busy
480NO_USER_RESPONSECallee is temporarily unavailable or timed out ringing.Error / Timeout
404UNALLOCATED_NUMBERDialed extension or phone number does not exist on PBX.Error / Not Found
401 / 403 / 603CALL_REJECTEDPBX rejected the call due to auth failure or permissions.Error / Rejected
408 / 504RECOVERY_ON_TIMER_EXPIRERequest timed out waiting for PBX server response.Error / Timeout
488 / 606INCOMPATIBLE_DESTINATIONCodec mismatch or media negotiation failed.Error / Codec
502NETWORK_OUT_OF_ORDERTelephony gateway or intermediate carrier link is down.Error / Gateway
500 / 503NORMAL_TEMPORARY_FAILURETemporary PBX server or network failure.Error / Server