IOSOR Learn

SIP Early Media SDP Answer Validation Gate

Validate SDP answer handling during early media to prevent one-way audio and billing disputes before routing production traffic through carrier SIP trunks.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Verify SDP answer handling during early media to prevent one-way audio and billing disputes before routing production traffic through carrier SIP trunks.

SDP Answer Media Direction Validation

Confirm the SDP answer in 18x or 200 responses includes correct media direction attributes (sendrecv, sendonly, recvonly, inactive) matching the offer. Mismatched direction attributes cause one-way audio when early media flows before call answer. Validate that a=sendrecv in the offer receives a=sendrecv or a=recvonly in the answer, never a=sendonly or a=inactive unless explicitly negotiated.

Codec and Payload Type Consistency Check

Ensure the SDP answer lists only codecs offered in the original INVITE with matching payload type numbers. Reject answers that add unsupported codecs or remap payload types, which breaks media path negotiation. Verify dynamic payload type mappings (96-127) remain consistent between offer and answer for each codec, especially for telephone-event (RFC 4733) and comfort noise (RFC 3389).

ICE Candidate and Connection Address Verification

Validate that the SDP answer contains valid ICE candidates (a=candidate) and connection address (c=) reachable from the media relay. Early media often traverses different network paths than established calls. Confirm the answer's c= line uses a public IP or reachable private IP with matching ICE candidates. Reject answers with 0.0.0.0 or unreachable addresses that cause media blackholes.

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

Early Media Timer and Billing Correlation

Correlate early media duration from SDP answer receipt to call answer (200 OK) or termination (BYE/CANCEL). Flag calls where early media exceeds 180 seconds without answer, indicating potential billing disputes from carriers charging for unanswered early media. Track RTP packet flow during early media to confirm bidirectional media before call establishment.

RTP/RTCP Port and SSRC Validation

Verify the SDP answer specifies valid RTP/RTCP port pairs (m= line port and port+1) and unique SSRC identifiers. Duplicate SSRCs across early media streams cause media mixing errors. Confirm the answer's SSRC differs from the offer's SSRC per RFC 3550. Validate RTCP receiver reports arrive during early media to confirm media path liveness.

Start with IOSOR

Compare verified partner routes for your SIP corridor using the route comparison tool to ensure carrier trunks pass SDP validation gates. Cross-reference with SIP Early Media and Ringback Tone Interoperability Audit, SIP Codec Negotiation Failure Troubleshooting Playbook, and INVITE retransmission timer tuning for complete early media readiness.

IOSOR takeaway

Confirm the SDP answer in 18x or 200 responses includes correct media direction attributes (sendrecv, sendonly, recvonly, inactive) matching the offer. Validate RTCP receiver reports arrive during early media to confirm media path liveness (/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