IOSOR Learn
Reconciling PSTN Disconnect Cause Codes Across Voice Routes
When PSTN routes disagree on BYE and SIP error cause codes, normalize the disconnect-reason map per carrier before volume scales and skews ASR.
Lead Telecom & Routing Architect · Lausanne, CH
When two voice routes return different disconnect reasons for the same leg, reconcile them by normalizing each carrier's cause-code map against a single canonical table before you scale volume. That prevents false abuse flags, mis-billed short calls, and skewed ASR.
Why route-level cause codes drift apart
A PSTN leg can end three ways: a clean BYE, a SIP error response, or a timer expiry on a no-answer path. Each partner may map the same physical event to a different code — one returns 487 for an early hangup, another sends 603, a third emits a carrier-specific Q.850 value inside the Reason header.
Build the canonical disconnect table
Define one internal enumeration with stable buckets: normal_clearing, user_busy, no_answer, rejected, unavailable, cancel, media_failure, and unknown. Map each route's BYE cause, SIP final response, and Reason header value into these buckets with an explicit priority order — SIP final response wins over Reason header, which wins over inferred timeout. Record the raw code alongside the bucket so disputes remain auditable.
Validate with call detail receipts
After mapping, verify against real call detail receipts and webhook latency: pull a sample per route, join the SIP final response to the stored receipt, and confirm the bucket matches. Check that your webhook pipeline records the disconnect event within your latency budget; a delayed event can land after the call record closes and get bucketed as unknown.
Separate false flags from real failures
Short-call billing and abuse detection share the same cause data, so reconcile before you act. A 603 decline should not be counted as media failure, and a 487 cancel should not inflate ASR as a failed connection. Review anomalies per route: if one carrier shows a spike of a single cause, confirm whether the map is wrong or the route degenerated.
Mapping references and retry policy
Use the mapping and retry knowledge base to keep adapter rules aligned: Mapping SIP Error Codes to Automate Voice Alert Retry Engines, SIP 487 Request Terminated Retry Policy Audit, and SIP 603 Decline Retry Policy & Route Selection.
Start with IOSOR
Run the reconciliation as a partner-comparison task: list the channels and corridors you terminate on, pull a sample of raw BYE and SIP codes per route, and fill in each adapter row with bucket, raw code, version stamp, and receipt check.
IOSOR takeaway
A PSTN leg can end three ways: a clean BYE, a SIP error response, or a timer expiry on a no-answer path. Review anomalies per route: if one carrier shows a spike of a single cause, confirm whether the map is wrong or the route degenerated (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Voice Silence Suppression: Trunk Billing and Route Comparison Gate
Verify whether SIP silence suppression skews billed minutes, ASR, and connect-time before locking a voice trunk route. Compare partner routes via /tools/brief.
- Voice Trunk Registration Failover and Drain Audit for Route Selection
Audit SIP trunk registration failover and graceful drain against contracted route priority before committing PAYG voice capacity. Verify readiness via partner comparison.
- Voice Answer Seizure Ratio and Trunk Sizing: Operational Comparison
Verify ASR and trunk concurrency against real carrier behavior before committing PAYG voice capacity or failover routes. Compare measured seizure ratio and cost-band evidence.












