I think one of the easiest ways is to pick an unused COR and then in the Maximum Digits Dialed form restrict it to 4 digitis (or what ever the number of digits are in your extension numbers)
Then assign that COR to the phones you want restricted.
Ralph