IOSOR Learn

SIP REFER Transfer Cost Attribution & Billing Reconciliation

Verify SIP REFER/302 transfer legs map to the originating trunk and partner route, prevent double-billing, and reconcile CDRs with auditable fields for cost attribution.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

SIP REFER and 302 redirects must preserve the originating trunk ID and partner route tag across transfer legs so billing systems attribute every connected minute to the correct cost center. Without transparent signaling, carriers may bill the transfer leg as a new origination, creating double-charges or orphaned CDRs that break reconciliation.

Signaling Integrity & Header Preservation

Confirm the INVITE after REFER/302 carries the original `P-Asserted-Identity`, `Diversion`, and custom `X-IOSOR-Trunk` headers. Partners that strip or rewrite these fields force the billing engine to treat the leg as a fresh call, inflating per-minute costs and distorting margin calculations.

CDR Field Mapping & Uniqueness

Each CDR must include `original_call_id`, `transfer_type` (REFER/302), `originating_trunk_sid`, and `partner_route_id`. Duplicate `call_id` values across legs indicate missing correlation keys; enforce a composite primary key of `original_call_id` + `leg_sequence` to prevent double-counting.

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.

Partner Route Transfer Compliance

Not all carriers honor REFER with header transparency. Test each route with a controlled transfer scenario: originate via Trunk A, REFER to Trunk B, verify CDR on Trunk A shows full duration and Trunk B shows zero billable seconds. Routes failing this test must be flagged in the LCR engine.

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

Automated Reconciliation Pipeline

Build a nightly job that joins originating CDRs with transfer CDRs on `original_call_id`. Flag discrepancies >1 second in billed duration, missing `partner_route_id`, or mismatched `trunk_sid`. Alert billing ops via webhook with the offending `call_id` set for manual review before invoice close.

Cost Attribution Audit Trail

Store the full SIP ladder (INVITE, REFER, 202, NOTIFY, final INVITE) in object storage keyed by `original_call_id`. Retain 90 days for dispute resolution. Include SDP diffs to prove media path remained on the original partner route, avoiding hairpin charges.

Start with IOSOR

Compare verified partner routes for transparent REFER/302 handling and auditable CDR fields using the partner route comparison. Cross-reference findings with SIP REFER transfer billing audit, route ASR & NER cost per connected minute, and LCR margin verification gate.

IOSOR takeaway

Compare verified partner routes for transparent REFER/302 handling and auditable CDR fields using the partner route comparison. Cross-reference findings with SIP INVITE logs, CDR billing records, and DLR webhook payloads to confirm cost attribution accuracy before reconciling invoices.

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