Call Detail Records (CDRs)
A CDR is written at the end of every call and captures the full context needed to bill the call accurately. The fields stored on eachCdr record are:
duration_seconds is the actual call length. bill_seconds may differ because rates apply a billing_increment that rounds up to the nearest increment boundary (e.g. a 6-second increment means a 7-second call bills as 12 seconds).Rates
Rates define the cost of calls to a given destination for a specific tenant. LaraCopilot matches an outbounddestination_number against the rate prefix table to find the correct rate, then applies it to bill_seconds to produce cost.
Cost Calculation
The formula applied to each CDR is:bill_seconds is already rounded up to the nearest billing_increment before this calculation runs, so the effective minimum charge per call is:
API Reference
Retrieving CDRs
search query parameter that filters on caller_number, destination_number, direction, and disposition.
Sample response