Since you don't currently have Primary ISDN service, it will need to be configured. But before we go there, you need to print your current configuration for reference. Next, you should print the PRI FAQs in this forum, mentioned earlier. Next, if you do not have the System Planning guide and the Feature Reference Guide documents for the Legend, they can be downloaded from support.avaya.com. Then you get to read and understand about configuring PRI service on the Legend. Now the BCH and DCH for your switch, I believe are trunks 817 - 832 for the BCH and 840 for the DCH pertaining to slot 5. For the DCH(840) it must not be programmed anywhere, in any group, or assigned, etc. As you read and review the documentation, this stuff should become apparent. In the process as it will be noted in the documentation the exisiting programming on the 100D module must be deleted completely in order to program for the PRI.
Take it step by step as you do this. Good luck!
....JIM....