You filter which extension uses which outbound route by specifying a pattern inside the CallerID field for a specific pattern on the Dial Patterns tab.
For example 2XXX would allow any 4 digit extension that starts with a 2 to match and use that outbound route and trunk that’s assigned to the route.
You can also specify exact extensions here as well.