Testing outbound numbers


I’m working on custom PHP based CRM system and need a way to test outbound phone numbers if they are still working (email will be sent to customer if phone line not working). Can you point me to the right direction? Do I use AGI or Manager API? Is it possible to test the number without ringing it?

Thank you.