Hi Vinicius,
You'd do this via a number plan. Assuming you had two ranges as noted above, you could create a number plan for each using a reg ex match, and either use an existing call classification for the trunk you want to use or create a new one specific to the range that could be used by an outbound route.
An example might look like the below snips. More info here.


------------------------------
Dean Thames
Sr. Principal Consultant Cloud CX
------------------------------