Before I wrote CDR Guard I tried the obvious thing: a SQL query on the CDR export. If you are comfortable with SQL and have your CDRs in a database, a query may be all you need. Here is where it is enough and where it stops being enough.
The query
On an illustrative table cdrs(dst_number, answered, reached_gateway) (your Yeti export has different column names; adapt them):
SELECT dst_number, COUNT(*) AS attempts FROM cdrs WHERE reached_gateway = 1 GROUP BY dst_number HAVING COUNT(*) >= 2 AND SUM(answered) = 0 ORDER BY attempts DESC;
That gives you numbers that reached a gateway at least twice and never answered. For a one-off look at a day of traffic, this is genuinely enough.
What you still have to do yourself
- Decide what a real attempt is. The
reached_gatewaycolumn above does not exist for free. Rows rejected for overload or "no routes" can carry a gateway, and if you count them you will propose numbers with a single real attempt. This is the part that took me longest to get right. - Show the evidence. A list of numbers is not enough to approve a block. You want the calls behind each number in front of you.
- Measure the impact before you act. Replaying the traffic with the numbers blocked tells you how many attempts you would have avoided and how many answers you would have lost.
- Write the file Yeti accepts. The numberlist import has its own format with 19 columns.
- Keep a way back. A list of exactly what you added, so you can remove it.
- Repeat it every week without making a mistake in a hurry.
When I would use the query and when the tool
- One-off check, you know your schema, you will review by hand: use the query.
- Regular use, several people, a need to show why a number was blocked: use a tool that keeps the evidence, the replay and the rollback together.
CDR Guard is that tool for Yeti Switch. It reads a CDR export, proposes numbers with the calls shown, simulates the impact, and writes the numberlist CSV plus a rollback file, without connecting to your switch. There is a read-only demo on synthetic data at cdrguard.flo-voice1.com and details on the CDR Guard page.
Not affiliated with the Yeti Switch project; "Yeti Switch" is named only to describe compatibility.