IOSOR Learn
SIP REFER Replaces Recovery Timeout Audit
Validate attended transfer recovery when REFER-Replaces fails or times out, comparing peer failover timers and media renegotiation paths before production routing.
Lead Telecom & Routing Architect · Lausanne, CH
Engineers must verify how endpoints recover when a REFER with Replaces header fails or times out during an attended transfer, ensuring media renegotiation and peer failover timers behave predictably before routing live traffic.
Failure Detection and Timer Alignment
Confirm that the transferring party detects REFER-Replaces failure within the configured SIP transaction timeout (Timer B/F) and that the replaced dialog terminates cleanly. Measure the interval between the final 2xx/4xx/5xx response to the REFER and the initiation of any fallback INVITE or BYE. Misaligned timers between peers cause ghost calls or media black holes.
Media Renegotiation Path Validation
Capture SDP offer/answer sequences after a failed Replaces to verify that the original dialog re-establishes media on the correct codecs, ptime, and crypto parameters. Ensure no stale crypto keys or mismatched RTP ports persist. Compare the renegotiation path against the baseline established during the initial call setup.
During pre-flight verification, validate that automatic failover thresholds trigger deterministic rerouting without duplicating outbound segments or exhausting retry backoff budgets under peak regional load.
Peer Failover Sequence Verification
Simulate upstream peer failure mid-transfer and validate that the SIP proxy or SBC follows the documented failover sequence: CANCEL pending transactions, release Replaces dialog, reroute via alternate peer with fresh INVITE. Log each hop's response codes and timestamps to prove deterministic behavior.
Interop Edge Cases with Early Media
Test scenarios where the transfer target sends 18x with early media before the REFER-Replaces completes. Verify that early media streams are torn down correctly on failure and do not leak into the recovered dialog. Check for duplicate RTP streams or codec mismatches after recovery.
Monitoring and Alerting Thresholds
Define SLA thresholds for REFER-Replaces recovery latency (e.g., p95 < 2 s) and failure rate (e.g., < 0.1 %). Correlate SIP ladder traces with CDR fields `refer_replaces_result` and `recovery_duration_ms`. Alert on sustained deviations to catch regressions before they affect customers.
Start with IOSOR
Compare verified partner routes for your channel and corridor using the Decision Brief to ensure failover timers and media paths meet the validated criteria above.
- SIP REFER Replaces Attended Transfer Interop Audit.
- SIP REFER Transfer Early Media Interop Audit.
- SIP Peer Failover Sequence Validation Gate.
IOSOR takeaway
Alert on sustained deviations to catch regressions before they affect customers. Compare verified partner routes for your channel and corridor using the Decision Brief to ensure failover timers and media paths meet the validated criteria above.
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.












