I'm not sure that I understand what the problem is.
But I think that you're trying to block certain numbers from being able to dial into the PBX.
No. You can't do that.
If you have SIP trunks then there is a big "maybe", but in general you won't be able to block specific numbers from dialing in.
Ralph