Use a station hunt group with a pilot number that is equal to the teacher's mailbox number. Make each voicemail port a member of the hunt group and set the search option to TERMINAL. This should work for you. Also, you will not need to use the XVM; just transfer to the pilot number using a normal transfer sequence.
Good Luck.