IOSOR Learn
How to Reconcile SMS DLR Statuses Against Provider Delivery Logs
Learn how to audit SMS delivery receipts (DLR) against carrier gateway logs to resolve status discrepancies and optimize billing accuracy before month-end audits.
Lead Telecom & Routing Architect · Lausanne, CH
Reconciling SMS delivery receipts (DLR) requires a systematic comparison between asynchronous webhook callbacks and the raw gateway logs provided by your routing partners. This process ensures that billing records reflect actual handset delivery rather than just 'Accepted' API states, preventing financial leakage during month-end audits.
Identifying DLR Discrepancies in Webhook Payloads
Discrepancies often arise when a webhook indicates a 'Delivered' status while the internal application logic remains in a 'Pending' state. This mismatch usually stems from race conditions or dropped packets during high-volume bursts.
Mapping Carrier Error Codes to Internal Statuses
Carrier-specific error codes must be normalized into a unified internal schema to maintain reporting consistency. Different partners may use varying numeric codes for 'Unreachable' or 'Filtered' statuses. By creating a translation layer, ops teams can verify if a 'Failed' DLR is due to a temporary network issue or a permanent block on the Sender ID.
Analyzing Latency Between Gateway and Final Receipt
DLR lag is the delta between the time a message is 'Accepted' by the API and the time the final 'Delivered' receipt is logged. High latency (exceeding 30 seconds) often indicates congestion at the downstream carrier level or throttling on the partner's bind. Analyzing this lag helps in evaluating the quality of a specific route.
Validating Delivery Fidelity via Log Correlation
Fidelity validation involves cross-referencing the DLR status with the actual E.164 destination's network response. Some low-quality routes may 'fake' DLRs, returning a 'Delivered' status immediately upon receipt at the gateway without waiting for handset confirmation. To detect this, compare the DLR timestamp with the average network round-trip time.
Required Resources for SMS Reconciliation
To deepen your understanding of status management and route auditing, consult the following technical guides:
- DLR lag vs API accepted: stop burning PAYG on late receipts.
- SMS API buyer checklist.
- SMS failover rail tags on the ledger: brand stays white-label.
Start with IOSOR
Audit your webhook payload logs against raw carrier gateway status dumps to spot persistent status latency and false-positive delivery receipts. If callback lag exceeds 30 seconds or error code mappings diverge across routes, run a comparison at /tools/brief?job=compare&cluster=sms to evaluate failover SLAs and log transparency. Establishing direct log correlation prior to month-end reconciliation prevents billing discrepancies and protects delivery fidelity.
IOSOR takeaway
This guide demonstrated how normalizing carrier-specific error codes and analyzing DLR arrival lag exposes underlying gateway congestion and fake delivery receipts. Cross-referencing internal webhook states with raw carrier logs ensures that unconfirmed or misclassified messages are correctly flagged before invoice audits occur.
Do cross-correlate E.164 destination receipts against carrier-provided timestamp deltas to catch fake DLRs early. Don't rely solely on gateway-accepted receipts as proof of handset delivery when conducting route SLA audits.
Was this guide helpful?
Related guides
- SMS Route Cost-Band Verification and Failover Readiness Gate
Verify quoted SMS route cost bands against carrier and aggregator tiers, then confirm failover routes preserve delivery SLAs before committing volume.
- SMS Route Cost-Band Verification Before Volume Commitment
Verify quoted SMS cost bands against real carrier and aggregator route economics, audit DLR and failover behavior, then compare partner routes before committing campaign volume.
- Audit SMS Webhook Signatures Before Provider Failover
Verify SMS webhook signing, replay protection, and acknowledgement behavior before switching providers, then compare partner routes and webhook guarantees in Decision Brief.












