IOSOR Learn
SIP REFER Notify Event Termination Reason Audit
Verify REFER/NOTIFY event packages propagate accurate call termination reasons across carrier boundaries for billing integrity and failover logic before partner route comparison.
Lead Telecom & Routing Architect · Lausanne, CH
Operators must confirm that SIP REFER and NOTIFY event packages carry correct termination reason codes across carrier interconnects to prevent billing disputes and ensure failover triggers fire on genuine error conditions. This audit validates end-to-end reason-code fidelity before partner route comparison.
Event Package Structure Validation
Inspect REFER method bodies and subsequent NOTIFY payloads for presence of Reason header fields per RFC 3326 and RFC 6086. Verify that Q.850 cause values map 1:1 to SIP status codes without translation loss at each hop. Capture pcaps at ingress and egress SBCs to prove reason-code survival through topology hiding and header normalization layers.
Inter-Carrier Reason Code Mapping
Document each carrier's proprietary cause-code-to-SIP-status mapping table. Test scenarios: normal clearing (16), user busy (17), no answer (19), network congestion (34), and protocol error (111). Confirm that intermediate carriers do not collapse distinct causes into generic 500/487 responses. Log mismatches in a reconciliation matrix for dispute resolution.
NOTIFY Subscription State Machine
Trace SUBSCRIBE/NOTIFY dialog lifecycles for refer events. Ensure NOTIFY messages reflect terminal state (terminated, noresource, failed) with matching Reason headers. Verify that NOTIFY expiration timers align with carrier SLA windows so stale subscriptions cannot mask late termination reasons. Flag any NOTIFY bodies lacking cause-value parameters.
Billing Record Correlation
Cross-reference CDR termination-cause fields against captured NOTIFY Reason headers for a statistically significant sample. Discrepancies >0.5% trigger root-cause analysis on mediation layer mapping rules. Ensure mediation does not overwrite carrier-provided causes with internal defaults. Archive evidence for audit trails and partner SLA claims.
Failover Logic Gate Integration
Validate that routing engines consume NOTIFY termination reasons to drive failover decisions. Simulate each cause class and confirm correct route-set advancement: congestion triggers alternate carrier, user-busy does not. Instrument decision points with structured logs showing reason-code, chosen route, and timestamp. Prevent silent failover on transient 4xx codes.
Start with IOSOR
Run the partner route comparison for your SIP corridor at Compare SIP routes to verify which carriers preserve termination reason fidelity end-to-end. Use the checklist: capture pcaps at both SBCs, validate Reason header survival, confirm CDR-NOTIFY correlation <0.5% delta, test failover triggers per cause class, archive evidence for SLA disputes. Related: SIP REFER Notify Event Body Validation Gate, SIP REFER Notify Event Expiration Reliability Audit, SIP REFER Notify Event State Machine Audit.
IOSOR takeaway
Inspect REFER method bodies and subsequent NOTIFY payloads for presence of Reason header fields per RFC 3326 and RFC 6086. Prevent silent failover on transient 4xx codes (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- SIP Registration Expiry Recovery: Failover Gate for Route Selection
Verify how each SIP route handles registration expiry, re-registration storms, and failover to a secondary registrar without dropping active dialogs before you commit traffic.
- SIP Route Cost-Band Verification Before Partner Comparison
Verify quoted SIP termination cost bands against real per-minute, per-DID, and per-channel economics before you commit to a partner route comparison.
- SIP OPTIONS Ping Liveness: Separating False Positives From Real Failover
Decide if your SIP OPTIONS keepalive signal is trustworthy for failover or masking dead routes as healthy. Verify response-code handling and partner readiness.












