Read this article. https://support.apple.com/en-my/guide/iphone/iphe4b3f7823/ios
I was getting calls from an unknown number. I couldn’t block the number since it was unknown, so now they will just get ignored.
Don’t waste your time with spammers. Use technology to block scammers.