Put the phone's Directory Number in a Calling Search Space that has no access to any Route Patterns.
Usually I set up a Phone_PT for all DN's, a Local_PT for all Route Patterns for local calls, LD_PT all Route Patterns for LD Calls, etc.
Then to restrict a phone I give it a Calling Search Space that only has the Phone_PT in it.