I get the impression you are confused about how a PRI with DID numbers actually works.
At the Central Office Switch when a PRI is provisioned it is set up as follows: a Trunk Group of B Channels and a Trunk Group for the D Channel. All the DID numbers you are assigned will utilize all B Channels for incoming service that are in that B Channel Trunk Group. You may split them up in the Legend, but that won't change the way the CO Switch picks a B Channel to send the call to the Legend (all B Channels in same Trunk Group.) So if you want to dedicate a group of B Channels for a specific group of DID numbers, you need to place an order with your service provider to add another Trunk Group to the PRI service and specify which B Channels of the 23 you want in that other Trunk Group.
Some service providers may or may not offer this feature. All CO switches, the real ones (4ESS, 5ESS, DMS10, DMS100, DMS200, DMS250, DMS500, Ericsson, Siemens, etc.) provide this capability whether or not the service provider offers it to the subscriber.
Now in relation to the Legend/Magix, I don't see any specific type of problem doing this, but you might want to read the Feature Reference document for the Legend/Magix to understand how the PRI works and the interactions with other features. That way you may have a better view of your application in regards to the limitations of PRI service on the Legend/Magix PBX.
In regards to the Legend/Magix and CLID for PRI, it has REAL limitations!! That is covered in the Feature Reference document. You might also search this forum for that subject matter or read all the ones covering the PRI subject. PRI has been covered extensively on this forum.
Hope this helps!
....JIM....