Limiting directory access

Hello friends,

I’m trying to limit my directory range for some incoming routes.

like access control to which extension a caller can dial when accessing from a specific route. is that possible? are there any ways to manipulate to make this work?