IOSOR Learn

Queued vs Sent: One Message Path in IOSOR

Understand how finance and product share a unified state machine for SMS and OTP lifecycle stages, balancing balance reservation and DLR status in IOSOR.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

When an API request hits the platform to transmit an SMS or OTP payload to an E.164 destination, product and finance teams must reference the exact same lifecycle state. In legacy white-label setups, product treats 'queued' as an engineering status while finance waits for end-of-month statements.

The Single State Machine for Queued and Sent

IOSOR eliminates this disconnect by operating a single deterministic state machine. When an HTTP payload is validated, the message enters the queued state immediately. This state creates an explicit entry in the transaction log, locking the route rate and applying an authorization hold against the client PAYG wallet.

Financial Reserve on Queue versus Final Settlement

Upon entering the queued state, the engine executes an immediate balance check. To maintain platform solvency, accounts must uphold the PAYG floor before outbound traffic enters the pipeline. When queued, the projected cost of the outbound SMS segment is held. If the message transitions from queued to sent, this hold converts to a final balance debit.

Transition Triggers: API Ingestion to Handoff

The boundary between queued and sent is strict. Queued means the payload is validated, rate-calculated, and assigned to the dispatch queue with reserved funds. Sent indicates that the edge gateway transmitted the PDU to the network interface and received an intermediate acknowledgment. At this millisecond, the system updates the state from queued to sent and dispatches an asynchronous webhook event. Numbers are provisioned using JIT allocation, ensuring E.164 routing and MRC accounting occur without speculative reservations.

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

Reconciling Ledger Audits with Delivery Reports

Finance audits often clash with engineering logs when DLR delays occur. In IOSOR, sent is the accounting point of final debit commit. DLR statuses like DELIVERED or UNDELIVERED update operational metrics without altering the initial transaction ledger. If an inbound STOP command is received, subsequent attempts for that E.164 address are rejected at the API boundary with Verify OK status before financial holds occur.

Operational Playbook and Related Architecture

To maintain alignment across engineering and financial ops, follow these core reference guides for queue handling, webhook idempotency, and wallet mechanics:

Start with IOSOR

Open the IOSOR console and navigate to the Lifecycle State Machine configuration to align your outbound hooks with the single queue-to-sent pipeline. Configure your ledger integration to recognize the sent state as the authoritative point for final debit commit rather than waiting on downstream carrier DLRs. Validate the setup by running a test dispatch and auditing the unified transaction state ID across engineering webhooks and financial logs.

IOSOR takeaway

This guide proved that unifying product telemetry and billing around a single state machine removes operational friction between engineering and finance. Reserving funds upon queue entry and committing final debits when the gateway emits the sent event creates a deterministic accounting model that remains unaffected by delayed or missing delivery receipts.

Do map accounting settlement triggers exclusively to the sent transition while using DLRs strictly for operational quality metrics. Don't tie ledger adjustments or debit commits to asynchronous delivery receipts, which introduces accounting drift and audit reconciliation conflicts.

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