📖 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 Code | Status Name | Meaning | Common Cause & Action |
|---|---|---|---|
200 | OK | Normal Clearing | Call ended normally after conversation. |
486 | Busy Here | Callee Busy | Callee is currently engaged in another call or manually rejected the call. |
603 | Decline | Call Declined | Callee explicitly tapped "Decline" on Apple CallKit or incoming UI. |
408 | Request Timeout | Timeout | Callee did not answer within the timeout period (e.g. 30–60s) or device was unreachable. |
480 | Temporarily Unavailable | Callee Offline | Callee extension is currently not registered with PBX or has no network connection. |
404 | Not Found | Number Not Found | The dialed extension or phone number does not exist on the PBX server. Check the number. |
403 | Forbidden | Permission Denied | Account lacks outbound calling permission, or ACL restriction is active on PBX. |
487 | Request Terminated | Caller Cancelled | The caller hung up before the callee answered the call. |
488 | Not Acceptable Here | Codec Incompatible | Audio codec negotiation failed between caller and callee devices. |
503 | Service Unavailable | PBX Down | PBX 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)
}
}
}
}