Webhook HMAC Verification & Exponential Retry Storm Fix for 10DLC Alerts
“How to stop webhook HMAC signature verification failures causing exponential retry storms on 10DLC in US/Canada?”
Aircall's default 30s webhook timeout with 5-retry exponential backoff (2s, 4s, 8s, 16s, 32s) creates 62s storms when HMAC verification fails on 10DLC DLR callbacks. Fix: enforce 200 OK within 5s, validate X-Aircall-Signature using SHA256(secret + timestamp + body) with 300s clock skew tolerance, and implement idempotency keys (UUID v4) per message-id. TCR 10DLC brand registration requires <1% error rate; sustained storms trigger carrier blocking (T-Mobile 24h, AT&T 72h). Implement stateless HMAC verification at edge (Cloudflare Workers / AWS Lambda@Edge) before hitting app servers: reject invalid signatures with 401 in <50ms p99. Use Redis SETNX for idempotency (TTL 24h) keyed on message-id:provider. Configure Aircall webhook retry policy to max 3 retries, 10s cap, jitter ±25%. Monitor p95 webhook latency <3s via Datadog; alert on >0.5% 4xx/5xx. Sender gates: TCR vetting score >80, daily volume <5k/brand, opt-out <0.5%. Primary: Aircall Business ($40/user/mo) + PAYG standby: Plivo 10DLC ($0/mo, $0.0075/seg US, $0.0085/seg CA). Failover via «Open Route & Partner Brief» selects Plivo on Aircall webhook 5xx >2%/5min. Voice capacity guard: «Knowledge hub» provisions 1.2x peak Erlang-C channels PAYG.










