You might want to review the Magix Feature Reference guide, it covers all of this info. For direct trunk/line testing access see the Maintenance document, it has the access code sequence in it. These documents are free for the download from support.avaya.com and wedophones.com.
Happy reading!
....JIM....