IOSOR Learn
SIP REFER Notify Event State Machine Conformance Audit
Validate REFER/NOTIFY event package state transitions across carriers to ensure interop compliance and failover reliability.
Lead Telecom & Routing Architect · Lausanne, CH
Engineers audit REFER/NOTIFY event package state machines to verify carrier interop matrices and failover behavior match RFC 3515 and RFC 6665 specifications. This brief covers subscription lifecycle, notify sequencing, and error recovery paths.
Subscription Initiation and State Alignment
Confirm SUBSCRIBE with Event: refer creates a dialog and transitions subscription state from pending to active per RFC 6665. Validate Expires header handling, 200 OK Contact header presence, and immediate NOTIFY with Subscription-State: active;expires=X. Measure round-trip latency for subscription establishment across carrier boundaries.
REFER Request Processing and Implicit Subscription
Verify REFER inside existing dialog triggers implicit subscription per RFC 3515. Check Refer-To URI parsing, target refresh behavior, and 202 Accepted response with Contact for NOTIFY delivery. Ensure Refer-Sub: false suppresses implicit subscription when required. Log Refer-To target resolution failures and 4xx/5xx mapping.
NOTIFY Sequencing and Body Content Rules
Audit NOTIFY sequence numbers increment monotonically per subscription. Validate message/sipfrag body includes SIP response line for referenced request (e.g., SIP/2.0 200 OK). Confirm Subscription-State transitions: active → terminated with reason=noresource or timeout. Reject NOTIFY with missing Event header or mismatched Call-ID.
Error Handling and Recovery Transitions
Map 481 Subscription Does Not Exist to immediate termination. Handle 408/504 on NOTIFY delivery with exponential backoff retry (max 3 attempts). Verify 429 Too Many Requests triggers subscription pause per carrier rate-limit policy. Document carrier-specific 503 Service Unavailable retry-after behavior for failover routing.
Failover and Multi-Carrier State Sync
Test subscription state replication across active/standby carrier pairs. Confirm NOTIFY delivery via alternate path within 2 s of primary path failure. Validate Subscription-State: active preserved during failover; no duplicate NOTIFY generation. Measure state sync latency and divergence threshold for automatic cutback.
Start with IOSOR
Compare verified partner routes for REFER/NOTIFY interop and failover SLAs using the Decision Brief or open the tools hub to evaluate corridor-specific carrier matrices. Cross-reference with SIP REFER Notify Event Package Interop Audit, SIP Dialog State Machine Conformance Audit, and SIP Subscription State Event Package Audit for complete coverage.
IOSOR takeaway
Confirm SUBSCRIBE with Event: refer creates a dialog and transitions subscription state from pending to active per RFC 6665. Measure state sync latency and divergence threshold for automatic cutback (/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.












