A wholesale CDR gives you a disconnect reason on every failed call. Read in bulk, those reasons tell you whether a bad answer rate is caused by dead numbers, by a congested route, by a rejecting peer or by your own limits. Read one call at a time, they mislead. Here is how I read them.
Two code families in the same row
- SIP final responses (4xx, 5xx, 6xx) are what the SIP leg returned.
- Q.850 release causes come from the telephony world and can ride along in a
Reasonheader. They are usually more specific than the SIP status, which is why you see both.
Look both up in the SIP and Q.850 code reference.
Group them by what they say about the number or the route
About the number (the same number will fail again):
- SIP 404 and 604, Q.850 cause 1 (unallocated number): the number is not allocated.
- SIP 484, Q.850 cause 28: the number is incomplete or malformed, which can be a prefix handling problem on your side or the customer's.
About the person (a retry may work):
- SIP 486, cause 17: busy.
- SIP 480, cause 20 or 18: not reachable or not responding.
- SIP 487 after a short ring: the caller gave up; normal for dialler traffic.
- Cause 19: it rang and nobody answered.
About the route or capacity (the number may be fine):
- SIP 503 and 502, causes 34, 38, 41 and 42: congestion or a fault. A capacity limit often looks like this.
- SIP 408 and 504: timeouts on the path.
The trap: rows that are not real attempts
Some rows are rejections made by your own switch before the call ever reached a carrier: an overloaded gateway, a limit hit, no route. They still carry a destination number. If you count them as attempts at that number, you will conclude the number failed several times when it was tried once. That is why, when I look for dead numbers, I count only attempts that actually reached the gateway and show the rest separately. I wrote the rule up with real data in How I found 47 dead numbers in one morning of Yeti CDRs.
A short routine
- Take a time window and a destination prefix.
- Count calls by disconnect reason. Look at the shape: a spike in 503 tells you about capacity, a wall of 404 tells you about numbers.
- For the number-class reasons, look at how many real attempts each number had and whether it ever answered.
- Only then decide what to block, and keep a way to undo it.
The standard meanings are only a starting point: peers use the codes differently, so check the same code across many calls before you act on it. Q.850 is defined by ITU-T; the SIP and Q.850 mapping is described in RFC 3398.
If you run Yeti Switch and want this step automated, with the evidence shown for each number, that is what CDR Guard does.