Local time, quarter-hour offsets
A CDR timestamp is local time plus an offset that varies per record (TS 32.298).
Time →Rust · zero I/O · no async · no clock
mediation normalises, deduplicates, correlates and reconciles usage records from mobile and fixed-line networks — and proves it lost none. Octets, seconds and events out; pricing stays with your rater.
cargo add mediationcarried_in + ingested == billable + suppressed + duplicate + rejected + heldA batch that does not balance is not released.
A CDR timestamp is local time plus an offset that varies per record (TS 32.298).
Time →Octets are u64, seconds u32. No float, anywhere.
Natural-key deduplication, wrap-safe sequence gaps, held partial runs.
Completeness →Dial strings to destinations, Call-ID keys, the § 11 TDDDG itemised bill.
Fixed-line voice →let mut state = ProcessState::new(DedupWindow::from_bound(Duration::days(7)).unwrap());
let outcome = process(
&Batch::new(&records),
&ProcessConfig::default(),
datetime!(2026-07-28 12:00:00 UTC),
&mut state,
);
assert!(outcome.reconciliation().balances());
for gap in outcome.sequence_gaps() {
eprintln!("resend {:?} from {}", gap.missing, gap.node);
}State is caller-owned and passed in, so a replay in five years gives the same answer.
How the pass works