Can i using Asterisk to test the phone no?

my case is i have the phone no.(PSTN) list but some no. is invalid.
can i using Asterisk to test and list out the invalid or valid no. ?

where can i found the informations about this, e.g. programming API , console command or other solutions , both software and hardware

The invalid is mean the phone number is not exist, not format error.

Thanks

someone help me?