IOSOR Learn

SMS Message-Parts Drift Audit: Recalculate Segments Before Reconciliation

Audit recorded SMS segment counts against parts recalculated from final bodies, encoding, and UDH headers before accepting carrier invoices or DLR cost rollups.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Recalculate each message's parts from its final body, encoding, and concatenation header, then compare that number to the recorded segment count before any invoice or DLR-based cost rollup is accepted. Drift is a reconciliation blocker, not a rounding note.

Define the parts-of-record baseline

Freeze a baseline before touching invoices. For every message, capture the final outbound body exactly as submitted, the encoding decision (GSM-07.01 vs UCS-2), the effective per-part payload after encoding extension escapes, and the concat header (UDH reference, total parts, part index) where multi-part applies. Store the derived parts count as a computed field, never overwrite the carrier-reported value.

Recalculation rules that must be deterministic

Pin the exact segment math and test it against fixtures. GSM-07.01 single part holds 160 septets; concatenated parts hold 153 each after the 6-byte UDH. UCS-2 single part holds 70 code units; concatenated parts hold 67 each. Extension characters consume escape budget and silently push a body into an extra part. Recompute from the final body bytes, not from a template estimate or a pre-render length.

Trace drift back to the send path

Drift rarely originates in billing. Walk the send path: template rendering that changes length, encoding fallback that shifts GSM to UCS-2 mid-campaign, concat header assignment errors, retries that re-split a body, and DLR webhook payloads that report a segment count different from the recalculated parts.

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

Gate invoices and DLR cost rollups

Do not accept carrier invoices or DLR-based cost rollups until drift is explained per batch. Apply a gate: invoices pass only when recalculated parts match recorded segments within the batch, or when every mismatch carries a documented cause and an adjustment. Build a weekly drift register keyed by route, sender ID, and encoding, with counts of matched, mismatched, and unresolved messages.

Repeat the audit across routes and channels

Drift that persists on one route but not another points to route-level segment accounting, not to your renderer. Run the same recalculation and comparison for each route and corridor, then compare drift rates side by side.

Start with IOSOR

Run a partner-comparison and operational checklist for this job. First, export final bodies, encoding, concat headers, recorded segments, and DLR receipts for the last four weeks. Second, recalculate parts with a versioned ruleset and mark every mismatch with a cause class. Third, compute drift rate per route, sender ID, and encoding.

Related: PAYG hold before first debit · Wallet stop-lines before production.

IOSOR takeaway

Freeze a baseline before touching invoices. Run the same recalculation and comparison for each route and corridor, then compare drift rates side by side (/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