Use different trunks depends on Caller ID

Hello.

I have 2 trunks on my FreePBX last version.

I want system to use trunk#1 for calls where callerID is XXX and use trunk#2 for calls where callerID is YYY.

Is it possible to setup?

Thanks a lot.

Yes
Create an outbound route for each CID Range

Add them in the Dialplan as 2XX to match all CIDs which have 3 Digits and begin with 2

This sounds like a bad problem description, since setting up trunks correctly will do this for you without any fuss or discussion. I’m guessing we aren’t actually getting the whole story here.