I've long searched for a way to validate my database of employee phone numbers and recently found what I was searching for. Google developed a library in JS that can be incorporated into code to test whether phone numbers are technically correct. This is especially useful for international phone numbers.
It's called libphonenumber and can be found in GitHub. Someone also ported it over to .Net using C# which is what I used.