My simple algorithm can easily be implemented by Apple, and made an optional configuration:
If the number is not in my contacts list I redirect it to voicemail.
If Apple gives me that I'm a happier consumer.
And most of the time, I also google the numbers that I don't recognize, and block them if they are known offenders/spammers.