Tool to test analog phone line connection quality
You could set up a line to transmit a digital signal somewhere and then this device would call this number. Off the shelf modems would probably be ok since you just need it at one place. Your device could just be a circuit that generates the same signal and computes the correlation with the signal.