Call Status

Is it possible to get the status of a called phone number within asterisk, such as if the number is disconnected, not assigned, or invalid?