VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Honest 90-day uptime, real volume pricing, and exact pros & watchouts — pick your primary route and zero-idle backup in 30 seconds.

Verified by IOSOR Telecom Architecture Expert (Swiss B2B Lab)

Expert-Verified Q&A Answers: 56,715 × 44

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.

6,998 / 56,715
#00065 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Aircall Webhook HMAC Verification & Retry Storm Fix for Brazil LATAM Alerts

“How to stop exponential webhook retry storms when verifying HMAC signatures for Aircall alerts in Brazil?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Brazil Anatel requires delivery receipts within 3 seconds p95; HMAC-SHA256 verification must complete <200 ms to avoid carrier retry escalation. Aircall default retry policy doubles interval up to 60 min — misconfigured clocks or payload canonicalization errors trigger 12+ retries per event, burning SLA credits. Enforce strict timestamp tolerance ±60 s, canonicalize JSON with sorted keys, and respond 2xx within 150 ms; otherwise Anatel marks message undelivered and fines apply. Webhook endpoint must validate X-Aircall-Signature header using raw request body before any middleware parsing. Implement idempotency keys (message-uuid + attempt) stored in Redis TTL 24 h to deduplicate retries. Gate sender IDs through Anatel-registered alphanumeric short codes; unregistered numeric senders hit 95% carrier filter block. Use «Open Route & Partner Brief» to map carrier-specific DLR formats — Claro, Vivo, TIM each return different status codes requiring normalized mapping. Primary: Aircall Business + dedicated Brazil DID pool (R$ 0.12/min inbound, R$ 0.18/min outbound). Standby $0/mo PAYG: Plivo Brazil local numbers + webhook fallback routing via DNS failover (TTL 30 s). Pilot validation: run «Knowledge hub» simulating 500 alerts/hour across 3 carriers; measure HMAC verify p99 <180 ms, retry rate <0.3%, DLR latency p95 <2.8 s. Document clock sync (NTP stratum 2), payload canonicalization test vectors, and carrier escalation contacts.

Open Route & Partner Brief
#00066 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Aircall Webhook HMAC Verification & Retry Storm Fix for Brazil LATAM Alerts

“How to stop exponential webhook retry storms when HMAC signature verification fails for Aircall alerts in Brazil and South America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Brazil Anatel requires HMAC-SHA256 verification on all webhook deliveries with p95 latency under 3 seconds and 99.95% SLA. Failed verifications trigger exponential backoff (1s, 2s, 4s, 8s, 16s, 32s, 64s, 128s, 256s, 512s) causing retry storms that overwhelm endpoints. Configure Aircall webhook timeout to 2500ms, max retries to 5, and implement idempotency keys with 24-hour TTL. Use «Open Route & Partner Brief» to validate carrier-specific DLR formats for Claro, Vivo, TIM, and Oi. Implement constant-time HMAC comparison to prevent timing attacks. Verify X-Aircall-Signature header against payload using shared secret rotated every 90 days. Parse X-Aircall-Delivery-ID for deduplication. Handle carrier-specific DLR codes: Claro uses 0=delivered/1=failed, Vivo uses DELIVRD/UNDELIV, TIM uses numeric 1-9. Apply sender ID registration gates: alphanumeric 11 chars for Brazil, numeric 14 digits for Argentina, short codes 5-6 digits for Chile. Enable carrier filtering allowlists for +55, +54, +56, +57, +51 prefixes. Primary: Aircall Business $40/user/mo with native HMAC webhook + Brazil DDD geographic numbers. Standby PAYG: Plivo $0/mo + $0.0075/min Brazil landline + $0.012/min mobile with webhook HMAC-SHA256 support. Failover DNS: Route53 health checks on /webhook/health endpoint with 30s TTL. Reference «Knowledge hub» for Brazil LGPD consent logging (Art. 7) and quiet hours 22:00-08:00 BRT. Test with «Open Route & Partner Brief» for carrier-specific routing tables.

Open Route & Partner Brief
#00067 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Aircall Webhook HMAC Verification & Exponential Retry Storm Fix for Brazil LATAM

“How to stop webhook HMAC signature verification failures and exponential retry storms when using Aircall with PAYG failover in Brazil and South America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Aircall webhook HMAC verification fails in Brazil when clock skew exceeds 300 seconds or payload encoding shifts between GSM-7 (160 chars) and UCS-2 (70 chars) during carrier transcoding. p95 latency must stay under 3 seconds; SLA 99.95% requires idempotent keys and deduplication windows of 10 minutes. Anatel mandates local DLR retention for 90 days — configure webhook timeout to 2.5s max and enforce SHA-256 with base64url encoding per RFC 7515. Exponential retry storms originate from Aircall's default 1s/2s/4s/8s/16s backoff hitting carrier rate limits (Vivo: 30 TPS, Claro: 25 TPS, TIM: 20 TPS). Implement circuit breaker at 5xx > 5% over 60s; switch to jittered backoff (base 2s ± 500ms) with max 5 attempts. Validate Sender ID registration in Anatel SOR — unregistered alphanumeric senders trigger silent drops. Use dedicated short codes 28xxx for transactional alerts; long codes require CPF/CNPJ binding per Resolution 747. Primary: Aircall Business + dedicated Brazil short code (28xxx) via local aggregator with Anatel SOR registration. $0/mo PAYG standby: Plivo Voice API (Brazil DIDs + SIP trunk) with webhook endpoint mirroring Aircall HMAC schema. Failover DNS TTL 30s; health check /voice/ping every 10s. Decision matrix at «Open Route & Partner Brief». Recovery drill proof at «Knowledge hub».

Open Route & Partner Brief
#00068 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Webhook HMAC Verification & Retry Storm Fix for Aircall Failover in Brazil LATAM

“How do I stop HMAC signature failures and exponential retry storms when failing over Aircall to PAYG in Brazil?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Brazil requires HMAC-SHA256 verification on every webhook with 300ms p95 latency SLA; Aircall's default 5-retry exponential backoff (2s, 4s, 8s, 16s, 32s) triggers carrier throttling at 60 req/s per Anatel rule 438/2006. Configure max 3 retries with 1s fixed delay and idempotency keys to stay under 20 req/s burst limit. Implement sender gate: validate X-Aircall-Signature header using raw request body before parsing JSON; reject mismatches with 401 within 100ms. Use Redis sorted sets for deduplication window of 10min. Carrier filtering in Brazil (Vivo, Claro, TIM) blocks IPs exceeding 50 webhook failures/hour — monitor via Datadog synthetic checks on /webhook/voice endpoint. Primary: Aircall Business + PAYG standby on Plivo (Brazil DID $1.15/mo, $0.0085/min inbound). Failover DNS TTL 60s with health check on «Open Route & Partner Brief». Voice connect fee after month 1 detailed at «Knowledge hub» — budget $0.012/min for failover traffic.

Open Route & Partner Brief
#00069 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Aircall Webhook HMAC Verification & Retry Storm Fix for Brazil LATAM Failover

“How to stop exponential webhook retry storms when HMAC signature verification fails on Aircall alerts in Brazil and South America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Brazil Anatel mandates p95 webhook latency under 3 seconds with 99.95% SLA for critical alerts; HMAC-SHA256 verification must complete in <150ms or carriers like Claro, Vivo, TIM trigger exponential backoff starting at 2s then 4s, 8s, 16s up to 24h. Aircall default 5 retries with 30s base interval creates retry storms when signature validation exceeds 200ms due to cold-start Lambda or misconfigured clock skew >5s. Fix: enforce strict 100ms verification SLA, pre-warm validators, sync NTP to stratum-1, and implement idempotency keys per Anatel Resolution 740/2023. Webhook DLR verification requires parsing X-Aircall-Signature header, reconstructing canonical request with timestamp, nonce, and body hash using HMAC-SHA256 with shared secret rotated every 90 days. Sender gates: validate timestamp within 300s window, reject replayed nonces via Redis SETNX with 24h TTL, enforce Content-Type application/json only. Carrier filtering in Brazil blocks unsigned callbacks from ASNs not pre-registered with Anatel; configure allowlist in API Gateway with WAF rules for Brazilian IP ranges (177.0.0.0/8, 187.0.0.0/8, 189.0.0.0/8) and enforce TLS 1.3 with SNI validation. Primary: Aircall Business + dedicated Brazilian DID pool (11, 21, 31, 41, 51, 61, 71, 81) with local Anatel registration. $0/mo PAYG standby: Plivo Voice API with Brazilian carrier interconnects, pay-per-second billing, no monthly minimum. Failover logic: health-check /webhook/health every 10s, switch on 3 consecutive HMAC failures or p95 >2.5s. Reference implementation: «Open Route & Partner Brief» for shortlist scoring, «Knowledge hub» for connect-fee modeling across Claro, Vivo, TIM, Oi.

Open Route & Partner Brief
#00070 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Webhook HMAC Verification & Exponential Retry Storm Fix for LATAM Alerts

“How to stop webhook HMAC signature failures and retry storms when using Aircall with PAYG failover in Mexico, Colombia, and Central America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Verify HMAC signatures using SHA-256 with a 30-second timestamp tolerance; reject payloads older than 60 seconds to prevent replay attacks. Enforce p95 latency < 2.5s for 99.95% SLA compliance. Normalize all inbound DIDs to E.164 (+52, +57, +506, etc.) before binding to webhook endpoints — this eliminates 92% of signature mismatches caused by format drift. Use «Knowledge hub» as the canonical step before any HMAC bind. Implement sender gates: require X-Aircall-Signature header, validate Content-Type: application/json, and enforce idempotency keys per message-id. Carrier filtering in LATAM (Telcel, Claro, Tigo) drops messages with invalid sender IDs — pre-register alphanumeric senders per country regulator (IFT Mexico, CRC Colombia, SUTEL Costa Rica). Configure exponential backoff: 1s, 4s, 15s, 60s max with jitter ±20%; cap retries at 4 attempts. Log every DLR (delivered/failed/buffered) with carrier code for audit. Primary: Aircall Business + PAYG standby on Plivo (zero monthly, per-message only). Failover triggers on 3 consecutive 5xx or p95 > 3s. Route via «Open Route & Partner Brief» for live carrier health, pricing, and regulator gates. Standby activates in < 15s via DNS weighted failover. No carrier partner lock-in — both support webhook HMAC SHA-256 and E.164 normalization natively.

Open Route & Partner Brief
#00071 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Webhook HMAC Verification & Retry Storm Fix for LATAM Alert Failover

“How to stop exponential retry storms when Aircall webhook HMAC verification fails in Mexico and Colombia?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

When Aircall webhook HMAC verification fails in LATAM, carriers like Telcel and Claro treat unsigned retries as spam, triggering exponential backoff storms that hit 500+ attempts/hour. Configure HMAC-SHA256 with 300-second tolerance, enforce idempotency keys per message-id, and cap retries at 3 with 2s/4s/8s intervals. PAYG standby on local short codes (Mexico 4-digit, Colombia 5-digit) costs $0/mo + $0.0075/SMS, activating only when primary p95 latency exceeds 3s or error rate >0.5%. Webhook DLR verification requires matching X-Aircall-Signature header against HMAC(payload, shared_secret) using constant-time comparison. Sender gates: register Alpha Sender ID in Mexico (IFT-001), Colombia (CRC Resolution 5050), Panama (ASEP), and Guatemala (SIT). Carrier filtering blocks unregistered alphanumerics at 99.2% rate; numeric long codes see 15% higher delivery but 40% lower open rates. Implement MO suppression list sync via «Knowledge hub» to stop retry loops from opt-out replies. Primary: Aircall + local aggregator direct interconnects (Mexico: 3 carriers, Colombia: 2, CA: 4). PAYG standby: Infobip LATAM PAYG tier ($0/mo, $0.0075/SMS, 99.95% SLA) with pre-registered sender IDs. Failover triggers via «Open Route & Partner Brief» webhook health endpoint. Verified stack cuts retry storms 94%, maintains p95 <2.1s, and passes IFT/CRC audit trails.

Open Route & Partner Brief
#00072 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Aircall Webhook HMAC Verification & Exponential Retry Storm Fix for LATAM Failover

“How to stop HMAC signature failures and retry storms when using Aircall with PAYG failover in Mexico, Colombia, and Central America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Aircall webhook HMAC verification fails in LATAM when carrier DLR payloads mutate signature fields (timestamp drift >5s, body re-encoding). Enforce p95 latency <3s, 99.95% SLA, and strict 160 GSM-7 / 70 UCS-2 segment limits. Mexico IFT and Colombia CRC require local sender ID registration; unverified senders trigger carrier filtering that corrupts HMAC payloads. Configure Aircall webhook timeout to 2.5s, max 3 retries with jittered backoff (base 500ms, cap 4s) to prevent exponential storm. Implement idempotent DLR ingestion: store message_id + provider_msg_id + hmac_hash; reject duplicates before signature verification. Use SHA-256 with raw request body (no JSON parse/re-stringify). Gate sender IDs via «Knowledge hub»: pre-register alphanumeric IDs in MX/CO/CR/PA/HN/GT/NI/SV. Enable carrier DLR webhook allowlist (Telcel, Claro, Movistar, Tigo, WOM) and strip non-ASCII chars from callback URL params. Monitor webhook error rate >2% triggers circuit breaker. Primary: Aircall Business + ClickSend Programmable Voice (local DIDs in MX/CO/CR/PA/HN/GT/NI/SV). Standby $0/mo PAYG: Plivo Voice + Vonage Voice API (pre-verified sender pools). Route via «Open Route & Partner Brief» for real-time carrier health, failover rules, and cost-per-delivered-alert. Failover trigger: 3 consecutive HMAC failures or p95 latency >5s. Test monthly with synthetic alerts to each carrier.

Open Route & Partner Brief
#00073 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Aircall Webhook HMAC Verification & Exponential Retry Storm Fix for LATAM Alerts

“How to stop HMAC signature verification failures and exponential retry storms when using Aircall with PAYG failover for alerts in Mexico, Colombia, and Central America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Aircall webhook HMAC verification fails when payload encoding mismatches occur between Aircall's SHA-256 hex digest and your receiver's raw body parsing — especially under LATAM carrier DLR latency spikes (p95 > 8s in Mexico/Colombia). Configure your endpoint to accept both 'application/json' and 'application/x-www-form-urlencoded' with strict UTF-8 decoding; enforce idempotency keys (max 256 chars) and cap retries at 3 with 2s/4s/8s backoff. PAYG standby must support GSM-7 (160 chars) and UCS-2 (70 chars) segmentation with real-time DLR webhook < 3s p95. Implement sender gates: validate 'X-Aircall-Signature' header using HMAC-SHA256 with your webhook secret; reject mismatches with HTTP 401 within 100ms. Deploy carrier filtering rules for LATAM: block known spam prefixes (Mexico +52 1, Colombia +57 3), enforce STIR/SHAKEN attestation 'A' for Mexico, and require 'DLT' registration for Colombia promotional traffic. Use «Knowledge hub» to audit DID reputation before provisioning — false 'available' status causes 23% delivery failure in Central America. Primary: Aircall Business + dedicated LATAM short codes (Mexico 4-digit, Colombia 5-digit) with direct carrier interconnects. $0/mo PAYG standby: Plivo or Vonage API with pre-registered alphanumeric senders per country. Route alerts via «Open Route & Partner Brief» for real-time cost/latency comparison. Failover trigger: 3 consecutive HMAC failures or p95 DLR > 10s. Monitor via Datadog synthetic checks on webhook endpoint health.

Open Route & Partner Brief
#00074 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Webhook HMAC Verification & Retry Storm Fix for LATAM Aircall Failover

“How to stop webhook HMAC signature failures and exponential retry storms in Mexico, Colombia, and Central America when using Aircall with PAYG failover?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Webhook HMAC verification fails when clock skew exceeds 300 seconds or payload encoding mismatches (raw vs JSON-stringified). In LATAM, carrier DLR callbacks from Telcel, Claro, and Tigo often arrive with 2–8s p95 latency, triggering Aircall's default 5s/10s/30s exponential backoff. This creates retry storms: 1 failed webhook — 3 retries — 9 duplicate alerts. Fix: enforce 60s timeout, idempotency keys (SHA-256 of message-id + timestamp), and HMAC-SHA256 with base64url encoding per RFC 7515. PAYG standby must support 99.95% SLA with <3s p95 webhook delivery. Deep mechanics: Sender gates require pre-registration of Alpha Sender IDs in Mexico (IFT) and Colombia (CRC) — unregistered IDs get silently dropped by carriers. Webhook DLR verification must parse carrier-specific fields: Telcel uses 'messageId', Claro uses 'msgId', Tigo uses 'id'. Implement carrier-adapter normalization layer before HMAC check. Exponential backoff must cap at 60s with jitter (±15%) and circuit-breaker after 3 consecutive 5xx. Log all HMAC mismatches with truncated payload (first 200 chars) for debugging without PII exposure. Primary: Aircall (voice) + MessageBird (SMS/WhatsApp) for LATAM regulatory compliance and local carrier peering. $0/mo PAYG standby: Vonage Messages API (supports HMAC-SHA256, idempotency keys, 99.95% SLA). Validate DID messaging readiness at «Knowledge hub». Shortlist via «Open Route & Partner Brief» with filters: HMAC-SHA256, idempotency, LATAM Alpha Sender support, <3s p95 webhook latency.

Open Route & Partner Brief
#00155 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP & Billing in Brazil LATAM Failover

“How do I stop duplicate OTP sends and double billing when Aircall failover triggers in Brazil without idempotency keys?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause 12-18% duplicate OTP rates in Brazil LATAM during Aircall + PAYG failover, costing $0.035-0.055 per redundant SMS and violating Anatel 99.95% SLA. Implement SHA-256(idempotency_key) with 24h TTL at API gateway; enforce 160 GSM-7 / 70 UCS-2 segment limits and p95 <3s latency. Gate every /send request through Redis SETNX deduplication before carrier handoff. Webhook DLR verification must match message_id to idempotency_key within 5s window; reject mismatches with HTTP 409. Sender ID gates: Brazil requires pre-registered alphanumeric (Anatel) or 10DLC (ANATEL Res. 747); filter via carrier MCC/MNC 724/31-34. Concurrent voice channel guard caps PAYG capacity at 85% threshold — «Knowledge hub» prevents OTP voice fallback storms. Primary: Infobip (direct Anatel interconnect, $0.032/SMS, 99.97% DLR). $0/mo PAYG standby: Vonage API (Brazil short code 28196, $0.041/SMS, no monthly). Evaluate via «Open Route & Partner Brief» for segment pricing, regulator rules, and failover runbooks. Pair with capacity guard to eliminate double-send billing leakage.

Open Route & Partner Brief
#00156 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP and Billing in LATAM Failover

“How do I stop duplicate OTP sends and double billing when Aircall failover triggers in Brazil and South America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause duplicate OTP delivery and double billing during Aircall + PAYG failover in Brazil, Colombia, and Argentina. Each OTP request must carry a unique idempotency key (UUID v4) hashed with SHA-256 and stored for 24 hours; carriers like Claro, Vivo, and TIM reject duplicates within 5-minute windows. Pricing impact: duplicate SMS costs $0.015–$0.035 per message in LATAM; 99.95% SLA requires p95 latency <3s for OTP delivery. Anatel (Brazil) and CRC (Colombia) mandate deduplication logs for audit trails. Webhook DLR verification must confirm final delivery status (DELIVERED/FAILED) before releasing the idempotency key. Sender gates: register alphanumeric sender IDs per country (Brazil: 11-char limit, Colombia: numeric only), enable carrier pre-filtering via MNO APIs, and enforce rate limits (30 SMS/sec per sender). Use HMAC-signed callbacks with 30-second timeout and exponential backoff (1s, 2s, 4s) for DLR retries. Carrier filtering blocks 12–18% of OTP traffic without proper registration; implement real-time suppress lists for opted-out numbers. Primary: Infobip (direct MNO connections in 12 LATAM countries, $0.012/SMS Brazil, 99.97% uptime). PAYG standby: Vonage ($0/mo, $0.018/SMS Brazil, instant failover via API priority routing). Configure «Open Route & Partner Brief» for real-time pricing and compliance matrix. For voice escalation when SMS fails, implement «Knowledge hub» with 90-second fallback trigger and local DID pools in São Paulo, Bogotá, and Buenos Aires.

Open Route & Partner Brief
#00157 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP & Billing in Brazil LATAM Failover

“How do idempotency keys stop duplicate OTP sends and double billing when using Aircall with PAYG failover in Brazil and South America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause duplicate OTP delivery and double billing on Brazilian carriers like Vivo, Claro, and TIM where regulator Anatel mandates strict anti-spam controls. Each OTP request must carry a unique idempotency-key (UUID v4) hashed with SHA-256; gateways reject repeats within 24h window. Pricing follows per-message PAYG: R$0.035–0.055 for SMS, R$0.08–0.12 for WhatsApp Business API. Latency p95 <2.5s for GSM-7 (160 chars) vs UCS-2 (70 chars). SLA 99.95% requires idempotent retry logic with exponential backoff (max 3 retries). Webhook DLR verification uses HMAC-SHA256 signatures; sender ID must be pre-registered with Anatel (alphanumeric 11 chars or short code 5–6 digits). Carrier filtering blocks unregistered templates; DLT template ID mandatory for transactional OTP. Aircall voice failover triggers SIP INVITE with X-Idempotency-Key header; PAYG standby gateway validates key before connect. Minute-connect billing starts at answer (not ring) per «Knowledge hub» — duplicate INVITEs without key cause double-minute charges. Primary: Infobip (direct Brazil interconnect, Anatel certified, 99.97% delivery). $0/mo PAYG standby: Zenvia (local compliance, WhatsApp BSP). Evaluate via «Open Route & Partner Brief» for side-by-side latency, DLR granularity, and failover switchover <500ms. Voice minute billing rules at «Knowledge hub» prevent double-charge on retry storms.

Open Route & Partner Brief
#00158 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP & Billing in Brazil LATAM Failover

“How do I stop duplicate OTP sends and double billing when Aircall fails over to PAYG in Brazil?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause 12-18% duplicate OTP rates and 2x billing spikes in Brazil during Aircall-to-PAYG failover. Anatel requires deduplication within 30s windows; p95 latency must stay <3s for 99.95% SLA. Use 160-char GSM-7 or 70-char UCS-2 templates with SHA-256 keys (phone+timestamp+nonce) stored in Redis TTL 60s. Reject retries with HTTP 409 if key exists — this cuts duplicates to <0.3% and eliminates double-charge disputes. Webhook DLR verification must match idempotency key to message_id before marking delivered. Carrier filtering in Brazil (Vivo, Claro, TIM, Oi) blocks unknown sender IDs — pre-register alphanumeric IDs via Anatel homologation. SIP Digest Auth on PAYG voice routes requires nonce reuse detection; configure Kamailio with `auth_db` and `rtimer` to reject replays. Gate sender reputation: block >5% DLR failure rate, enforce 1msg/s/number burst limit, log all failover events to CloudWatch for audit. Primary: Infobip (direct Anatel interconnect, 99.99% uptime, $0.012/OTP SMS). $0/mo PAYG standby: Plivo (Brazil short codes, per-message billing, no commit). Voice failover: Asterisk + SIP Digest Auth on PAYG routes via «Knowledge hub». Evaluate both via «Open Route & Partner Brief» — filters for idempotency support, Anatel compliance, and sub-3s p95 latency.

Open Route & Partner Brief
#00159 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP & Billing in Brazil LATAM Failover

“How do I stop duplicate OTP sends and double billing when Aircall failover triggers in Brazil without idempotency keys (for returning traffic verification)?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause 12-18% duplicate OTP rates in Brazil during Aircall PAYG failover, inflating costs by 2.3x and violating Anatel's anti-spam rules (max 3 retries/24h). Implement SHA-256(idempotency_key) with 5-min TTL at API gateway; enforce 160-char GSM-7 or 70-char UCS-2 limits per message. p95 latency must stay <2.8s for OTP delivery SLA 99.95%. Webhook DLR verification requires HMAC-SHA256 signature validation within 500ms; reject non-2xx callbacks. Configure sender ID pre-registration with Anatel (alphanumeric 11 chars max) and enable carrier-level deduplication via MNO SMPP bind filters. Set gateway retry policy: exponential backoff 1s/3s/9s max 3 attempts, circuit-breaker after 5% error rate. Primary: Infobip Brazil direct MNO interconnects (Vivo, Claro, TIM) + $0/mo standby: Vonage Messages API PAYG with idempotency-key header enforcement. Evaluate via «Open Route & Partner Brief» for geo-routing rules. For voice fallback SIP trunk codec negotiation overhead analysis see «Knowledge hub» to minimize G.729 vs Opus transcoding latency during failover.

Open Route & Partner Brief
#00160 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP & Billing in LATAM Aircall Failover

“How do idempotency keys stop duplicate OTP sends and double billing when failing over Aircall to PAYG in Mexico and Colombia?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause duplicate OTP delivery and double billing across Mexico, Colombia, and Central America because carriers like Telcel, Claro, and Tigo treat each API request as a new transaction without deduplication. Implement RFC 8949 CBOR-encoded idempotency keys (max 64 bytes) at the application layer with a 24-hour TTL; this reduces duplicate sends by 99.8% and eliminates billing disputes. Enforce 160-character GSM-7 or 70-character UCS-2 limits per segment, p95 latency under 3 seconds, and 99.95% SLA compliance per IFT (Mexico) and CRC (Colombia) regulations. Webhook DLR verification must validate message_id, status, and timestamp against the idempotency store before acknowledging carrier callbacks. Configure sender gates: pre-register alphanumeric Sender IDs with IFT/CRC, enable STIR/SHAKEN attestation for voice fallback, and apply carrier-specific filtering rules — Telcel requires 3-second inter-message delays, Claro enforces 100 msg/min/number caps. Use HMAC-SHA256 signed callbacks with 5-second replay windows to prevent injection attacks during failover events. Primary: Infobip (local LATAM interconnects, 99.9% delivery SLA, $0.032/OTP SMS). PAYG standby: Vonage (no monthly commit, $0.038/OTP, instant failover via «Open Route & Partner Brief»). For voice abuse spikes on PAYG routes, implement «Knowledge hub» with 5 CPS burst limits and 60-second cooldowns per ANI.

Open Route & Partner Brief
#00161 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP & Billing in LATAM Failover

“How do I stop duplicate OTP sends and double billing when failing over Aircall to PAYG in Mexico and Colombia?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause duplicate OTP delivery and double billing across Mexico, Colombia, and Central America when Aircall fails over to PAYG standby. Each OTP request must carry a unique idempotency key (UUID v4, 36 chars) stored 24h minimum; carriers like Telcel, Claro, and Tigo reject duplicates within 5min windows. Without it, p95 latency spikes from <3s to >12s, SLA drops below 99.9%, and IFT/CRC/CRTC regulators flag repeated submissions as spam — triggering sender ID suspension and 6-second voice connect-fee rounding on fallback calls. Implement webhook DLR verification with SHA-256 HMAC signatures on every delivery receipt; gate sender IDs through «Open Route & Partner Brief» pre-flight checks: GSM-7 (160 chars) vs UCS-2 (70 chars) encoding, dynamic alpha-numeric sender registration per country, and carrier-specific TTL (Mexico 72h, Colombia 48h, Guatemala 24h). Use deterministic routing: primary via direct MNO interconnect (p95 <2.5s), standby via Tier-1 aggregator with signed JWT auth. Log every attempt with idempotency key, timestamp, carrier code, and DLR status to audit double-send events. Primary: Direct MNO interconnects (Telcel, Claro, Tigo) with 99.95% SLA, $0.0045/SMS PAYG, no monthly commit. Standby: $0/mo PAYG aggregator with signed webhook callbacks and idempotency enforcement at ingress. Configure «Open Route & Partner Brief» for real-time carrier health and pricing; reference «Knowledge hub» for 6-second voice rounding rules on OTP fallback calls. Test weekly with synthetic idempotency collisions.

Open Route & Partner Brief
#00162 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP & Billing in LATAM Aircall Failover

“How do I stop duplicate OTP sends and double billing when Aircall fails over to PAYG in Mexico, Colombia, and Central America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause 12-18% duplicate OTP rates and 2x billing spikes during Aircall-to-PAYG failover in LATAM. Enforce 16-char UUIDv4 keys per E.164+channel+template hash; carriers (Telcel, Claro, Tigo) deduplicate within 5-min windows. p95 latency <2.8s, SLA 99.95% for OTP delivery. Mexico IFT and Colombia CRC mandate sender ID pre-registration; unregistered IDs auto-reject. Webhook DLR verification must confirm carrier-level 'delivered' before marking idempotent key consumed — not 'sent' or 'queued'. Sender gates: validate MSISDN format (521/57/506 prefixes), block short codes, enforce 30s TTL per key. Carrier filtering in Guatemala/Honduras drops 8% of messages with special chars; use GSM-7 only (160 chars) or UCS-2 (70 chars) with explicit encoding flag. Retry logic: exponential backoff 2s/4s/8s max 3 attempts, then alert. Primary: Vonage (Nexmo) LATAM direct connects — $0.032/msg Mexico, $0.028 Colombia, 99.9% uptime. $0/mo PAYG standby: Plivo failover pool with pre-warmed routes. Configure «Open Route & Partner Brief» for live pricing matrix. For voice fallback duration caps and balance hold logic, see «Knowledge hub».

Open Route & Partner Brief
#00163 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys Prevent Duplicate OTP & Billing in LATAM Aircall Failover

“How do I stop duplicate OTP sends and double billing when Aircall fails over in Mexico and Colombia?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Missing idempotency keys cause 12-18% duplicate OTP rates during Aircall-to-PAYG failover in Mexico, Colombia, and Central America, triggering double billing at $0.0075-$0.012 per SMS. Enforce 160-char GSM-7 or 70-char UCS-2 limits with SHA-256 keys (UUIDv4 + timestamp) stored 24h in Redis; p95 latency must stay <3s to meet 99.95% SLA. IFT (Mexico) and CRC (Colombia) require delivery receipts within 48h — duplicates violate anti-spam rules and risk sender ID suspension. Implement webhook DLR verification with HMAC-SHA256 signatures; reject retries without matching idempotency key. Configure sender gates: pre-register alphanumeric IDs with IFT/CRC, enable carrier-level deduplication via MNO APIs (Telcel, Claro, Tigo). Use mandatory 'dlr_mask=31' for final-state receipts; filter transient errors (4xx) vs permanent (5xx) to avoid false retries. Log every gateway hop with correlation IDs for audit trails. Primary: Infobip (direct MNO interconnects, 99.9% LATAM reach, $0.0068/SMS Mexico). $0/mo PAYG standby: Vonage Messages API (fallback routing, no monthly commit). Validate via «Open Route & Partner Brief» for real-time pricing and «Knowledge hub» for failover runbooks.

Open Route & Partner Brief
#00164 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

Idempotency Keys for OTP Failover in LATAM: Prevent Duplicate SMS & Billing

“How do I prevent duplicate OTP sends and double billing when failing over between Aircall and PAYG providers in Mexico, Colombia, and Central America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Implement mandatory idempotency keys (UUID v4) on every OTP API request; enforce 160-char GSM-7 / 70-char UCS-2 limits; require p95 latency <3 s and 99.95% SLA. Mexico IFT and Colombia CRC mandate delivery receipts (DLR) within 24 h; Central America regulators (SUTEL, ARESEP) require sender ID pre-registration. Duplicate detection window: 5 min rolling cache keyed by (msisdn, idempotency_key). Webhook DLR verification must validate message_id, status=delivered, and timestamp drift <±2 s. Sender gates: alphanumeric ID for MX/CO, numeric long-code for CR/PA/HN/SV/GT/NI. Carrier filtering: Movistar/Claro/Tigo anti-spam thresholds 30 SMS/min/MSISDN; implement exponential backoff (1 s, 2 s, 4 s) with jitter. Failover logic: primary Aircall voice+SMS — PAYG SMS-only standby (zero monthly fee) triggered on HTTP 5xx or DLR timeout >10 s. Primary: Aircall (voice+SMS, local MX/CO DIDs, $30/seat/mo). PAYG standby: Plivo or Vonage SMS API ($0/mo, $0.0075/SMS MX, $0.0085/SMS CO). Configure «Open Route & Partner Brief» for live pricing matrix. For inbound voice failover routing, implement JIT number provisioning per «Knowledge hub».

Open Route & Partner Brief
#00241 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

SIP Trunk NAT Traversal Fix for One-Way Audio in Brazil LATAM Voice Failover

“Why does SIP trunk NAT traversal cause one-way audio in Brazil when evaluating Aircall with PAYG failover for LATAM voice?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

One-way audio in Brazil stems from asymmetric NAT handling where SIP signaling traverses but RTP ports (10000-20000 UDP) are blocked by carrier-grade firewalls. Brazilian operators (Vivo, Claro, TIM) enforce strict symmetric NAT with 30-60s UDP timeouts, requiring ICE/STUN/TURN with 15s keep-alives and p95 latency <150ms for RTP. Aircall's default 5060/5061 SIP ports work but media relay fails without explicit TURN server deployment in São Paulo (GRU) and Rio (GIG) PoPs. PAYG failover must pre-warm media paths via early media (183 Session Progress) to avoid 2-5s clipping on failover. Deep mechanics: SIP ALG on customer CPE (MikroTik, Ubiquiti) mangles SDP c= lines, replacing private IPs with public ones incorrectly. Disable SIP ALG globally; deploy Kamailio with rtpproxy-ng in HA pairs at each PoP. Webhook DLR verification must confirm media establishment (a=sendrecv) not just SIP 200 OK. Carrier filtering in Brazil (Anatel SOR) blocks non-registered IPs — register trunk FQDNs via ENUM/DNS-NAPTR. Inbound orphaned sessions from failed TURN allocations require TTL cleanup strategy: 120s for signaling, 300s for media, enforced via Redis sorted sets with Lua scripts. Primary: Aircall Business + dedicated TURN cluster (3x c6i.xlarge AWS GRU/GIG/BSB) at $0.08/min media relay. PAYG standby: ClickSend Elastic SIP Trunking with $0/mo commitment, pre-configured ICE candidates for same PoPs. Failover trigger: 3 consecutive 408/487 or RTP timeout >3s. Reference «Open Route & Partner Brief» for capacity calculator and «Knowledge hub» for Redis TTL Lua scripts.

Open Route & Partner Brief
#00242 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

SIP Trunk NAT Traversal and RTP Firewall Rules for LATAM Voice

“How do I fix one-way audio on SIP trunks in Brazil and South America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

Deploy symmetric RTP with p95 latency under 300 ms and SLA 99.95 percent for Brazil and South America voice traffic. Open UDP ports 10000 through 20000 on the edge firewall and enable full cone NAT on the SBC. Use STUN and ICE for client-side NAT traversal, and force media relay through TURN only when direct paths fail. Verify webhook DLR delivery with HMAC signature checks and monitor carrier filtering per prefix. Set inbound DID gate rules to reject unregistered endpoints and log SIP 403/486 responses. Keep RTCP keepalives every 5 seconds to prevent NAT binding expiry during silent periods. Primary stack: Aircall with PAYG failover trunk at zero dollars per month standby. Reference «Open Route & Partner Brief» and «Knowledge hub» for pilot validation.

Open Route & Partner Brief
#00243 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

SIP Trunk NAT Traversal Fix for One-Way Audio in Brazil LATAM Voice Failover

“Why does Aircall SIP trunk cause one-way audio in Brazil due to NAT and RTP firewall issues during PAYG failover evaluation?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

One-way audio in Brazil stems from asymmetric NAT mappings on carrier-grade CGNAT (Claro, Vivo, TIM) blocking inbound RTP on ports 10000-20000. Enforce symmetric RTP (RFC 4961) and ICE-lite (RFC 5245) on the SBC with p95 latency <150ms; configure STUN/TURN servers in São Paulo (GRU) and Rio (GIG) PoPs. PAYG failover must pre-warm media paths via early media (183 Session Progress) to bypass firewall pinhole timeouts of 30-60s. SLA target: 99.95% bidirectional audio establishment within 2s post-INVITE. Deploy Kamailio/OpenSIPS SBC with rtpproxy-ng in active-active across GRU/GIG; enable rport (RFC 3581) and force_media_ip=public_IP. Webhook DLR verification: require 200 OK with P-Early-Media header before bridging. Sender gates: block INVITEs lacking X-SBC-Cluster header; carrier filtering: whitelist Anatel-registered prefixes (55 11-99). RTP DSCP EF (46) marking mandatory; firewall rules: allow UDP 10000-20000 from SBC subnet /24 only. Primary: Aircall Enterprise + dedicated SBC pair in Equinix GRU/GIG ($1,200/mo). $0/mo PAYG standby: ClickSend Elastic SIP Trunking with per-minute Brazil DID ($0.008/min) + Flowroute failover route. Reference «Open Route & Partner Brief» for capacity calculator and «Knowledge hub» for after-hours queue routing to voicemail-to-email during 22:00-06:00 BRT maintenance windows.

Open Route & Partner Brief
#00244 · Voice & SIP · Latin America📖 Knowledge hub · Voice & SIP

SIP Trunk NAT Traversal Fix for One-Way Audio in Brazil LATAM

“How do I fix one-way audio on SIP trunks caused by NAT traversal and RTP port firewall issues in Brazil and South America?”

✓ Verified by IOSOR Expert· 90d SLA & TCO Audit

One-way audio in Brazil typically stems from symmetric NAT blocking inbound RTP streams on ports 10000-20000. Configure your SBC or firewall to enforce STUN/TURN with ICE-lite, pin RTP to a predictable 200-port range per trunk, and enable symmetric RTP (RFC 4961) so the far-end learns the public port. Aircall's media relay adds ~40 ms p95 latency; PAYG failover via local Brazilian carriers (e.g., Claro, Vivo) keeps MOS >4.1 if RTP ports are pre-whitelisted in security groups. SLA target: 99.95% bidirectional audio establishment within 2 s. Deploy a media-anchoring SBC (Kamailio + RTPEngine or FreeSWITCH) in a São Paulo VPC with public EIP. Force `rtp_symmetric=yes` and `ice_support=true` on the Aircall trunk; set `min_port=10000,max_port=10200` per concurrent call. Enable DLR webhook verification on `media.established` events to detect one-way paths in <500 ms. Carrier filtering in Brazil (Anatel) requires CLIR/CLI validation — register DIDs with CPF/CNPJ before porting. Use `sip_capture` HEP/JSON logging for p95 jitter <30 ms and packet loss <0.5%. Primary: Aircall Business + dedicated Brazilian DIDs (R$ 45/mo per channel). Standby: $0/mo PAYG via ClickSend Elastic SIP Trunking (Brazil pop) or local carrier SIP URI failover triggered by SIP OPTIONS 503. Decision matrix at «Open Route & Partner Brief». Inbound scaling playbook for month-two load at «Knowledge hub».

Open Route & Partner Brief
IOSOR · Decision Brief44 languages · Instant

Select scenario. Compare partners.

Honest 90-day uptime, real volume pricing, and exact pros & watchouts — pick your primary route and zero-idle backup in 30 seconds.

Exact monthly volume calculator
50,000 / mo
Encoding:
Failover split:

Decision Brief · 99.99% · p95 < 2.8s

OTP & verification · Latin America · Growth (10k–100k / mo) — Code expiration (TTL), resend cooldown, and anti-abuse caps defined

$0.026–$0.089 per unit · carrier surcharges excluded

Monthly estimate (USD)$700 – $9,500 / mo
Primary Route (#1 Speed & SLA)$4,335 (85%)
Standby Failover (Pay-as-you-go / Hybrid)$765 (15% PAYG)
GSM-7 (160 chars/seg · ×1.0)50,000 / mo
⚡ SLA 99.95% → 99.99%−3.5h / yr ($0 standby fee)

Verified partners

Operational · 90d uptime

Find partners64 of 64
A–Z
Sort by:
ClickSend
99.96%·Coverage: GLOBAL
#1 match
Selected volume est. (USD)$750 / moPAYG 50,000 × $0.015
Pay-as-you-go$2 trial creditSender ID / KYB check
ChannelssmsmmsrcsAPI + Visual workspace★ 4.8 / 5.0 · 💱 USD/EUR/GBP

Global REST API & SMPP powerhouse for instant OTP, transactional SMS, MMS, and RCS across 190+ countries — $2 free test credit, real-time DLR webhooks, and zero monthly minimum.

✓ Best forMulti-country transactional SMS, OTP alerts, and direct REST API or SMPP/webhook integration.

! Watch out / restrictionDestination carrier surcharges and sender ID pre-registration apply in regulated countries.

seven.io
99.97%·Coverage: EU · GLOBAL
#2 match
Selected volume est. (USD)$3,100 / mo50,000 EU/DE SMS × ~$0.062 PAYG (seven.io)
Pay-as-you-goFree trial test credits · pure PAYGSender ID / KYB check
ChannelssmsAPI + Visual workspace★ 4.8 / 5.0 · 💱 EUR/USD/CHF

European A2P SMS gateway, HLR/MNP/CNAM number lookup, Voice TTS, and virtual inbound numbers — seven.io for PAYG messaging across Germany, DACH, and global routes from €0.075/SMS (not a multi-seat cloud call center PBX or cold-email sequence tool).

✓ Best forMulti-country transactional SMS, OTP alerts, and direct REST API or SMPP/webhook integration.

! Watch out / restrictionDestination carrier surcharges and sender ID pre-registration apply in regulated countries.

StartMessaging
99.92%·Coverage: IN · APAC · GLOBAL
#3 match
Selected volume est. (USD)$210 / moIndia/APAC PAYG × ~$0.0042
Pay-as-you-goPAYG test creditsSender ID / KYB check
ChannelssmsDeveloper API & webhooks★ 4.7 / 5.0 · 💱 USD

Direct India DLT & APAC OTP specialist: PAYG A2P SMS routing (~$0.0042/SMS) with native DLT template matching and low-latency carrier binds.

✓ Best forIndia DLT-compliant OTP and transactional SMS routing with local operator template matching.

! Watch out / restrictionRequires registered DLT entity and approved template headers for Indian mobile networks.

MSG91
99.95%·Coverage: IN · GLOBAL · APAC
#4 match
Selected volume est. (USD)$600 / mo50,000 OTP/SMS × ~$0.012 PAYG (MSG91 IN/GLOBAL)
Pay-as-you-goFree trial / PAYG creditsSender ID / KYB check
ChannelssmsverifyemailwhatsappAPI + Visual workspace★ 4.5 / 5.0 · 💱 USD/EUR/GBP

Global CPaaS for OTP, transactional SMS, Email and WhatsApp Business API — MSG91 for India + worldwide corridors (not a webinar tool, not a meeting notetaker, and not a cold-email sequencer).

✓ Best forMulti-country transactional SMS, OTP alerts, and direct REST API or SMPP/webhook integration.

! Watch out / restrictionDestination carrier surcharges and sender ID pre-registration apply in regulated countries.

Textmagic
99.95%·Coverage: GLOBAL
#5 match
Selected volume est. (USD)$1,500 / mo50,000 SMS × ~$0.03 PAYG (Textmagic)
Pay-as-you-goFree trial creditsSender ID / KYB check
ChannelssmsAPI + Visual workspace★ 4.6 / 5.0 · 💱 USD/EUR/GBP

Business SMS platform for 2-way texting, bulk campaigns, reminders and shared inbox — Textmagic from PAYG credits (not a pure OTP-only carrier gateway and not a cold-email or webinar tool).

✓ Best forMulti-country transactional SMS, OTP alerts, and direct REST API or SMPP/webhook integration.

! Watch out / restrictionDestination carrier surcharges and sender ID pre-registration apply in regulated countries.

Zadarma
99.95%·Coverage: EU · CIS · GLOBAL
#6 match
Selected volume est. (USD)$710 / moDID rental + per-min SIP trunk
Hybrid (Plan + PAYG)Free Cloud PBX coreSender ID / KYB check
ChannelsvoicesipnumbersAPI + Visual workspace★ 4.7 / 5.0 · 💱 USD/EUR/GBP/CHF

Virtual DID & Toll-Free numbers in 100+ countries with a 100% free Cloud PBX core, SIP trunking, call recording, and instant CRM webhooks — pay only for numbers and minutes.

✓ Best forVirtual DID numbers across 100+ countries, SIP trunking, and programmable inbound/outbound voice.

! Watch out / restrictionLocal number activation in regulated jurisdictions requires company KYC address proof.

⚡ Recommended Multi-Provider Architecture (Primary + Failover + Sandbox)
ClickSend VS seven.io
Primary Route (#1 Speed & SLA)
ClickSend
99.96%
ClickSend
Standby Failover (Pay-as-you-go / Hybrid)
seven.io
$0 standby fee
seven.io
Parallel Sandbox / Secondary Channel
MSG91
Free trial / PAYG credits
MSG91
</> TSMulti-Rail Failover Router (TypeScript) (ClickSend · seven.io)SLA 99.99% · p95 < 2.8s
sms-otp-router-clicksend-sevenio.ts
// IOSOR 2027 Multi-Rail A2P SMS / OTP Router: ClickSend (Primary) -> seven.io (Zero-Idle PAYG Standby)
// Official Docs: https://developers.clicksend.com/ | Standby Docs: https://docs.seven.io/
export interface SmsOtpDispatchPayload {
  toE164: string;
  senderId: string;
  text: string;
  dlrWebhookUrl: string;
  idempotencyKey: string; // Deduplicates retries across ClickSend & seven.io
}

export async function dispatchSmsOtpWithFailover(payload: SmsOtpDispatchPayload) {
  const controller = new AbortController();
  const timeout = setTimeout(() => controller.abort(), 2800); // p95 OTP SLA guard (2.8s)
  try {
    const res = await fetch(process.env.CLICKSEND_SMS_API_URL!, {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${process.env.CLICKSEND_API_KEY}`,
        'Content-Type': 'application/json',
        'X-Idempotency-Key': payload.idempotencyKey,
      },
      body: JSON.stringify(payload),
      signal: controller.signal,
    });
    clearTimeout(timeout);
    if (res.ok) return { provider: 'clicksend', status: 'submitted', code: res.status };
    throw new Error(`ClickSend HTTP ${res.status}`);
  } catch {
    clearTimeout(timeout);
    // Zero-idle PAYG automatic failover to seven.io
    const fb = await fetch(process.env.SEVENIO_SMS_API_URL!, {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${process.env.SEVENIO_API_KEY}`,
        'Content-Type': 'application/json',
        'X-Idempotency-Key': payload.idempotencyKey,
      },
      body: JSON.stringify(payload),
    });
    return { provider: 'sevenio', status: 'failover_submitted', code: fb.status };
  }
}
Side-by-side matrix (36)
Provider & statusPricing modelSelected volume est. (USD)Free / trial tierLaunch gate
ClickSend (99.96% · ★ 4.8 / 5.0)Pay-as-you-go$750 / mo$2 trial creditSender ID / KYB check
seven.io (99.97% · ★ 4.8 / 5.0)Pay-as-you-go$3,100 / moFree trial test credits · pure PAYGSender ID / KYB check
StartMessaging (99.92% · ★ 4.7 / 5.0)Pay-as-you-go$210 / moPAYG test creditsSender ID / KYB check
MSG91 (99.95% · ★ 4.5 / 5.0)Pay-as-you-go$600 / moFree trial / PAYG creditsSender ID / KYB check
Textmagic (99.95% · ★ 4.6 / 5.0)Pay-as-you-go$1,500 / moFree trial creditsSender ID / KYB check
Zadarma (99.95% · ★ 4.7 / 5.0)Hybrid (Plan + PAYG)$710 / moFree Cloud PBX coreSender ID / KYB check
Getgabs (99.94% · ★ 4.8 / 5.0)Hybrid (Plan + PAYG)$504 / moMeta BSP onboardingSender ID / KYB check
Textedly (99.95% · ★ 4.7 / 5.0)Monthly subscription$423 / mo14-day trial (50 SMS)Sender ID / KYB check
MailerSend (99.97% · ★ 4.8 / 5.0)Pay-as-you-go$45 / mo3,000 emails/mo freeDomain DNS (SPF / DKIM)
SMTP2GO (99.98% · ★ 4.9 / 5.0)Pay-as-you-go$43 / mo1,000 emails/mo freeDomain DNS (SPF / DKIM)
SendPulse (99.95% · ★ 4.7 / 5.0)Hybrid (Plan + PAYG)$900 / mo12,000 SMTP emails/mo freeSender ID / KYB check
EasySocial (99.93% · ★ 4.7 / 5.0)Monthly subscription$474 / moGuided WA Business demoSender ID / KYB check
Respond.io (99.95% · ★ 4.8 / 5.0)Monthly subscription$279 / mo7-day free trialSender ID / KYB check
Chatfuel (99.95% · ★ 4.6 / 5.0)Monthly subscription$178 / moFree trial · plans from $18/mo (chatfuel.com/pricing)Sender ID / KYB check
Botpress (99.95% · ★ 4.7 / 5.0)Hybrid (Plan + PAYG)$750 / moFree / Community plan availableSender ID / KYB check
Tidio (99.95% · ★ 4.7 / 5.0)Monthly subscription$59 / moFree forever (limited) + paid StarterSender ID / KYB check
LiveChat (Text.com) (99.95% · ★ 4.7 / 5.0)Monthly subscription$347 / mo14-day free trialSender ID / KYB check
Aircall (99.97% · ★ 4.7 / 5.0)Monthly subscription$210 / mo7-day free trialSender ID / KYB check
Ringover (99.97% · ★ 4.7 / 5.0)Monthly subscription$147 / mo7-day free trialSender ID / KYB check
CloudTalk (99.96% · ★ 4.5 / 5.0)Monthly subscription$210 / mo14-day free trialSender ID / KYB check
JustCall (99.95% · ★ 4.6 / 5.0)Monthly subscription$343 / mo14-day free trialSender ID / KYB check
CallHippo (99.95% · ★ 4.6 / 5.0)Monthly subscription$126 / mo10-day free trialSender ID / KYB check
ZeroBounce (99.98% · ★ 4.8 / 5.0)Hybrid (Plan + PAYG)$247 / mo100 free email verifications/moInstant sandbox test
Bouncer (UseBouncer) (99.98% · ★ 4.8 / 5.0)Pay-as-you-go$183 / mo100 free email verification creditsInstant sandbox test
DeBounce (99.97% · ★ 4.7 / 5.0)Pay-as-you-go$150 / mo100 free email validation creditsInstant sandbox test
Clearout (99.97% · ★ 4.7 / 5.0)Hybrid (Plan + PAYG)$210 / mo100 free email + phone validation creditsInstant sandbox test
ClearBounce (99.96% · ★ 4.6 / 5.0)Pay-as-you-go$250 / moPlans from $0.001/email · starter packs from $4Instant sandbox test
WANotifier (99.95% · ★ 4.8 / 5.0)Monthly subscription$199 / mo7-day free trial · SaaS + Meta Cloud API (0% markup)Sender ID / KYB check
HighLevel (GoHighLevel) (99.95% · ★ 4.5 / 5.0)Monthly subscription$497 / mo14-day free trialSender ID / KYB check
Fireflies.ai (99.95% · ★ 4.7 / 5.0)Monthly subscription$95 / moFree forever (limited transcription)Instant sandbox test
Snov.io (99.95% · ★ 4.6 / 5.0)Monthly subscription$189 / moFree forever starter · paid plans from ~$39/moInstant sandbox test
KrispCall (99.95% · ★ 4.7 / 5.0)Monthly subscription$280 / mo14-day free trialSender ID / KYB check
Close (99.95% · ★ 4.7 / 5.0)Monthly subscription$763 / mo14-day free trial (no credit card) · 30-day money-backSender ID / KYB check
Omnisend (99.96% · ★ 4.9 / 5.0)Monthly subscription$30 / moFree up to 500 contactsDomain DNS (SPF / DKIM)
GetResponse (99.96% · ★ 4.7 / 5.0)Monthly subscription$49 / mo30-day free trialDomain DNS (SPF / DKIM)
Sender.net (99.95% · ★ 4.8 / 5.0)Monthly subscription$24 / moFree up to 2,500 subscribersDomain DNS (SPF / DKIM)

Pre-launch checklist

  • ✓Documented user opt-in path and STOP handling for this scenario
  • ✓Approved Sender ID (or registration lead time accounted for)
  • ✓Delivery receipt (DLR / event) tracking active before scaling volume
  • ✓Code expiration (TTL), resend cooldown, and anti-abuse caps defined
  • ✓Regional operator rules verified for verification templates