cdr_count_by_code
Count CDRs by SIP response code in a date range to quickly assess error rates like 5xx, using efficient SQL-side aggregation.
Instructions
Count CDRs by SIP response code within a window.
Quick-glance "what's the 5xx rate right now?" report — SQL-side aggregation so it is cheap even on large acc tables.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "cdr_count_by_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_from | Yes | ||
| date_to | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||