Skip to main content

📖 SIP Call Disconnect Codes Reference for iOS

This reference details standard SIP status codes returned by the Pitel VoIP SDK when a call disconnects, hangs up, or encounters a routing failure.


📊 Disconnect Status Codes Table​

SIP CodeStatus NameMeaningCommon Cause & Action
200OKNormal ClearingCall ended normally after conversation.
486Busy HereCallee BusyCallee is currently engaged in another call or manually rejected the call.
603DeclineCall DeclinedCallee explicitly tapped "Decline" on Apple CallKit or incoming UI.
408Request TimeoutTimeoutCallee did not answer within the timeout period (e.g. 30–60s) or device was unreachable.
480Temporarily UnavailableCallee OfflineCallee extension is currently not registered with PBX or has no network connection.
404Not FoundNumber Not FoundThe dialed extension or phone number does not exist on the PBX server. Check the number.
403ForbiddenPermission DeniedAccount lacks outbound calling permission, or ACL restriction is active on PBX.
487Request TerminatedCaller CancelledThe caller hung up before the callee answered the call.
488Not Acceptable HereCodec IncompatibleAudio codec negotiation failed between caller and callee devices.
503Service UnavailablePBX DownPBX server temporarily unavailable, overloaded, or maintenance in progress.

💻 Observing Disconnect Status in Swift​

In your SwiftUI view or UIKit controller, observe call state changes via globalCallStatusManager:

import SwiftUI
import PitelVoIPFramework

struct CallStatusObserverView: View {
@ObservedObject var callStatus = globalCallStatusManager

var body: some View {
VStack(spacing: 8) {
Text("Call State: \(callStatus.callState.description)")

if let lastCode = callStatus.lastDisconnectCode {
Text("Last Status: \(lastCode)")
.foregroundColor(.gray)
}
}
}
}