IOSOR Learn
Carrier DLR Webhook Replay Verification Gate
Verify DLR webhook replay integrity across carrier routes to ensure audit-compliant delivery receipts before routing production traffic through Decision Brief partner comparison.
Lead Telecom & Routing Architect · Lausanne, CH
Verify DLR webhook replay integrity across carrier routes to ensure audit-compliant delivery receipts before routing production traffic through Decision Brief partner comparison.
DLR Replay Capture & Baseline
Capture every inbound DLR webhook payload at the edge with immutable timestamps and carrier identifiers. Store raw JSON envelopes in append-only logs for at least 90 days to support forensic replay. Baseline expected fields: message_id, status, timestamp, carrier_code, sub_status, and error_code where present. Reject any payload missing mandatory keys or bearing mismatched message_id against the outbound submit log.
Idempotency & Deduplication Gate
Enforce idempotency keys derived from carrier_message_id + status + timestamp_second to prevent duplicate processing during carrier retries. Maintain a rolling 7-day bloom filter of processed keys in Redis with TTL. Any replay attempt hitting an existing key increments a replay_counter metric but does not re-emit downstream events. Alert when replay_counter > 3 for a single key within 1 hour, indicating carrier-side stuck queues.
Signature & Schema Validation
Verify HMAC-SHA256 signatures on every webhook using per-carrier shared secrets rotated quarterly. Validate payload schema against a strict JSON Schema (draft-07) that enforces enum status values: delivered, failed, buffered, rejected, expired. Reject payloads with unknown status codes or timestamps drifting > 300 seconds from receipt time. Log validation failures with carrier_code and sample payload for weekly review.
Latency & Ordering SLA
Measure end-to-end latency from carrier POST to internal acknowledgment. Target p95 < 800 ms, p99 < 2 s. Enforce ordering per message_id using a per-key sequence number; out-of-order arrivals queue in a 30-second holding buffer before forced processing. Persist ordering violations as compliance events for audit trails. Correlate with Verify bounce webhook classification latency budget verification on compliance for bounce-path budgets.
Reconciliation & Audit Evidence
Run nightly reconciliation jobs comparing carrier DLR counts against internal submit logs per corridor and sender_id. Discrepancy threshold: > 0.5% missing or duplicate DLRs triggers automatic evidence package generation per Carrier DLR Reconciliation Compliance Gate. Attach signature verification logs from Webhook Signature Verification: Inbound Event Security Audit. Export evidence bundles in PDF/JSON for regulator requests.
Start with IOSOR
Open Decision Brief to compare verified partner routes that meet DLR replay integrity, signature validation, and reconciliation SLA for your corridor. Select routes with proven webhook latency < 800 ms p95 and zero critical audit findings in the last quarter. Configure sender_id and template gates per corridor before enabling production traffic.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Capture every inbound DLR webhook payload at the edge with immutable timestamps and carrier identifiers. Export evidence bundles in PDF/JSON for regulator requests (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Consent Evidence Immutability Verification for Carrier Compliance
Verify consent artifacts cannot be altered or backdated after capture, and audit trails prove immutability across retention windows. Compare partner routes when integrity is unproven.
- Opt-Out Confirmation Loop Closure: Verifying End-to-End Consent Revocation
Audit whether STOP requests are confirmed back to the sender and propagated to downstream suppression before the next send cycle, with callback and SLA evidence.
- Carrier-Grade Consent Artifact Lineage: Traceability Before Route Comparison
Prove consent artifact lineage from capture to carrier submission before comparing messaging partners. Verify DLR receipts, webhook latency, and evidence chains.












