Why go for the technical option is the legal one is far more effective?
In my country hospitals (and so on call) from an "unknown" number. So blocking that is a bit dangerous. There's a general "do not cold call" list and if you get a cold call while being on that the company behind it can get a hefty fine per call that they make.
There's an government organization which checks if companies abide to this (and a few other things). They seem to enjoy going after companies and fining them. Which is probably why I don't get any cold calls.
Note: Obviously there are all kinds of rules, etc. E.g. once you add yourself to the cold call list, there's 6 week grace period (as companies are allowed to only update their do-not-call list every so often). Though at the same time, even if you're not on the country's do not call list you can still ask to be put on the list for the company calling you. It is mandatory for a company to do that. Else the company will get a fine. There's different rules for companies which have or had a business relationship with you.