Analog Errors

All,

The dial-out sequence, on analog FXO cards, can detect an active line. Is this by voltage drop or actual dial tone?

How does one then determine ringing, busy tone, or dead line?

I need to know these for an automated remote redirect system rollout.

Any resources are appreciated.

Thanks!

OMR