If your PRI does not yet exist - open a MAC ticket with your service provider to install for you (there are a lot of things to configure - loop, dch, clocking, interface, protocol, channel types, calling line ID, 911). Never programm PRI dids as Tie.
If your route exists, you will have or need a number programmed as an LDN (ld 21 - prt, LDN). If the LDN is 4 digits you would then put the last 4 digits of the DID on the phone. If the LDN is 3 digits you would program the last 3 digits of the DID on the phone.
One other way is to use an IDC table. This converts incoming DID digits (whatever the LDN is) to different digits. For example did number 714 315 0830, LDN is 2222, IDC table for incoming digits would be 0830, outgoing digits would be 2830 - someones phone ext. IDC tables are built in LD 49, allowed in CDB LD 15, Assigned to route LD 16.