DID for a range number E1 trunk

Good morning all, for a digital card I setting up two groups, the trunk is on E1 mode, therefore 1-14 as group2 and 15-30 as group3, for the first fourteen channels I want to set a range of DID numbers for outbound calls and all the rest will use for inbound call. Any idea will appreciated.
Thanks.