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.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

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

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers