This app was mentioned in 6 comments, with an average of 2.00 upvotes
I have an app on my phone called Call Blocker on Android (I don't know what OS you have) but there's a setting in it to block private and hidden numbers. If you decide to use it and you can't find the setting I can tell you where it's at. :)
I don't get spam calls but I used to get telemarketer calls every now and then. Then I put myself on nationwide (in Finland) do-not-call-lists and they stopped.
However there is this one legit company that keeps calling me about donations and I haven't told them to stop calling me, instead I use https://play.google.com/store/apps/details?id=embware.phoneblocker and it blocks all their calls (I've gathered all/most of their phone numbers), works great, you don't hear them calling, you just get a notification (you can turn this off also) that they tried to call but it was blocked. These call blocker apps work very similiar way but this one just has a lot more options and settings compared to dozen others I've tried.
I'm using Call Blocker and I'm pretty happy with it. Normally, I have it set to only allow calls from sources on my address book.
I use this and it works great..
https://play.google.com/store/apps/details?id=embware.phoneblocker&hl=en
I use Call Blocker