Running AGI Script As Soon as the Phone is Picked Up

Does anyone how I can run an agi script as soon as an incoming phone call has been picked up by a user?

Cheers.

look at the ‘M’ option for the Dial() application.CLI> show application Dial