IOSOR Learn
SIP REFER Attended Transfer Media Negotiation Audit
Validate media renegotiation during attended transfers to prevent one-way audio and codec mismatches across SIP peers.
Lead Telecom & Routing Architect · Lausanne, CH
Audit media renegotiation behavior when SIP REFER with Replaces triggers attended transfers, ensuring SDP offers and answers align across both call legs to prevent one-way audio or codec mismatch.
Capture REFER and Replaces Signaling Flow
Record full SIP dialogs including the initial INVITE, 18x provisional responses, 200 OK, REFER with Replaces header, and subsequent NOTIFY messages. Verify that the Refer-Target URI matches the Replaces Call-ID and to-tag/from-tag pairs exactly. Confirm that the transferee sends a new INVITE to the transfer target with Replaces header populated correctly.
Inspect SDP Offer and Answer Symmetry
Compare SDP bodies in the original call leg and the new INVITE after REFER. Ensure media lines (m=), connection data (c=), and attribute lines (a=) for codecs, ptime, and crypto parameters are symmetric or compatibly negotiated. Flag any asymmetry in codec order, payload type mapping, or missing rtcp-mux and rtcp-rsize attributes that could cause media path failure.
Validate Media Path Establishment Timing
Measure the interval between REFER acceptance (202 Accepted) and media flow on the new leg. Correlate RTP/RTCP packet captures with SIP signaling timestamps. Detect gaps where media flows on one leg but not the other, indicating failed renegotiation or middlebox interference. Verify that ICE connectivity checks complete before media release if ICE is negotiated.
Test Codec Renegotiation Scenarios
Force codec mismatch by restricting codec lists on one peer (e.g., G.711 only vs. Opus+G.722). Observe whether the transfer target re-offers compatible codecs in the new INVITE or rejects with 488 Not Acceptable Here. Confirm that transcoder insertion or codec fallback logic activates without manual intervention.
Correlate with Partner Route Interop Matrix
Cross-reference observed behaviors against the partner route interop matrix for REFER/Replaces support, SDP handling quirks, and media anchoring requirements. Document any peer-specific deviations such as delayed Replaces processing, missing a=sendrecv, or asymmetric ptime handling. Use findings to update route selection logic.
Start with IOSOR
Run the partner comparison for your channel at Compare SIP Routes to verify REFER/Replaces interop and SDP handling consistency across verified routes. Check the interop matrix for media anchoring, codec transcoding, and Replaces processing delays. Apply findings to route selection and escalation playbooks.
- SIP REFER Replaces Attended Transfer Interop Audit.
- SIP REFER Transfer Early Media Interop Audit.
- SIP Codec Negotiation Failure Troubleshooting Playbook.
IOSOR takeaway
Record full SIP dialogs including the initial INVITE, 18x provisional responses, 200 OK, REFER with Replaces header, and subsequent NOTIFY messages. Use findings to update route selection logic (/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.












