You can't do it from the system.
You can only block based on the Caller ID, if you don't have any you can't block it.

Your SIP provider might be able to do it.