Automated outgoing recordings


I have a project in which I need to automatically dial out of asterisk and wait for the callee to answer. It is a recording, so I do not want the recording to start too early. I am having problems detecting when the callee picks up.

My question is then, how can one detect from within asterisk when the callee has answered, not just when the dialing is complete?